Server-side APIEndpointsClinical records

Prescription PDF

The rendered prescription, as the patient received it, by prescription id.

API-key only, gated on devapi_prescriptions_pdf. Answers application/pdf, with Cache-Control: no-store.

Parameters

Path parameters

prescriptionIdintegerrequiredExample: 301

A prescription id, not an appointment id.

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.

Not an appointment id

Earlier versions of these docs called this parameter appointmentId. It has always been a prescription id. An appointment id here either 404s or returns a different prescription, because the two share a number range. An appointment's prescriptions are listed in its prescriptionIds.

Responses

200 with the PDF bytes and Content-Type: application/pdf. Errors are still problem details in JSON. An Accept header that allows neither application/pdf nor application/json, such as text/html, gets a 406. Leave Accept unset or send application/pdf.

Test request