# Create a tag

## Overview

[Video: Create a tag](https://www.youtube.com/watch?v=-QNOU4tc-aY)

This flow describes how to create a root [tag](https://docs.ohc.network/concepts/platform/tagging.md) in Care. A root tag has no parent tag.

## Pre-requisites

* You are a member of the facility where you create the tag.
* If you create a tag for the whole instance without a facility, you are a superuser.
* You have the permissions listed below.

## Permissions

| Permission | Access |
| - | - |
| Can Create Tag Config on Facility | Lets you create a tag for the facility. Facility Admin and Admin have this permission. |

## Steps

### 1. Open the tag configuration list

Open the Settings area of the facility.

Select **Tag config**.

![The Tag config page in the facility settings, with Tag config outlined in the settings menu and the list of the facility\&#39;s tags.](/assets/images/create-a-tag-1-23a108bcd37ce3888f9a802aa984c52b.webp)

### 2. Start a new tag

Select **Add tag config**.

Care opens a sheet on desktop. On mobile, Care opens a drawer.

![The Tag config page with the Add tag config button outlined.](/assets/images/create-a-tag-2-e7c66adcb97dcb04fba1929821093cfd.webp)

### 3. Complete the tag form

Enter the details of the tag.

| Components | What it captures |
| - | - |
| Display name | The name of the tag that users see. This field is required. |
| Category | The type of the tag. Select Diet, Drug, Lab, Admin, Contact, Clinical, Behavioral, Research, Advance Directive, or Safety. The default value is Clinical. This field is required. |
| Resource | The record type that accepts the tag, for example Encounter, Service Request, Patient, or Account. This field is required. |
| Priority | The sort order of the tag. The default value is 100. This field is required. |
| Status | The state of the tag. Select Active or Archived. The default value is Active. This field is required. |
| Description | More information about the use of the tag. This field is optional. |
| Color | The color of the tag's badge on records. Select **Assign Color** to give the tag a color, and **Shuffle Color** to pick another one. Care shows a preview of the badge. This field is optional. |
| Expire automatically | Whether Care removes the tag from a record after a set time. The default value is off. |
| Expire after | The time after which Care removes the tag, in days, hours, and minutes. Care shows this field only when Expire automatically is on. Then the field is required. |
| Allow changing expiry | Whether users can set their own expiry when they apply the tag. The default value is off. |
| Facility Organisation | The department that manages the tag. The detail page of the tag shows it as Managing Organization. This field is optional. |

Note: You cannot change the Resource value after you create the tag.

Note: The Priority value must not be negative.

Note: Expire automatically, Expire after, and Allow changing expiry are in the Expiry section of the form. To learn what they do when a user applies the tag, read [Expiry](https://docs.ohc.network/concepts/platform/tagging.md#expiry).

Note: Enter whole numbers in Expire after. If the total time is zero, Care shows the message "Enter a duration greater than zero". If the total time is more than 3650 days, Care shows the message "Expiry can't be longer than 3650 days".

![The Add tag config sheet with Display name \&quot;Pre-procedure Fasting\&quot; outlined, Category Diet, Resource Encounter, Priority 100, Status Active and a description entered.](/assets/images/create-a-tag-3-1c461082dc82536608fcb7b096b97279.webp)

![The Expiry section of the form, outlined: Expire automatically on, Expire after 12 hours, and Allow changing expiry on. Facility Organisation is empty.](/assets/images/create-a-tag-4-4935ce6d69ed374cabd134fc615beff9.webp)

### 4. Save the tag

Select **Create tag config**.

Note: **Create tag config** stays disabled until you change a field in the form.

![The bottom of the Add tag config sheet with the Create tag config button outlined.](/assets/images/create-a-tag-5-cde7f4e6761c1aef6ff71d20c9b0a0ea.webp)

![The tag list after saving, with the new row Pre-procedure Fasting (Diet, Encounter, Active) outlined and the message \&quot;Tag Config created successfully\&quot;.](/assets/images/create-a-tag-6-afd89672a888824eca8c06b8a4681176.webp)

## Expected Outcome

* Care shows the message "Tag Config created successfully".
* The new tag appears in the tag list.

## Related

Concepts:

* [Tag](https://docs.ohc.network/concepts/platform/tagging.md)

Flows:

* [Create a child tag](https://docs.ohc.network/flows/platform/tagging/create-a-child-tag.md)
* [View tags](https://docs.ohc.network/flows/platform/tagging/view-tags.md)
* [Edit a tag](https://docs.ohc.network/flows/platform/tagging/edit-a-tag.md)
* [Archive a child tag](https://docs.ohc.network/flows/platform/tagging/archive-a-child-tag.md)
