HealthAtoms
Handout · Cheat sheet
PDF

FHIR R4 — REST & Conformance

Interactions, Bundle types, status codes & a conformance checklist

Objective: Interact with a FHIR R4 server and recognise a conformant resource at a glance.

REST interactions

InteractionHTTPURLReturns
readGET/[Type]/[id]the resource (+ ETag)
searchGET/[Type]?param=valuesearchset Bundle
createPOST/[Type]201 Created + Location
updatePUT/[Type]/[id]200, versionId bumped
patchPATCH/[Type]/[id]partial update
deleteDELETE/[Type]/[id]204 No Content
capabilityGET/metadataCapabilityStatement

Bundle types

  • searchsetResults of a search — entry.search.mode = match | include.
  • transactionAtomic — every entry succeeds or all roll back.
  • batchIndependent entries — each can succeed or fail on its own.
  • document / collectionA fixed, signed set / a loose bag of resources.

Status codes

CodeMeaning
200 / 201OK / Created
204No Content (delete)
400Invalid resource / bad request
401 / 403Not authenticated / not authorised
404Unknown resource
409 / 412Version conflict / ETag precondition failed

Conformance checklist

  • resourceType is present and a known type.
  • Required elements set — Observation: status + code; MedicationRequest: status + intent + medication[x] + subject.
  • status is a value from the resource's status value set.
  • Every coding carries BOTH a system URI and a code.
  • References look like Type/id (e.g. Patient/PAT-1).
  • Quantities carry a value + a UCUM unit/code (system http://unitsofmeasure.org).
  • Use meta.versionId / ETag (If-Match) for optimistic concurrency on update.

Practised at HealthAtoms · healthatoms.com — synthetic, educational reference.