Healthcare ORM HL7 Message (SAMPLE)
Sample HL7 v2 ORM order message with PID and OBR segments — fictional patient and order ids.
MSH|^~\&|SAMPLE_LIS|LAB|SAMPLE_EHR|EHR|20260101120000||ORM^O01|MSG00001|P|2.5
PID|1||PAT-SAMPLE-001^^^SAMPLE||Rivera^Jordan||19900101|M
OBR|1||ORD-SAMPLE-001|CBC^Complete Blood Count^L
Specifications
- Message
- ORM^O01
- Domain
- healthcare
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
“Healthcare ORM HL7 Message (SAMPLE)” is a deterministic Novus Examples fixture for Data import. Realistic faker-generated datasets with documented schemas for testing import and ETL flows.
Documented properties for this file: HL7 · 187 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.
Data fixtures document their exact quirks — delimiters, encodings, null handling, schema, and row counts — in the spec table. Point your parser or importer at the file and assert it handles the documented edge cases; clean and deliberately-messy siblings make before/after diffs straightforward.
Code examples
from hl7apy.parser import parse_message # pip install hl7apy
raw = open("orm-message.hl7").read().replace("\n", "\r")
msg = parse_message(raw)
for seg in msg.children:
print(seg.name)Related files
- jsonFHIR R4 Patient Bundle (JSON)A sample HL7 FHIR R4 bundle with a Patient plus vital-sign Observations, an Encounter, and a Condition — a realistic healthcare-interoperability fixture for testing FHIR parsers and mappers. Synthetic data, not a real person.

- jsonHealthcare Claim (FHIR SAMPLE JSON)Synthetic FHIR Claim resource for healthcare billing parser tests — not a real patient.

- csvHealthcare Lab Results (CSV)Synthetic lab result rows for clinical data warehouse import tests.

- csvHealthcare Patient Demographics (CSV)Synthetic patient demographics CSV for EHR import and de-identification pipeline tests.

- jsonHealthcare Prescription (JSON)Synthetic e-prescription JSON for pharmacy routing and validation tests.

- jsonHealthcare Procedure Codes (JSON)SAMPLE procedure code list with fees for medical billing calculator tests.

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