InteroperabilityHL7

What Is HL7? HL7 Standards, Messages and Meaning (2026)

March 30, 202611 min readUpdated Oct 26, 2026
Written by
Gulshan Prajapati
Gulshan Prajapati

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.

What Is HL7? HL7 Standards, Messages and Meaning (2026)

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.

StandardWhat it isFormat and transportWhere you meet it
HL7 v2Event messages: a patient was admitted, a test was ordered, a result is readyPipe-delimited text, usually over MLLP (a thin TCP framing layer), often inside a VPNEHR to lab, radiology, pharmacy, billing, public health and immunization registries
CDA and C-CDAStructured clinical documents such as a continuity of care document or discharge summaryXML documents, sent through Direct messaging, HIEs or APIsTransitions of care, patient summaries, document exchange networks
FHIRResources such as Patient, Encounter and Observation, read and written through APIsJSON 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 messagingA model-driven redesign of v2XMLRare 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 ID MSG00001 and the HL7 version 2.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^Middle order, date of birth, sex and address.
  • PV1 (patient visit): inpatient class I, the bed 3W^312^A and 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:

StepMessageWhat it says
Registration or admissionADT^A04 (register outpatient), ADT^A01 (admit inpatient)A patient has arrived; here are their demographics and visit
Details changeADT^A08Patient or visit information was updated
SchedulingSIU^S12An appointment was booked
OrdersORM^O01 or OML^O21A lab or imaging test was ordered
ResultsORU^R01Results are ready, with values, units and reference ranges
MedicationsRDE^O11A pharmacy order was encoded
DocumentsMDM^T02A clinical note or report was created
ChargesDFT^P03Charges posted to billing
ImmunizationsVXU^V04A vaccine was given; sent to the state registry
DischargeADT^A03The 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.

  1. 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.
  2. Connectivity. Usually MLLP over a site-to-site VPN, which means network change tickets on the hospital side. Schedule it early.
  3. 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.
  4. 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.
  5. Testing. Unit tests on the mapping, then end-to-end tests with the partner using their test system and agreed scenarios.
  6. 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?

HL7 (Health Level Seven) is the set of standards health systems use to exchange clinical and administrative data, published by HL7 International. Most people mean HL7 version 2, the messages hospital systems send for admissions, orders and results. The newer HL7 standard, FHIR, is used for healthcare APIs.

What does HL7 stand for?

HL7 stands for Health Level Seven. Level Seven refers to the application layer, the seventh layer of the OSI networking model, because the standards define what exchanged data means to the applications using it.

What are the HL7 standards?

The HL7 standards in common US use are HL7 v2 messaging, CDA documents (mainly C-CDA in the US) and FHIR for APIs. HL7 v3 messaging also exists but is rarely used in the US; CDA is the part of it that took hold.

Is HL7 still used in 2026?

Yes. HL7 v2 still carries most in-hospital data exchange, such as lab orders and results, admissions and billing feeds, and US certification rules still require HL7 v2.5.1 for immunization and lab reporting to public health. New API work uses FHIR, which is also an HL7 standard.

What is the difference between HL7 and FHIR?

FHIR is one of the HL7 standards. When people compare HL7 and FHIR they usually mean HL7 v2 messaging, which pushes pipe-delimited messages over MLLP inside a network, against FHIR, which exposes resources such as Patient and Observation through REST APIs over HTTPS.

Are HL7 standards free?

Yes. HL7 International announced in September 2012 that it would license its standards at no cost, and the change took effect in 2013. Membership is no longer required to read or use them.

What is an HL7 message?

An HL7 v2 message is a block of text made of segments, one per line, such as MSH (header), PID (patient) and PV1 (visit). Fields are separated by the pipe character. The receiver replies with an ACK message whose MSA segment says AA (accepted), AE (error) or AR (rejected).

What does an HL7 integration involve?

An HL7 integration needs the partner's interface specification and sample messages, network connectivity (usually MLLP over a VPN), a field-by-field mapping, an interface engine such as Mirth Connect, end-to-end testing with the partner and monitoring for rejected ACKs and silent feeds.
Share