# Update or retire a specimen definition

## Overview

[Video: Update or retire a specimen definition](https://www.youtube.com/watch?v=b_YCgUibEik)

This flow describes how to change a [specimen definition](https://docs.ohc.network/concepts/definitions/specimen-definition.md) in your facility, and how to retire one that the facility no longer uses. It also describes how to make a retired specimen definition Active again.

## Pre-requisites

* The facility has the specimen definition that you want to change.
* You belong to a department of the facility.
* You have the permissions listed below.
* If you want to retire the specimen definition, its status is Draft or Active.

## Permissions

| Permission | Access |
| - | - |
| Can Create Specimen Definition on Facility | Lets you save changes to a specimen definition, retire it, or make it Active again. You must hold it in the facility's root organization (**Administration**); the same permission in another department is not enough. By default, the **Facility Admin** role holds this permission. |
| Can Read Specimen Definition | Lets you open the specimen definitions list, the details page and the edit form. Care also checks it when you save. 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. |

## Steps

### 1. Open the specimen definitions list

1. In the facility sidebar, select **Settings**.
2. In the settings sidebar, under **Clinical**, select **Specimen Definitions**.

Care shows the Active specimen definitions. To find a definition with another status, select the status in the **Status** filter. To find a definition by its title, type in the **Search definitions** box.

![Step 1, Open the specimen definitions list: the screen at this step, with the control for the step outlined](/assets/images/update-or-retire-specimen-definition-1-4715881357c47a8fec2406362bb4ed5d.webp)

### 2. Update the specimen definition

1. Find the specimen definition in the list.
2. Select **Edit** in its row.
3. In the **Update Specimen Definition** form, change the fields.
4. Select **Save**.

You can also select **View** in the row. Then select **Edit** on the details page.

The form has the same fields as the create form. For each field, see [Create a specimen definition](https://docs.ohc.network/flows/definitions/specimen-definition/create-specimen-definition.md).

* When you change the title, Care does not change the slug.
* To clear Collection, Collection Method or Body Site, select the x next to the value.
* If you do not hold the create permission in the root organization, Care shows "Access Denied to Specimen Definition".

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

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

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

### 3. Retire the specimen definition

Do these steps only when the facility no longer uses the specimen definition.

1. Find the specimen definition in the list.
2. Select **View** in its row.
3. Select **Delete**.
4. In the **Are you sure?** dialog, select **Confirm**.

The dialog shows a **Warning** with the title of the specimen definition.

Note: **Delete** does not remove the specimen definition. Care sets its status to Retired and keeps the record.

Note: Care does not show **Delete** for a specimen definition that is already Retired.

Note: After you retire a specimen definition, the activity definition form does not offer it.

If Care cannot retire the specimen definition, it shows **Error retiring specimen definition**.

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

![Step 3, Retire the specimen definition (2 of 3): the screen at this step, with the control for the step outlined](/assets/images/update-or-retire-specimen-definition-6-03e2f3f71240f15df671be58332b5535.webp)

![Step 3, Retire the specimen definition (3 of 3): the screen at this step, with the control for the step outlined](/assets/images/update-or-retire-specimen-definition-7-05f6e4b664ed21f8cf63ac9b97522e4a.webp)

### 4. Make a retired specimen definition Active again

Do these steps only if the facility needs the specimen definition again.

1. In the **Status** filter, select **Retired**.
2. Select **Edit** for the specimen definition.
3. Set **Status** to **Active**.
4. Select **Save**.

The activity definition form offers the specimen definition again.

![Step 4, Make a retired specimen definition Active again (1 of 4): the screen at this step, with the control for the step outlined](/assets/images/update-or-retire-specimen-definition-8-9da4fa27469b169d727e7eb1eee2b897.webp)

![Step 4, Make a retired specimen definition Active again (2 of 4): the screen at this step, with the control for the step outlined](/assets/images/update-or-retire-specimen-definition-9-c8b0c13c72a98d1c6ad70289a30772c6.webp)

![Step 4, Make a retired specimen definition Active again (3 of 4): the screen at this step, with the control for the step outlined](/assets/images/update-or-retire-specimen-definition-10-6a909ece96002dec2a7bfe527337fc46.webp)

![Step 4, Make a retired specimen definition Active again (4 of 4): the screen at this step, with the control for the step outlined](/assets/images/update-or-retire-specimen-definition-11-ae74ea3915eed7c37263def256cc34d4.webp)

## Expected Outcome

* After you update the specimen definition, Care shows **Specimen Definition updated**. Care opens the details page of the specimen definition.
* After you retire the specimen definition, Care shows **Specimen definition retired successfully**. Care opens the specimen definitions list.
* The retired specimen definition has the status Retired. The list shows it only when you select Retired in the **Status** filter.

## Related

Concepts:

* [Specimen Definition](https://docs.ohc.network/concepts/definitions/specimen-definition.md)

Flows:

* [Create a specimen definition](https://docs.ohc.network/flows/definitions/specimen-definition/create-specimen-definition.md)
* [Update or retire an activity definition](https://docs.ohc.network/flows/definitions/activity-definition/update-or-retire-activity-definition.md)
