Engineering · 8 min read
Real-time HL7v2 to FHIR R4 streaming: replacing nightly batch exports.

Nightly ETL jobs leave clinical AI and bed-management dashboards 24 hours behind reality. How event-driven HL7v2 ingestion keeps Fabric live.
Why nightly batch ETL breaks operational AI
If your data warehouse updates once at midnight, a sepsis early-warning model or an ED bed-capacity forecast is blind to everything that happened since yesterday. Clinical operations run on minutes, not 24-hour batches.
Listening to MLLP streams without touching the HIMS
Most hospital systems already emit HL7v2 messages over MLLP for admissions (ADT), lab orders (ORM), and results (ORU). Relay subscribes to those streams passively, parses the segments, and pushes normalized events into a durable message queue.
Idempotent FHIR R4 upserts
HL7v2 feeds are noisy: messages arrive out of order, get resent after network blips, or carry partial updates. Fabric processes each event idempotently, merging patient identifiers and updating FHIR Patient, Encounter, and Observation resources in milliseconds.
One live spine for dashboards and models
Once data lands in Fabric in real time, Pulse bed forecasts, Sage clinical search, and NHCX claim builders all read from the same up-to-the-second patient state.
Key takeaways
- 01Subscribe passively to existing HL7v2 MLLP feeds (ADT, ORM, ORU) for real-time visibility.
- 02Design idempotent FHIR upserts to handle duplicate or out-of-order HL7 messages.
- 03Feed operational dashboards and clinical AI from one live FHIR R4 spine.
Where this lives in the platform
Share this note