Last updated: November 27, 2026
HL7 is the standards organization behind the main health data formats. HL7 version 2 is an older messaging standard that still carries most real-time hospital data, CDA is a document standard used for clinical summaries, and FHIR is the modern, API-based standard that newer apps and US regulations rely on.
Most health tech teams need to work with more than one of them. FHIR makes it easier to read and write data through web APIs, but many hospital workflows such as admissions, orders and results still run on HL7 v2 messages. This guide is part of our Packaging Design hub.
This guide explains each standard in plain language, what US rules require, how SMART on FHIR and bulk data work, and how to plan integrations without surprises.
Health Level Seven International, usually called HL7, is a standards development organization founded in 1987. It publishes standards for exchanging clinical and administrative health data, including HL7 v2, CDA and FHIR.
When people say HL7 in an integration conversation, they usually mean HL7 v2 messages. When they say FHIR, they mean the newer HL7 standard for APIs.
HL7 v2 messages are pipe-delimited text messages sent between hospital systems, often through interface engines. Common message types include ADT for admissions, discharges and transfers, ORM and OML for orders, ORU for results, SIU for scheduling and DFT for financial transactions.
HL7 v2 is flexible, which means every hospital implements it a little differently. Integration teams spend much of their time mapping local variations, which is why interface engines and experienced analysts remain valuable.
Clinical Document Architecture defines structured clinical documents, such as continuity of care documents and discharge summaries. Consolidated CDA templates became widely used through US certification programs.
Many health information exchanges and record-sharing networks still exchange CDA documents, so apps that retrieve patient histories often need to parse them.
FHIR defines health data as resources, such as Patient, Encounter, Observation, Condition, MedicationRequest and AllergyIntolerance, exchanged through RESTful web APIs using JSON or XML. Developers can read, search, create and update resources with familiar web tools.
FHIR Release 4 became the widely adopted version, with normative content that is stable. Release 5 was published in 2023, and work on Release 6 continues, but most US regulations reference R4-based implementation guides.
Base FHIR is broad, so implementation guides constrain it for specific uses. In the United States, US Core defines how core resources should look, based on the United States Core Data for Interoperability.
Other guides cover payer data exchange, prior authorization, quality measures and more. Validating your resources against the right guides is essential for real interoperability.
The 21st Century Cures Act and federal health IT certification rules require certified EHRs to support standardized FHIR APIs for patient and population access, and they prohibit information blocking.
CMS interoperability rules require many payers to offer FHIR APIs for patient access, provider access, payer-to-payer exchange and prior authorization, with major deadlines starting in January 2027. These rules made FHIR an obligation rather than an option.
SMART on FHIR is a framework built on OAuth 2.0 and OpenID Connect that lets apps launch from within an EHR or standalone and request access to FHIR data with defined scopes.
It is the foundation of most EHR app marketplaces and patient access apps. Building with SMART makes it easier to reach several EHRs, though each vendor still has its own registration and review processes.
The Bulk Data Access specification, often called Flat FHIR, lets authorized clients export data for large populations in newline-delimited JSON files.
It supports analytics, quality measurement, value-based care and payer data exchange. Certified EHRs must support bulk export for population services.
The Trusted Exchange Framework and Common Agreement established designated Qualified Health Information Networks that exchange data nationally under common rules. Existing networks such as Carequality and CommonWell also connect many providers.
These networks have historically exchanged CDA documents, with FHIR-based exchange expanding. Apps that need patient histories often access them through network vendors.
HL7 v2 is event-driven and pushes messages when something happens, such as an admission. FHIR is request-driven, where apps query for data, though FHIR subscriptions add event notifications.
In practice, real-time hospital workflows often still depend on HL7 v2 feeds, while apps querying patient data use FHIR. Many integration platforms translate between them.
Write down exactly which data you need, when, in which direction and for which users.
Confirm available FHIR resources, write capabilities and HL7 v2 feeds for each target EHR.
Decide between direct EHR APIs, integration platforms, network vendors or interface engines.
Allow time for vendor programs, customer sponsors and security reviews.
Use sandboxes and test patients that reflect real variation.
Standards define structure, but meaning comes from code systems. SNOMED CT for clinical concepts, LOINC for lab tests and observations, RxNorm for medications and ICD-10 for diagnoses are the most common.
Mapping local codes to these standards is a major part of any interoperability project.
Reading data through FHIR is widely supported. Writing data, such as notes, observations or orders, is more limited and often requires additional approvals and clinical validation.
Clarify early whether your product needs write-back and which EHRs support it for your use case.
FHIR APIs expose sensitive data, so authentication, authorization scopes, audit logging and consent handling are critical. Apps accessing data on behalf of patients may fall outside HIPAA, which brings FTC and state privacy rules into play.
Follow security best practices and be transparent with users about how their data is used.
Teams often assume FHIR works the same in every EHR, underestimate approval timelines, ignore HL7 v2 feeds they actually need, or skip validation against implementation guides.
Another common mistake is building custom integrations for every customer instead of using platforms that reuse connections.
In HL7 v2, a lab result usually arrives as an ORU message with segments such as PID for the patient, OBR for the order and OBX for each result value, separated by pipes and carets. The receiving system must parse the segments and map local codes to its own.
In FHIR, the same result is typically an Observation resource linked to a Patient and often to a DiagnosticReport, with a LOINC code, value, units, reference range and status in structured JSON. An app can request it with a simple search such as all laboratory observations for a patient within a date range.
Because FHIR started as a request-driven standard, real-time notifications came later. FHIR subscriptions let a client register interest in events, such as a new encounter or result, and receive notifications when they occur.
Support for subscriptions varies across EHRs and versions, so many teams still rely on HL7 v2 feeds or vendor-specific event services for real-time workflows. Check each target system before designing an event-driven product.
CMS rules require impacted payers to offer FHIR-based APIs, including a prior authorization API that lets providers find documentation requirements and submit requests electronically, alongside patient access, provider access and payer-to-payer APIs.
Implementation guides from the Da Vinci project define how these APIs work. Health tech companies working with payers or providers on utilization management should follow these guides closely, because adoption is expanding through 2027.
Federal information blocking rules prohibit practices that unreasonably interfere with access, exchange or use of electronic health information by certain actors, including health IT developers, health information networks and providers, subject to defined exceptions.
These rules give app developers and patients stronger grounds to request data access, and they require health tech vendors to avoid practices that restrict data sharing without a valid exception.
The United States Core Data for Interoperability defines a standardized set of data classes and elements, such as allergies, medications, problems, lab results and clinical notes, that certified systems must support for exchange.
USCDI expands through versions over time, and US Core profiles track it. Knowing which USCDI version your partners support tells you which data you can reliably expect.
Successful integration teams combine engineers comfortable with APIs, analysts who understand HL7 v2 and clinical workflows, and someone who can manage vendor relationships and approvals.
Smaller companies often start with an integration platform and one experienced integration lead, then add specialists as customer numbers grow.
Testing tools such as FHIR validators and the Inferno testing suite used in federal certification help teams confirm that servers and apps conform to required specifications. Running these tests early catches problems before partners or certification bodies do.
For HL7 v2, testing usually involves sample messages from each partner, message validation in the interface engine and end-to-end tests in a partner test environment. Keep a library of representative messages from real-world variations.
Standards evolve. New FHIR versions, updated implementation guides and new USCDI versions change requirements over time, and EHR vendors upgrade on their own schedules.
Plan for maintenance by tracking the versions each partner supports, isolating mapping logic so it can be updated without rewriting the product, and budgeting engineering time each year for standards updates.
Open-source libraries such as HAPI FHIR and the Firely SDK, FHIR servers, interface engines and integration platforms all reduce effort.
See our lists of FHIR and interoperability companies and EHR integration companies for partners.
We reviewed HL7 specifications and implementation guides, ONC and CMS interoperability rules, TEFCA documentation, EHR vendor developer resources and guidance from integration vendors. Read more in our research methodology. Read more about how we research and rank.
Explore more interoperability resources in our Digital Health hub.
HL7 is the organization and family of standards. HL7 v2 is an older messaging standard, while FHIR is a modern API-based standard from HL7.
Gradually in some areas, but HL7 v2 remains widely used for real-time hospital messaging and will coexist with FHIR for years.
Most US implementations use FHIR R4 with US Core and related implementation guides.
US Core is an implementation guide that defines how core FHIR resources should be used in the United States.
It is a framework for authorizing and launching apps that access FHIR data, used widely in EHR app ecosystems.
Certified EHRs must support standardized FHIR APIs, though the depth of support and write capabilities vary.
It is a specification for exporting data for many patients at once, used for analytics and population health.
TEFCA is a national framework for exchanging health information among designated networks under common rules.
If you exchange many HL7 v2 messages with hospitals, an interface engine or integration platform is usually worth it.
Simple read-only integrations can take weeks, while multi-EHR or write-back projects can take months.
The United States Core Data for Interoperability is a standardized set of health data classes and elements that certified systems must support for exchange.
FHIR is the future of health data exchange and the basis of current US regulations, but HL7 v2 and CDA still carry much of today’s data. Health tech teams that understand all three, plan integrations carefully and use the right partners move faster and avoid costly surprises.
Start with a clear use case, confirm what each target EHR supports and budget for approvals, mapping and testing.