Skip to content
The Path

Module 1 · The foundations·10 min

v2, v3, CDA, FHIR: who does what

Why v2 still runs everywhere, and how FHIR is settling in next to it.

In meetings you will hear “v2”, “v3”, “CDA” and “FHIR”, sometimes in the same sentence. They are four families of standards published by the same organization, HL7 International. They do not neatly replace one another: v2, CDA and FHIR run side by side in hospitals, and v3 messaging lives on in a few large national programs.

Let us start with the one you have already seen. Click MSH-12: the message states its own version.

A sleep study report. The lab sends the hospital record an AHI of 28.5/h, flagged “high”: moderate sleep apnea.

ORU^R01^ORU_R01· Observation result (unsolicited)
||||||||||
|||||||||||
|||||||
|||||||||||||||||||||||||
|||||||||||
|||||||||||
|||||||||||
|||||||||||

HL7 v2: pipe-delimited messaging

This is the first and oldest family. The first draft dates from 1987, and the family has grown version after version. You recognize it at a glance: lines starting with a three-letter code, fields separated by |.

Its principle: one event, one message. An admission, a result, a test order each trigger a message sent from one system to another. HL7 describes it as one of its most widely adopted standards, prominent in hospitals all over the world.

Version Published
2.3 1997
2.3.1 1999, still very common in Europe
2.4 2000
2.5 2003
2.5.1 2007, the reference version on this site
2.6 2007
2.7 2011
2.8 2014
2.9 2019
2.9.1 the most recent

Before 2.3 came 2.1 (1990) and 2.2. Point releases exist too (2.7.1, 2.8.1, 2.8.2). If you meet an MSH-12 value that is not in this table, it is not necessarily a mistake.

Each new version tries to stay compatible with the previous ones. The standard itself admits this is not always possible: some data types have been replaced over time. That is why MSH-12 matters.

HL7 v3: the XML rewrite

Later, HL7 launched a new generation. v3 rests on a shared data model, the RIM (Reference Information Model), and its messages are written in XML. The idea: start from a rigorous model, then derive every message from it.

On paper, it is very solid. In practice, it is heavy to implement. HL7 acknowledges it: v3 messaging was adopted by some large projects but never reached the market penetration of v2. You can set it aside for now.

CDA: the clinical document

CDA (Clinical Document Architecture) grew out of v3 and is its most widely adopted part. It does not describe an event but a document: a report, a discharge letter, a study summary.

A CDA document has a structured header (who, when, which patient, which author) and a body. The body can be very simple, like an attached PDF, or fully coded. One rule never moves: the document must remain human-readable.

FHIR: the web applied to healthcare

FHIR (Fast Healthcare Interoperability Resources) is the newest generation. It splits information into resources: Patient, Observation, Encounter. Each resource has a web address and is exchanged with everyday tools: HTTP, JSON or XML. Reading a patient is a simple GET request on Patient/abc123, where abc123 is the resource id on the server. To find her by her record number 1024, you run a search: GET Patient?identifier=<system>|1024.

Here is Marie Dubois in FHIR, stripped down to the essentials:

{
  "resourceType": "Patient",
  "name": [{ "family": "Dubois", "given": ["Marie"] }],
  "gender": "female",
  "birthDate": "1985-03-12"
}

The same content as her PID segment, in different packaging. The first drafts date from 2012. R4, published in 2019, is the first release with normative, meaning stable, content. R5 followed in 2023, and R6 is in preparation.

Who does what: the table

Family Format For what Where you meet it
v2 text, | bars event messages at the heart of the hospital, between systems
v3 XML messages derived from the RIM a few large health record projects
CDA XML clinical documents reports, exchanges between organizations
FHIR JSON, XML, HTTP resources and APIs mobile apps, record sharing, new projects

Why v2 still runs everywhere

Because it works. A hospital runs dozens of v2 interfaces that have been doing their job for years. Rewriting them in FHIR is expensive and brings nothing as long as they work. HL7 has stated that it keeps supporting and extending v2 in parallel with its other families.

So FHIR settles in next to v2, where it adds the most: mobile apps, patient access to their own data, exchanges with the outside world. HL7 even publishes an official guide for mapping v2 to FHIR, field by field.

Check your understanding

1 of 5

You open a file and see lines starting with MSH, PID, OBX, with vertical bars everywhere. Which HL7 family is it?

+50 XPPass the quiz (4 correct answers) to complete the lesson.

Reviewed and checked on 27 September 2026