HL7 Message Viewer
Read HL7 version 2 messages such as ADT, ORU and ORM. Every segment is named and every field numbered the HL7 way, with components and repetitions split out, and the whole message can be saved as JSON.
or drop a file here · .hl7, .txt · up to 20 MB
About the HL7 Message Viewer
Hospitals, laboratories and clinics still exchange most admissions, orders and results as HL7 version 2 messages: lines of text full of pipes and carets. Interface analysts spend a lot of time counting pipes to find field 18 of a PV1 segment. This viewer does the counting for you.
What it shows
- A header card for each message with the type and trigger event from MSH-9, translated with the HL7 code tables (for example ADT^A01 is an ADT message, Admit/visit notification), the control ID, the version, the sending and receiving applications and facilities, and the timestamp in readable form.
- Every segment with its name, such as PID Patient Identification or OBX Observation/Result. Segments starting with Z are marked as custom.
- Inside each segment, the filled fields numbered the HL7 way (PID-3, PID-5). Repeating fields are listed one repeat per line and components are labelled .1, .2 and so on.
Escape sequences like \F\ and \T\ are decoded, and the whole message is offered as JSON for copying or download.
Worked example
Load the made-up admission and select View message. The PID segment shows PID-5 with components .1 SAMPLE, .2 ALEX and .3 J, which are the family name, given name and middle initial. PID-3 shows the record number 123456 with the assigning authority in component .4.
Formats accepted
Pipe-delimited HL7 v2 from 2.1 upwards. Segments can be separated by carriage returns, line feeds or both, several messages may follow each other, and MLLP start and end bytes are stripped automatically. HL7 v3 XML and FHIR resources are different formats and will be refused.
Limits
Structure is checked lightly: there must be an MSH segment, segment IDs must be three letters or digits, and empty MSH-9 or MSH-12 is flagged. Conformance to a message profile or to your interface specification is not tested.
Patient data
Messages are parsed in your browser and never sent anywhere, but follow your organisation’s data-protection policy. For other formats, the EDI viewer reads X12 and EDIFACT.
How to use HL7 Message Viewer
- Paste an HL7 v2 message, open a file, or load the example.
- Select View message.
- Read the header summary, open each segment to see its fields, and copy or download the JSON if you need it.
Privacy: how it works
Everything happens in your browser. Your text is not sent to any server.
Frequently asked questions
Is it safe to paste patient data?
The message is read only by your browser and is not uploaded, stored or logged. Follow your organisation’s rules on handling patient information all the same.
Which HL7 versions work?
Pipe-delimited HL7 v2 messages (2.1 to 2.9), including several messages in one file and MLLP framing characters. HL7 v3 XML and FHIR are not supported.
Does it validate the message?
Only basic structure: the MSH header, segment IDs and the message type and version fields. It does not check a message profile or which fields are required.