JSON Schema Draft 2020-12 · Apache 2.0

JSON Schemas

Every JSON Schema the Open Workplace Health Standard publishes, listed from the schema files themselves: 20 entity and envelope schemas across v0.1 and v0.2, plus the profile envelope and the evidence-maintenance schemas. Each schema is published as raw JSON at the address in its $id.

The specification defines what each entity means and how the schemas are used; these files are its machine-checkable form. Read JSON Schemas and validation in the specification, and the entity list for a plain-language tour. The versioned catalogue is schemas/catalogue.json. The matching code lists have their own page.

Version 0.2 (current)

SchemaWhat it says about itselfIdentifier and raw JSONSpecification
AbsenceEpisodeReported sickness-absence episode with versioned reason-category mapping. No direct identifiers.https://openworkplacehealth.org/schemas/v0.2/AbsenceEpisode.json
raw JSON
field table in the specification
ReturnToWorkOutcomeWhat happened after an absence, including did-not-return and ill-health-exit. No direct identifiers.https://openworkplacehealth.org/schemas/v0.2/ReturnToWorkOutcome.json
raw JSON
field table in the specification
OHEpisodeManagement-facing envelope of an OH interaction. Carries NO clinical content.https://openworkplacehealth.org/schemas/v0.2/OHEpisode.json
raw JSON
field table in the specification
WellbeingObservationOne answer to one survey item on one occasion, any vendor. Individual-never at this grain: it leaves an organisation only through an AggregateReport.https://openworkplacehealth.org/schemas/v0.2/WellbeingObservation.json
raw JSON
field table in the specification
InstrumentAdministrationOne completed, partial or abandoned administration of a validated instrument: scores and bands, never item text. Individual-never at this grain. The schema does not grant a licence to administer the instrument.https://openworkplacehealth.org/schemas/v0.2/InstrumentAdministration.json
raw JSON
field table in the specification
MeasurementContextWhat makes scores comparable: the producing system, the scoring descriptor and its provenance, the data window it describes, and the stated limitations. Immutable: a changed descriptor is a new context.https://openworkplacehealth.org/schemas/v0.2/MeasurementContext.json
raw JSON
field table in the specification
AggregateReportEmployer-visible aggregate results and their suppression declarations.https://openworkplacehealth.org/schemas/v0.2/AggregateReport.json
raw JSON
field table in the specification
OrganisationOrganisation scope and declared employee-count band. Not a statutory company-size determination, identity verification or disclosure assessment.https://openworkplacehealth.org/schemas/v0.2/Organisation.json
raw JSON
field table in the specification
OrgUnitOrganisation-scoped unit and declared headcount band. No zero band exists in the pinned vocabulary; unknown or zero is not 1-4. References and hierarchy need supplied-bundle checks.https://openworkplacehealth.org/schemas/v0.2/OrgUnit.json
raw JSON
field table in the specification
WorkerPseudonymOrganisation-scoped pseudonym with optional banded demographics. Syntax does not prove HMAC generation, salt custody, anonymity or permission to disclose demographics.https://openworkplacehealth.org/schemas/v0.2/WorkerPseudonym.json
raw JSON
field table in the specification
ReasonableAdjustmentManagement-facing adjustment record, with sensitive disability flag restricted to the producer. Omitted endDate means no end date is recorded; null is not a date. A recorded category does not decide any legal duty or lawful disclosure.https://openworkplacehealth.org/schemas/v0.2/ReasonableAdjustment.json
raw JSON
field table in the specification
BenefitEntitlementDeclared statutory scheme or commercial workforce benefit. No eligibility, rate or legal entitlement is computed. Statutory descriptions are dated and sourced; omitted optional terms are not zero.https://openworkplacehealth.org/schemas/v0.2/BenefitEntitlement.json
raw JSON
field table in the specification
BenefitUtilisationProducer-held aggregate event counts. This is not an employer-output record: use an AggregateReport and the privacy profile for disclosure. Counts below a reporting floor can be structurally valid here. Claim contents and individual attendance are excluded.https://openworkplacehealth.org/schemas/v0.2/BenefitUtilisation.json
raw JSON
field table in the specification
DisabilityParticipationReserved-minimal producer-held organisation aggregate.https://openworkplacehealth.org/schemas/v0.2/DisabilityParticipation.json
raw JSON
field table in the specification
BenchmarkReleaseOne versioned comparison distribution for one declared metric, scoring rule, population and data period.https://openworkplacehealth.org/schemas/v0.2/BenchmarkRelease.json
raw JSON
field table in the specification
CrosswalkVersioned, sourced mapping assertions. At least one target is required; construct codes remain the shared vocabulary, not extra person-level entities.https://openworkplacehealth.org/schemas/v0.2/Crosswalk.json
raw JSON
field table in the specification
EntityGraph (bundle envelope)Producer-side supplied-record validation envelope. Not a complete roster, release envelope, empirical comparison or Level 2/3 certificate.https://openworkplacehealth.org/schemas/bundles/EntityGraph-v0.2.json
raw JSON
supplied-entity graph validation

Version 0.1 (archived)

SchemaWhat it says about itselfIdentifier and raw JSONSpecification
AbsenceEpisodeOne episode of sickness absence, ONS-comparable. No direct identifiers.https://openworkplacehealth.org/schemas/v0.1/AbsenceEpisode.json
raw JSON
archived v0.1 specification
ReturnToWorkOutcomeWhat happened after an absence, including did-not-return and ill-health-exit. No direct identifiers.https://openworkplacehealth.org/schemas/v0.1/ReturnToWorkOutcome.json
raw JSON
archived v0.1 specification
OHEpisodeManagement-facing envelope of an OH interaction. Carries NO clinical content.https://openworkplacehealth.org/schemas/v0.1/OHEpisode.json
raw JSON
archived v0.1 specification

Profile envelope

SchemaWhat it says about itselfIdentifier and raw JSONSpecification
profile-envelopeA profile is a JSON Schema applied to the whole instance after the core schema.https://openworkplacehealth.org/profiles/profile-envelope.schema.json
raw JSON
the profile mechanism

Evidence-maintenance schemas

These describe the artefacts of the evidence-maintenance tooling, not workplace-health records.

SchemaWhat it says about itselfIdentifier and raw JSONSpecification
evaluation-candidatesThe candidates file tools/harvest.py writes.https://openworkplacehealth.org/evidence/evaluation-candidates.schema.json
raw JSON
evidence maintenance
evaluation-coveragePer work and source: whether an identifier lookup found the work in that index at the check time, with the method and a hash of the response. A lookup with identifiers supplied is never discovery. Closed objects.https://openworkplacehealth.org/evidence/evaluation-coverage.schema.json
raw JSON
evidence maintenance
evaluation-execution-recordIndependently captured provenance of the discovery run the evaluator consumes: the run's identity, head commit, start and finish, and the dependency set that ran.https://openworkplacehealth.org/evidence/evaluation-execution-record.schema.json
raw JSON
evidence maintenance
evaluation-manifestJudged bibliography for the held-out retrieval evaluation.https://openworkplacehealth.org/evidence/evaluation-manifest.schema.json
raw JSON
evidence maintenance
evaluation-query-lockWhat was frozen before discovery ran: the query file, manifest and split hashes;https://openworkplacehealth.org/evidence/evaluation-query-lock.schema.json
raw JSON
evidence maintenance
evaluation-splitStudy-family components allocated to development or holdout by the declared deterministic algorithm, with every excluded work named and categorised and every unknown-overlap placement disposed with its actual grouping.https://openworkplacehealth.org/evidence/evaluation-split.schema.json
raw JSON
evidence maintenance