Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
228 changes: 157 additions & 71 deletions versioned_docs/version-3.1/concepts/clinical/patient.mdx

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2,63 +2,119 @@
sidebar_position: 5
---

# Manage patient identifiers
# Manage a patient's identifiers

## Overview

This flow describes how to set, view, and change the identifiers of a [patient](../../../concepts/clinical/patient) in Care.
This flow describes how to enter, change and see the identifiers of a [patient](../../../concepts/clinical/patient) in Care. The registration form and the update form show the deployment-wide identifiers: the identifiers that are set up for every facility of your deployment.

Identifiers name a patient in a way that goes beyond the name and the phone number. A national ID and a facility-specific ID are two examples. An administrator configures each identifier type with these properties:

- Required or optional for every patient.
- Unique. No two patients share the same value.
- Validated against a specific format.
- Available at one facility only, or across the whole instance.
- Auto-generated by Care. You cannot enter or edit an auto-generated value.
<iframe
src="https://www.youtube-nocookie.com/embed/TKMZo-wnqAM"
title="Manage a patient's identifiers"
width="720"
height="450"
style={{maxWidth: '100%', height: 'auto', aspectRatio: '16 / 10', border: 0}}
allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerPolicy="strict-origin-when-cross-origin"
allowFullScreen
></iframe>

## Pre-requisites

- An administrator of a facility.
- A superuser has set up identifiers for your deployment, and they are active.
- If you enter identifiers for a new patient, you can register patients. See [Register a patient](./register-patient.mdx).
- If you change the identifiers of a registered patient, you can update that patient. See [Update a patient's details](./update-patient-details.mdx).
- You have the permissions listed below.

## Permissions

| Permission | Access |
| --- | --- |
| Can Create Patient | Set the identifiers of a patient at registration. |
| Can Update a Patient's data | Change the identifiers of a patient who is registered in Care. |
| Can Create Patient | Enter identifiers when you register a patient. You can hold this permission in any department or team of a facility, in a government organization, or in a responsibility. By default, the Staff, Doctor, Nurse, Administrator and Facility Admin roles hold this permission, and so does the Admin role of a responsibility. |
| Can Update a Patient's data | Change the identifiers of a registered patient. Care shows **Edit** in **General Info** only if you hold it. You need this permission through a role on the patient. By default, the Staff, Doctor, Nurse, Administrator and Facility Admin roles hold this permission. |
| Can view clinical data about patients | Steps 2 and 4: open the patient's profile. You need it through a role on the patient. By default, the Staff, Doctor, Nurse and Facility Admin roles hold it. |
| Can list patients | Steps 2 and 4: open the patient's profile, in place of Can view clinical data about patients. You need it in a government organization that covers the patient. If you are assigned to the patient on the **Users** tab, you need neither of these two permissions. By default, the Staff, Doctor, Nurse, Volunteer and Administrator roles hold it. The Pharmacist and Facility Admin roles hold it too, but Care does not offer them for a government organization. |
| Can Read Tag Config | Steps 2 and 4: open the profile inside a facility. Hold it in the facility's Administration department or in one of its departments or teams. A role in a government organization does not count. By default, the Facility Admin, Administrator, Staff, Doctor, Nurse, Volunteer and Pharmacist roles hold it. |

To see **Add New Patient** at the top of **Search patients**, you need Can Create Patient in this facility. [Register a patient](./register-patient.mdx) lists the other permissions on that path.

## Steps

### 1. Set the identifiers at registration
### 1. Enter identifiers when you register a patient

Open the **Register New Patient** form. See [Register a patient](./register-patient.mdx).

Each identifier field has the name of the identifier as its label. The description of the identifier shows under the label.

The identifier fields are in these places:

| Place | Identifiers |
| --- | --- |
| **Patient Basics** | The required identifiers. Care marks each one as required. |
| **Additional Details** | The optional identifiers, with no required mark. |
| End of **Additional Details** | The identifiers that Care generates. You cannot type in these fields. They show "Auto-generated on Save". |

Enter a value for each required identifier. If you leave one empty, Care shows "This field is required".

Enter a value for each optional identifier that you know.

Select **Register Patient**.

After Care registers the patient, it fills the values of the generated identifiers.

Care does not fill a generated identifier when you update a patient. A patient who was registered before the identifier was set up stays without a value for it.

Note: The forms show only deployment-wide identifiers. An identifier that one facility sets up does not show on these forms.

Note: Care can also keep identifiers itself, from the patient's phone number and name. The forms and the profile do not show these identifiers.

### 2. Change the identifiers of a registered patient

Open the patient's profile inside the facility. In **General Info**, select **Edit**. See [Update a patient's details](./update-patient-details.mdx).

