FHIR DrillDocs

Drills

The drill program

Six stages from REST basics to connectathon-ready, each with a concrete pass/fail test.

A drill is only useful if it has a pass condition. Each stage below has one. Do the work, then run the test. Keep your scripts so you can run every drill again after an upgrade.

Stage Focus Pass when
1 FHIR REST You can do every core interaction from memory
2 HL7 v2 → FHIR 50 messages in, clean and duplicate-free FHIR out
3 Profiles Everything your channel produces passes AU Core
4 Terminology Coded data is checked against real value sets
5 Security An app gets data only through SMART scopes
6 Connectathon You can pass a published test kit and debug another team's system

Stage 1: FHIR REST basics#

Do:

  • Create, read, update (PUT and PATCH), delete and vread a Patient.
  • Search with each parameter type, a chain, _include, _revinclude and _has.
  • Page through all of one patient's Observations by following next links.
  • Make a conditional create idempotent, and prove it by sending it twice.
  • Use If-Match to cause a 412 deliberately, then recover from it.
  • Load a patient, an Encounter and three Observations in one transaction using urn:uuid references.

Pass: do all of the above in a fresh terminal without looking anything up, within 30 minutes.

Guides: CRUD · Search · Chaining and includes · Conditional · Transactions

Stage 2: HL7 v2 to FHIR#

Do:

  • Build the ADT to FHIR Patient channel.
  • Add A08 (update) and A03 (discharge) handling. A03 should set Encounter.status = finished and period.end.
  • Add queueing on the HAPI destination, then stop HAPI, send messages, start HAPI again and watch the queue drain.
  • Extend send-adt to send a mixed stream: A04, A08 and A03 for the same patients, plus 5 deliberately broken messages.

Pass: send 50 messages. Afterwards there are no duplicate Patients (check with a search on identifier), every A08's change is visible in _history, the 5 broken messages got AE or AR and are visible as errors in the engine, and none of them made it into HAPI.

Stage 3: AU Core profiles#

Do:

  • Complete Make a patient pass AU Core.
  • Change your channel's transformer so it produces AU Core-conformant Patients: an IHI when PID-3 has one, AU address states and meta.profile.
  • Load AU Core into HAPI and validate what your channel produced with $validate.
  • Write one profile of your own (FSH and SUSHI make this easiest) that requires Patient.telecom, and validate against it.

Pass: the validator CLI reports 0 errors across a folder of resources your channel created.

Stage 4: Terminology#

Do:

  • Get NCTS access.
  • $expand a SNOMED CT-AU ValueSet using ECL, and $validate-code an AMT medicine.
  • Map local lab codes to LOINC in a ConceptMap and use it from the engine for an ORU^R01 → Observation flow.

Pass: your ORU channel produces Observations with LOINC codes and UCUM units that pass validation against a terminology server.

Stage 5: SMART on FHIR#

Do:

  • Add Keycloak and protect HAPI with token checking.
  • Register a public app and complete a standalone launch with launch/patient patient/*.rs.
  • Register a backend client and get a token with a signed JWT.

Pass: a token scoped to one patient can read only that patient's data, and gets a 403 everywhere else.

Stage 6: Connectathon ready#

Do:

  • Run the Inferno AU Core test kit (or the international FHIR tests) against your server, and fix what fails.
  • Choose an HL7 AU connectathon track (AU Core, AU eRequesting or AU Patient Summary) and work through its scenarios against this lab before the event.
  • Pair with your partner: one runs a client, the other the server, and you debug each other's data.

Pass: you can turn a failing test result into the exact cause (resource, element, rule) within 10 minutes.

Keep a drill log

After each session, write down one thing that surprised you and one command you had to look up. That list becomes your personal cheat sheet, and at a connectathon it's worth more than any docs page.

FHIR Drill lab docs · synthetic data only · built 2026-11-26