fhirlab
Clinical Core· 7 min read· hands-on

Practitioner — the clinician

Who did what, and who is legally responsible.

Someone did the doing

Every clinical act in FHIR traces back to a person. The physician who ordered the test. The nurse who recorded the vital. The specialist who signed off on the diagnosis. Practitioner is how FHIR represents that person — the human, not the job title.

Worth calling out up front: a Practitioner is strictly the human being. The role they play at a particular organisation — "cardiologist at Mercy Hospital," "on-call paediatrician for the North clinic" — lives in a separate resource called PractitionerRole. One doctor, one Practitioner. Three hospitals they consult at, three PractitionerRoles. We'll meet that resource later; today is about the person.

Anatomy of a Practitioner

Unusually for FHIR, no field is strictly required on a Practitioner — a server will accept an empty one. In the real world you'll almost always see:

  • name — an array of HumanName objects, exactly the shape you learned on Patient. One use: "official" entry is the norm.
  • identifier — the clinician's professional IDs: NPI in the US (http://hl7.org/fhir/sid/us-npi), medical council registration numbers elsewhere, internal hospital staff IDs. Each identifier is a system + value pair.
  • telecom, address, gender, birthDate — same primitives as Patient.
  • qualification — credentials. Each entry has a code (what the qualification is — MD, RN, PhD), an optional period (when it's valid), and an optional issuer referencing the Organization that granted it.

1 · Create a Practitioner

Press Run. The body below creates a fictional physician — Dr. Gregory House, MD — with one NPI-style identifier whose value is your learner UID (so every reader of this lesson gets a unique "NPI" and no one steps on anyone else's toes).

Notice qualification[0].code.text: "MD". A plain text on a CodeableConcept is valid FHIR when you don't have a formal coding handy — the same pattern you saw on Observation.

POST /Practitioner
Create a Practitioner. Change the name, swap the NPI for a local registration ID, add another qualification — then press Run again.
POST
https://hapi.fhir.org/baseR4
Request body
Your learner tag meta.tag: loading is added automatically so you can find this resource later.
Switch the response tab to JSONPath and try $.identifier[0].value — that's your UID sitting in a real NPI slot.

2 · Read it back

Same URL pattern as everything else: /Practitioner/{id}. The id auto-fills from the POST above.

GET /Practitioner/{id}
Fetch the Practitioner you just created.
GET
https://hapi.fhir.org/baseR4
URL still contains a placeholder ({ID}). Create a Practitioner first above, or paste an id here.

3 · Where Practitioners show up

You almost never post a Practitioner for its own sake. The value is that other resources reference it — once the person exists on the server, every clinical act they perform just points back at them. Here's what that looks like on an Observation:

{
  "resourceType": "Observation",
  "status": "final",
  "code": { "text": "Body temperature" },
  "subject":   { "reference": "Patient/123" },
  "performer": [{ "reference": "Practitioner/{id}" }],
  "valueQuantity": { "value": 38.6, "unit": "Cel" }
}

And on an Encounter — a clinic visit — the attending clinicians hang off a participant array:

{
  "resourceType": "Encounter",
  "status": "finished",
  "subject": { "reference": "Patient/123" },
  "participant": [
    { "individual": { "reference": "Practitioner/{id}" } }
  ]
}

The same Practitioner/{id} reference turns up on Condition.recorder, MedicationRequest.requester, DiagnosticReport.performer, and dozens more. One person, referenced from everywhere.

4 · Find all your Practitioners

Same _tag trick as the other lessons — your anonymous learner UID was stamped onto the Practitioner above, so you can fish it back out of the shared sandbox.

GET /Practitioner?_tag=...|{YOUR_UID}
Every Practitioner you've created in this lesson, newest first.
GET
https://hapi.fhir.org/baseR4
URL still contains a placeholder ({UID}). Waiting for your anonymous ID…

What just happened

  • You created a FHIR representation of a person — not a role, not a job — and gave them a globally-scoped identifier under the US NPI system.
  • You saw that a Practitioner on its own is almost inert. Its purpose is to be referenced — from Observations, Encounters, MedicationRequests, Conditions. Clinical acts point at the human who did them.
  • You met the Practitioner / PractitionerRole split: one is the person, the other is what they do and where. Keeping them separate is how FHIR lets the same clinician work across many organisations without duplicating the human.

That closes Chapter 2 — the clinical resources: Patient, Observation, Encounter, Practitioner. In Chapter 3 we shift from the clinical nouns to the glue that holds them together: references, Bundles, the search grammar, and the terminologies (LOINC, SNOMED, UCUM) that keep every server on Earth agreeing on what the codes mean.