Get a prescription
Any signed in user. Returns one prescription with its medicine lines. The lookup is scoped to the caller’s branch, so another branch’s prescription answers 404.
GET
/api/v1/prescriptions/{prescriptionId}Authorization
AuthorizationBearer token (JWT) · headerrequiredJWT from POST /api/v1/auth/login sent as Authorization Bearer.
Path parameters
prescriptionIdstringrequiredThe prescription id.
Responses
200
The prescription
idstringrequiredbranch_idstringrequiredrx_numberstringrequiredpatient_namestringrequiredpatient_id_numberstringrequiredprescriber_namestringrequiredprescriber_licensestringrequiredstatusstringrequiredsale_idstring | nullrequireddispensed_bystring | nullrequireddispensed_by_namestring | nullrequirednotesstringrequiredcreated_bystringrequiredcreated_atstringrequiredupdated_atstringrequireddispensed_atstring | nullrequireditemsobject[]requiredShow propertiesHide properties
Array of
objectidstringrequiredprescription_idstringrequiredmedicine_idstringrequiredquantityintegerrequiredmin -9007199254740991 · max 9007199254740991
dosage_instructionsstringrequiredmedicine_namestringrequiredselling_pricestringrequiredvat_categorystringrequiredrequires_prescriptionintegerrequiredmin -9007199254740991 · max 9007199254740991
401
Not authenticated
detailstringrequired404
Prescription not found
detailstringrequired