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
| Service | Role | Base path |
|---|---|---|
| OHN-21 FHIR Interoperability Gateway | FHIR R4 endpoint for partner systems: CapabilityStatement, transactions, reads, validation | /api/ohn/x/ohn-21/api/ohn/v1/fhir |
| OHN-41 FHIR Repository and Profile Registry | Stored FHIR resources, profiles and the repository’s CapabilityStatement | /api/ohn/v1/fhir |
| OHN-23 Clinical Terminology Service | Code 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 FHIRtransactionBundle.GET /R4/Patient/{id}: read a patient.POST /R4/$validate: validate a resource without storing it./capability-statements(with/previewand/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.
| Step | What is written | Where | FHIR R4 shape |
|---|---|---|---|
| Triage starts | A triage encounter (encounter_type=triage, status=in_progress, source ohn61:<ticket_id>); the assessment finishes it | OHN-09 Encounter and Care Timeline | Encounter |
| Vital signs recorded | One 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 Summary | Observation |
| Reassessment | New observations are appended; nothing is overwritten | OHN-10 | Observation |
| Pre-consultation questionnaire submitted | The patient’s answers, questionnaire = `urn:ohn:preconsult: | OHN-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_syncstate (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.mdmodules/OHN-61/conformance/examples/01-adult-walk-in.jsonmodules/OHN-61/conformance/examples/02-child-danger-flag.jsonmodules/OHN-61/conformance/examples/03-unmapped-acuity.jsonmodules/OHN-61/conformance/examples/04-duplicate-resend.jsonmodules/OHN-61/conformance/examples/05-idempotency-mismatch.jsonmodules/OHN-61/conformance/examples/06-invalid-no-encounter.jsonmodules/OHN-61/conformance/examples/README.mdmodules/OHN-61/conformance/examples/acuity-code-map.example.jsonmodules/OHN-61/conformance/examples/expected-outcomes.json