# Link requirements to an activity definition

## Overview

[Video: Link requirements to an activity definition](https://www.youtube.com/watch?v=Tw24gmiE-2Q)

This flow describes how to link specimen definitions, observation definitions and charge item definitions to an [activity definition](https://docs.ohc.network/concepts/definitions/activity-definition.md). It also describes how to choose the healthcare service and the locations. All of these are in the **Requirements** section of the activity definition form.

## Pre-requisites

* You are creating an activity definition, or you are editing one. See [Create an activity definition](https://docs.ohc.network/flows/definitions/activity-definition/create-activity-definition.md) or [Update or retire an activity definition](https://docs.ohc.network/flows/definitions/activity-definition/update-or-retire-activity-definition.md).
* The specimen definitions, observation definitions and charge item definitions that you want to link are Active and belong to your facility.
* You have the permissions listed below.

## Permissions

| Permission | Access |
| - | - |
| Can Create Activity Definition on Facility | Lets you save the activity definition with its requirements. You must hold it in the facility's root organization (**Administration**). By default, the Facility Admin role holds this permission. |
| Can Read Activity Definition | Lets you open an activity definition to edit it. You can hold it in any department of the facility. By default, the Facility Admin, Administrator, Staff, Doctor, Nurse and Volunteer roles hold this permission. |
| Can Read Specimen Definition | Lets you see the specimen definitions in **Select Specimen Requirements**. 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 Observation Definition | Lets you see the observation definitions in **Select Observation Requirements**. 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 the charge item definitions in **Select 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 this permission. |
| Can Read Resource Category | Lets you browse the charge item definition categories in **Select 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 this permission. |
| Can Read Healthcare Service | Lets you choose the **Healthcare Service**. 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 List Facility Locations | Lets you choose the **Locations**. Care lists only the locations of the departments where you hold it. If you hold it in the root organization, Care lists every location of the facility. By default, the Facility Admin, Administrator, Staff, Doctor, Nurse and Pharmacist roles hold this permission. |
| Can Create Specimen Definition on Facility | Needed only to make a new specimen definition with **Create New**. You must hold it in the root organization. By default, the Facility Admin role holds this permission. |
| Can Create Observation Definition on Facility | Needed only to make a new observation definition with **Create New**. You must hold it in the root organization. By default, the Facility Admin role holds this permission. |

By default, the Facility Admin role in the root organization holds every permission in this table.

## Steps

### 1. Open the Requirements section

In the activity definition form, go to the **Requirements** section.

![Step 1, Open the Requirements section: the screen at this step, with the control for the step outlined](/assets/images/link-requirements-to-activity-definition-1-a66f2bf4cb0bdcd34b40b6a6aca4a010.webp)

### 2. Link specimen requirements

1. Select **Select Specimen Requirements**.
2. Search for a [specimen definition](https://docs.ohc.network/concepts/definitions/specimen-definition.md).
3. Select the specimen definition.
4. Repeat for each sample that the service needs.

Care lists only the active specimen definitions of the facility. You can add the same specimen definition more than once.

To make a new specimen definition, select **Create New**. Care opens the specimen definition form in a panel. When you save it, Care closes the panel and adds the new definition to the list. Care does not select it for you, so select it in the list.

![Step 2, Link specimen requirements (1 of 2): the screen at this step, with the control for the step outlined](/assets/images/link-requirements-to-activity-definition-2-f91245d59473ca805df1325de8a286c6.webp)

![Step 2, Link specimen requirements (2 of 2): the screen at this step, with the control for the step outlined](/assets/images/link-requirements-to-activity-definition-3-07f62b41e7601aac68124342ee4e1098.webp)

### 3. Link observation requirements

1. Select **Select Observation Requirements**.
2. Search for an [observation definition](https://docs.ohc.network/concepts/definitions/observation-definition.md).
3. Select the observation definition.
4. Repeat for each result that the service records.

Care lists only the active observation definitions of the facility. You can add each observation definition only once.

To make a new observation definition, select **Create New**. It works the same way as for a specimen definition: select the new definition in the list after you save it.

![Step 3, Link observation requirements (1 of 2): the screen at this step, with the control for the step outlined](/assets/images/link-requirements-to-activity-definition-4-3ef34351a880e7289e2cad069a80f2d7.webp)

![Step 3, Link observation requirements (2 of 2): the screen at this step, with the control for the step outlined](/assets/images/link-requirements-to-activity-definition-5-09e5efac98c46b1961eefb8b017c95cc.webp)

### 4. Link charge item definitions

1. Select **Select Charge Item Definitions**.
2. Open the category that holds the [charge item definition](https://docs.ohc.network/concepts/definitions/charge-item-definition.md), or type its title to search.
3. Select each charge item definition that applies to the service. To remove one, select it again.

Care lists only active charge item definitions. Care has no **Create New** option here, so create the charge item definition first. Then link it.

Note: When a clinician orders the service, Care creates a charge for every linked charge item definition. This is also true for a charge item definition that is retired after you link it.

Note: Do not link a charge item definition that has a negative base price. If you do, Care cannot order the service and shows "Total price is less than 0".

![Step 4, Link charge item definitions (1 of 2): the screen at this step, with the control for the step outlined](/assets/images/link-requirements-to-activity-definition-6-a629f5693a80867fdd135be36bb909c4.webp)

![Step 4, Link charge item definitions (2 of 2): the screen at this step, with the control for the step outlined](/assets/images/link-requirements-to-activity-definition-7-8887b98055992af714fb68199ad39dab.webp)

### 5. Choose the healthcare service and the locations

1. In **Healthcare Service**, select the healthcare service that provides the service. This field is optional.
2. In **Locations**, select the locations where staff do the service.

![Step 5, Choose the healthcare service and the locations (1 of 2): the screen at this step, with the control for the step outlined](/assets/images/link-requirements-to-activity-definition-8-83e0d0c7345592dbc1324019c4f8402e.webp)

![Step 5, Choose the healthcare service and the locations (2 of 2): the screen at this step, with the control for the step outlined](/assets/images/link-requirements-to-activity-definition-9-108645e0522128ed1865336d92278bbd.webp)

### 6. Save the activity definition

For a new activity definition, select **Create**. For an activity definition that exists, select **Save**.

![Step 6, Save the activity definition (1 of 3): the screen at this step, with the control for the step outlined](/assets/images/link-requirements-to-activity-definition-10-c5db9985330dada3fdca608e6a5e9006.webp)

![Step 6, Save the activity definition (2 of 3): the screen at this step, with the control for the step outlined](/assets/images/link-requirements-to-activity-definition-11-a4dd15236f1dfe27ffc0f975d7d8034d.webp)

![Step 6, Save the activity definition (3 of 3): the screen at this step, with the control for the step outlined](/assets/images/link-requirements-to-activity-definition-12-d9f35f7a67e8a8d0220078242b4e0d42.webp)

## Expected Outcome

* Care saves the requirements with the activity definition.
* The activity definition page shows the requirements in the cards **Specimen Requirements**, **Observation Result Requirements**, **Charge Item Definitions**, **Healthcare Service** and **Locations**.
* The page calls the observation requirements **Observation Result Requirements**. The form calls them **Observation Requirements**.

## Related

Concepts:

* [Activity Definition](https://docs.ohc.network/concepts/definitions/activity-definition.md)
* [Specimen Definition](https://docs.ohc.network/concepts/definitions/specimen-definition.md)
* [Observation Definition](https://docs.ohc.network/concepts/definitions/observation-definition.md)
* [Charge Item Definition](https://docs.ohc.network/concepts/definitions/charge-item-definition.md)

Flows:

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