HL7 v2 Message Viewer
Paste HL7 version 2 messages or open an .hl7 file to see segments, fields, repetitions and components with their names, check the message structure, replace identifying details before sharing and save JSON or CSV.
Funziona nel tuo browser. I tuoi file non lasciano mai il dispositivo. Scopri come verificarlo
…
Come si usa
- 1Load
Open a file or paste messages.
- 2Check
Read the structure issues.
- 3Explore
Expand the tree or filter fields.
- 4Protect
Tick De-identify before sharing.
- 5Export
Save JSON, CSV or .hl7.
Informazioni su questo strumento
The HL7 v2 Message Viewer splits HL7 version 2 messages into their parts and labels each one, which is the first job when an interface between two health systems sends something unexpected. HL7 v2 messages are plain text: each line is a segment such as MSH, PID or OBX, fields are separated by a vertical bar, and components, repetitions and subcomponents use the characters declared in MSH-2. You can open a .hl7, .txt, .msg or .er7 file or paste one or more messages into the box. The tool removes MLLP framing characters and batch header lines, accepts any mix of line endings and starts a new message at every MSH segment. Escape sequences such as \T\ for an ampersand and \.br\ for a line break are decoded so that values read as intended. The Structure tab shows a tree for each message, labelled with the message type and its event name, such as ADT^A01 Admit / visit notification, and the control ID. Under it, every segment has its description, repeated segments are numbered, each field carries its number and name, such as PID-5 Patient Name, and fields with components or repetitions open further to show them. The Fields table lists the message, segment, field, name and value of every filled field, and ticking Show empty fields includes the blank ones. The Messages table gives the type, event, control ID, version, sending and receiving application and the segment list of each message. The text tab shows the messages again, one segment per line, and the summary counts messages, types, versions, segments and structure issues. All of this runs in your browser and nothing is sent to a server.
Who this is for
Interface analysts and integration engineers testing feeds between an EHR, a lab system and other applications, health IT support staff reading a message from an error queue, students learning the HL7 v2 layout and vendors preparing test messages.
How to use it
1. Open an HL7 file, or paste messages into the box when no file is open. 2. Read the summary and any structure issues listed under it. 3. Expand the tree or filter the Fields table. 4. Tick De-identify if the messages will be shared. 5. Download JSON, the fields CSV or the de-identified .hl7 file.
What the sample shows
The sample file holds 2 messages in version 2.5.1 with 13 segments and no structure issues. The first is ADT^A01 with control ID MSG00001, sent by EXAMPLE_EHR at NORTH_CLINIC to LAB_SYS at CITY_LAB, with the segments MSH, EVN, PID, NK1, PV1 and AL1. The second is ORU^R01 with control ID LAB7781, from LAB_SYS back to EXAMPLE_EHR, with MSH, PID, OBR, three OBX segments and NTE. PID-5 Patient Name is SAMPLE^JORDAN^A, and NTE-3 Comment reads Fasting sample & repeat in 3 months after the \T\ escape is decoded. With De-identify ticked, PID-3 becomes ID0001^^^NORTH_CLINIC^MR, the name becomes SURNAME0001^TEST, the date of birth is cut to 1985, the address keeps only LEEDS, LS1 and GB, the phone becomes 5550000000 and the visit number becomes ID0003.
The structure checks
Each message must start with MSH, and MSH-9 message type, MSH-10 control ID, MSH-11 processing ID and MSH-12 version must be filled. Common message types are checked for their usual segments, for example EVN, PID and PV1 in ADT and PID, OBR and OBX in ORU. Dates in MSH-7, PID-7, PV1-44, OBR-7 and OBX-14 must follow the HL7 pattern YYYYMMDD with optional time, PID-3 and PID-5 must not be empty, and an OBX with value type NM must hold a number. A segment name must be a capital letter followed by two capital letters or digits.
What de-identification changes
Names, identifiers, dates of birth, addresses and phone numbers are replaced in PID, NK1, GT1, IN1 and MRG, and visit numbers in PV1-19 and PV1-50. Social security, driver's licence and birth place fields are emptied. Names become numbered SURNAME pseudonyms and identifiers become numbered ID values that keep their assigning authority, while the MSH segment is left as it was.
Limits
Field names are listed for common segments in HL7 2.3 to 2.8, and other fields, including custom Z segments, show by number only. The checks look at structure and are not a conformance profile test. De-identification does not scan free text such as NTE comments or OBX text values, and it leaves provider names such as PV1-7 attending doctor and message timestamps as they are. Pseudonyms are shared across all messages in one run, so the same full name always gets the same number and different people get different ones. This is a structure tool and not medical advice; check de-identified output against your organisation's privacy rules before sharing it.
Esempio svolto
Sample: 2 messages (ADT^A01 and ORU^R01, v2.5.1), 13 segments, 0 issues; de-identified PID-3 becomes ID0001 and the birth date 1985.
In breve
- Categoria: Documenti
- Funziona nel browser, senza registrazione né caricamento.
- Le informazioni che inserisci restano sul tuo dispositivo.
- Disponibile in inglese.
- Contenuto rivisto l'ultima volta il:
- Fonte ufficiale: HL7 Version 2.x messaging standard (segments, fields, encoding characters)
Domande frequenti
Which HL7 v2 message types can I open?
Any message that starts with MSH, including ADT, ORU, ORM, SIU, VXU, MDM and ACK. Event names are shown for common types and every segment is parsed.
Can I paste several messages at once?
Yes. Each MSH segment starts a new message, and MLLP framing characters and batch header or trailer lines are removed first.
What does the de-identify option remove?
It replaces names, IDs, birth dates, addresses and phone numbers in PID, NK1, GT1, IN1 and MRG, and visit numbers in PV1. Free-text notes are not changed.
Why does my message show a date warning?
HL7 dates are written as YYYYMMDD with an optional time, such as 20261105093000. Values written with dashes or slashes are reported.
Does it validate against a conformance profile?
No. It checks required MSH fields, expected segments, dates and numeric results, which catches many common errors, but it does not apply a site profile.
Are the messages sent anywhere?
No. Parsing, checks and de-identification all run in this browser tab, and the downloads are created on your device.
