One admission, three destinations
Publish each ADT admission once to a topic and fan it out to a FHIR store, a warehouse and a notification workflow, each retried on its own.
An admission usually has to go to several places: the FHIR store, the analytics warehouse, the care team's notifications. Instead of one workflow with three destinations, where a slow warehouse delays the others, this recipe publishes the admission once to the topic adt.admit and gives each destination its own subscriber workflow. Each subscriber is retried on its own, keeps per-facility order, and dead-letters without holding the others back.
flowchart LR
MLLP[ADT^A01 over MLLP] --> Intake[ADT intake]
Intake -->|Publish to topic adt.admit| Topic((adt.admit))
Topic --> FHIR[FHIR store]
Topic --> BQ[Warehouse]
Topic --> Notify[Notifications]Source and destination
| Part | What it is |
|---|---|
| Source | An MLLP listener taking ADT^A01. |
| Topic | adt.admit, ordered by $.facility, 3 retries before a dead letter. |
| Subscribers | A FHIR store workflow, a warehouse workflow and a notifications workflow. |
The event
Map the HL7 v2 message to a small event before publishing, so subscribers never parse HL7 and the schema can check it.
| Field | From | Example |
|---|---|---|
patientId | PID.3.1 | TESTPATIENT-1 |
facility | MSH.4 | DEMO_HEALTH |
admittedAt | PV1.44 | 2026-10-28T09:00:00Z |
The topic's schema:
{
"type": "object",
"required": ["patientId", "facility", "admittedAt"],
"properties": {
"patientId": { "type": "string", "minLength": 1 },
"facility": { "type": "string" },
"admittedAt": { "type": "string" }
}
}Build it
- On Workflows → Topics, create
adt.admitwith the schema above and Ordering key$.facility. - In the intake workflow, add a destination
Admissionswith a Data map output for the three fields, and set Send to to a topic,adt.admit. - Create three workflows with a Topic trigger on
adt.admit:- FHIR store: an HL7-free JSON → FHIR Encounter map, then a FHIR adapter destination.
- Warehouse: a destination on your warehouse adapter profile.
- Notifications: a webhook or email destination for the care team.
- Send a test admission from Send test messages.
Check it
On the topic's page, the event shows three deliveries. Stop the warehouse (or point it at a test endpoint that answers 503): its delivery retries, then becomes a dead letter, while the FHIR store and notifications deliveries complete. Restore the warehouse and choose Replay on the dead letter.