# Record a diagnosis

## Overview

[Video: Record a diagnosis](https://www.youtube.com/watch?v=X9cFTDx_i00)

This flow describes how to record a diagnosis of a patient in Care. Care stores each diagnosis as a [condition](https://docs.ohc.network/concepts/clinical/condition.md). You record the diagnosis in an encounter of the patient, with the Diagnosis form of that encounter.

Symptoms and diagnoses are both conditions. Care records them with separate forms, and each form searches its own list of terms. To record a symptom, see [Record a symptom](https://docs.ohc.network/flows/clinical/condition/record-symptom.md).

## Pre-requisites

* The patient has an open encounter at your facility, and you record the diagnosis in that encounter.
* If the encounter status is **Completed**, **Cancelled**, **Discontinued** or **Entered in error**, the encounter is closed. Care then does not show the controls that open the Diagnosis form, and Care refuses the save.
* You open the encounter from your facility. Care shows the controls that add diagnoses only on an encounter that you open from a facility.
* If you view another encounter of the patient from inside this encounter's page, Care does not show these controls.
* If your facility customized the encounter workspace, your **Overview** tab can differ from the one in these steps.
* You have the permissions listed below.

## Permissions

| Permission | Access |
| - | - |
| Update Encounter related clinical data | Lets you save the Diagnosis form. You need it in the encounter, and the encounter must be open. By default, the Doctor, Nurse and Facility Admin roles hold it. By default, the Staff role does not hold it. |
| Can view clinical data about patients | Shows you the content of the **Overview** tab and the **Diagnosis** quick action, and lets the form load the diagnoses of the encounter. You need it through a role on the patient. By default, the Staff, Doctor, Nurse and Facility Admin roles hold it. |
| Can Read encounter related clinical data | Shows you the content of the **Overview** tab and the **Diagnosis** quick action, and lets the form load the diagnoses of the encounter. It applies to this encounter only. You need it in the encounter. By default, the Doctor, Nurse and Facility Admin roles hold it. |
| Can list patients | Lets Care open the encounter. You need it through a role on the patient. By default, the Staff, Doctor, Nurse, Administrator, Facility Admin, Volunteer and Pharmacist roles hold it. |
| Can Read encounter | Lets Care open the encounter. You need it in the encounter. By default, the Doctor, Nurse and Facility Admin roles hold it. |

For this flow, you need all of these:

* To open the encounter: "Can list patients" through a role on the patient, or "Can Read encounter" in the encounter.
* To see the **Overview** content and fill in the form: "Can view clinical data about patients" through a role on the patient, or "Can Read encounter related clinical data" in the encounter.
* To save: "Update Encounter related clinical data" in the encounter, while the encounter is open.

You hold a permission in the encounter when a role in one of these departments gives it to you:

* A department that the encounter is assigned to, or a parent department of it.
* The root department of the facility, "Administration".
* A department of the encounter's current location.

You have a role on the patient when you hold a role in one of these places:

* A department of an open encounter of the patient, or of the current location of that encounter.
* An organization that the patient belongs to.
* The patient itself, when you were given a role directly on the patient.

By default, if you hold the Doctor, Nurse or Facility Admin role in a department of this open encounter, you have all these permissions.

By default, the Staff role holds "Can view clinical data about patients" and does not hold "Update Encounter related clinical data". With only the Staff role, you see the **Diagnosis** quick action and you can fill in the form. Care then refuses the save and shows "Failed to submit questionnaire".

The term search in the form needs no other permission.

Note: Your deployment can let every user open every patient. This setting is off by default.

## Steps

### 1. Open the encounter

Open the patient's encounter from your facility, so that Care shows the controls that add diagnoses. To find the patient, see [View a patient's profile](https://docs.ohc.network/flows/clinical/patient/view-patient-profile.md).

If another tab of the encounter is open, select the **Overview** tab.

![The quick actions outlined on the Overview tab of the encounter](/assets/images/record-diagnosis-1-45fdcd0456d417d7c06ec9b9cda9b2be.webp)

### 2. Open the Diagnosis form

Select the **Diagnosis** quick action.

Care opens the Diagnosis form. Its title is "Diagnosis".

The Diagnosis form is a built-in questionnaire, so its messages say "questionnaire".

For the first diagnosis of the encounter, use the quick action. The **Diagnoses** panel shows on the **Overview** tab only when it has a diagnosis to list. It lists only diagnoses with the status **Active**, **Recurrence** or **Relapse** that are not marked as entered in error.

If the encounter already has diagnoses, the form shows them as rows. To change a saved diagnosis, see [Update a symptom or diagnosis](https://docs.ohc.network/flows/clinical/condition/update-condition.md).

You can also open the same form in these ways:

* If the **Diagnosis** quick action is on the screen, press D.
* Select **Encounter Actions**, or press Shift+E. In the dialog that opens, select **Add Diagnosis** under **Encounter Actions**.
* If the **Overview** tab shows the **Diagnoses** panel, select the **Edit** pencil on the panel.

These steps use a wide browser window, where the form shows each diagnosis as a row in a table.

![The Diagnosis quick action outlined on the Overview tab of the encounter](/assets/images/record-diagnosis-2-8c2770ff6aa2eb6561bcdcc76b2b34db.webp)

### 3. Search for the diagnosis

Select the search box. It reads **Add Diagnosis**, or **Add another Diagnosis** when the form already has diagnoses.

Type the name of the diagnosis. Care shows matching terms while you type, from the first character.

Note: The search uses the "Condition" [value set](https://docs.ohc.network/concepts/definitions/valueset.md) of your deployment. By default, it holds SNOMED CT terms. The Symptom form uses another value set, "Symptom". By default, the two value sets have no terms in common.

To copy a diagnosis from an earlier encounter of the patient, see [Add a symptom or diagnosis from past records](https://docs.ohc.network/flows/clinical/condition/add-condition-from-past-records.md).

![The Diagnosis form with Type 2 diabetes typed in the Add Diagnosis search, and the first result, Type 2 diabetes mellitus, outlined](/assets/images/record-diagnosis-3-d313721776fda1254387a621d6b6c55c.webp)

### 4. Select the diagnosis

Select the diagnosis in the results. Care adds a new row to the form.

On a phone, Care first opens a drawer titled **Select Diagnosis**, with the buttons **Back** and **Done**. Select **Done** to add the row.

The new row shows the badge **Diagnosis**.

If the form already lists the same diagnosis, Care shows the warning "Diagnosis already exists!". Care does not add the row. A row that is marked as entered in error does not count.

![The Diagnosis form with a new Type 2 diabetes mellitus row outlined, with its Diagnosis badge, today\&#39;s onset date, Active, Moderate and Confirmed](/assets/images/record-diagnosis-4-cf4a2d66f175cf39dd8eb025992f22b8.webp)

### 5. Set the values of the diagnosis

The new row starts with the values below. Change them if necessary.

| Components | What it captures |
| - | - |
| **Diagnosis** | The diagnosis that you selected. You cannot change it in the row. |
| **Onset Date** | The day when the diagnosis started. The default is today. You cannot pick a date after today. After you save, you cannot change it. |
| **Status** | **Active**, **Recurrence**, **Relapse**, **Inactive**, **Remission** or **Resolved**. The default is **Active**. |
| **Severity** | **Severe**, **Moderate** or **Mild**. The default is **Moderate**. The list has no empty choice. |
| **Verification** | **Unconfirmed**, **Provisional**, **Differential**, **Confirmed** or **Refuted**. The default is **Confirmed**. **Entered in Error** is not offered for a new diagnosis. |

To add a note, select the button with three vertical dots in the **Action** column of the row. This button opens the row menu.

In the row menu, select **Add notes**. Type the note in the field that reads **Enter additional notes**.

To hide the note field, select **Hide notes**. To show it again, select **Show notes**.

To take out a new row that you added by mistake, open the row menu. Select **Remove Diagnosis**. Care takes the row out of the form.

![The Verification list of the Type 2 diabetes mellitus row open, with Provisional outlined](/assets/images/record-diagnosis-5-bc7f6b92b1ab74b829989563353bc511.webp)

![The Type 2 diabetes mellitus row with Verification set to Provisional, outlined](/assets/images/record-diagnosis-6-1efa5a1d0090146d0e8f946770e66bf6.webp)

### 6. Add more diagnoses

To record another diagnosis, repeat steps 3 to 5. The search box now reads **Add another Diagnosis**.

![A second row, Hypertensive disorder, added below the Type 2 diabetes mellitus row and outlined](/assets/images/record-diagnosis-7-3c9b12b83e7d1d0967a3b93ba497cb75.webp)

### 7. Save the diagnoses

Select **Save Changes**, next to **Cancel**. You can also press Shift+Enter.

Care saves the diagnoses together. If Care refuses one diagnosis, it saves none of them.

The Diagnosis form does not offer **Save as Draft**.

![The Save Changes button outlined at the top of the Diagnosis form](/assets/images/record-diagnosis-8-6709c92ca67edf1d6cd9cc0206ff5dee.webp)

![The encounter Overview with the message Questionnaire submitted successfully and the Diagnoses panel listing Hypertensive disorder and Type 2 diabetes mellitus, outlined](/assets/images/record-diagnosis-9-4393efb4cbcf0f921abecc7352295048.webp)

## Expected Outcome

* Care shows the message "Questionnaire submitted successfully".
* If its status is **Active**, **Recurrence** or **Relapse**, the diagnosis shows in the **Diagnoses** panel on the **Overview** tab. If the panel was not shown before, it shows now.
* The panel shows 14 diagnoses at a time. To see more, select **Load More**.
* In the same case, the diagnosis also shows on the **Past Diagnoses** tab of the patient's clinical history. See [View a patient's symptoms and diagnoses](https://docs.ohc.network/flows/clinical/condition/view-clinical-history.md).
* Each saved diagnosis also shows among the [questionnaire responses](https://docs.ohc.network/concepts/clinical/questionnaire-response.md) of the encounter, as an entry titled "Diagnosis".

If you record a diagnosis with the status **Inactive**, **Remission** or **Resolved**, the **Diagnoses** panel does not list it. The **Past Diagnoses** tab also does not list it. The header of the panel counts it as resolved, for example "2 active · 1 resolved". If the panel has no other diagnosis to list, the panel does not show. The Diagnosis form still shows the diagnosis as a row.

If Care refuses the save, it shows the message "Failed to submit questionnaire". Care saves nothing.

| If you see | What it means | What to do |
| - | - | - |
| "Failed to submit questionnaire" | You do not hold "Update Encounter related clinical data" in the encounter. By default, a user with only the Staff role is in this case. | Ask a user who holds the permission in the encounter to record the diagnosis. By default, the Doctor, Nurse and Facility Admin roles hold it. You can also ask your administrator for the permission. |
| "Failed to submit questionnaire" | The encounter is closed. Care refuses every save on a closed encounter, also when you hold the permission. | Record the diagnosis in an open encounter of the patient. |
| "Nothing to submit yet — answer at least one question" | The Diagnosis form already lists diagnoses, and you did not add or change any of them. Care sent nothing. | Add a diagnosis. Then select **Save Changes** again. |
| "You do not have permission to view this encounter", and Care takes you back | You can read neither this encounter nor its clinical data. | Ask your administrator for the permissions listed above. |
| "You do not have permission to view clinical data for this encounter" on the **Overview** tab | You do not hold "Can view clinical data about patients" through a role on the patient. You also do not hold "Can Read encounter related clinical data" in the encounter. | Ask your administrator for the permissions listed above. |
| No **Diagnosis** quick action and no **Edit** pencil | The encounter is closed, or you did not open it from your facility. You can also be viewing another encounter of the patient from inside this encounter's page. | Use an open encounter of the patient, and open it from your facility. |

## Related

Concepts:

* [Condition](https://docs.ohc.network/concepts/clinical/condition.md)
* [Encounter](https://docs.ohc.network/concepts/clinical/encounter.md)
* [Questionnaire response](https://docs.ohc.network/concepts/clinical/questionnaire-response.md)
* [Value set](https://docs.ohc.network/concepts/definitions/valueset.md)

Flows:

* [Record a symptom](https://docs.ohc.network/flows/clinical/condition/record-symptom.md)
* [Add a symptom or diagnosis from past records](https://docs.ohc.network/flows/clinical/condition/add-condition-from-past-records.md)
* [Update a symptom or diagnosis](https://docs.ohc.network/flows/clinical/condition/update-condition.md)
* [Mark a symptom or diagnosis as entered in error](https://docs.ohc.network/flows/clinical/condition/condition-entered-in-error.md)
* [View a patient's symptoms and diagnoses](https://docs.ohc.network/flows/clinical/condition/view-clinical-history.md)
* [Create an encounter](https://docs.ohc.network/flows/clinical/encounter/create-encounter.md)
* [View a patient's profile](https://docs.ohc.network/flows/clinical/patient/view-patient-profile.md)
