Resources

Appointment Status in Medplum: Who Actually Confirmed

By , CTO, Puppeteer AI · · 6 min read

A reminder that skips a patient because the booking looks confirmed is how a slot ends up empty. Recupra's appointment reminders call the patients who have not actually answered and leave the ones who have alone. This post explains the two status layers on a Medplum appointment, and how to read them as one answer.

The mistake that shows up most often in a Medplum scheduling integration isn't a bad endpoint or a malformed body. It's reading one status where the resource actually carries two.

An appointment has a status. Every participant on that appointment carries a separate one. They answer different questions, they move on their own schedules, and treating them as a single field is how a slot ends up looking confirmed when nobody involved has agreed to it.

The booking layer

The appointment's own status covers the full FHIR R4 set: proposed, pending, booked, arrived, checked-in, fulfilled, cancelled, noshow, entered-in-error, and waitlist.

This is the layer everyone reaches for first, and on its own it answers a narrow question: what is happening with the slot. It says nothing about whether the person sitting in it has actually said yes.

The person layer

Each entry in the appointment's participant array carries its own status, from a much smaller set: accepted, declined, tentative, needs-action.

That answers a different question: has this specific person agreed to it, not what state the slot is in.

An appointment can sit at status: "booked" while the patient participant is still at needs-action. FHIR R4 does not intend that pairing: it defines booked as all participants having been considered, and expects the overall status to change after they answer. Nothing in R4 enforces it, though, and you will see it in practice. Medplum's own $book operation marks the appointment booked and leaves participant statuses as they were submitted. Treat it as a shape your code must handle, not one the spec promises.

Read only the appointment status and that patient reads as confirmed. Read the participant status and you learn they haven't been asked, or were asked and haven't answered either way. For anything reminder-shaped, the participant field is the one that actually matters, because it's the only place on the resource where the patient's own answer lives.

A room answers for itself too

Participants aren't only people. A location can sit in the same array, as an actor reference (Location/{id}) with a status of its own. Medplum's scheduling operations add it at needs-action when you book a room's Schedule, and nothing moves it on automatically.

FHIR itself treats a location as able to accept, and its own example appointments show one at accepted, so whether that entry ever moves depends on your workflow. The same goes for the practitioner entries: $book leaves them where they were too. That quietly breaks any check written as "are all participants accepted": it can return false on an appointment the patient has confirmed, because some other entry was never updated.

The fix is to filter by actor type and read the patient's entry when you ask whether the patient confirmed, rather than checking status across the whole array.

What else rides along on a participant

Beyond status, a participant entry can carry three more fields worth using.

  • actor. A reference plus an optional display name, so a list of who's involved can render without resolving every reference first.
  • required. A three-value code (required, optional, information-only) for whether this person has to be there. It separates the treating clinician from an optional interpreter or a supervising provider who's nice to have but not blocking.
  • type. An array of codeable concepts, each holding a coding with a system and a code, describing the participant's role rather than their identity.

required and type are the two fields most integrations skip and the two that make an appointment readable later without extra lookups. Leave type off and working out which participant is the patient means resolving every reference and checking what it points at. Set it once and the role sits right on the entry.

Two fields read like free text, one doesn't

Three fields carry the clinical framing for the visit, and they don't share a shape. serviceType is an array of objects that, in the records we read, holds a bare text key, for example [{ "text": "Follow-up" }]. Free text, no coding underneath, although Medplum's own scheduling examples do add a coding.

reasonCode matches that shape exactly: another array of { text: ... } entries.

appointmentType breaks the pattern. It's a single object holding a coding array with a system and a code: structured, and drawn from a code system rather than typed in freehand.

Two fields describing roughly the same thing in free text, one describing it as a code. FHIR types all three as CodeableConcept, so the difference comes from how the records are written rather than from the spec, and it's easy to get backwards if you haven't written it down somewhere in your own integration.

Change one field, not the whole resource

A PUT to /fhir/R4/Appointment/{id} replaces the entire resource. Leave a field out and it's gone from the record, not left alone, and on this resource that means the participant array and every status it's carrying.

A single status change is safer as a PATCH with a JSON Patch body:

[ { "op": "replace", "path": "/status", "value": "arrived" } ]

One field named, one value changed, everything else untouched. That's the transition a status-aware integration lives on, because the whole premise of two independent layers falls apart the moment a full-resource write collapses them back together on every touch.

