# Set up a pharmacy

## Overview

[Video: Set up a pharmacy](https://www.youtube.com/watch?v=en4u8tRiRe8)

This flow describes how to set up a pharmacy in a facility, so that staff can open its **Prescription Queue** from **Services**.

A pharmacy in Care needs two things: a [location](https://docs.ohc.network/concepts/facility/location.md) whose **Inventory Usage** is not **None**, and a [healthcare service](https://docs.ohc.network/concepts/facility/healthcare-service.md) with the **Internal Type** **Pharmacy** at that location.

## Pre-requisites

* The pharmacy has a location in the facility, such as a room. The location is not a bed.
* If the location is not set up yet, [create the location](https://docs.ohc.network/flows/facility/location/create-location.md) first.
* You have the permissions listed below.

## Permissions

| Permission | Access |
| - | - |
| Can Create/Update Facility Locations | Set the **Inventory Usage** of the pharmacy location. You must hold it in a department of the location. If you hold it in the Administration department of the facility, it covers every location. By default, the Facility Admin and Staff roles hold this permission. |
| Can Create Healthcare Service on Facility | Create the pharmacy service, or change an existing service. You must hold it in the Administration department of the facility. By default, the Facility Admin role holds this permission. |
| Can Read Healthcare Service | Open **Healthcare Services** in the settings, the service form, and **Services**. 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 to edit it, and see it in the location picker of the service form. You must hold it in a department of the location. If you hold it in the Administration department of the facility, you see every location. By default, the Facility Admin, Administrator, Staff, Doctor, Nurse and Pharmacist roles hold this permission. |
| Pharmacist in Care | Open the **Prescription Queue** in step 3. You must hold it in a department of the facility. By default, the Facility Admin and Pharmacist roles hold this permission. |
| Can View Facility Organizations | See the departments in the **Managing Organization** picker. You need it only if you set a managing department. If you hold it in the Administration department of the facility, the picker shows every department. If you hold it in another department, the picker shows every department except Administration. Without it, the picker shows only your own departments. By default, the Facility Admin, Administrator, Staff, Doctor, Nurse and Volunteer roles hold this permission. |

Note: Care shows **Add Healthcare Service** and **Edit** to every user who can open the list. Only users with "Can Create Healthcare Service on Facility" in the Administration department of the facility can save the service.

## Steps

### 1. Set the Inventory Usage of the pharmacy location

1. Open the pharmacy location for editing. See [Edit a location](https://docs.ohc.network/flows/facility/location/edit-location.md).
2. If the pharmacy uses **Purchase Orders** or **Purchase Deliveries**, set **Inventory Usage** to **Store**.
3. If the pharmacy does not use them, set **Inventory Usage** to a value other than **None**.
4. Save the location.

For what each value of **Inventory Usage** means, see [Inventory Usage](https://docs.ohc.network/concepts/facility/location.md#inventory-usage).

Note: A new location starts with **Inventory Usage** set to **None**, and its sidebar does not show the **Pharmacy** and **Inventory** groups.

Note: Every value other than **None** shows the **Pharmacy** and **Inventory** groups in the sidebar of the location. Only **Store** also shows **Purchase Orders** and **Purchase Deliveries**.

![The Edit Location sheet for the room Outpatient Pharmacy, with Inventory Usage set to Store, next to Status and Operational Status, and the Update button at the bottom](/assets/images/set-up-a-pharmacy-1-61cb0a49f24ad7cdfb2e0fa86d953db0.webp)

### 2. Create the pharmacy service

1. If you are not in the settings, select **Settings** in the facility sidebar.
2. In the settings sidebar, under **Clinical**, select **Healthcare Services**.
3. Select **Add Healthcare Service**. Care opens **Create Healthcare Service**.
4. Fill in the fields in the table below.

| Components | What it captures |
| - | - |
| **Name** | The name of the pharmacy. You must enter a name. |
| **Internal Type** | Select **Pharmacy**. |
| **Locations** | The pharmacy location. Select **Select locations**, then select the plus (+) button next to the location. You must select at least one location. |

5. Select **Create**. Care shows **Healthcare service created successfully**.

You can leave the other fields empty. For all the fields of the form, see [Create a healthcare service](https://docs.ohc.network/flows/facility/healthcare-service/create-healthcare-service.md).

Note: The location picker does not list beds. It lists only the locations that you have permission to see.

To make an existing service the pharmacy, edit it instead. See [Edit a healthcare service](https://docs.ohc.network/flows/facility/healthcare-service/edit-healthcare-service.md). In the form, set **Internal Type** to **Pharmacy**. Add the pharmacy location. Then select **Save**.

Other values of **Internal Type** change what the location card on **Services** shows:

* **Store**: the card shows **View Inventory** and opens the **Items** page of the location.
* **Lab**: the card shows **View Requests** and opens the service requests of the location. If an activity definition names the service, the service requests made from it also appear at the locations of the service.
* **Scheduling**: the card shows **View appointments**. When staff book an appointment or create a token for a service, Care lists only services with this type.

![Create Healthcare Service filled in for the pharmacy: Name \&quot;Outpatient Pharmacy\&quot;, Internal Type \&quot;Pharmacy\&quot;, and under Locations \&quot;1 items selected\&quot; with Outpatient Pharmacy listed](/assets/images/set-up-a-pharmacy-2-c0c46844a9894d6d7155fc5e1b51521f.webp)

![The Healthcare Services list with the message \&quot;Healthcare service created successfully\&quot; and the new Outpatient Pharmacy card at the top](/assets/images/set-up-a-pharmacy-3-6431098c376ee7491a98a12f7fa88ca8.webp)

### 3. Check the pharmacy on Services

1. In the settings sidebar, select **Back to facility**.
2. In the facility sidebar, select **Services**.
3. Select the card of the pharmacy service.
4. Under **Available Locations**, find the card of the pharmacy location. The card shows **View Prescriptions**.
5. Select **View Prescriptions**. Care opens the **Prescription Queue** of the location.

Care also remembers this location in this browser. After **New Dispense**, **Dispense Medicine** on the patient's page goes to this location. See [Open a service from Services](https://docs.ohc.network/flows/facility/healthcare-service/open-a-service-from-services.md).

Note: The **Prescription Queue** lists the prescriptions of the whole facility, not only those of this location.

The sidebar of the location shows the **Pharmacy** group, with **Prescription Queue**, ℞ **Dispense** and **Medication Return**. It also shows the **Inventory** group.

Note: If the **Inventory Usage** of the location is **None**, Care shows **Inventory and pharmacy aren't available here**. Then do step 1 again.

![The page of the Outpatient Pharmacy service on Services: under Available Locations, the card of the location Outpatient Pharmacy shows View Prescriptions](/assets/images/set-up-a-pharmacy-4-4129fbd73e9ce01c7668264f0fdee928.webp)

![The Prescription Queue of the location Outpatient Pharmacy, with the Pharmacy group (Prescription Queue, Dispense, Medication Return) and Inventory in the location sidebar](/assets/images/set-up-a-pharmacy-5-b2acc87153bd78b32dc71ebf50fd2c79.webp)

## Expected Outcome

* On **Services**, the card of the pharmacy location shows **View Prescriptions**. It opens the **Prescription Queue** of the location.
* The sidebar of the location shows the **Pharmacy** and **Inventory** groups. **Inventory** has **Items**, **To Receive** and **To Dispatch**.
* If the **Inventory Usage** is **Store**, the sidebar also shows **Purchase Orders** and **Purchase Deliveries** under **External Supply**.
* If the **Inventory Usage** is not **Store**, the purchase order and purchase delivery pages show **External supply isn't available here**.

## Related

Concepts:

* [Healthcare service](https://docs.ohc.network/concepts/facility/healthcare-service.md)
* [Location](https://docs.ohc.network/concepts/facility/location.md)

Flows:

* [Create a healthcare service](https://docs.ohc.network/flows/facility/healthcare-service/create-healthcare-service.md)
* [Edit a healthcare service](https://docs.ohc.network/flows/facility/healthcare-service/edit-healthcare-service.md)
* [Open a service from Services](https://docs.ohc.network/flows/facility/healthcare-service/open-a-service-from-services.md)
* [Edit a location](https://docs.ohc.network/flows/facility/location/edit-location.md)
