Skip to content
Novus Examples
hl7222 B

HL7 v2 — ORM-O01 SAMPLE

Short synthetic HL7 v2 ORM-O01 message — fictional SAMPLE demographics for parser tests.

Preview — first 5 lineshl7
MSH|^~\&|ORDER|MERIDIAN|LAB|MERIDIAN|20260115101500||ORM^O01|MSG00012|P|2.5
PID|1||100012^^^MERIDIAN^MR||Sample^Owen^B||19880202|M
ORC|NW|ORD-SAMPLE-42||||||20260115101500
OBR|1|ORD-SAMPLE-42||CBC^Complete Blood Count

Specifications

Standard
HL7 v2.5
Message
ORM-O01
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 — ORM-O01 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 · 222 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("orm-o01.hl7").read().replace("\n", "\r")
msg = parse_message(raw)
for seg in msg.children:
    print(seg.name)

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