ORM and OML orders
Carry HL7v2 lab and order messages (ORM^O01, OML^O21) to FHIR ServiceRequest and back. Conversion of the order segments works today; a template and guide are in progress.
In progressThis page describes what's coming, not working steps.
An ordering system sends HL7v2 ORM^O01 or OML^O21 messages when a clinician places, changes or cancels an order. A lab or a downstream application needs those orders, often as FHIR ServiceRequests, and often needs results and status to flow back. This recipe covers both directions.
Source and destination
The intended flow takes orders from the MLLP listener and writes them to a FHIR R4 server, and turns FHIR ServiceRequests back into HL7v2 orders for systems that only speak HL7v2.
flowchart LR
A[Ordering system] -->|ORM or OML over MLLP| B[MedHook engine]
B -->|ServiceRequest| C[FHIR R4 server]
C -.->|ServiceRequest| B
B -.->|ORM over MLLP| D[Lab system]- Source: HL7v2 ORM^O01 and OML^O21 over MLLP; FHIR ServiceRequest for the return direction.
- Destination: a FHIR R4 server; an HL7v2 receiver over MLLP for the return direction.
What works today
| Part | Today |
|---|---|
| ORC/OBR to ServiceRequest | Works. The HL7v2 to FHIR transform maps every ORC/OBR pair to a ServiceRequest, with order control and status, in any message type. |
| Receiving ORM or OML on MLLP | Works. Set the MLLP trigger message types to ORM or OML. |
| A template or guide for orders | We build the orders workflow with you during onboarding. The built-in template HL7v2 over MLLP → FHIR R4 (POST) takes ADT, SIU and ORU. |
| OML specimen (SPM) segments | Map them in a JavaScript step. |
| ServiceRequest to ORM | Build it in a JavaScript step. The FHIR to HL7v2 transform produces ADT and SIU. |
Adapters involved: mllp and fhir-rest.
What's coming
- A built-in template and a guide for ORM and OML to FHIR ServiceRequest, tested end to end with synthetic orders.
- Specimen mapping from OML SPM segments.
- ServiceRequest to ORM^O01 in the FHIR to HL7v2 transform, so orders can flow back to HL7v2-only systems.
Status
In progress. It needs wider HL7v2 to FHIR and FHIR to HL7v2 coverage than the engine has today.