# Update or retire a charge item definition

## Overview

[Video: Update or retire a charge item definition](https://www.youtube.com/watch?v=F9D_Vwv-bdQ)

This flow describes how to change a [charge item definition](https://docs.ohc.network/concepts/definitions/charge-item-definition.md) in Care, add tags to it, or retire it when your facility no longer uses it.

## Pre-requisites

* You are a member of a department of the facility.
* Your facility has the charge item definition that you want to change.
* If you want to retire the definition, its status is not Retired.
* If you want to add tags, your facility has a tag whose resource is Charge Item Definition. See [Create a tag](https://docs.ohc.network/flows/platform/tagging/create-a-tag.md).
* You have the permissions listed below.

## Permissions

| Permission | Access |
| - | - |
| Can Create Charge Item Definition on Facility | Lets you save changes, retire the definition, and add or remove its tags. You must hold it in the facility's root organization (**Administration**). By default, the Facility Admin role holds it. |
| Can Read Charge Item Definition | Lets you list and open the charge item definitions. You can hold it in any department of the facility. By default, the Facility Admin, Administrator, Staff, Doctor, Nurse, Volunteer and Pharmacist roles hold it. |
| Can Read Resource Category | Lets you browse the categories and use the Category picker in the form. You can hold it in any department of the facility. By default, the Facility Admin, Administrator, Staff, Doctor, Nurse, Volunteer and Pharmacist roles hold it. |
| Can Apply Tag Config to Resources | Needed only to add or remove tags. You must hold it in the organization that manages the tag, or in one above it. If the tag has no managing organization, any department of the facility counts. By default, the Facility Admin, Staff, Doctor, Nurse and Pharmacist roles hold it. |
| Can Read Tag Config | Needed to see the tags that you can add, and for a discount condition on a tag. You can hold it in any department of the facility. By default, the Facility Admin, Administrator, Staff, Doctor, Nurse, Volunteer and Pharmacist roles hold it. |

Note: Care shows **Edit**, **Delete** and **Add Tags** to every user who can open the definition. If you do not hold Can Create Charge Item Definition on Facility in the root organization, Care refuses the change.

## Steps

### 1. Open the charge item definition

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

In the settings sidebar, under **Billing**, select **Charge Item Definitions**.

Open the categories until you reach the category that holds the definition.

The list shows Active definitions by default. To find a Draft or Retired definition, change the **Status** filter.

To find a definition by its title, type in the **Search definitions** box.

Note: At the top level, and in a category that has subcategories, the **Search** box finds active definitions in all categories.

In the row of the definition, select **View** to open its page.

![Step 1, Open the charge item definition: the screen at this step, with the control for the step outlined](/assets/images/update-or-retire-charge-item-definition-1-d60534acef552648964227e5ab22c45b.webp)

### 2. Update the details

On the page of the definition, select **Edit**. You can also select **Edit** in the row of the definition.

Care opens the **Update Charge Item Definition** page. It has the same components as the create form.

Change the details. See [Create a charge item definition](https://docs.ohc.network/flows/definitions/charge-item-definition/create-charge-item-definition.md) for each component.

Note: Care does not change the slug when you change the title.

Note: To use a retired definition again, set **Status** to Active.

Select **Update**.

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

![Step 2, Update the details (1 of 3): the screen at this step, with the control for the step outlined](/assets/images/update-or-retire-charge-item-definition-2-96656b70645755775d982e6565a52f36.webp)

![Step 2, Update the details (2 of 3): the screen at this step, with the control for the step outlined](/assets/images/update-or-retire-charge-item-definition-3-c6a6e77901fea316d226b4f4fd09cd57.webp)

![Step 2, Update the details (3 of 3): the screen at this step, with the control for the step outlined](/assets/images/update-or-retire-charge-item-definition-4-b514d8931391ac8d3bc286c9123c7b16.webp)

### 3. Add or remove tags

On the page of the definition, select **Add Tags**.

Note: If the definition already has tags, Care shows the tags in place of **Add Tags**. Select the tags to open the same list.

To find a tag, type in the **Search tags...** box.

Select a tag to add it. Select a selected tag again to remove it.

If the tag lets you change its expiry, choose the expiry before Care applies the tag.

Note: Care saves each change at once and shows **Tags updated successfully**.

Note: A definition can have only one tag from the same parent tag. If you select a second one, Care replaces the first.

Note: On a phone, the tags open in a drawer named **Manage Tags**.

![Step 3, Add or remove tags (1 of 4): the screen at this step, with the control for the step outlined](/assets/images/update-or-retire-charge-item-definition-5-7dc114f432d52ab99b48e4b967d0cd4d.webp)

![Step 3, Add or remove tags (2 of 4): the screen at this step, with the control for the step outlined](/assets/images/update-or-retire-charge-item-definition-6-eb7e5d739843358d07020f55e021a2b4.webp)

![Step 3, Add or remove tags (3 of 4): the screen at this step, with the control for the step outlined](/assets/images/update-or-retire-charge-item-definition-7-353fcd7099972940c42153f9140b1e25.webp)

![Step 3, Add or remove tags (4 of 4): the screen at this step, with the control for the step outlined](/assets/images/update-or-retire-charge-item-definition-8-a49fca1301c5723d008dec852f400073.webp)

### 4. Retire the charge item definition

Do this step only if your facility no longer uses the definition.

On the page of the definition, select **Delete**. Care shows this button only while the status is not Retired.

Care opens the **Delete charge item definition** dialog.

Select **Confirm**.

Note: Care does not remove the definition. Care sets its status to Retired.

Caution: Retiring does not unlink the definition. Activity definitions, products and schedules that already use it keep it, and Care still creates charge items from it.

![Step 4, Retire the charge item definition (1 of 3): the screen at this step, with the control for the step outlined](/assets/images/update-or-retire-charge-item-definition-9-af89dfd4f928c1d3af16131bbedc93f1.webp)

![Step 4, Retire the charge item definition (2 of 3): the screen at this step, with the control for the step outlined](/assets/images/update-or-retire-charge-item-definition-10-f98e798953718bfb33657ead5a658fa3.webp)

![Step 4, Retire the charge item definition (3 of 3): the screen at this step, with the control for the step outlined](/assets/images/update-or-retire-charge-item-definition-11-f5148d7aa4ec763e6fbca447109def00.webp)

## Expected Outcome

* After **Update**, Care shows **Charge item definition updated successfully** and opens the category of the definition.
* After a tag change, Care shows **Tags updated successfully**.
* After **Confirm**, Care sets the status to Retired, shows **Definition deleted successfully** and opens the category of the definition.
* A retired definition no longer shows in the default list of its category. Select Retired in the **Status** filter to see it.

## Related

Concepts:

* [Charge Item Definition](https://docs.ohc.network/concepts/definitions/charge-item-definition.md)
* [Tag](https://docs.ohc.network/concepts/platform/tagging.md)

Flows:

* [Create a charge item definition](https://docs.ohc.network/flows/definitions/charge-item-definition/create-charge-item-definition.md)
* [Set taxes and discounts for a charge item category](https://docs.ohc.network/flows/definitions/charge-item-definition/set-category-taxes-and-discounts.md)
* [Create a tag](https://docs.ohc.network/flows/platform/tagging/create-a-tag.md)
* [View tags](https://docs.ohc.network/flows/platform/tagging/view-tags.md)
