# Complete an encounter

## Overview

[Video: Complete an encounter](https://www.youtube.com/watch?v=i6gOanBew0E)

This flow describes how to complete an [encounter](https://docs.ohc.network/concepts/clinical/encounter.md) in Care. A completed encounter is closed, and Care refuses changes to it until someone restarts it.

Care has several ways to complete an encounter. Some of them also close the appointment of the encounter and its token. Some of them ask you to confirm, and others act at once.

## Pre-requisites

* The encounter is not Completed, Cancelled, Discontinued or Entered in error.
* You open the encounter from within a facility.
* You complete the encounter that you opened. An encounter that you pick from **Encounter History** is read-only.
* If the encounter type is Inpatient, the patient is discharged. See [Discharge a patient](https://docs.ohc.network/flows/clinical/encounter/discharge-patient.md).
* You have the permissions listed below.

## Permissions

| Permission | Access |
| - | - |
| Update Encounter non clinical | Complete 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 Read encounter | Open the encounter. The appointment bar shows its actions only when you hold this permission. 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 list patients | Another way to open the encounter, together with one of the next two permissions. You hold it through a role on the patient. It does not let you complete the encounter, and it does not show the actions of the appointment bar. By default, the Staff, Doctor, Nurse, Administrator, Facility Admin, Volunteer and Pharmacist roles hold this permission. |
| Can view clinical data about patients | With "Can list patients", lets Care show the encounter page. You hold it through a role on the patient. By default, the Staff, Doctor, Nurse and Facility Admin roles hold this permission. |
| Can Read encounter related clinical data | Gives the same access as the permission above. 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 update bookings on Object | Close the appointment when you use `m` then `c`, **Complete** or **Mark as Complete**. Care checks it against the schedule of the appointment. This permission belongs to the Scheduling module. By default, the Staff, Doctor, Nurse and Facility Admin roles hold this permission. |
| Can Create on Token | Close the token of the appointment when you use `m` then `c`, **Complete** or **Mark as Complete**. This permission belongs to the Scheduling module. By default, the Staff, Doctor, Nurse, Administrator and Facility Admin roles hold this permission. |

The encounter's departments include the departments above them, at any level, and the facility's Administration department.

When you use `m` then `c`, **Complete** or **Mark as Complete**, Care sends the encounter, appointment and token changes together. If Care refuses one of them, Care saves none of them, and the encounter stays open.

Note: Care shows the completion controls without checking "Update Encounter non clinical". If you do not hold it, Care refuses the change.

## Steps

### 1. Open the encounter

Open the encounter.

If the encounter is Inpatient and the patient is not discharged, Care shows **Mark for discharge**. Care shows it instead of **Mark as Completed** or **Complete**. These controls and `m` then `c` open the encounter form for the discharge. Discharge the patient first. See [Discharge a patient](https://docs.ohc.network/flows/clinical/encounter/discharge-patient.md).

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

![An Ambulatory encounter, with the encounter details bar outlined showing In Progress and Routine.](/assets/images/complete-encounter-1-1b7a1703e9c04c25c109b5816051619f.webp)

### 2. Select a way to complete

Select one of these controls. They do different things.

| Control | Where | What Care does |
| - | - | - |
| **Mark as Completed** | At the bottom of the **Actions** tab of the side panel, on the **Overview** tab | Asks you to confirm. Completes the encounter only. |
| **Mark as Completed** | **Encounter Actions**, which you open with the button or with `Shift+E` | Asks you to confirm. Completes the encounter only. |
| `m` then `c` | The encounter page | Asks you to confirm. Completes the encounter, and closes its appointment and its token. |
| **Complete** | The appointment bar | Completes the encounter, and closes its appointment and its token, at once. Care does not ask you to confirm. |
| **Mark as Complete** | The **More Actions** menu of the appointment bar | The same as **Complete**. Care does not ask you to confirm. |

The appointment bar shows only on an encounter that was created from an appointment.

When Care closes the appointment, Care sets it to Fulfilled, unless the appointment already has a final status. Care sets the token to Fulfilled only if the token is active.

If the encounter has no appointment, `m` then `c` completes the encounter only.

Note: If the encounter was created from an appointment, use **Complete**, **Mark as Complete** or `m` then `c`. These also close the appointment and its token. The side panel and **Encounter Actions** leave the appointment open. After the encounter is completed, the appointment bar no longer shows its actions.

Note: If the encounter is Planned or On Hold, the appointment bar shows **Start Encounter** instead of **Complete**. See [Start a planned encounter](https://docs.ohc.network/flows/clinical/encounter/start-a-planned-encounter.md).

Note: On a small screen, the actions of the appointment bar are in its **More Actions** menu.

Note: **Close Appointment** in the **More Actions** menu closes the appointment and its token only. The encounter stays open. Care does not ask you to confirm.

![The Actions tab of the side panel, with the Mark as Completed button outlined at the bottom.](/assets/images/complete-encounter-2-2486138d036ef146bf211c52f8ce131a.webp)

### 3. Confirm the completion

If you used the side panel, **Encounter Actions** or `m` then `c`, Care shows the dialog **Mark as Complete**.

The dialog asks "Are you sure you would like to mark this encounter as complete?".

If you pressed `m` then `c`, the dialog also shows "This action will close Appointment, Token and Encounter".

Select **Mark as Complete**, or press `Enter`.

To stop, select **Cancel**.

![The Mark as Complete dialog, outlined, with the question Are you sure you would like to mark this encounter as complete? and the Cancel and Mark as Complete buttons.](/assets/images/complete-encounter-3-50f0ab69db3a9fb76d28b4344ca58b78.webp)

![The encounter after the message Encounter Completed, with the Completed status outlined on the encounter details bar.](/assets/images/complete-encounter-4-e4bf431e1d2addc62614a6fc12f9323f.webp)

## Expected Outcome

* Care shows "Encounter Completed".
* If Care closed the appointment, Care also shows "Appointment closed successfully".
* Care sets the status to Completed. If the encounter has no end date, Care sets it to now.
* Care completes the open bed stays of the encounter and frees the beds.
* Care ends the links between the encounter and its devices.
* The encounter no longer counts toward the maximum number of open encounters of the patient at the facility.
* Care refuses changes to the encounter until someone restarts it. The encounter page no longer shows **Edit** or the **Actions** tab of the side panel.
* Care does not clear the location of the encounter. The encounter details bar can still show the last bed.
* To open the encounter again, see [Restart an encounter](https://docs.ohc.network/flows/clinical/encounter/restart-encounter.md). Your deployment sets a time limit for restarts. With the default limit, Care refuses every restart.

## Related

Concepts:

* [Encounter](https://docs.ohc.network/concepts/clinical/encounter.md)
* [Appointment Booking](https://docs.ohc.network/concepts/scheduling/booking.md)
* [Token](https://docs.ohc.network/concepts/scheduling/token.md)

Flows:

* [Discharge a patient](https://docs.ohc.network/flows/clinical/encounter/discharge-patient.md)
* [Update encounter details](https://docs.ohc.network/flows/clinical/encounter/update-encounter-details.md)
* [Start a planned encounter](https://docs.ohc.network/flows/clinical/encounter/start-a-planned-encounter.md)
* [Restart an encounter](https://docs.ohc.network/flows/clinical/encounter/restart-encounter.md)
