# Manage encounter departments

## Overview

[Video: Manage encounter departments](https://www.youtube.com/watch?v=uztnum3RAl4)

This flow describes how to link departments to an [encounter](https://docs.ohc.network/concepts/clinical/encounter.md), and how to remove them.

Note: If your facility has set up an encounter workspace, the workspace can change or hide parts of the encounter page. This flow describes the standard encounter page.

## Pre-requisites

* The patient has an encounter at your facility, and you can open it.
* The encounter is not Completed, Cancelled, Discontinued or Entered in error.
* The departments that you want to link belong to the facility of the encounter.
* You have the permissions listed below.

## Permissions

| Permission | Access |
| - | - |
| Update Encounter non clinical | Link a department to this encounter, and remove a linked department. You must hold it in one of the encounter's departments, or in a department of the encounter's current location. By default, the Doctor, Nurse and Facility Admin roles hold this permission. |
| Can View Facility Organizations | See the departments of the facility in the department picker. You must hold it in a department of the facility. Care lists the Administration department only if you hold this permission there. By default, the Doctor, Nurse, Staff, Volunteer, Administrator and Facility Admin roles hold this permission. |
| Can Read encounter | Open the encounter. You must hold it in one of the encounter's departments, or in a department of the encounter's current location. By default, the Doctor, Nurse and Facility Admin roles hold this permission. |
| Can view clinical data about patients | Another way to open the encounter. You need it for the patient, together with "Can list patients". It does not let you add or remove departments. By default, the Staff, Doctor, Nurse and Facility Admin roles hold both permissions. |

## Steps

### 1. Open the department sheet

Open the encounter. Then use one of these entry points:

* Select **Encounter Actions**, or press `Shift+E`. Select **Update Department**.
* On the **Overview** tab, open the **Actions** tab of the side panel. Select **Update Department**.
* On the **Overview** tab, open the **Details** tab of the side panel. On the **Departments and Teams** panel, select the edit icon, **Update Department**.

Care opens the **Manage Organizations** sheet, with the text "Add or remove organizations from this encounter".

The sheet uses the word organization for a department of the facility.

Note: Care defines no keyboard shortcut for **Update Department**.

Note: Care shows these entry points for an encounter that is not closed. Care checks "Update Encounter non clinical" only when you save.

![The Departments and Teams panel on the Details tab of the side panel, with its edit icon outlined.](/assets/images/manage-encounter-departments-1-021999119bdeeca5379d1e9a5789cbde.webp)

![The Manage Organizations sheet, with its title outlined above the text Add or remove organizations from this encounter.](/assets/images/manage-encounter-departments-2-18c905cc2ed3090c5d80751ea2124aa3.webp)

### 2. Add departments

1. Open the department picker, **Select Department**.
2. Find the department. The picker starts with the top-level departments. You can also search by name.
3. Select one or more departments.
4. Select **Done** to close the picker.
5. Select **Add Organizations**.

Care links the departments, shows "Organization added successfully" and closes the sheet.

* The picker marks the departments that are already linked with **Linked**. You cannot select them.
* **Add Organizations** stays disabled until you select a department.
* The picker can select a department for you when the sheet opens. It does this when you belong to only one department of the facility, and that department is not linked yet.

If the department is already linked when you save, Care shows "Organization already exists".

Note: You choose the first departments when you create the encounter. See [Create an encounter](https://docs.ohc.network/flows/clinical/encounter/create-encounter.md).

![The department picker with Cardio entered, with the selected Cardiology department outlined above Clear all and Done.](/assets/images/manage-encounter-departments-3-580b6483f4ef8a5d5cab912dcc82a135.webp)

![Cardiology selected under the Select Department picker, with the Add Organizations button outlined.](/assets/images/manage-encounter-departments-4-0381347ee939edebf1ff05ec92a4716a.webp)

![The encounter after the message Organization added successfully, with the Departments and Teams panel outlined showing General Medicine and Cardiology.](/assets/images/manage-encounter-departments-5-797a650c1b9018d06a3bc15ac9d90020.webp)

### 3. Remove a department

1. Under **Current Organizations**, find the department.
2. Select the delete icon beside the department.

Care removes the department at once. Care does not ask you to confirm. Care shows "Organization removed successfully".

You can remove every department, including the last one.

Note: After you remove a department, roles in that department and in the departments above it still count for the encounter. They stop counting when the encounter is next saved.

If no department is linked, the list shows "No organizations added yet".

![The Cardiology department under Current Organizations, outlined with its delete icon.](/assets/images/manage-encounter-departments-6-c55173eec752c0ece7883c5aa52da3b8.webp)

![The Manage Organizations sheet after the message Organization removed successfully, with the Current Organizations heading outlined above General Medicine.](/assets/images/manage-encounter-departments-7-53e4069c46b551299cde606e939deb4f.webp)

## Expected Outcome

* The **Departments and Teams** panel lists the departments of the encounter. If there are none, it shows "No Department and Teams".
* Users who hold "Can Read encounter" in a linked department, or in a department above it at any level, can open the encounter.
* Users who hold "Update Encounter non clinical" there can change the encounter while it is not closed.
* When users filter the facility encounter list by a department, Care also shows the encounters of the departments under it.

## Related

Concepts:

* [Encounter](https://docs.ohc.network/concepts/clinical/encounter.md)
* [Department](https://docs.ohc.network/concepts/facility/department.md)
* [Care team](https://docs.ohc.network/concepts/clinical/care-team.md)

Flows:

* [Create an encounter](https://docs.ohc.network/flows/clinical/encounter/create-encounter.md)
* [Find an encounter](https://docs.ohc.network/flows/clinical/encounter/find-an-encounter.md)
* [Assign an encounter location](https://docs.ohc.network/flows/clinical/encounter/assign-encounter-location.md)
* [Add care team members](https://docs.ohc.network/flows/clinical/care-team/add-care-team-members.md)
