# Edit a product

## Overview

[Video: Edit a product](https://www.youtube.com/watch?v=3MUpdnW_uIg)

This flow describes how to change the details of a [product](https://docs.ohc.network/concepts/supply/product.md) at your facility. A product is one batch of a Product Knowledge that your facility holds.

## Pre-requisites

* You belong to a department of the facility.
* Your facility has the product that you want to change. Care creates products when you receive stock. For the steps, see [Add a product](https://docs.ohc.network/flows/supply/product/add-product-instance.md).
* You have the permissions listed below.

## Permissions

| Permission | Access |
| - | - |
| Can Create Product on Facility | Lets you save your changes to the product. You must hold it in the facility's root organization, Administration. By default, the Facility Admin role holds this permission. |
| Can Read Product | Lets you see the **Products** list, open a product, and load it in the edit 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 this permission. |
| Can Read Product Knowledge | Lets you use the Product Knowledge filter on the **Products** list. The edit form also reads the facility's Product Knowledge when it opens. You can hold it in any department of the facility. By default, the Facility Admin, Administrator, Staff, Doctor, Nurse, Volunteer, and Pharmacist roles hold this permission. |
| Can Read Resource Category | Lets you open the categories in the Product Knowledge filter and in the charge item definition picker. You can hold it in any department of the facility. By default, the Facility Admin, Administrator, Staff, Doctor, Nurse, Volunteer, and Pharmacist roles hold this permission. |
| Can Read Charge Item Definition | Lets you see and select charge item definitions in the charge item definition picker. You can hold it in any department of the facility. By default, the Facility Admin, Administrator, Staff, Doctor, Nurse, Volunteer, and Pharmacist roles hold this permission. |

Note: Care shows **Edit** to every user who can open a product. If you hold Can Create Product on Facility only in departments other than Administration, Care does not save your changes.

## Steps

### 1. Open the products

1. Open your facility.
2. In the sidebar, select **Settings**.
3. In the settings sidebar, in the **Inventory** group, select **Product**.

Care opens the **Products** page.

![The facility settings sidebar with Product outlined in the Inventory group](/assets/images/edit-product-instance-1-bc084ff5d5fdb8080dfe539220aab6fb.webp)

### 2. Find the product

Each row is one product. **Name** shows the Product Knowledge of the product. The list shows the newest products first.

Use **Lot Number** and **Expires** to find the batch that you want to change.

![The Products list with the row of the product outlined](/assets/images/edit-product-instance-2-065608ab7ebc52ca8d968efbcc1235d9.webp)

Note: The list shows only Active products until you change the **Status** filter. To see products with any status, set **Status** to **All**.

Note: To see only the products of one Product Knowledge, select it in the Product Knowledge filter above the list.

### 3. Open the product

Select **View** on the row of the product. Care opens the product page.

![The Products list with the View button of the product outlined](/assets/images/edit-product-instance-3-2bce285f0d2b89093d9fd753d4df9a02.webp)

Make sure that the **Product Details** card shows the batch that you want to change.

Note: Selecting the row itself does not open the product. Use the buttons in the row.

Note: To open the edit form directly, select **Edit** on the row. Then go to step 5.

Note: On a narrow screen, the list shows cards instead of rows. Each card has the same **View** and **Edit** buttons.

### 4. Start the edit

Select **Edit**. Care opens the **Edit Product** form with the current details of the product.

![The product page with the Edit button outlined](/assets/images/edit-product-instance-4-f2fea42ff419696ed64f933e4f5f7902.webp)

### 5. Change the details

Change the fields that you want to update.

| Components | What it captures |
| - | - |
| Status | The status of the product: **Active**, **Inactive**, or **Entered in Error**. |
| Lot Number | The manufacturing lot or batch number. |
| Expiration Date | The date after which the product should not be used. You enter a date only, with no time. This field is required. |
| Standard Pack Size | The number of units in one pack of the batch. This field is optional. |
| Purchase Price | The purchase price of one unit, not of one pack. This field is optional. |
| Charge Item Definition | The charge item definition that Care uses when it makes charges for this product. The field is in the **Billing Information** section. This field is optional. |

To select a charge item definition, open the picker under **Charge Item Definition**. Then do one of these steps:

* Open a category. Then select a charge item definition in it. A category can contain other categories.
* Type the title in **Search charge item definitions**. Then select the charge item definition in the results.

The picker shows only Active charge item definitions of your facility.

![The Edit Product form with the charge item definition picker open on a category and a charge item definition outlined](/assets/images/edit-product-instance-5-cdc6876f9ef0f19bde04aedfb6158859.webp)

![The Edit Product form with the new Standard Pack Size and the selected charge item definition outlined](/assets/images/edit-product-instance-6-4289ce06ad5fa8a947ec18f3138d163f.webp)

Note: The form has no Product Knowledge field. You cannot change the Product Knowledge of a product.

Note: You cannot remove the charge item definition from a product. You can only replace it with a different one.

Note: You can clear the charge item definition in the picker. If you then save, Care keeps the charge item definition that the product had.

Note: If you clear **Purchase Price** and then save, Care keeps the purchase price that the product had.

Note: Care has no delete action for products.

Note: Care does not offer an **Inactive** or **Entered in Error** product as an existing batch when you receive stock. The **Products** list also hides such a product until you change the **Status** filter.

### 6. Save the changes

Select **Update**. Care shows **Product updated successfully** and opens the product page.

![The Edit Product form with the Update button outlined](/assets/images/edit-product-instance-7-3eefb01f083778748fa147fbd652f657.webp)

![The product page after the update, with the Charge Item Definition card outlined](/assets/images/edit-product-instance-8-6504251b6a700781269b2677b1698ca3.webp)

Note: Until you change a field, **Update** is unavailable.

Note: To leave the form without saving, select **Cancel**.

If Care shows a message, use this table.

| If Care shows | What to do |
| - | - |
| Cannot write product | You do not hold Can Create Product on Facility in Administration. Ask your facility administrator for a role that holds it in Administration, for example Facility Admin. |
| **Required** under **Expiration Date** | The product has no expiration date. Enter the expiration date. Then select **Update**. |

## Expected Outcome

* Care saves the new details of the product.
* The product page shows the new details in the **Product Details** card.
* If you selected a different charge item definition, the **Charge Item Definition** card shows it.

## Related

Concepts:

* [Product](https://docs.ohc.network/concepts/supply/product.md)
* [Product Knowledge](https://docs.ohc.network/concepts/definitions/product-knowledge.md)
* [Charge Item Definition](https://docs.ohc.network/concepts/definitions/charge-item-definition.md)

Flows:

* [Add a product](https://docs.ohc.network/flows/supply/product/add-product-instance.md)
* [Update or retire product knowledge](https://docs.ohc.network/flows/supply/product/edit-retire-catalog-entry.md)
