All sample data is synthetic — no real patient information — and every message is structurally valid HL7 v2.5.1. Copied and downloaded messages use the carriage-return segment terminator expected by interface engines and HL7 parsers.
What is an HL7 v2 message?
An HL7 v2 message is a structured, pipe-delimited text record that healthcare systems exchange to share clinical and administrative data. Each message is a sequence of segments — lines such as MSH, PID, and OBX — that carry fields like patient identity, orders, and results between EHRs, labs, and interface engines.
What is an ADT message?
ADT (Admit, Discharge, Transfer) messages are HL7 v2 messages that communicate patient administration events. A trigger code identifies the event — A01 for an admission, A03 for a discharge, A08 for a demographic update — keeping registration, billing, and downstream clinical systems synchronized as patient status changes.
What is an ORU^R01 message?
ORU^R01 is the HL7 v2 message that delivers unsolicited observation results — laboratory values, radiology reports, microbiology cultures, and vital signs. It carries OBR segments for the order and OBX segments for each result, returning finalized findings from a lab or device to the ordering EHR or clinician.
What is the format of an HL7 v2 message?
An HL7 v2 message is plain text organized into segments — one per line, each ending with a carriage return. Every segment starts with a three-letter identifier and splits into fields separated by the pipe character; fields divide further into components separated by the caret. The MSH segment declares these delimiters.
What segments are in an HL7 message?
Every HL7 v2 message begins with an MSH (message header) segment. Other common segments include PID for patient identity, PV1 for the patient visit, EVN for the trigger event, OBR and OBX for orders and observation results, ORC for order control, and SCH for scheduling activity.