Orders and Prescriptions
This page explains the complete lifecycle of an order in RxScale — from the moment a patient places it to the moment they receive their medication.How Orders Flow Through the System
When a patient places an order through your shop, it triggers a series of steps managed by RxScale:Order Lifecycle Step by Step
Order created
The patient completes a checkout in your shop. An order is created in RxScale with a status of “init”. The system validates the order and begins processing.
Processing started
The system verifies the order details, checks product availability, and prepares the prescription request for doctor review.
Waiting for doctor
The prescription is placed in a doctor’s review queue. The doctor reviews the patient’s questionnaire responses and medical information.
Doctor decision
The doctor either approves, declines, or places the prescription on hold.
- Approved — The prescription moves to signing.
- Declined — The order is updated and the patient is notified.
- On hold — The prescription is paused for additional information.
Prescription signed
The doctor electronically signs the prescription using a qualified electronic signature (QES). This makes it legally valid.
Sent to pharmacy
The system routes the order to an appropriate pharmacy based on product availability and location.
Pharmacy processing
The pharmacy reviews the order, prepares the medication, and ships it to the patient.
Prescription Management
Prescription Creation
A prescription is created automatically when an order enters the doctor review stage. You do not need to create prescriptions manually — the system handles this based on the products in the order.Prescription Statuses
| Status | What It Means |
|---|---|
waiting for doctor | A doctor has not yet reviewed this prescription. |
approved | The doctor approved the prescription. It will be signed next. |
signed | The prescription has been electronically signed and is legally valid. |
declined | The doctor declined this prescription. |
ON_HOLD | The prescription is on hold for additional review. |
cancelled | The prescription was cancelled. |
Working with Pharmacy Partners
Once a prescription is signed, RxScale handles pharmacy assignment automatically. The system considers:- Product availability — Whether the pharmacy has the required products in stock.
- Location — Geographic proximity to the patient for faster delivery.
- Capacity — The pharmacy’s current workload.
Monitoring Orders
You can monitor order progress through:- Webhooks — Receive real-time notifications when order or prescription statuses change. See Webhooks and Notifications.
- Management API — Query order and prescription details programmatically. See Management API.
Related Topics
- Order Statuses — Detailed explanation of all order statuses.
- Prescription Statuses — All prescription statuses and their meanings.
- Order Lifecycle — Technical guide to order status transitions.