# Edit an account

## Overview

[Video: Edit an account](https://www.youtube.com/watch?v=7st6tThnihg)

This flow describes how to change the name, the description, the Status, the Billing Status, and the primary encounter of an [account](https://docs.ohc.network/concepts/billing/account.md).

You can also use it to open a closed account again.

## Pre-requisites

* You can open the account page. See [View an account](https://docs.ohc.network/flows/billing/account/view-account.md).
* If you set a primary encounter, the encounter is not the primary encounter of another account.
* If you save the account as Active and Open, the patient has no other Active, Open account at the facility.
* You have the permissions listed below.

## Permissions

| Permission | Access |
| - | - |
| Can Update Account | Shows **Edit** on the account page and lets you save the changes. You must hold it in the facility. Facility Admin holds it by default. |
| Can Read Account | Lets you open the account page. You must hold it in the facility. Facility Admin, Administrator, Staff, Doctor, Nurse, Volunteer, and Pharmacist hold it by default. |
| Can Read Invoice | Lets you see the **Invoices** tab, which the account page opens first. You must hold it in the facility. Facility Admin, Administrator, Staff, Doctor, Nurse, Volunteer, and Pharmacist hold it by default. |
| Can list patients | Lets the **Primary Encounter** field list the encounters of the patient. You must hold it through a role on the patient. Facility Admin, Administrator, Staff, Doctor, Nurse, Volunteer, and Pharmacist hold it by default. |

Note: You get a role on the patient in one of these ways:

* Through the organizations of the patient's ongoing encounters.
* Through the geographic organizations of the patient.
* Through a direct link to the patient.

## Steps

### 1. Open the account

Open the account page. See [View an account](https://docs.ohc.network/flows/billing/account/view-account.md).

![The account details at the top of the account page, for an Active inpatient account with an Ongoing end date and the Insurance Claim tag](/assets/images/edit-account-1-34c04da800f9c36a4ce1363c961c4d7b.webp)

### 2. Open the edit form

Select **Edit**. Care opens the **Edit Account** form with the current details of the account.

Note: You can also press `e` on the account page. The key works only when **Edit** shows.

![The Edit button at the right of the account details on the account page](/assets/images/edit-account-2-c338a9c2064a9b826dfda090f21ccda0.webp)

### 3. Change the details

Change the fields that you want to update.

| Components | What it captures |
| - | - |
| **Name** | The name of the account. This field is required. |
| **Description** | More detail about the account. This field is optional. |
| **Status** | The status of the account: Active, Inactive, Entered in Error, or On Hold. This field is required. |
| **Billing Status** | Where the account is in billing: Open, Care Completed, or Billing. |
| **Primary Encounter** | One of the 10 most recent encounters of the patient at this facility. Each choice shows the encounter class, the encounter status, and the start date. This field is optional. |

Note: The form does not offer the closed Billing Status values. To close an account, see [Settle and close an account](https://docs.ohc.network/flows/billing/account/settle-and-close-account.md).

Note: You can set an earlier Billing Status here. The **Billing Status** stepper moves forward only.

Note: After you set a primary encounter, you can replace it with another encounter. You cannot remove it.

Note: You can also set the primary encounter from the encounter. See [Link an encounter to an account](https://docs.ohc.network/flows/billing/account/link-encounter-to-account.md).

Note: You cannot change the patient or the facility of an account.

Note: Your deployment can add more fields to the form.

To open a closed account again, select **Edit** on the closed account. **Edit** shows whatever the status of the account. Then do these steps:

* Set **Status** to Active.
* Set **Billing Status** to Open. If the account is closed, the field shows the closed Billing Status until you select another one.

![The Edit Account panel with the Name, an edited Description, Status Active, Billing Status Open, an In Progress primary encounter and the Update button](/assets/images/edit-account-3-74eac3477b0c9d61ee781a5246b593b2.webp)

### 4. Save the changes

Select **Update**.

Note: **Update** stays disabled until you change a field.

Care shows an error and does not save the changes in these cases:

* The encounter is already the primary encounter of another account.
* You save the account as Active and Open, and the patient already has another Active, Open account at the facility. Care shows "Active account already exists for this patient".

![The Update button at the bottom of the Edit Account panel, after a change to the description](/assets/images/edit-account-4-6c14b810ff1c8f0cc146fdfd736190e1.webp)

## Expected Outcome

* Care saves the changes and closes the form. Care shows no success message.
* If you set a primary encounter, you can use the **Bed Charge Items** tab of the account.
* If you opened a closed account again as Active and Open, it is now the default account of the patient. Charge items that are added without a chosen account go to it.

## 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)
* [Advance the billing status](https://docs.ohc.network/flows/billing/account/advance-account-billing-status.md)
* [Settle and close an account](https://docs.ohc.network/flows/billing/account/settle-and-close-account.md)
* [Link an encounter to an account](https://docs.ohc.network/flows/billing/account/link-encounter-to-account.md)