The identifier fields show the patient's current values.

Change a value, or enter a value for an identifier that is empty.

To remove an optional identifier from the patient, clear its field.

You cannot clear a required identifier. If you leave it empty, Care shows "This field is required".

Select **Update**.

![The Hospital Card Number field outlined on the update form, with a value typed in it](/media/clinical/patient/manage-patient-identifiers-2.png)

![The General Info section of the patient's profile with the Edit button outlined](/media/clinical/patient/manage-patient-identifiers-1.png)

### 3. Correct a value that Care refuses

When you save either form, Care checks each identifier value:

- If a required identifier is empty, the form shows "This field is required" and does not save.
- A unique identifier cannot have the same value as another patient. Otherwise Care shows a message that ends with "is not unique".
- A value must match the set format of its identifier. Otherwise Care shows a message that ends with "is not valid".

Correct the value and save again.

1. Register the patient. See [Register a patient](./register-patient.mdx).
2. Enter a value for every required identifier.
4. Skip the identifiers that Care generates. You cannot enter these values.
### 4. See the patient's identifiers

Note: Which identifiers are required, optional, or auto-generated depends on your deployment's configuration. The scope of an identifier also depends on this configuration.
Open the patient's profile. See [View a patient's profile](./view-patient-profile.mdx).

### 2. See the identifiers of a patient
On the **Demography** tab, go to the **Identifiers** section. It shows the name and the value of each identifier.

