Documentation Index
Fetch the complete documentation index at: https://docs.rxscale.com/llms.txt
Use this file to discover all available pages before exploring further.
Prescriptions
Retrieve prescription information including doctor data and status.Get Prescription Details
The prescription UID
prescription:read
Example Request
Response
Response Fields
| Field | Type | Description |
|---|---|---|
uid | string | Unique identifier for the prescription |
status | string | Current prescription status (e.g. signed, waiting_for_doctor) |
doctor | object | The prescribing doctor |
doctor.uid | string | Doctor UID |
doctor.display_name | string | Doctor display name |
rendered | boolean | true when a rendered PDF is available for the prescription, false otherwise |
Error Responses
| Status Code | Description |
|---|---|
403 | Missing prescription:read permission |
404 | Prescription not found or belongs to another organisation |
Externally Signed Prescriptions
Prescriptions whose items were created with_skip_validation (or _rxscale_skip_validation) on the line item — i.e. items without an attached anamnesis — can be signed outside the rxscale platform and then registered for fulfilment via the Management API.
The flow consists of two API calls:
POST /v1/management/prescriptions/{prescription_uid}/render– asks rxscale to render the unsigned prescription PDF. The endpoint returns immediately; the PDF is produced asynchronously and becomes available asprescription.file.POST /v1/management/prescriptions/{prescription_uid}/external-sign– once the PDF is available, mark the prescription asEXTERNALLY_SIGNED, copy the PDF into the signed bucket, and dispatch it to the pharmacy.
Both endpoints require the
prescription:external_sign permission.Render Prescription PDF
The prescription UID
prescription:external_sign
Triggers asynchronous rendering of the unsigned prescription PDF. The endpoint publishes a prescription.render event and returns 202 Accepted. Poll GET /v1/management/prescriptions/{prescription_uid} (or wait for a webhook) until file is populated before calling external-sign.
Example Request
Response (202 Accepted)
Error Responses
| Status Code | Description |
|---|---|
403 | Missing prescription:external_sign permission |
404 | Prescription not found or belongs to another organisation |
External-Sign Prescription
The prescription UID
prescription:external_sign
Marks an already-rendered prescription as EXTERNALLY_SIGNED. The endpoint:
- Verifies the prescription is in
WAITING_FOR_DOCTORstatus, all items lack an anamnesis, and the renderedfileis present. - Copies the PDF from the unsigned bucket to the signed-prescription bucket.
- Updates the prescription status to
EXTERNALLY_SIGNEDand writes aPrescriptionLogentry attributed to the calling API key. - Publishes a
pharmacy_manager.send_prescriptionevent so the prescription is dispatched to the pharmacy.
Example Request
Response (200 OK)
Error Responses
| Status Code | Description |
|---|---|
403 | Missing prescription:external_sign permission |
404 | Prescription not found or belongs to another organisation |
409 | Prescription is not in WAITING_FOR_DOCTOR status, has at least one item with an anamnesis, or has no rendered PDF yet |