# Bill and dispense prescribed medicines

## Overview

[Video: Bill and dispense prescribed medicines](https://www.youtube.com/watch?v=SankcLsCFaM)

This flow describes how to bill the medicines of a patient's prescriptions at a pharmacy location. Care creates a [medication dispense](https://docs.ohc.network/concepts/medications/medication-dispense.md) for each lot that you select, groups them in one [dispense order](https://docs.ohc.network/concepts/medications/dispense-order.md), and, when the medicines have charges, issues an [invoice](https://docs.ohc.network/concepts/billing/invoice.md) on the patient's account.

After you bill, you collect the payment and complete the dispense order. See [Collect payment and complete a dispense order](https://docs.ohc.network/flows/medications/medication-dispense/complete-dispense-order.md).

## Pre-requisites

* The patient has an active prescription at your facility.
* Each medicine that you bill is linked to a product, or you substitute a product for it.
* The pharmacy location has stock of the product that is not expired.
* You can open the **Prescription Queue** at the pharmacy location. See [Open the prescription queue](https://docs.ohc.network/flows/medications/medication-dispense/open-prescription-queue.md).
* You have the permissions listed below.

## Permissions

| Permission | Access |
| - | - |
| Write Medication Dispense | Bill the medicines. Care saves a dispense for each lot. You must hold it in a department of the pharmacy location. By default, the Facility Admin, Staff, Doctor, Nurse and Pharmacist roles hold this permission. |
| Pharmacist in Care | Open the queue and the prescriptions, complete the prescriptions when you bill, and open the dispense order that Care creates and move it to In Progress. You must hold it in a department of the facility. By default, the Facility Admin and Pharmacist roles hold this permission. |
| Can Read Inventory Item | See the lots and their stock at the pharmacy location. You must hold it in a department of the location. By default, the Facility Admin, Administrator, Staff, Doctor, Nurse, Volunteer and Pharmacist roles hold this permission. |
| Can Write Invoice | Let Care create and issue the invoice when you bill. You must hold it in a department of the facility. By default, the Facility Admin, Staff, Doctor, Nurse and Pharmacist roles hold this permission. |
| Can Read Account | Let Care find the patient's account. You must hold it in a department of the facility. By default, the Facility Admin, Administrator, Staff, Doctor, Nurse, Volunteer and Pharmacist roles hold this permission. |
| Can Read Product Knowledge | Search for a product when you substitute a medicine or add a medicine. You must hold it in a department of the facility. By default, the Facility Admin, Administrator, Staff, Doctor, Nurse, Volunteer and Pharmacist roles hold this permission. |
| Can Read Healthcare Service | Open the facility's list of services to reach the pharmacy location. You must hold it in a department of the facility. By default, the Facility Admin, Administrator, Staff, Doctor, Nurse, Volunteer and Pharmacist roles hold this permission. |
| Can List Facility Locations | Open the pharmacy location and its pages, including **Bill Medications**. You must hold it in a department of the location. By default, the Doctor, Facility Admin, Administrator, Nurse, Staff and Pharmacist roles hold this permission. |

By default, the Pharmacist role, held in a department of the pharmacy location, holds every permission in this table.

## Steps

### 1. Open Bill Medications

Start billing in one of these ways:

* On the **Prescription Queue**, select **Bill Now** on a row.
* On the queue filtered to one patient, select the prescriptions, and then select **Bill Selected Rx**.
* On the **Prescription Preview**, select **Start Billing**. To bill one prescription, select **Bill Prescription** in its menu.

Care opens **Bill Medications** with the patient's details at the top.

If the patient has no active account in this facility, Care shows **No active account found**. Select **Create Account** to close the message and continue. When the bill has charges, Care creates the account as it saves the bill.

Note: To see the patient's accounts first, select **Go to Accounts**.

![The Bill Now button of a queue row outlined](/assets/images/dispense-prescribed-medicines-1-233638670fb3320ef1e75f03e3e92030.webp)

### 2. Check the prescriptions and medicines

Each prescription shows **Prescribed by**, the date and time, the patient's location and any note.

Care selects every medicine that is not fully dispensed. A fully dispensed medicine shows **Fully dispensed in this prescription**.

To leave a medicine out of this bill, clear its checkbox.

Care ticks **Mark Complete** on a prescription when you select every medicine that can still be dispensed. When **Mark Complete** is ticked, Care completes the prescription as it saves the bill.

To keep the prescription active for a later bill, clear **Mark Complete**.

The table shows these columns:

| Column | What it shows |
| - | - |
| **Medicine** | The product to dispense, its dosage instructions and the total. A badge shows if the medicine is partially dispensed, dispensed, substituted, or has no product. |
| **Select Lot** | The lots to dispense from, with their **Expiry**. |
| **Quantity** | The quantity to dispense from each lot. |
| **Price** | The base price of the lot, with any discounts. |
| **All Given?** | Whether the medicine is fully dispensed with this bill. |
| **Actions** | More actions for the medicine. |

If the patient has other unbilled prescriptions in this facility, Care shows how many. To add them to this bill, select **Include all**.

Note: To close a prescription and take it out of this bill, select **Mark as Completed** in its menu.

Note: For a prescribed medicine, the **Actions** menu also has **Mark as Already Given** and **Remove Medication**. The menu of a prescription also has **Cancel Prescription**. Care accepts these only from a user who can update the encounter's clinical data, while the encounter is open. By default, the Pharmacist role cannot use them.

![The Bill Medications page with the Mark Complete checkbox of the prescription outlined](/assets/images/dispense-prescribed-medicines-2-245ba56657b64929e08bbbb36a9304f0.webp)

### 3. Select the lots

Care fills **Select Lot** from the dosage instructions. It takes the lots that expire first, until it has the quantity that the dosage instructions need.

Care does not use lots that are expired or that expire soon.

Note: By default, a lot that expires on or before the end of the current month cannot be dispensed. Your deployment can set a later month.

To change the lots, select the lot cell.

1. To find a lot, type in **Search lot/batch**.
2. Select a lot to add it. To remove a lot, select it again.

The list shows **Lot/Batch**, **Unit Price**, **Available Stock** and **Expiry**. You can select more than one lot for one medicine.

When you change the lots yourself, Care stops changing them. To let Care select the lots again, select the refresh button in the lot cell.

If the location has no stock of the product that can be dispensed, Care shows **No Stock**.

If the medicine has no product, Care shows **Product not available. Please select a substitute.** Substitute a product as in step 5.

![The lot list of Omeprazole open, with the selected lot, its unit price, available stock and expiry outlined](/assets/images/dispense-prescribed-medicines-3-6dba0537dabbc096cc9e686d86d6ae9d.webp)

### 4. Enter the quantities

Enter the **Quantity** for each lot as a whole number.

If the quantity is more than the stock of the lot, Care shows **Insufficient stock**.

Set **All Given?** for each prescribed medicine.

* If **All Given?** is on, Care marks the medicine as dispensed.
* If **All Given?** is off, Care marks the medicine as partially dispensed.

![The Quantity field of Omeprazole outlined](/assets/images/dispense-prescribed-medicines-4-c2a5045e0c0c4215a553acdd0a44daa4.webp)

### 5. Substitute a medicine

Do this step only if you dispense a different product for a prescribed medicine.

1. Select **Sub.** on the medicine. Care opens **Substitute Medication**.
2. In **Select Substitute Product**, select the product to dispense.
3. Select the **Substitution Type**.
4. Select the **Substitution Reason**.
5. Select **Save**.

Care removes the lots of the row and picks lots of the substitute product.

To remove a substitution, open **Substitute Medication** again and select **Clear**.

### 6. Add a medicine that is not prescribed

Do this step only if you also dispense a medicine that is not on the prescriptions.

1. Below the table, search for the product in **Add Medication**. Care opens the **Add Medication** sheet.
2. Check the **Dosage** and the **Frequency**. These fields are mandatory. Care fills in a dose of 1, in the unit of the product, and the frequency "SOS (As needed)".
3. If the medicine is not taken as needed, select the frequency and enter the **Duration**. Care disables **Duration** while the frequency is "SOS (As needed)".
4. Check the **Required Quantity**, the lots and their quantities. Care calculates the quantity from the dose, the frequency and the duration.
5. Select **Add Medication**.

Care adds the medicine under **Other Items**.

### 7. Bill the selected medicines

Check the **Estimated Total**. Care calculates the final amount when it creates the invoice.

Select **Bill Selected**.

Note: Press `Enter` to bill.

If a selected medicine has no product, lot or quantity, Care shows an error. Care scrolls to that medicine.

Note: One bill can hold at most 100 lots. Bill the other medicines in a second bill.

Care shows **Preparing your bill…** while it creates the invoice.

![The Estimated Total bar at the bottom of Bill Medications outlined, with the Bill Selected button](/assets/images/dispense-prescribed-medicines-5-cc8249bceb7cd176d1f6d42b582488bc.webp)

![The Collect Payment sheet for the new invoice, with the amount due, payment method, payment type and amount paid](/assets/images/dispense-prescribed-medicines-6-cfa086ec6e810337a93292f132eefd1f.webp)

## Expected Outcome

* Care creates one dispense for each lot, with the status Preparation, in one new dispense order.
* Care completes each prescription that had **Mark Complete** ticked.
* Care saves the dispenses and the prescription changes together. If one part fails, Care saves none of them.
* Care reduces the stock of each lot by the quantity that you billed.
* If the product has a charge item definition, Care creates a charge for the dispense.
* If the dispenses have charges and the patient has an account, Care creates and issues an invoice.
* Care shows **Medications billed successfully** and opens the dispense order. The order moves to In Progress. If Care issued an invoice, Care opens the payment sheet.
* If Care cannot create the invoice, the dispenses stay saved. Care still opens the dispense order, and you can issue the invoice there.

Next, collect the payment and complete the order. See [Collect payment and complete a dispense order](https://docs.ohc.network/flows/medications/medication-dispense/complete-dispense-order.md).

## Related

Concepts:

* [Medication Dispense](https://docs.ohc.network/concepts/medications/medication-dispense.md)
* [Dispense Order](https://docs.ohc.network/concepts/medications/dispense-order.md)
* [Medication Request](https://docs.ohc.network/concepts/medications/medication-request.md)
* [Invoice](https://docs.ohc.network/concepts/billing/invoice.md)
* [Inventory Item](https://docs.ohc.network/concepts/supply/inventory-item.md)

Flows:

* [Open the prescription queue](https://docs.ohc.network/flows/medications/medication-dispense/open-prescription-queue.md)
* [Preview a patient's prescriptions](https://docs.ohc.network/flows/medications/medication-dispense/preview-prescriptions.md)
* [Dispense medicines without a prescription](https://docs.ohc.network/flows/medications/medication-dispense/dispense-without-prescription.md)
* [Collect payment and complete a dispense order](https://docs.ohc.network/flows/medications/medication-dispense/complete-dispense-order.md)
* [Dispense from an encounter](https://docs.ohc.network/flows/medications/medication-dispense/dispense-medication.md)
