# Link an encounter to an account

## Overview

[Video: Link an encounter to an account](https://www.youtube.com/watch?v=drZ6NYscgTE)

This flow describes how to see the [account](https://docs.ohc.network/concepts/billing/account.md) of an [encounter](https://docs.ohc.network/concepts/clinical/encounter.md), and how to make the encounter the primary encounter of that account. It also describes how to create an account from the encounter when the patient has none.

## Pre-requisites

* The patient has an encounter at your facility, and you open that encounter.
* If your screen is smaller than extra-large, you can change the encounter and see its clinical data. On these screens, the **Account** card is on the **Actions** tab of the summary panel. Care shows that panel only to users who can see the clinical data, and that tab only to users who can change the encounter.
* If you want to create an account, the patient has no Active, Open account at the facility.
* You have the permissions listed below.

## Permissions

| Permission | Access |
| - | - |
| Can Update Account | Lets you save this encounter as the primary encounter of the account. You must hold it in the facility. Facility Admin holds it by default. |
| Can Read Account | Lets the **Account** card and the **Account** panel show the account. You must hold it in the facility. Facility Admin, Administrator, Staff, Doctor, Nurse, Volunteer, and Pharmacist hold it by default. |
| Can Create Account | Shows **Create Account** in the **Account** panel and lets you save the new account. You must hold it in the facility. Facility Admin holds it by default. |

If you do not have Can Update Account, Care still shows **Assign This Encounter**, but it does not save the change.

If you do not have Can Read Account, the card shows **No account found**.

## Steps

### 1. Find the Account card

Open the encounter. In the summary panel of the encounter overview, find the **Account** card.

On an extra-large screen, the card is on the **Details** tab. On a smaller screen, the card is on the **Actions** tab.

![The Account card on the Details tab of the encounter overview, with the inpatient account of the patient, an Open badge and Assign This Encounter](/assets/images/link-encounter-to-account-1-3a053b4e6180e113ddb19ede45daee07.webp)

### 2. Read the card

The card shows the account whose primary encounter is this encounter. Otherwise, it shows the Active, Open account of the patient at the facility.

The card shows the name and the Billing Status of the account.

The card is green when this encounter is the primary encounter of the account. The card is red when it is not.

If Care finds no account, the card shows **No account found**.

To open the account page, select the account on the card.

![The account on the Account card, an inpatient account with an Open badge on a red background, above the Assign This Encounter button](/assets/images/link-encounter-to-account-2-b93ce023d8b697658aa3698b2ac298d6.webp)

### 3. Make this encounter the primary encounter

If the card is red, select **Assign This Encounter**.

Care saves this encounter as the primary encounter of the account. Care shows **This encounter has been set as primary for the account.**

Note: An account has one primary encounter. If the account had another primary encounter, this encounter replaces it.

Note: An encounter can be the primary encounter of one account only.

![The Account card, now green after the encounter was assigned, under a This encounter has been set as primary for the account message](/assets/images/link-encounter-to-account-3-f7ae2acb937117117d877d6ab1f2e75e.webp)

### 4. Open the Account panel

Select the pencil button on the card. Care opens the **Account** panel.

If the patient has an Active, Open account at the facility, the panel shows that account. It shows the name, the description, **Account Details**, and **Account Summary**.

To open the account page, select **More details**.

![The More details button in the Account panel, which shows the description, Account Details with Status Active and Billing Status Open, and Account Summary](/assets/images/link-encounter-to-account-4-2435fd1693e0c3a210a4757df273fcd0.webp)

### 5. Create an account if the patient has none

If the panel shows **No active account found**, select **Create Account**.

Fill in the form. See [Create an account](https://docs.ohc.network/flows/billing/account/create-account.md).

Select **Create**.

Note: **Create Account** shows only if you have Can Create Account.

![The Create Account button in the Account panel, below No active account found](/assets/images/link-encounter-to-account-5-1e7a98726f2b2503c9ae05d0225a1111.webp)

## Expected Outcome

* If you selected **Assign This Encounter**, the **Account** card is green. This encounter is now the primary encounter of the account.
* When the account has a primary encounter, you can use its **Bed Charge Items** tab.
* If you created an account, it has no primary encounter yet. You can set it when you edit the account. See [Edit an account](https://docs.ohc.network/flows/billing/account/edit-account.md).

## Related

Concepts:

* [Account](https://docs.ohc.network/concepts/billing/account.md)
* [Encounter](https://docs.ohc.network/concepts/clinical/encounter.md)

Flows:

* [View an account](https://docs.ohc.network/flows/billing/account/view-account.md)
* [Create an account](https://docs.ohc.network/flows/billing/account/create-account.md)
* [Edit an account](https://docs.ohc.network/flows/billing/account/edit-account.md)
* [Add bed charges](https://docs.ohc.network/flows/billing/charge-item/add-bed-charges.md)
