Skip to content

FHIR R4 interoperability

Where FHIR R4 is used on the network, the FHIR gateway and repository, terminology, and how triage and pre-consultation data are exchanged.

OHN uses HL7 FHIR R4 (4.0.1) for clinical information exchanged with other systems. Network operations (registering a facility, approving a membership, managing a subscription) use the plain JSON APIs in the API reference.

Services

ServiceRoleBase path
OHN-21 FHIR Interoperability GatewayFHIR R4 endpoint for partner systems: CapabilityStatement, transactions, reads, validation/api/ohn/x/ohn-21/api/ohn/v1/fhir
OHN-41 FHIR Repository and Profile RegistryStored FHIR resources, profiles and the repository’s CapabilityStatement/api/ohn/v1/fhir
OHN-23 Clinical Terminology ServiceCode lookup and validation (SNOMED CT, LOINC and local code systems as configured)/api/ohn/v1/terminology

Contracts: OHN-21, OHN-41, OHN-23.

The FHIR gateway (OHN-21)

Under the gateway base:

  • GET /R4/metadata: the CapabilityStatement.
  • POST /R4: a FHIR transaction Bundle.
  • GET /R4/Patient/{id}: read a patient.
  • POST /R4/$validate: validate a resource without storing it.
  • /capability-statements (with /preview and /publish): manage the published CapabilityStatement (operators).

Calls need a gateway-issued token for audience ohn-21 (see Authentication). Failures are returned as a FHIR OperationOutcome.

The FHIR repository (OHN-41)

GET /api/ohn/v1/fhir/capabilities returns the repository’s CapabilityStatement (fhirVersion 4.0.1, JSON). The repository holds Patient, Observation, Condition, AllergyIntolerance, MedicationStatement, Immunization, Encounter and DiagnosticReport. Always read the CapabilityStatement of the deployment you use: it is the authoritative list of what that deployment supports.

Rules that apply to every FHIR exchange

  • Access is checked on every request (consent, care relationship, role, jurisdiction). A refusal returns an OperationOutcome, never a partial bundle presented as complete.
  • Codes are checked against OHN-23 by the services that require coded data. Send codes from the code systems the deployment has configured.
  • JSON only (application/fhir+json).

Triage and pre-consultation interoperability

Triage (OHN-61, Triage and Patient Queue) and pre-consultation questionnaires (OHN-62) do not invent their own clinical record: they write into the network’s shared record services, so any system that reads encounters, observations or documents sees them.

StepWhat is writtenWhereFHIR R4 shape
Triage startsA triage encounter (encounter_type=triage, status=in_progress, source ohn61:<ticket_id>); the assessment finishes itOHN-09 Encounter and Care TimelineEncounter
Vital signs recordedOne observation per value: status final, category vital-signs, effective time, performer, linked to the triage encounter, LOINC code from the module’s configured mapping (validated with OHN-23)OHN-10 Clinical SummaryObservation
ReassessmentNew observations are appended; nothing is overwrittenOHN-10Observation
Pre-consultation questionnaire submittedThe patient’s answers, questionnaire = `urn:ohn:preconsult:`, subject, author, source and authored time, linked to the triage encounter when there is one; amendments create a new document versionOHN-13 Clinical Document Registry

Notes for integrators:

  • Triage levels come from a configured, approved triage scale. If a facility has no active scale, acuity is not computed (503 not_configured) and the record says so; check-in, queueing and vital signs still work.
  • Writes to the shared record go through an outbox with a record_sync state (pending_upstream, synced/filed, failed), so a slow upstream never blocks triage. Read the encounter and observations from OHN-09/OHN-10 rather than from triage.
  • Triage events (ticket and queue changes) are published as events carrying ids, states, levels and counts only; see Events and webhooks.
  • Both services also serve a read-only FHIR R4 facade (OHN-61: Encounter, Observation, QuestionnaireResponse, Flag, Task, Provenance; OHN-62: Questionnaire, QuestionnaireResponse), and OHN-61 accepts inbound triage as a FHIR R4 Bundle from registered third-party systems. See Triage and pre-consultation APIs, which also lists the current contract versions.
  • The contracts are OHN-61 and OHN-62.

Triage conformance artefacts

Published in the repository:

  • modules/OHN-61/conformance/README.md
  • modules/OHN-61/conformance/examples/01-adult-walk-in.json
  • modules/OHN-61/conformance/examples/02-child-danger-flag.json
  • modules/OHN-61/conformance/examples/03-unmapped-acuity.json
  • modules/OHN-61/conformance/examples/04-duplicate-resend.json
  • modules/OHN-61/conformance/examples/05-idempotency-mismatch.json
  • modules/OHN-61/conformance/examples/06-invalid-no-encounter.json
  • modules/OHN-61/conformance/examples/README.md
  • modules/OHN-61/conformance/examples/acuity-code-map.example.json
  • modules/OHN-61/conformance/examples/expected-outcomes.json