Server-side APIEndpointsClinical records

Read a prescription

One prescription with its medicines, by prescription id.

API-key only, gated on devapi_prescriptions_get. Responses carry Cache-Control: no-store. The rendered document is GET /v1/prescriptions/{prescriptionId}/pdf, which takes the same id.

Parameters

Path parameters

idintegerrequiredExample: 301

A prescription id, from an appointment's prescriptionIds or a patient's prescription list.

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.

Responses

The prescription object

FieldTypeNotes
idintegerThe prescription id.
appointmentRefstring | nullSCHEDULED:<n>. null for a prescription not linked to an appointment.
patientIdinteger | null
practitionerobjectid is an MDU_… staff id, a string. id and name are null together.
locationobjectid, name.
statusstring | null
diagnosis, notesstring | null
nextVisitDatestring | nullYYYY-MM-DD.
medicinesarrayAlways an array. Each has name, type, dosage, frequency, duration, whenToTake, route, notes and a boolean doNotSubstitute.
supersedesPrescriptionIdinteger | nullSet when this prescription replaced an earlier one.
createdAt, updatedAtstring | null

Prescriptions are written in Medos by the prescriber. The Developer API reads them; it cannot create or edit them.

Test request