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: 301A 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_A1B2C3D4E5F6The 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
| Field | Type | Notes |
|---|---|---|
id | integer | The prescription id. |
appointmentRef | string | null | SCHEDULED:<n>. null for a prescription not linked to an appointment. |
patientId | integer | null | |
practitioner | object | id is an MDU_… staff id, a string. id and name are null together. |
location | object | id, name. |
status | string | null | |
diagnosis, notes | string | null | |
nextVisitDate | string | null | YYYY-MM-DD. |
medicines | array | Always an array. Each has name, type, dosage, frequency, duration, whenToTake, route, notes and a boolean doNotSubstitute. |
supersedesPrescriptionId | integer | null | Set when this prescription replaced an earlier one. |
createdAt, updatedAt | string | null |
Prescriptions are written in Medos by the prescriber. The Developer API reads them; it cannot create or edit them.