> ## 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.

# Order Statuses

> Understand what each order status means and how orders move through the system

# Order Statuses

Every order in RxScale goes through a series of statuses as it moves from creation to completion. This page explains what each status means in plain language.

## Status Overview

| Status                     | Display Name           | Description                                            |
| -------------------------- | ---------------------- | ------------------------------------------------------ |
| `init`                     | Order created          | The order has just been placed.                        |
| `started`                  | Processing started     | The system is processing your order.                   |
| `waiting for doctor`       | Awaiting doctor review | A doctor needs to review and approve the prescription. |
| `waiting for pharmacy`     | Sent to pharmacy       | The order has been sent to a pharmacy for fulfillment. |
| `paused`                   | Paused                 | The order is temporarily on hold.                      |
| `completed`                | Completed              | The order has been successfully fulfilled.             |
| `cancelled`                | Cancelled              | The order was cancelled.                               |
| `out of stock`             | Out of stock           | One or more items are currently unavailable.           |
| `waiting for manual input` | Requires attention     | The order needs manual review by the support team.     |
| `waiting for clearance`    | Awaiting clearance     | The order is waiting for authorization.                |
| `waiting for payment`      | Payment pending        | Waiting for payment confirmation.                      |
| `pharmacy not found`       | No pharmacy available  | No suitable pharmacy was found for this order.         |
| `prescription declined`    | Prescription declined  | The doctor declined the prescription.                  |
| `prescription not found`   | Prescription missing   | The prescription could not be located.                 |
| `prescription not signed`  | Awaiting signature     | The prescription has not been signed yet.              |

## Happy Path: How a Typical Order Flows

The diagram below shows the normal path an order takes when everything goes smoothly.

```
  init
   |
   v
 started
   |
   v
 waiting for doctor
   |
   v
 waiting for pharmacy
   |
   v
 completed
```

<Steps>
  <Step title="Order created (init)">
    A patient places an order. The system creates the order and begins initial processing.
  </Step>

  <Step title="Processing started (started)">
    The system validates the order details and prepares it for doctor review.
  </Step>

  <Step title="Awaiting doctor review (waiting for doctor)">
    The order is sent to a doctor for review. The doctor will check the prescription request, verify it is appropriate, and either approve or decline it.
  </Step>

  <Step title="Sent to pharmacy (waiting for pharmacy)">
    After the doctor approves and signs the prescription, the order is routed to a pharmacy. The pharmacy will prepare the medication.
  </Step>

  <Step title="Completed">
    The pharmacy has fulfilled the order and the patient has received their medication. The order is now closed.
  </Step>
</Steps>

## Other Statuses Explained

### Paused

An order may be paused if additional information is needed or if there is a temporary issue that prevents the order from moving forward. Once the issue is resolved, the order will resume.

### Out of Stock

This means one or more products in the order are currently not available at the assigned pharmacy. The system may try to find an alternative pharmacy, or the order may need to wait until stock is replenished.

### Requires Attention (waiting for manual input)

The order has encountered a situation that cannot be resolved automatically. A member of the support team will review the order and take the appropriate action.

### Awaiting Clearance (waiting for clearance)

The order is waiting for an authorization step to be completed before it can proceed.

### Payment Pending (waiting for payment)

The patient's payment has not yet been confirmed. The order will proceed once payment is received.

### No Pharmacy Available (pharmacy not found)

The system could not find a pharmacy that can fulfill this order. This may happen if the required products are not stocked by any connected pharmacy. The support team will work to resolve this.

### Prescription Declined

The doctor reviewed the prescription and decided not to approve it. The patient may need to schedule a new consultation or provide additional information.

### Prescription Missing (prescription not found)

The prescription associated with this order could not be located in the system. The support team will investigate.

### Awaiting Signature (prescription not signed)

The doctor has approved the prescription, but it has not yet been electronically signed. The prescription must be signed before the order can be sent to a pharmacy. See [Prescription Signing](/help-center/signing) for more details.

### Cancelled

The order was cancelled. This can happen for various reasons, such as a patient request, a doctor decision, or a system-level cancellation. Cancelled orders cannot be resumed.
