Skip to content
The Path

Module 6 · FHIR·10 min

Why FHIR

The web applied to healthcare, and why it does not bury v2.

Marie Dubois opens the Leleux Clinic app on her phone. She wants to see the result of her night at the sleep lab. The app does not receive an ORU message: it asks a server for the data, and the server answers in JSON. That is FHIR.

The same result, in v2, looks like this:

The sleep lab pushes Marie Dubois’s AHI to the hospital record.

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

And here is the same value in FHIR, as an app receives it:

{
  "resourceType": "Observation",
  "id": "iah-0042",
  "status": "final",
  "code": {
    "coding": [
      { "system": "https://fhir.clinique-leleux.example/CodeSystem/labo-sommeil", "code": "AHI" },
      { "system": "http://loinc.org", "code": "69990-0" }
    ]
  },
  "subject": { "reference": "Patient/1024" },
  "valueQuantity": { "value": 28.5, "unit": "/h", "system": "http://unitsofmeasure.org", "code": "/h" }
}

Same medical content. Different packaging.

The name says it all: resources

FHIR stands for Fast Healthcare Interoperability Resources. The word that matters is resources. Instead of one long message made of segments, FHIR cuts healthcare into small, self-contained objects: Patient, Observation, Encounter, DiagnosticReport.

Each resource has a type, an id and a web address. Marie’s AHI lives at Observation/iah-0042. Marie herself lives at Patient/1024. One resource points to another through a reference, much like a hyperlink.

From pushed messages to data on request

In v2, a system pushes a message whenever an event happens. The receiver gets it whether it needs it right now or not.

FHIR adds another way of working: a REST API, the same mechanics as any web service. An app asks for what it needs, when it needs it:

Action Request
Read a patient GET [base]/Patient/1024
Create a result POST [base]/Observation
Replace a resource PUT [base]/Observation/iah-0042

[base] is the address of the FHIR server. We cover the API in detail in the REST API lesson.

FHIR is not limited to REST: it can also carry messages and documents. But the web API is what made it take off.

JSON or XML, your pick

A FHIR resource is written in JSON or XML. Both say exactly the same thing. JSON dominates in web and mobile apps, because every programming language reads it effortlessly. The official MIME type is application/fhir+json.

For a developer, this is a quiet revolution: you no longer need a specialised HL7 parser to read a lab result.

Versions: R4, R5, and R6 on its way

Version Status
R4 (4.0.1) First version with normative, meaning stable, content. The base of most national guides.
R4B (4.3.0) 2022: an R4 update for a handful of resources. Rare in practice.
R5 (5.0.0) Published in March 2023.
R6 In ballot at HL7 at the time of writing (September 2026). Check its status at hl7.org/fhir/directory.html.

In practice, you will mostly meet R4. The Belgian federal profiles from the eHealth platform are built on R4, as is US Core in the United States, and so is the official guide that maps v2 to FHIR.

Why FHIR does not bury v2

You often hear that FHIR will replace v2. On the ground, that is not what happens.

  • A hospital runs dozens, sometimes hundreds, of v2 interfaces. They work. Rewriting them costs a lot and brings nothing to the patient.
  • v2 is fast and proven at what it does: pushing events from one system to another, inside the hospital.
  • FHIR shines where v2 was never comfortable: mobile apps, patient portals, exchanges between organisations, on-demand access.

The two live side by side. Most often, the interface engine receives v2 and exposes part of the data as FHIR. The valuable skill is moving between the two.

HL7 v2 FHIR
Unit Message made of segments Self-contained resource
Format Text delimited by | and ^ JSON or XML
Typical exchange Message pushed on each event Web request on demand (plus messages, documents)
Home turf Internal hospital interfaces Apps, portals, external exchanges

What you already know still counts

Everything you learned about v2 still holds. PID becomes Patient. OBX becomes Observation. PV1 becomes Encounter. The codes in OBX-3, local or LOINC, land unchanged in Observation.code. You are not learning a new kind of medicine: you are learning a new way to file it.

Check your understanding

1 of 4

What does the R in FHIR stand for?

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

Reviewed and checked on 27 September 2026