- Mirth Connect (NextGen Connect): Integration engine for routing HL7 messages
- Python (hl7apy): Script to parse HL7 and convert to JSON
- Sample HL7 Messages: ADT^A01 (Admission) and ORU^R01 (Lab Results)
hl7-parseme/
├── mirth_channels/ # exported Mirth channels
├── python_parser/ # Python parser and sample messages
├── screenshots/ # Mirth screenshots
└── README.md
| Type | Trigger | Description |
|---|---|---|
| ADT^A01 | Admit/Visit Notification | Used for patient admissions |
| ORU^R01 | Observation Result | Sends lab or clinical results |
- Mirth Connect listens for incoming HL7 messages
- Messages are routed based on their type (ADT or ORU)
- Python script converts sample messages to JSON for readability
The included Python watcher script (hl7_watcher.py) monitors the Mirth output folders for new HL7 files and automatically converts them to JSON.
- Mirth receives HL7 ADT or ORU messages.
- The message is written to disk.
- The Python watcher detects the new file.
- It parses the HL7 and saves the JSON version to
/json_output.