Skip to content
The Path

Module 6 · FHIR·12 min

The essential resources

Patient, Encounter, Observation, DiagnosticReport, ServiceRequest.

One night at the sleep lab produces a dozen pieces of information: who the patient is, when she came in, who ordered the test, what was measured, what was concluded. In v2, all of it travels in one message. In FHIR, each piece gets its own resource.

Here is Marie Dubois’s report in v2. Each segment hints at a FHIR resource. Click PV1, then OBR, and keep their roles in mind.

The sleep lab sends the result of Marie Dubois’s polysomnography to the hospital record.

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

Seven resources to know

FHIR defines well over a hundred resource types. For test results, seven cover the essentials.

Resource Its role, in one line v2 echo
Patient The person receiving care: identifiers, name, birth, sex, address PID
Encounter The visit: consultation, admission, a night at the lab PV1
ServiceRequest The order: “run this test” ORC, OBR in an ORM
Observation One measurement or finding, with its value OBX
DiagnosticReport The report that groups the results of one test OBR in an ORU
Practitioner A clinician: doctor, technologist XCN fields such as PV1-7 or OBR-16
Organization A facility, a department, a lab XON fields, no dedicated segment

Notice the difference with v2: Practitioner and Organization have no segment of their own. In v2, the doctor is just a value in a field, repeated wherever it is needed. In FHIR, the doctor exists once, and other resources point to them.

Patient: the starting point

Almost everything in FHIR refers to a Patient. Here is Marie:

{
  "resourceType": "Patient",
  "id": "1024",
  "identifier": [
    { "system": "https://fhir.clinique-leleux.example/sid/dossier", "value": "1024" }
  ],
  "name": [{ "family": "Dubois", "given": ["Marie"] }],
  "gender": "female",
  "birthDate": "1985-03-12"
}

You can spot PID-3 in identifier, PID-5 in name, PID-7 in birthDate and PID-8 in gender. The date is no longer 19850312 but 1985-03-12: FHIR uses the ISO format.

Encounter: the visit

Encounter states the setting in which care happened. For Marie, an overnight stay at the sleep lab. In v2, that is the job of PV1: the patient class (PV1-2, here I, inpatient), the location (PV1-3, room 201), the attending doctor in charge of the stay (PV1-7) and the visit number (PV1-19).

ServiceRequest, DiagnosticReport, Observation: the test trio

These three resources tell the story of a test from start to finish.

  1. ServiceRequest: the doctor orders a polysomnography. It is the counterpart of the ORM, with ORC and OBR.
  2. Observation: during the night, things get measured. Each value becomes an Observation: the AHI, the saturation, the conclusion.
  3. DiagnosticReport: the final report gathers the Observations and carries the status of the test.

The report does not copy the values: it points to them.

{
  "resourceType": "DiagnosticReport",
  "id": "psg-2026-0042",
  "status": "final",
  "code": {
    "coding": [{ "system": "http://loinc.org", "code": "90568-7", "display": "Polysomnography panel" }]
  },
  "subject": { "reference": "Patient/1024" },
  "basedOn": [{ "reference": "ServiceRequest/placer-7781" }],
  "result": [{ "reference": "Observation/iah-0042" }]
}

Read it as a sentence: “this final polysomnography report, for patient 1024, answers order 7781, and its result is Observation iah-0042”.

Practitioner and Organization: the actors

Practitioner describes a person who provides care: Dr Thomas Martin, with his number. Organization describes a structure: the Leleux Clinic, or its sleep lab. They are rarely the heart of an exchange, but they show up everywhere as references: who ordered, who interpreted, who performed.

Maturity, briefly

Each resource carries a maturity level. It goes from 0 (draft) to 5 (widely tested), then N, for normative. Normative means HL7 will not break compatibility any more.

In R4, Patient and Observation are normative. DiagnosticReport, Practitioner and Organization are at level 3. Encounter and ServiceRequest at level 2. That does not mean you should avoid them. It means their structure can still change from one version to the next. In R5, most of them did move up in maturity.

Check your understanding

1 of 4

Which FHIR resource takes over the role of the PID segment?

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

Reviewed and checked on 27 September 2026