FHIR vs HL7 is one of the first questions any team building health software runs into, and the two are often conflated. This guide is for developers, architects and product owners planning a clinical app, a hospital integration or an ABDM build. Healthcare interoperability standards are often spoken about as a confusing alphabet soup. They are actually a fairly clean evolution, and here is the working developer's view of what each standard is, where it fits and how to choose.
Key takeaways on FHIR vs HL7
HL7 v2 is the legacy messaging standard. Still everywhere, especially in hospital systems.
HL7 v3 / CDA is the document-based standard. Used in some clinical document exchange.
FHIR is the modern, JSON-based, REST-oriented standard. The future, and increasingly the present.
For new builds: FHIR. For integration with existing hospital infrastructure: you will touch HL7 v2.
What each healthcare interoperability standard actually is
All three come from the same standards family, HL7 (Health Level Seven). The difference is the era each was designed in and the shape of data it moves: messages, documents or resources.
HL7 v2: pipe-delimited messages
Pipe-delimited messages, from the 1980s and 90s era. A message header looks like: MSH|^~\&|HOSP|FAC|LAB|FAC|20260518.... HL7 v2 is used for ADT (admit, discharge, transfer), lab orders, lab results and scheduling. Almost every hospital information system speaks it, which is why it remains the first thing you meet when connecting to a hospital.
HL7 v3 and CDA: XML clinical documents
Document-based, XML. Clinical Document Architecture (CDA) wraps a clinical narrative with structured metadata. It is used for discharge summaries, referrals and continuity-of-care documents. It is heavyweight to produce and to parse.
FHIR: REST resources for modern apps
Fast Healthcare Interoperability Resources. JSON (or XML), REST-style. A patient is GET /Patient/123. Resources include Patient, Observation, Encounter, Condition, MedicationRequest, DiagnosticReport and more. FHIR was designed for modern apps, so it feels familiar to any web or mobile developer who has worked with a REST API.
FHIR vs HL7 v2 vs CDA at a glance
Standard | Format | Typical use | Where you meet it |
|---|---|---|---|
HL7 v2 | Pipe-delimited messages | ADT, lab orders and results, scheduling | Almost every hospital information system |
HL7 v3 / CDA | XML documents | Discharge summaries, referrals, continuity of care | Some clinical document exchange |
FHIR | JSON (or XML) resources over REST | Modern apps, patient data, exchange networks | New builds, ABDM in India, US Core in the US |
Which standard to use when
Scenario | Standard to choose |
|---|---|
New consumer-facing health app | FHIR (R4 or R5). Done. |
Integrating with an Indian hospital information system | You will likely touch HL7 v2 for ADT and lab data, even if your own model is FHIR. Build a translation layer. |
Cross-system document exchange (referrals, discharge summaries) | FHIR Bundle or CDA, depending on the receiver. |
ABDM in India | FHIR R4 with Indian profiles (the NDHM FHIR Implementation Guide). |
If ABDM is on your roadmap, our guide to ABDM integration for developers walks through how those FHIR R4 profiles fit into the consent flow, and ABHA-based patient identity covers the identity layer that sits beside it.
Practical advice: FHIR inside, HL7 v2 at the edges
Model your internal data in FHIR. Have an adapter layer that translates to and from HL7 v2 when you talk to a legacy system. This insulates your app from legacy integrations and makes future migrations easier.
Define your core model as FHIR resources, such as
Patient,EncounterandObservation.Put every HL7 v2 feed behind an adapter that converts ADT and lab messages into those resources.
Keep vendor quirks inside the adapter, so a new hospital dialect never reaches your application code.
Common pitfalls with HL7 v2 and FHIR
What we recommend
FHIR-first for everything new. An HL7 v2 adapter where you must integrate with legacy hospital systems. Use FHIR profiles that match your locale (ABDM in India, US Core in the US, and so on). If you serve patients across borders, pair this with the privacy requirements in our guide to HIPAA-compliant telehealth platforms in India.
Model your data in FHIR, and let an adapter speak HL7 v2 to the legacy world.
FAQs
Is HL7 v3 dead?
Mostly. CDA documents still exist; v3 messaging is rare in new work.
What is SMART on FHIR?
An authorization protocol over FHIR for healthcare apps. Worth using if you serve clinicians.
Where does DICOM fit?
DICOM is a different beast: imaging. FHIR has bridges to it via the ImagingStudy resource.
What about IHE profiles?
IHE profiles define higher-level workflows on top of FHIR and HL7. They are important in some institutional contexts.
Planning a FHIR build or an HL7 v2 integration? Talk to Techpuvi about healthcare interoperability, or see how we work with care providers on our healthcare industry page.
