Understanding Trigger Events
Trigger events represent workflow transitions. Message type and trigger event in MSH-9 define contract intent, required segment structure, and downstream behavior.
Event components and categories
| Component | Description |
|---|---|
| Message Type (MSH-9.1) | Functional domain such as ADT, ORM, ORU, SIU, DFT |
| Trigger Event (MSH-9.2) | Specific workflow transition such as A01, O01, R01, S12, P03 |
| Message Structure (MSH-9.3) | Optional structure identifier for profile-driven parsing |
- ADT: admissions, discharges, transfers, updates, merges.
- ORM/ORR/ORU: order lifecycle and result return.
- SIU: scheduling lifecycle events.
- DFT: charge and financial posting events.
Routing rule of thumb
Route first by MSH-9, then apply profile and business validation. This keeps event orchestration deterministic and debuggable.
ADT Events (Admission, Discharge, Transfer)
Typical Patient Lifecycle (ADT)
ADT encounter lifecycle with merge exceptions
Loading diagram...
This model treats A40 merge as a patient-identity correction that can interrupt multiple encounter states, rather than as the normal end state of an admission. In production interfaces, A08/A31 updates and A40 merges often occur repeatedly while the encounter remains open.
Common ADT events
| Event | Meaning | Operational impact |
|---|---|---|
| ADT^A01 | Patient admission | Create active inpatient encounter |
| ADT^A03 | Patient discharge | Close encounter and notify downstream consumers |
| ADT^A04 | Outpatient registration | Create patient/visit without inpatient admit |
| ADT^A08 | Patient update | Update demographics or encounter attributes |
| ADT^A31 | Person-level update | Master patient identity update |
| ADT^A40 | Patient merge | Merge duplicate identifiers across systems |
A01 Admit Notification
Inpatient admission event with core demographics and visit information.
Click on a segment above to highlight its fields
Hover or click any field value for detailed explanation
A03 Discharge Notification
Discharge event terminating an active encounter.
Click on a segment above to highlight its fields
Hover or click any field value for detailed explanation
Patient Admission Workflow
Patient admission, update, and discharge sequence
Loading diagram...
- Patient registers (often ADT^A04) and demographic context is created.
- Registration updates are distributed to ancillary systems.
- Patient is admitted to a unit (ADT^A01).
- Admission is broadcast to ADT consumers, bed management, and billing.
- At discharge, ADT^A03 closes encounter state across consumers.
Order Events (ORM, ORR, ORU)
Order event types
| Event | Purpose |
|---|---|
| ORM^O01 | New or updated order placement |
| ORR^O02 | Order response/acknowledgment |
| ORU^R01 | Unsolicited observation result delivery |
ORM General Order - CBC Lab Test
Order request carrying placer/filler identifiers and ordered test.
Click on a segment above to highlight its fields
Hover or click any field value for detailed explanation
ORU Unsolicited Result - CBC Results
Result message linked to order identifiers for lifecycle completion.
Click on a segment above to highlight its fields
Hover or click any field value for detailed explanation
Lab Order Workflow
End-to-end order and result flow
Loading diagram...
Correlation guardrail
Preserve placer and filler identifiers through every transformation. Lost identifiers cause orphaned results and reconciliation failures.
Scheduling Events (SIU)
Common SIU events
| Event | Meaning |
|---|---|
| SIU^S12 | New appointment booking |
| SIU^S13 | Appointment reschedule |
| SIU^S15 | Appointment cancellation |
| SIU^S26 | No-show update |
SIU New Appointment - MRI Brain
Scheduling event for a new radiology appointment.
Click on a segment above to highlight its fields
Hover or click any field value for detailed explanation
Scheduling events sequence
Loading diagram...
- Provider places imaging request.
- Scheduler creates appointment (SIU^S12).
- Reschedules emit SIU^S13 updates.
- Cancellations emit SIU^S15 to all consumers.
Financial Events (DFT)
DFT events communicate charges and financial transactions to billing and revenue cycle systems.
DFT Charge Transaction
Charge posting event used for downstream billing workflows.
Click on a segment above to highlight its fields
Hover or click any field value for detailed explanation
Financial events charge sequence
Loading diagram...
- Clinical service is rendered and charge generated.
- DFT^P03 posts charge to billing and claim preparation systems.
- Payments and adjustments reconcile against financial transaction identifiers.
Radiology-Specific Events
Radiology workflows combine HL7 order and result events with DICOM image lifecycle systems for complete clinical context.
Radiology ORU - MRI Brain Report
Radiology result event carrying impression and narrative interpretation.
Click on a segment above to highlight its fields
Hover or click any field value for detailed explanation
HL7 v2.x to DICOM Integration
Radiology event orchestration
Loading diagram...
- HL7 orders (ORM/SIU) synchronize patient and scheduling context into modality workflow.
- DICOM Modality Worklist uses HL7-sourced demographics for acquisition safety.
- Results return in ORU while images persist in PACS/VNA systems.
- Identifier consistency (MRN, accession, placer/filler IDs) is critical for cross-system matching.
AWS EventBridge Integration
When publishing HL7 events to cloud buses, keep clinical semantics intact while adding routing metadata, observability context, and replay safety controls.
This official AWS view is useful because it keeps the HL7 v2 ingest edge separate from the cloud event-routing layer. EventBridge is not a replacement for MLLP framing or HL7 parsing; it becomes valuable after the message has been normalized into routable event metadata.
EventBridge Event Pattern for HL7
eventbridge-hl7-pattern.json
Structured JSON example rendered with depth controls for easier inspection.
Click on an annotation to highlight it in the JSON
Serverless HL7 Processing Architecture
HL7 to event-driven processing on AWS
Loading diagram...
EventBridge Rule Examples
adt-event-rule.json
Structured JSON example rendered with depth controls for easier inspection.
Click on an annotation to highlight it in the JSON
critical-results-rule.json
Structured JSON example rendered with depth controls for easier inspection.
Click on an annotation to highlight it in the JSON
Real-World Clinical Scenarios
Scenario 1: Emergency Department Visit
ED patient visit lifecycle
Loading diagram...
- Patient arrives and is registered (A04).
- Patient is admitted to ED bed (A01/A08 updates).
- Labs are ordered (ORM) and results returned (ORU).
- Patient is discharged or transferred (A03/A02).
Scenario 2: Scheduled Surgery
Scheduled surgery workflow
Loading diagram...
- Scheduling emits SIU^S12 appointment creation.
- Pre-op updates trigger SIU reschedule/cancel events as needed.
- Admission and perioperative updates use ADT messages.
- Charges and procedures post with DFT transactions.
Scenario 3: Radiology Workflow
End-to-end radiology workflow
Loading diagram...
- Order created (ORM) and appointment scheduled (SIU).
- Modality workflow executes with DICOM image acquisition.
- Interpretation is delivered as ORU result event.
- Billing posts study charges through DFT.
Event Handling Best Practices
Operational best practices
| Category | Practices |
|---|---|
| Message validation | Validate MSH-9, required segments, data types, and profile conformance before routing |
| Error handling | Use ACK semantics correctly, classify retryable vs non-retryable failures, and use DLQs |
| Event ordering | Preserve control IDs, timestamps, and sequence handling for stateful consumers |
| Performance | Use async fanout, backpressure, and idempotency for high-throughput workloads |
ADT Trigger Event Reference Table
ADT (Admission, Discharge, Transfer) events form the backbone of patient workflow tracking. This comprehensive table covers all common ADT trigger events with their operational impact and typical consumers.
Complete ADT trigger event reference
| Event Code | Event Name | Trigger Condition | Key Segments | Typical Consumers |
|---|---|---|---|---|
| A01 | Admit/Visit Notification | Patient admitted as inpatient | MSH, EVN, PID, PV1, [NK1] | LIS, RIS, Pharmacy, Billing, Bed Management |
| A02 | Transfer Patient | Patient transferred to new location | MSH, EVN, PID, PV1 | LIS, RIS, Pharmacy, Nursing Systems |
| A03 | Discharge/End Visit | Patient discharged or encounter ended | MSH, EVN, PID, PV1 | Billing, LIS, RIS, Analytics, HIE |
| A04 | Register Patient | Patient registered (outpatient/ER) | MSH, EVN, PID, [PV1] | Scheduling, Billing, Clinical Systems |
| A05 | Pre-admit Patient | Patient pre-registered before admission | MSH, EVN, PID, PV1 | Admitting Office, Bed Management |
| A08 | Update Patient Information | Demographic or visit data updated | MSH, EVN, PID, [PV1] | All subscribed systems |
| A11 | Cancel Admit/Visit | Admission cancelled | MSH, EVN, PID, PV1 | LIS, RIS, Pharmacy, Billing |
| A12 | Cancel Transfer | Transfer cancelled | MSH, EVN, PID, PV1 | LIS, RIS, Nursing Systems |
| A13 | Cancel Discharge/End Visit | Discharge cancelled, patient remains | MSH, EVN, PID, PV1 | Billing, LIS, RIS, Bed Management |
| A28 | Add Person Information | New person added to system | MSH, EVN, PID | MPI, HIE, Master Data |
| A31 | Update Person Information | Person-level demographic update | MSH, EVN, PID | MPI, HIE, All subscribed systems |
| A40 | Merge Patient-Patient Identifier | Duplicate patient records merged | MSH, EVN, PID, MRG | All systems with patient data |
| A41 | Merge Account-Patient Account | Duplicate account records merged | MSH, EVN, PID, PV1, MRG | Billing, Clinical Systems |
A40 Merge Critical Impact
A40 merge events are critical: all downstream systems must update their patient identifiers to prevent data fragmentation. Failed merge propagation causes duplicate records and clinical safety risks.
ORM/ORU Workflow Deep Dive
The ORM (Order) to ORU (Result) workflow is the most common bidirectional pattern in healthcare interoperability. Understanding this lifecycle is essential for lab, radiology, and pharmacy integrations.
Complete Order-to-Result Lifecycle
End-to-end ORM/ORU workflow with all states
Loading diagram...
Order Control Codes (ORC-1)
ORM order control code reference
| Code | Meaning | Use Case | Retryable |
|---|---|---|---|
| NW | New Order | Initial order placement | N/A |
| CA | Cancel Order | Cancel before fulfillment | No |
| DC | Discontinue | Stop ongoing order | No |
| SC | Status Change | Update order status | Yes |
| RO | Replace Order | Replace with new order | No |
| SN | Send Order Number | Assign filler number | Yes |
| OK | Order Accepted | ORR response code | N/A |
| ER | Error | ORR error response | N/A |
Result Status Codes (OBX-11)
ORU result status reference
| Code | Meaning | Clinical Use |
|---|---|---|
| P | Preliminary | Initial result, may change |
| F | Final | Verified, ready for clinical use |
| C | Correction | Corrected final result |
| A | Amended | Amended by provider |
| X | Cancelled | Result cancelled |
| I | Incomplete | Partial result pending more data |
Order Correlation Best Practices
- Preserve placer order number (ORC-2/OBR-2) from EHR through entire lifecycle.
- Capture filler order number (ORC-3/OBR-3) assigned by performing system.
- Use both identifiers for result correlation - never rely on one alone.
- Store order-result linkage in database for audit and reconciliation.
- Handle order cancellations (CA) by marking order as cancelled, not deleting.
- Support result corrections (C status) by versioning results, not overwriting.
Common Correlation Failure
Lost placer/filler identifiers cause orphaned results. When LIS sends ORU without matching order IDs, EHR cannot link results to orders, creating patient safety risks and manual reconciliation burden.
HL7 ORM/ORU Specification
Official HL7 v2.x order and result message definitions
HL7 ORM/ORU SpecificationFurther Reading
HL7 v2+ Chapter 3 (Trigger Events)
Official HL7 v2+ specification for trigger events
HL7 v2+ Trigger EventsHL7 v2.5.1 messaging standard
Official HL7 v2.5.1 messaging standard specification
HL7 v2.5.1 StandardAWS EventBridge healthcare patterns
AWS event-driven architecture patterns for healthcare
AWS EventBridgeKnowledge Check
Test your understanding with this quiz. You need to answer all questions correctly to mark this section as complete.