# Set up observation interpretation

## Overview

[Video: Set up observation interpretation](https://www.youtube.com/watch?v=2SUCS1usxq4)

This flow describes how to add interpretation rules to an [observation definition](https://docs.ohc.network/concepts/definitions/observation-definition.md) in the **Observation Interpretation** section of its form. Care uses these rules to interpret each result, for example as Normal or High. A rule can depend on the age or gender of the patient, or on the class or tags of the encounter.

## Pre-requisites

* You belong to a department of the facility.
* You have the create form or the edit form of an observation definition open. See [Create an observation definition](https://docs.ohc.network/flows/definitions/observation-definition/create-observation-definition.md) or [Update or retire an observation definition](https://docs.ohc.network/flows/definitions/observation-definition/update-or-retire-observation-definition.md).
* You have the permissions listed below.

## Permissions

| Permission | Access |
| - | - |
| Can Create Observation Definition on Facility | Lets you save the form, which stores the rules. You must hold it in the facility's root organization (**Administration**). A role in a department is not enough: Care shows "Access Denied to Observation Definition". By default, the Facility Admin role holds this permission. |
| Can Read Observation Definition | Lets you open the **Observation Definitions** list and the edit form. Hold it in the root organization or in any department of the facility. By default, the Facility Admin, Administrator, Staff, Doctor, Nurse, Volunteer and Pharmacist roles hold it. |
| Can Read Tag Config | Needed only for an **Encounter Tags** condition. Lets you pick the tags. Hold it in the root organization or in any department of the facility. By default, the Facility Admin, Administrator, Staff, Doctor, Nurse, Volunteer and Pharmacist roles hold it. |

## Steps

### 1. Find the Observation Interpretation section

On the observation definition form, find the **Observation Interpretation** section, below **Basic Information**.

To add rules to a component, use the **Observation Interpretation** section inside that component.

The section heading shows the number of rules.

You can add rules to the observation definition or to its components, but not to both.

If the section shows a message and **Clear conflicting interpretations**, the other level already has rules. To remove those rules, select **Clear conflicting interpretations**, then select **Remove**.

Caution: **Remove** deletes every rule of the other level.

![Step 1, Find the Observation Interpretation section: the screen at this step, with the control for the step outlined](/assets/images/set-up-qualified-ranges-1-c6d76962c04b326fed04dc7a98057fa3.webp)

### 2. Add a rule

Select **Add Interpretation**.

Care opens the **Add/Edit Interpretation** panel. The new rule has one empty range.

![Step 2, Add a rule: the screen at this step, with the control for the step outlined](/assets/images/set-up-qualified-ranges-2-a2cc77fdf12e60f7641e5d07c15dbfc7.webp)

### 3. Name the rule

The title is optional. Until you type a title, the box shows **Untitled interpretation rule**.

Type a short title in the box at the top of the panel, for example Adult range.

![Step 3, Name the rule: the screen at this step, with the control for the step outlined](/assets/images/set-up-qualified-ranges-3-27b60bd841b1c5c098b9df28b0e210c1.webp)

### 4. Add conditions

If the rule applies to every result, go to step 5.

In the **Conditions** section, select **Add**.

Select a metric, an operation and a value.

| Components | What it captures |
| - | - |
| **Patient Age** | Select **In range** or **Equals to**. Enter a minimum and a maximum age, or one age. Select **Years**, **Months** or **Days**. The range includes both ages that you enter. |
| **Patient Gender** | Select **Equals to**. Select **Male**, **Female**, **Transgender** or **Non-binary**. |
| **Encounter Class** | Select **Equals to**. Select an encounter class. |
| **Encounter Tags** | Select **Has tag**. Select one or more encounter tags. The condition matches when the encounter has one of these tags. |

To add another condition, select **Add** again.

The rule applies only when all its conditions match.

![Step 4, Add conditions (1 of 2): the screen at this step, with the control for the step outlined](/assets/images/set-up-qualified-ranges-4-53ed8766e15bab425301d8f8e2cc5cf7.webp)

![Step 4, Add conditions (2 of 2): the screen at this step, with the control for the step outlined](/assets/images/set-up-qualified-ranges-5-0733d009643cfee0e2ebe83eee671294.webp)

### 5. Add the ranges

In the **Ranges** section, fill in the empty range.

| Components | What it captures |
| - | - |
| **Display** | The interpretation text, for example Normal or High. This field is required. |
| Highlight switch | Turn it on to mark the values in this range for highlighting. |
| **Min** | The lowest value of the range. |
| **Max** | The highest value of the range. |

Enter a **Min**, a **Max** or both. **Min** must not be more than **Max**.

A range includes its **Min** and its **Max**.

If a range has only a **Min** or only a **Max**, its summary says "greater than" or "less than". Care still includes that end value.

To add another range, select **Add** in the **Ranges** section. To remove a range, select its x button.

Ranges must not overlap. Two ranges can share an end value, for example 0 to 10 and 10 to 20. A value of 10 then gets the range that is first in the list.

Care checks for overlap only when you save the form.

![Step 5, Add the ranges: the screen at this step, with the control for the step outlined](/assets/images/set-up-qualified-ranges-6-bd0586fdcaa3478f833940ff1a729c1f.webp)

### 6. Turn on the fallback

The fallback is optional.

Turn on **Fallback**.

The fallback has no text box. It has only a highlight switch, which is on.

Care uses the fallback when the rule applies but no range holds the value.

![Step 6, Turn on the fallback: the screen at this step, with the control for the step outlined](/assets/images/set-up-qualified-ranges-7-263f43c9575ea4220f9b6b1ebf3ffa44.webp)

### 7. Save the rule

Select **Save**.

**Save** is not available until the rule has at least one range.

Care adds the rule after the existing rules in the section.

To close the panel without the rule, select **Cancel**.

![Step 7, Save the rule: the screen at this step, with the control for the step outlined](/assets/images/set-up-qualified-ranges-8-57d4e010145099a59273b3ed37a6c7ff.webp)

### 8. Review the order of the rules

Care checks the rules in the order of the list. It uses only the first rule whose conditions all match.

If no range of that rule holds the value and the rule has no fallback, the result gets no interpretation. Care does not try a later rule.

Put the rules with conditions first. Put a rule without conditions last, because it matches every result.

To change a rule, select its **Edit interpretation** icon. The rule keeps its place in the list.

To delete a rule, select its **Delete interpretation** icon. Care removes the rule at once, without a question.

To move a rule to the end of the list, delete it and add it again.

![Step 8, Review the order of the rules: the screen at this step, with the control for the step outlined](/assets/images/set-up-qualified-ranges-9-12d6b6f817951af041d077040bb529c9.webp)

### 9. Save the observation definition

On the create form, select **Create**. On the edit form, select **Save**.

Care stores the rules only when you save the form.

![Step 9, Save the observation definition (1 of 2): the screen at this step, with the control for the step outlined](/assets/images/set-up-qualified-ranges-10-a3b132fbbf4c8e50992f0467430caa95.webp)

![Step 9, Save the observation definition (2 of 2): the screen at this step, with the control for the step outlined](/assets/images/set-up-qualified-ranges-11-a3549b0563171bc135d6c670c4eb7b9e.webp)

## Expected Outcome

* The rules show in the **Observation Interpretation** section, and the heading shows the number of rules.
* On the page of the observation definition, **Technical Details** lists the rules.
* When staff save results on a diagnostic report, Care interprets each result of this definition with the first rule that matches.
* Results that are already saved keep their interpretation until staff save them again.

## Related

Concepts:

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

Flows:

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