Reading both layers as one answer

Put the two fields together and the logic stops being a single condition, which is exactly why a single condition usually gets it wrong. A visit is genuinely confirmed only when the appointment is booked and the patient participant has accepted. Four combinations come up in practice, and each one calls for something different.

  • booked + accepted. Confirmed. Nothing left to do.
  • booked + needs-action. The slot is held and the patient hasn't answered. This is the reminder population, and it's exactly the group a single-field check erases.
  • booked + declined. The patient said no and the slot is still committed on paper. This needs a person, since it's the state that quietly turns into an empty chair.
  • pending + anything. The booking itself isn't settled yet. A reminder here is premature no matter what the participant field says.

Only the second row should get an automated nudge. The third needs a human, not a message. The other two need nothing. Collapsing this into one check is the most common source of reminder bugs on Medplum, and the failure is asymmetric: over-messaging is annoying, but treating declined as confirmed loses the visit and nobody notices until the appointment time has passed.

What you need on your side

  • A Medplum project and credentials. The hosted service or a self-run deployment; the API surface is the same either way.
  • An agreed reading of participant status. Which participants must be accepted before you call a visit confirmed, and what your code does when it hits tentative.
  • A filter for actor type. So a location or practitioner entry still at needs-action never gets counted as a patient who hasn't responded.
  • Update logic that defaults to PATCH. Reserving PUT for the rarer case where several fields genuinely need to change together.

Honest limits

  • No timestamps on either layer. Neither the appointment status nor a participant status records when it last changed. Medplum keeps every version of the resource, so the timeline can be rebuilt from history, but knowing how long a patient sat at needs-action means doing that work yourself.
  • Tentative means whatever you decide it means. FHIR allows tentative as a value; it doesn't define what a practice should do with it. Leave that undefined and different parts of your system will treat it differently.
  • No attribution on who set a status. A participant status set through a patient portal and one set by front-desk staff look identical on the resource; only the version history records which user made the change.
  • Non-patient entries are noise for a confirmation check. Locations and practitioners sit in the same array and are not updated by Medplum's scheduling operations, so every aggregation over participant status has to filter them out or it will misreport a confirmed appointment.

If you also keep a waitlist on Medplum, waitlist automation in Medplum covers the appointment status built for it.

The same guide for other EHRs: automating appointment confirmations in Healthie, appointment reminders in Akute, and appointment reminders for eClinicalWorks practices.

Sources

  1. Medplum docs: Appointment resource
  2. HL7 FHIR R4: Appointment
  3. HL7 FHIR R4: ParticipationStatus value set
  4. HL7 FHIR R4: AppointmentStatus code system (definition of booked)
  5. HL7 FHIR R4: example Appointment with a Location participant at accepted
  6. Medplum docs: Book an appointment ($book)
  7. Medplum source: $book sets the appointment status only
  8. Medplum docs: Resource history

About the author

Ian Spektor is the CTO of Puppeteer AI, the company behind Recupra. He leads engineering and technology across the company, building the AI agents, integrations and infrastructure that let healthcare teams reach their patients at scale, securely and in line with HIPAA. More from Ian · LinkedIn

FAQ

Frequently asked questions

What's the difference between appointment status and participant status on Medplum?

Appointment status describes the booking itself: booked, cancelled, fulfilled, and so on. Participant status describes whether one specific person on that appointment has agreed to it: accepted, declined, tentative, or needs-action. The two move independently.

Why does my appointment never show as fully confirmed?

Most likely a location or practitioner participant still at needs-action, since Medplum's $find and $book operations do not update participant statuses. Read the patient's participant entry, or filter by actor type, before checking whether the visit is confirmed.

Is serviceType a coded field or free text?

In the records described here, free text: an array of objects with only a text key. FHIR would allow codes there too. appointmentType is the coded one, holding a system and a code. They cover similar ground and behave differently, which is easy to get backwards.

Should a status change use PUT or PATCH?

PATCH, with a JSON Patch replace on the single field that changed. A PUT sends the whole resource and drops anything you leave out, including the participant array and its statuses.

Send reminders to the patients who actually haven't confirmed.

Connect Medplum and Recupra's Reminder Agent reads the participant status, not just the appointment status, so a booked slot with an unanswered patient gets a call and a confirmed one doesn't.