HL7 v2 — ADT-A03 SAMPLE
Short synthetic HL7 v2 ADT-A03 message — fictional SAMPLE demographics for parser tests.
MSH|^~\&|ADT1|MERIDIAN|LABADT|MERIDIAN|20260115100000||ADT^A03|MSG00011|P|2.5
EVN|A03|20260115100000
PID|1||100011^^^MERIDIAN^MR||Sample^Nora^A||19900101|F
PV1|1|O|CLINIC^01||||5678^Example^Doc
Specifications
- Standard
- HL7 v2.5
- Message
- ADT-A03
- Note
- synthetic SAMPLE patient
What is a .hl7 file?
HL7 v2 is the dominant messaging standard for exchanging clinical and administrative data between healthcare systems. A message is plain text made of segments (one per line, e.g. MSH, PID, PV1), each split into fields by pipe (|) delimiters, with components separated by carets (^). It drives admissions, lab orders, and results across hospitals.
How to use this file
Use an example HL7 v2 message to test healthcare integration engines, HL7 parsers, and segment/field extraction, or to exercise mapping from HL7 to FHIR or other formats. The data here is synthetic — not a real patient.
How to use this file for testing
“HL7 v2 — ADT-A03 SAMPLE” is a deterministic Novus Examples fixture for Encoding detection, Editor testing. UTF-8, UTF-8-BOM, UTF-16, and Latin-1 files with documented encodings and line endings for testing charset detection.
Documented properties for this file: HL7 · 198 bytes. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.
Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.
Document fixtures list their internal structure (pages, fields, tracked changes, embedded objects) in the spec table. Test extractors, converters, and OCR against that known structure, and compare searchable↔scanned or format-twin companions when present.
Code examples
from hl7apy.parser import parse_message # pip install hl7apy
raw = open("adt-a03.hl7").read().replace("\n", "\r")
msg = parse_message(raw)
for seg in msg.children:
print(seg.name)Related files
- ediX12 EDI 204 — SAMPLEShort ANSI X12 204 SAMPLE transaction for EDI parser / translator tests.

- ediX12 EDI 214 — SAMPLEShort ANSI X12 214 SAMPLE transaction for EDI parser / translator tests.

- ediX12 EDI 855 — SAMPLEShort ANSI X12 855 SAMPLE transaction for EDI parser / translator tests.

- ediX12 EDI 856 — SAMPLEShort ANSI X12 856 SAMPLE transaction for EDI parser / translator tests.

- ediX12 EDI 940 — SAMPLEShort ANSI X12 940 SAMPLE transaction for EDI parser / translator tests.

- ediX12 EDI 997 — SAMPLEShort ANSI X12 997 SAMPLE transaction for EDI parser / translator tests.

Generated by generation/docs_wave_e.py. Free for any use, no attribution required — license.