Server-side APIEndpointsAppointments

Set an appointment's status

Mark an appointment in consultation, completed or a no-show.

Moves an appointment through the clinic's day, as the front desk and the practitioner do from Medos's calendar: the consultation starts, it is completed, or the patient did not come. Medos notifies the patient and staff as it does when the change is made in Medos.

API-key only, gated on devapi_appointments_status_update. X-Acting-User-Id is optional.

Parameters

Path parameters

appointmentRefstringrequiredExample: SCHEDULED:91234

SCHEDULED:<id>. A bare number means the same.

Query parameters

addressIdintegerrequiredExample: 1

The appointment's location.

Headers

x-api-keystringrequiredExample: mk_…

Your Developer API key. Server-side only.

X-Acting-User-IdstringExample: MDU_A1B2C3D4E5F6

The staff member the call is attributed to, as an MDU_… id. Omit it to attribute the call to the workspace admin.

Content-TypestringrequiredExample: application/json

The body is JSON. Anything else is a 415.

Body

status"COMPLETED" | "IN_CONSULTATION" | "NO_SHOW"enumrequired

The new status.

invoiceNotesstring

With COMPLETED only. Printed on the invoice. Up to 500 characters.

  • addressId is required: the appointment's location.id.
  • status is one of three:
    • IN_CONSULTATION: the practitioner has started the consultation.
    • COMPLETED: the visit is done. Add invoiceNotes to print a line on the invoice.
    • NO_SHOW: the patient did not come.
  • To cancel, use DELETE. CANCELLED is refused here, and so are refund fields.
  • Medos decides whether the change is allowed. A visit cannot be completed before its day, a practitioner cannot start a second consultation at once, and a COMPLETED or CANCELLED appointment cannot be changed. A NO_SHOW can still become COMPLETED if the patient arrives late. Each refusal is a 400.
  • PUT, not PATCH. A PATCH to this path is a 405 with Allow: PUT.

Responses

The 200 body is the appointment with its new status, in the same shape as GET /v1/appointments/{appointmentRef}.

Test request