What Is HL7? HL7 Standards, Messages and Meaning (2026)
Software Development Expert
Writes about software development, scalable architecture, and practical problem-solving across modern digital products. Focuses on turning complex technical ideas into clear, real-world solutions.

Updated October 2026
HL7 (Health Level Seven) is the family of standards hospitals and health software use to exchange clinical and administrative data, published by HL7 International, a non-profit standards body founded in 1987. In practice "HL7" usually means HL7 version 2, the pipe-delimited messages that carry admissions, orders and lab results between hospital systems, while FHIR is the newer HL7 standard behind modern healthcare APIs.
This guide is for product, IT and integration leaders who need to know what HL7 actually is before they scope an interface or pick a partner. It covers what the name means, which HL7 standards are in use in the US today, what a real message looks like, where US rules require HL7, and what it takes to connect to it. If you already know you need an interface built, our HL7 integration services team builds, tests and runs them.
What HL7 means: the name and the organization
HL7 stands for Health Level Seven. "Level Seven" points to the seventh layer of the OSI networking model, the application layer, because the standards define what the data means to the applications exchanging it, not how bits move across the wire.
The name covers two things people often mix up:
- The organization. HL7 International is an ANSI-accredited, not-for-profit standards developing organization. It was founded in 1987 and has affiliates in dozens of countries.
- The standards. HL7 International publishes several standards. The three that matter in US projects today are HL7 v2 messaging, CDA documents (mainly C-CDA in the US) and FHIR.
HL7 standards are free to use. HL7 International announced in September 2012 that it would license its standards at no cost, and the change took effect in 2013. Before that, access was tied to paid membership.
The HL7 standards in use today
Three HL7 standards run most US healthcare data exchange, and most organizations use all three at once: v2 inside the hospital, C-CDA for clinical documents, and FHIR for APIs.
| Standard | What it is | Format and transport | Where you meet it |
|---|---|---|---|
| HL7 v2 | Event messages: a patient was admitted, a test was ordered, a result is ready | Pipe-delimited text, usually over MLLP (a thin TCP framing layer), often inside a VPN | EHR to lab, radiology, pharmacy, billing, public health and immunization registries |
| CDA and C-CDA | Structured clinical documents such as a continuity of care document or discharge summary | XML documents, sent through Direct messaging, HIEs or APIs | Transitions of care, patient summaries, document exchange networks |
| FHIR | Resources such as Patient, Encounter and Observation, read and written through APIs | JSON or XML over REST, secured with OAuth 2.0 (SMART on FHIR) | Patient access apps, EHR app integrations, payer APIs under CMS-0057-F |
| HL7 v3 messaging | A model-driven redesign of v2 | XML | Rare in the US; CDA is the part of v3 that took hold |
HL7 International itself estimates that over 95% of US healthcare organizations use HL7 v2, as cited in the National Library of Medicine's health data standards tutorial. Treat it as HL7's own figure rather than a survey result, but it matches what we see: almost every hospital interface we touch still has v2 somewhere in the path.
FHIR is where new work goes. FHIR R4, published in 2019, was the first release with normative (stable) content, and it is the version US rules point to today. R5 followed in 2023 as a trial-use release. For a side-by-side of the two, see our guide to the difference between HL7 and FHIR.
What an HL7 v2 message looks like
An HL7 v2 message is plain text made of segments, one per line, and each segment is a list of fields separated by the pipe character. The three-letter code at the start of a line names the segment.
Here is an admission (ADT^A01) message as a registration system would send it to an EHR. The patient and clinic are made up.
MSH|^~\&|REG_SYS|NORTH_CLINIC|EHR|NORTH_CLINIC|20261026093000||ADT^A01^ADT_A01|MSG00001|P|2.5.1
EVN|A01|20261026093000
PID|1||MRN100245^^^NORTH_CLINIC^MR||Rivera^Ana^M||19850412|F|||12 Main St^^Springfield^IL^62701^USA
PV1|1|I|3W^312^A^NORTH_CLINIC||||1234^Shah^Priya^^^^Dr|||MED Reading it line by line:
- MSH (message header): who sent it, who should receive it, when, the message type
ADT^A01, a control IDMSG00001and the HL7 version2.5.1. The characters^~\&declare the separators used inside fields. - EVN (event): the trigger event and when it happened.
- PID (patient identification): medical record number, name in
Family^Given^Middleorder, date of birth, sex and address. - PV1 (patient visit): inpatient class
I, the bed3W^312^Aand the attending doctor.
The receiving system answers with an acknowledgement (ACK). MSA|AA means accepted; AE means an application error and AR means rejected. The control ID in MSA ties the answer to the original message.
MSH|^~\&|EHR|NORTH_CLINIC|REG_SYS|NORTH_CLINIC|20261026093001||ACK^A01^ACK|ACK00001|P|2.5.1
MSA|AA|MSG00001 Watch: An HL7 message, decoded line by line (1:11).
How HL7 messages move through a hospital visit
Each step in a patient's visit fires a specific HL7 v2 message, and the type code tells every receiving system what happened. These are the ones you will see most often in a US interface list:
| Step | Message | What it says |
|---|---|---|
| Registration or admission | ADT^A04 (register outpatient), ADT^A01 (admit inpatient) | A patient has arrived; here are their demographics and visit |
| Details change | ADT^A08 | Patient or visit information was updated |
| Scheduling | SIU^S12 | An appointment was booked |
| Orders | ORM^O01 or OML^O21 | A lab or imaging test was ordered |
| Results | ORU^R01 | Results are ready, with values, units and reference ranges |
| Medications | RDE^O11 | A pharmacy order was encoded |
| Documents | MDM^T02 | A clinical note or report was created |
| Charges | DFT^P03 | Charges posted to billing |
| Immunizations | VXU^V04 | A vaccine was given; sent to the state registry |
| Discharge | ADT^A03 | The patient left; close the visit |
The lab leg of that flow has its own traps, from order codes to result units, which we cover in our guide to lab and LIS integration with HL7. Admission events feed bed boards and census dashboards, covered in ADT event processing.
Where US rules require HL7 standards
Certified US health IT has to support specific HL7 standards. The ONC Health IT Certification Program lists the exact implementation guides for each criterion in its certification program standards hub:
- Immunization reporting (45 CFR 170.315(f)(1)): HL7 v2.5.1 immunization messaging to state registries.
- Electronic lab reporting to public health (170.315(f)(3)): the HL7 v2.5.1 ELR implementation guide.
- Transitions of care (170.315(b)(1)): C-CDA documents, an HL7 CDA implementation guide.
- Patient and population APIs (170.315(g)(10)): FHIR R4 with the US Core profiles and SMART on FHIR authorization.
On the payer side, CMS-0057-F requires impacted payers to run FHIR APIs for patient access, provider access, payer-to-payer exchange and prior authorization, with the main API dates in January 2027. Versions and dates in these rules change through rulemaking, so check the hub and the rule text before you design against them.
What it takes to connect to an HL7 interface
Each live HL7 connection needs the same six pieces, and the delays usually come from the ones that are not code.
- A spec from the other side. Every hospital and vendor customizes v2. Ask for their interface specification and real (de-identified) sample messages before you estimate.
- Connectivity. Usually MLLP over a site-to-site VPN, which means network change tickets on the hospital side. Schedule it early.
- Mapping. A field-by-field mapping from their messages to your data model, including code sets such as LOINC for labs. Write it down; it becomes the contract.
- An interface engine. Most teams route messages through an engine such as Mirth Connect rather than hand-rolling sockets, so they get queues, retries, transformations and message history.
- Testing. Unit tests on the mapping, then end-to-end tests with the partner using their test system and agreed scenarios.
- Monitoring. Alerts on rejected ACKs, queue depth and silence (no messages when there should be some). Feeds that stop without raising an error are a frequent production problem.
For the full build, from the message types to go-live, read our HL7 integration implementation playbook or our explainer on what an HL7 interface is.
Mistakes we see on HL7 projects
These come up again and again on the interfaces we build and support:
- Trusting the standard over the sample. Two hospitals on the same EHR can send different fields. Z-segments (site-specific custom segments) are common. Build from their messages, not from the spec alone.
- Ignoring the ACK. Treating "sent" as "delivered" hides rejected messages. Store every ACK and alert on AE and AR.
- Separator and escape bugs. A patient name or note containing
&or^breaks a naive parser. Use a real HL7 library or engine. - Time zones. v2 timestamps often carry no offset. Agree on the zone in the mapping spec, or results land in the wrong day.
- Duplicate and out-of-order messages. Retries resend messages and A08 updates can arrive before the A01. Use the control ID and event time to keep the latest state.
If you are moving older interfaces toward APIs, our HL7 v2 to FHIR migration guide covers how to run both side by side without a big-bang cutover.
Planning an HL7 integration?
We build and run HL7 v2, C-CDA and FHIR interfaces for US health tech products and provider IT teams, using Mirth Connect or your own engine, with the mapping spec, tests and monitoring handed over to you. See our HL7 integration services and broader healthcare interoperability work, or talk to our integration team with the interface spec you have been sent.
Ready to scale?
Talk to our healthcare engineering team about building, integrating, and shipping faster.
Frequently Asked Questions
What is HL7 in healthcare?
What does HL7 stand for?
What are the HL7 standards?
Is HL7 still used in 2026?
What is the difference between HL7 and FHIR?
Are HL7 standards free?
What is an HL7 message?
What does an HL7 integration involve?


