SIU scheduling to FHIR Appointment
Turn HL7v2 SIU^S12 scheduling messages into FHIR R4 Appointment resources on a FHIR server.
A practice management or scheduling system sends HL7v2 SIU messages when an appointment is booked. This recipe writes each booking to a FHIR R4 server as an Appointment, with the patient, so patient-facing and care-team applications see the schedule.
Source and destination
The scheduling 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[Scheduling system] -->|SIU^S12 over MLLP| B[MLLP trigger]
B --> C[HL7v2 to FHIR]
C -->|transaction Bundle| D[FHIR R4 server]- Source: HL7v2 SIU^S12 over MLLP.
- Destination: any FHIR R4 server a FHIR REST profile can reach.
- Result: a Patient (PID) and an Appointment from SCH, with its participants and location from the AIS, AIL and AIP segments.
What it uses
- Template HL7v2 over MLLP → FHIR R4 (POST) (
hl7v2-mllp-to-fhir-r4). See the Workflow catalog. - The MLLP trigger.
- The HL7v2 to FHIR transform.
- Adapter
fhir-rest.
Status
Available on this release for SIU^S12. The guide HL7v2 over MLLP to FHIR R4 builds the workflow; its trigger already takes SIU.
The other direction also works: the FHIR to HL7v2 transform turns an Appointment into SIU^S12, S14 or S15, and the template FHIR Bulk webhook → HL7v2 over MLLP sends it. See FHIR Bulk NDJSON to HL7v2 over MLLP.