# Create a location

## Overview

This flow describes how to add a [location](https://docs.ohc.network/concepts/facility/location.md) to a facility in Care, from Settings. You can create a top-level location, such as a building, or a location inside another location, such as a ward inside a building.

To add beds, use the same sheet with the Location Form **Bed**. See [Add beds to a location](https://docs.ohc.network/flows/facility/location/add-beds.md).

[Video: Create a location](https://www.youtube.com/watch?v=E-sZP2bNi3w)

## Pre-requisites

* You can open the facility in Care. You hold a role in the facility, or you belong to a government organization that covers the facility.
* If you create a location inside another location, that location is not a bed. A bed cannot hold other locations.
* If you create a location inside another location, the new location stays within your deployment's depth limit. By default, a top-level location can have 10 levels of locations below it.
* The facility has fewer locations than your deployment's limit. By default, a facility can have 1000 locations. Deleted locations do not count.
* You have the permissions listed below.

## Permissions

| Permission | Access |
| - | - |
| Can Create Facility Organizations | Lets you create a top-level location, which has no parent location. You need it in the facility's root department, Administration. By default, only the Facility Admin role holds it. |
| Can Create/Update Facility Locations | Lets you create a location inside another location. You need it on the parent location. By default, the Facility Admin and Staff roles hold it. |
| Can List Facility Locations | Lets you see the locations and open the parent location. You need it on the parent location, only to open its page. Care does not check it when it saves the new location. By default, the Doctor, Nurse, Staff, Pharmacist, Administrator and Facility Admin roles hold it. |

What you need depends on where you create the location:

* To create a top-level location: Can Create Facility Organizations in the facility's root department, Administration.
* To create a location inside another location: Can List Facility Locations and Can Create/Update Facility Locations on the parent location.

You hold a permission on a location when a role in one of these places gives it to you:

* A department linked to the location, or to a location that holds the location.
* A parent department of such a department.
* The facility's root department, Administration. A role there reaches every location of the facility.

Care gives the Facility Admin role in the root department to the person who creates the facility. By default, that role has every permission in this flow.

By default, the Staff role can create a location inside another location, but it cannot create a top-level location.

## Steps

### 1. Open the Locations page

Open the facility.

In the facility sidebar, select **Settings**.

In the settings sidebar, under **Facility**, select **Locations**.

Care shows the **Locations** page. With no location open, the page lists the top-level locations of the facility.

![The Locations page in the facility settings, with Locations selected in the settings sidebar and the top-level locations in the tree and the list.](/assets/images/create-location-1-82f4a7f9f1e9e2df16ea6dd60da2d0af.webp)

### 2. Open the Add Location sheet

To create a top-level location, keep no location open. Select **Add Location** beside the search box.

To create a location inside another location, open that location first. Select it in the location tree, or select its row in the list.

Then select **Add Location** beside the search box.

![The page of Ward 3, opened inside Main Block, with the Add Location button beside the search box.](/assets/images/create-location-2-d0c9b5eeb47c4e5e318a311c932c7c7a.webp)

Care opens the **Add Location** sheet, with the text **Create a Location such as Rooms/Beds**.

![The Add Location sheet with the fields Location Form, Name, Description, Status, Operational Status and Inventory Usage.](/assets/images/create-location-3-caeb85be15c11f65f144926632055f6e.webp)

Care creates the new location inside the open location. If no location is open, Care creates a top-level location. The sheet has no field for the parent location.

Note: The page of a bed has no **Add Location** button.

### 3. Enter the location details

Fill in the fields.

| Components | What it captures |
| - | - |
| **Location Form** | The type of place. Select **Site**, **Building**, **Wing**, **Ward**, **Level**, **Corridor**, **Room**, **Bed**, **Vehicle**, **House**, **Cabinet**, **Road**, **Area**, **Jurisdiction** or **Virtual**. The default is **Room**. You cannot change it after you create the location. |
| **Name** | The name of the location. This field is required. If you leave it empty, Care shows **This field is required**. Two locations can have the same name. |
| **Description** | More information about the location. This field is optional. |
| **Status** | Select **Active**, **Inactive** or **Unknown**. The default is **Active**. |
| **Operational Status** | Select **Closed**, **Housekeeping**, **Isolated**, **Contaminated**, **Occupied** or **Unoccupied**. The default is **Unoccupied**. |
| **Inventory Usage** | Which pharmacy and inventory pages the location has. Select **None**, **Store**, **Supplier**, **Consumption** or **Adjustment**. The default is **None**. |

![The Add Location sheet filled in, with Room as the Location Form and Room 303 as the Name.](/assets/images/create-location-4-13c6066615aed2adc7c4f650de1b3adf.webp)

The **Inventory Usage** value changes the sidebar of the location's own pages:

* **None**: The sidebar does not show **Pharmacy** and **Inventory**. If you open one of these pages at the location, except **To Receive**, Care shows **Inventory and pharmacy aren't available here**.
* **Store**: The sidebar shows **Pharmacy** and **Inventory**. Under **Inventory**, it also shows **External Supply**, with **Purchase Orders** and **Purchase Deliveries**.
* **Supplier**, **Consumption** or **Adjustment**: The sidebar shows **Pharmacy** and **Inventory**, but not **External Supply**.

To open the location's own pages, see [Open a location's overview](https://docs.ohc.network/flows/facility/location/open-a-location-overview.md).

If you select **Bed**, Care shows the options to create several beds at once. See [Add beds to a location](https://docs.ohc.network/flows/facility/location/add-beds.md).

If no location is open and you select **Bed**, Care shows **Beds can only be created under a parent location**. Care keeps the previous choice.

### 4. Create the location

Select **Create**.

**Create** stays disabled until the form is valid. For example, the **Name** field must have a value.

![The message Location Created, and Room 303 added at the end of the list of locations in Ward 3.](/assets/images/create-location-6-ec3ee8d0633a9c85dc36cd7fc7a974ab.webp)

## Expected Outcome

* Care shows the message **Location Created**.
* Care adds the new location at the end of the list of locations at the same level.
* The **Add Location** sheet has no fields for departments and tags. To add them, open the **Edit Location** sheet of the new location. See [Edit a location](https://docs.ohc.network/flows/facility/location/edit-location.md).
* You cannot move the location to another parent location later. To change its position among the locations at the same level, see [Reorder locations](https://docs.ohc.network/flows/facility/location/reorder-locations.md).

## Related

Concepts:

* [Locations](https://docs.ohc.network/concepts/facility/location.md)
* [Department](https://docs.ohc.network/concepts/facility/department.md)

Flows:

* [Add beds to a location](https://docs.ohc.network/flows/facility/location/add-beds.md)
* [View locations](https://docs.ohc.network/flows/facility/location/view-locations.md)
* [Edit a location](https://docs.ohc.network/flows/facility/location/edit-location.md)
* [Manage a location's tags](https://docs.ohc.network/flows/facility/location/manage-location-tags.md)
* [Manage a location's organizations](https://docs.ohc.network/flows/facility/location/manage-location-organizations.md)
* [Reorder locations](https://docs.ohc.network/flows/facility/location/reorder-locations.md)
* [Open a location's overview](https://docs.ohc.network/flows/facility/location/open-a-location-overview.md)
