Recipes
ORU lab results to FHIR Observation
Turn HL7v2 ORU^R01 lab results into FHIR R4 Observations, linked to the order they answer, on a FHIR server.
A lab system sends results as HL7v2 ORU^R01 messages. This recipe writes each result to a FHIR R4 server as Observations, so a clinical application or an EHR's FHIR store sees results as they arrive.
Source and destination
The lab system connects to the engine's MLLP listener. The engine answers with an ACK, converts the message and POSTs one transaction Bundle to the FHIR server.
flowchart LR
A[Lab system] -->|ORU^R01 over MLLP| B[MLLP trigger]
B --> C[HL7v2 to FHIR]
C -->|transaction Bundle| D[FHIR R4 server]- Source: HL7v2 ORU^R01 over MLLP.
- Destination: any FHIR R4 server a FHIR REST profile can reach. Writing into a specific EHR depends on that EHR accepting Observation writes through its FHIR API; the guide does not cover an EHR as the destination.
- Result: a Patient (PID), a ServiceRequest per order (ORC/OBR) and an Observation per OBX. Each Observation is
basedOnthe ServiceRequest of the OBR before it. Numeric, string, text, coded, date and timestamp values are mapped; a number that does not parse is kept as text.
What it uses
- Template HL7v2 over MLLP → FHIR R4 (POST) (
hl7v2-mllp-to-fhir-r4). See the Workflow catalog. - The MLLP trigger and its ACKs.
- The HL7v2 to FHIR transform.
- Adapter
fhir-restormedplum.
Status
Available on this release. The guide HL7v2 over MLLP to FHIR R4 builds the workflow; its trigger already takes ORU. To take only results, set the trigger's message types to ORU^R01.
Know the limits before you go live:
- An FHS/BHS batch of results runs as one execution unless the trigger has
splitBatches: true. With it, each result message runs on its own. See Batches. - A base64 report (an
EDvalue) stays inline in the Observation and in the execution history.