1. Open the profile of the patient. See [View a patient's profile](./view-patient-profile.mdx).
2. Go to the "Identifiers" section. This section shows all the identifiers on file for the patient.
The **Identifiers** section has no **Edit**. To change a value, use the update form, as in step 2.

### 3. Change the identifiers of a patient
Note: Registering a patient does not by itself let you open the patient's profile. You need a role on the patient, for example through an encounter.

1. Open the profile of the patient.
2. Edit the details of the patient. See [Update patient details](./update-patient-details.mdx).
3. Add a value for an identifier that has no value.
4. Change the value of an identifier that has a value.
5. Save the changes.
The header of the profile also shows each identifier, with its name and value.

Note: You cannot enter or edit an identifier that Care generates.
![The Identifiers section of the Demography tab outlined, showing Hospital Card Number and its value](/media/clinical/patient/manage-patient-identifiers-3.png)

## Expected Outcome

- The "Identifiers" section of the patient profile shows the identifiers that you entered.
- Care generates the values of the auto-generated identifiers.
- Care rejects a value that does not match the format of the identifier.
- Care rejects a value that another patient already uses, when the identifier is unique.
- When you open the patient's profile, its **Identifiers** section shows the values that you entered.
- After registration, the generated identifiers have values.
- If you cleared an identifier field on the update form, the patient no longer has that identifier.

## Related

Expand All @@ -69,5 +125,6 @@ Concepts:
Flows:

- [Register a patient](./register-patient.mdx)
- [Update a patient's details](./update-patient-details.mdx)
- [View a patient's profile](./view-patient-profile.mdx)
- [Update patient details](./update-patient-details.mdx)
- [Search for a patient](./search-patient.mdx)
Original file line number Diff line number Diff line change
Expand Up @@ -6,55 +6,146 @@ sidebar_position: 6

## Overview

This flow describes how to add and remove tags on a [patient](../../../concepts/clinical/patient) in Care. Tags are labels that mark or categorize a patient, separate from clinical data.
This flow describes how to apply [tags](../../../concepts/platform/tagging.mdx) to a [patient](../../../concepts/clinical/patient) and how to remove them. You can do this from the patient's profile or from Patient Home. Care saves each change at once, so there is no Save button. When you register a patient, you can also choose deployment-wide tags; see [Register a patient](./register-patient.mdx).

<iframe
src="https://www.youtube-nocookie.com/embed/cascNuR0viA"
title="Manage patient tags"
width="720"
height="450"
style={{maxWidth: '100%', height: 'auto', aspectRatio: '16 / 10', border: 0}}
allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerPolicy="strict-origin-when-cross-origin"
allowFullScreen
></iframe>

## Pre-requisites

- The patient is registered in Care.
- You can access the patient's profile.
- If you start from the profile, you can open the patient's profile. See [View a patient's profile](./view-patient-profile.mdx).
- If you start from Patient Home, you opened Patient Home for the patient. See [Open Patient Home](./open-patient-home.mdx).
- The tag that you want is set up for patients and is active. See [Create a tag](../../platform/tagging/create-a-tag.mdx).
- You have the permissions listed below.

## Permissions

| Permission | Access |
| --- | --- |
| Can Update a Patient's data | Add and remove tags on an existing patient. |
| Can Update a Patient's data | Apply and remove tags on this patient. You need it through a [role on the patient](../../../concepts/clinical/patient). On the profile, Care shows **Edit** in **Patient Tags** only if you hold it. By default, the Staff, Doctor, Nurse, Administrator and Facility Admin roles hold it. |
| Can Apply Tag Config to Resources | Apply or remove each tag. Where you need it depends on the tag. If a department manages the tag, you need it in that department or in one above it. If an organization manages the tag, you need it in that organization or in one above it. If no one manages a facility tag, you need it in any department or team of that facility. Its Administration department counts too. If no one manages a deployment-wide tag, you need it in any department or team of any facility. By default, the Staff, Doctor, Nurse, Pharmacist and Facility Admin roles hold it. The Administrator and Volunteer roles do not. |
| Can Read Tag Config | Inside a facility: open the profile or Patient Home, and see the facility's tags in the picker. Hold it in the facility's Administration department or in one of its departments or teams. A role in a government organization does not count. By default, the Staff, Doctor, Nurse, Pharmacist, Volunteer, Administrator and Facility Admin roles hold it. |
| Can view clinical data about patients | Open the patient. Care opens the patient when it loads the profile, and again for each tag change. You need it through a role on the patient. By default, the Staff, Doctor, Nurse and Facility Admin roles hold it. |
| Can list patients | Open the patient, in place of Can view clinical data about patients. You need it in a government organization that covers the patient. If you are assigned to the patient on the **Users** tab, you need neither of these two permissions to open the patient. By default, the Staff, Doctor, Nurse, Volunteer and Administrator roles hold it. The Pharmacist and Facility Admin roles hold it too, but Care does not offer them for a government organization. |

By default, a Staff, Doctor, Nurse or Facility Admin role gives every permission above for a tag that no one manages.

The role can be in a department of the patient's open encounter, or in one above it. A department of the encounter's current location also counts. So does the facility's Administration department, while the patient has an open encounter at the facility.

By default, the Pharmacist role can apply tags, but it cannot update the patient. So it cannot change the patient's tags.

## Steps

### 1. Open the patient's profile
### 1. Open the tag picker

Open the picker from one of these places:

- On the profile, Care opens the **Demography** tab first. In the **Patient Tags** section, select **Edit**.
- On Patient Home, select **Add Tags** on the patient card. If the patient has tags, the control reads **Manage Tags**.

On a phone, the picker opens as a drawer titled **Manage Tags**. On a larger screen, it opens as a drop-down menu.

Note: If **Patient Tags** has no **Edit**, you lack Can Update a Patient's data on this patient.

Note: On Patient Home, Care shows **Add Tags** or **Manage Tags** to every user who opens Patient Home.

![The Patient Tags section of the Demography tab with the Edit button outlined](/media/clinical/patient/manage-patient-tags-1.png)

### 2. Find the tag

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

The picker lists the tags under three headings.

| Heading | What it lists |
| --- | --- |
| **Selected Tags** | The tags that the patient has now. |
| **Tag Groups** | The tag groups. Each group has a **Group** badge. Select a group to see its tags, each with a checkbox. |
| **Other Tags** | The tags that are not in a group. |

A tag group is a parent tag with its child tags, as set up in tag configuration. See [Parent and child tags](../../../concepts/platform/tagging.mdx#parent-and-child-tags).

Inside a facility, the picker offers the facility's tags and the deployment-wide tags.

If you opened the profile from an organization's patient list, Care opened it without a facility. The picker then offers only deployment-wide tags. See [View an organization's patients](./view-organization-patients.mdx).

Open the profile of the patient that you want to tag. See [View a patient's profile](./view-patient-profile.mdx).
If Care has no tags to offer, the picker shows "No tags or groups found".

### 2. Find the Patient Tags section
![The tag picker outlined, with Search tags..., Selected Tags and Tag Groups](/media/clinical/patient/manage-patient-tags-2.png)

Go to the **Patient Tags** section. This section shows the current tags of the patient.
![The tags of the Care Programme group outlined, each with a checkbox, beside the tag picker](/media/clinical/patient/manage-patient-tags-3.png)

### 3. Open the tag picker
### 3. Apply a tag

Select **Edit** in the **Patient Tags** section. Care opens the tag picker.
Select a tag that the patient does not have.

### 4. Add or remove tags
If Care asks for an expiry, go to step 4.

Select a tag in the picker to add it to the patient. Remove a tag to take it off the patient.
If Care does not ask, it saves the tag at once and shows "Tags updated successfully".

### 5. Save the tags
When Care does not ask for an expiry, the tag gets its default expiry, if it has one.

Save your changes. Care updates the tags of the patient.
If the patient already has a tag from the same group, the new tag replaces it. A patient can have only one tag from each group.

Note: You can also add tags when you register a new patient. See [Register a patient](./register-patient.mdx).
### 4. Set the expiry

Do this step only if Care asks for an expiry.

Care asks when the setup of the tag lets you change its expiry. The step is titled "Set expiry for", followed by the tag name.

Enter the expiry in days, hours and minutes.

Below the fields, Care shows the default expiry of the tag. If the tag has no default, Care shows "Leave empty to apply without an expiry."

The expiry can be 3650 days at most. If it is longer, Care shows an error, and you cannot apply the tag.

Select **Apply tag**. Care saves the tag and shows "Tags updated successfully".

When the expiry passes, Care removes the tag from the patient later.

![The Set expiry for Diabetes Clinic step outlined, with 180 days entered and the Apply tag button](/media/clinical/patient/manage-patient-tags-4.png)

### 5. Remove a tag

Select a tag that the patient has. These tags are under **Selected Tags**.

Care removes the tag at once and shows "Tags updated successfully".

Note: If Care cannot save a change, it shows an error message. The picker then goes back to the tags that the patient had.

![The tag picker with the selected tag Follow-up Call Due outlined under Selected Tags](/media/clinical/patient/manage-patient-tags-5.png)

![The Patient Tags section outlined, showing the tag that remains after the change](/media/clinical/patient/manage-patient-tags-6.png)

## Expected Outcome

- The **Patient Tags** section shows the updated tags of the patient.
- Care shows "Tags updated successfully" after each change.
- The **Patient Tags** section shows one row for each tag. For a tag in a group, the row shows the group name and the tag name.
- The header of the profile shows the tags next to **Patient Tags**.
- On Patient Home, the patient card shows **Manage Tags**. If you removed every tag, it shows "No tags assigned" and **Add Tags**.

## Related

Concepts:

- [Patient](../../../concepts/clinical/patient)
- [Tag](../../../concepts/platform/tagging.mdx)

Flows:

- [Register a patient](./register-patient.mdx)
- [Open Patient Home](./open-patient-home.mdx)
- [View a patient's profile](./view-patient-profile.mdx)
- [Register a patient](./register-patient.mdx)
- [View an organization's patients](./view-organization-patients.mdx)
- [Create a tag](../../platform/tagging/create-a-tag.mdx)
- [Create a child tag](../../platform/tagging/create-a-child-tag.mdx)
- [View tags](../../platform/tagging/view-tags.mdx)
Loading
Loading