# Allergy intolerance

## Definition

An **[allergy](https://build.fhir.org/allergyintolerance.html)** in Care is the record of one allergen, such as a food or a medication, for one patient.

Every allergy belongs to one patient and stays with that patient across encounters. You record it from an encounter of the patient, in the allergy form. Care links the allergy to the encounter where the allergy form was last saved for the patient.

## Key Attributes

| Components | What it captures |
| - | - |
| Allergen | The allergen, which you choose from the allergen terminology your deployment uses (SNOMED CT by default). The default list covers substances, propensity to adverse reactions to a substance, some named intolerances such as lactose intolerance, and "No known allergy". It is required. You cannot change it after you save the allergy. On a large screen, the allergy form shows it in the **Substance** column. Allergy lists shown as a table show it in the **Allergen** column. |
| Category | The category of the allergen: **Food**, **Medication**, **Environment** or **Biologic**. A new allergy starts as **Medication**. You cannot change the category after you save the allergy. |
| Criticality | The criticality of the allergy: **Low**, **High** or **Unable to Assess**. A new allergy starts as **Low**. |
| Verification status | One of five values, described under "Status" below. The allergy form labels it **Status**. Allergy lists shown as a table label its column **Verification**. |
| Clinical status | One of three values, described under "Status" below. Allergy lists shown as a table label its column **Status**. |
| Last occurrence | Care describes it as "The last occurrence date and time of the allergy or intolerance". It is optional. The form labels it **Occurrence** and does not accept a future date. |
| Note | Free text about the allergy. It is optional. |
| Encounter | The encounter that the allergy is linked to, described under "Encounter" below. |

### Encounter

Care is designed so that you re-confirm the patient's allergy list at every encounter.

The allergy form shows the patient's saved allergies as rows, so you add new allergies and change saved ones in the same form.

When you save the form, Care links every saved allergy in the form to the current encounter, whether you changed it or not.

If an allergy was linked to another encounter, Care keeps a copy of it, as it was, on that encounter.

Care keeps no change history of an allergy: the lists show each allergy as it is now.

So an allergy is linked to the encounter where the allergy form was last saved for the patient. This is not always the encounter where the allergy was first recorded.

### Status

An allergy has two statuses, the verification status and the clinical status. Each one changes on its own.

| Status | Description |
| - | - |
| Verification status: **Confirmed**, **Unconfirmed**, **Refuted** or **Presumed** | A new allergy starts as **Confirmed**. From an open encounter of the patient, you can change it to another of these four values, and back. |
| Verification status: **Entered in Error** | The value that an allergy gets when you mark it as entered in error. Care offers this value only for a saved allergy. |
| Clinical status: **Active**, **Inactive** or **Resolved** | A new allergy starts as **Active**. From an open encounter of the patient, you can change it to another of these three values, and back. In the allergy form, you use **Mark Active**, **Mark Inactive** and **Mark Resolved**. |

Care has no action that deletes an allergy. If an allergy was recorded by mistake, you mark it as entered in error. Care then keeps the allergy, with the verification status **Entered in Error**.

Care leaves an allergy marked as entered in error out of every allergy list. The allergy form still shows it, faded.

On a large screen, you cannot select it in the form to change it back. If you marked an allergy by mistake, record the allergy again.

## Where you see allergies

You record and change allergies in the allergy form, a built-in questionnaire titled "Allergy Intolerance". You open it from the **Overview** tab of an open encounter, with the **Allergy** quick action or the **Edit** pencil of the **Allergies** panel.

You see allergies in these places:

* The **Allergies** panel on the **Overview** tab of an encounter. The panel shows only when it has at least one allergy to list. On a **Completed** encounter, it lists the allergies linked to that encounter. On every other encounter, it lists all of the patient's allergies. When the panel is at least 768 pixels wide, it shows a table with the columns **Allergen**, **Status** (clinical status), **Criticality** and **Verification** (verification status). A narrower panel shows a short summary of each allergy instead.
* The **Allergies** tab of the patient's clinical history. It lists the patient's allergies across encounters, grouped by year and by the date each allergy was created. You reach it from the **Clinical History** tab of the patient's profile (see [View a patient's profile](https://docs.ohc.network/flows/clinical/patient/view-patient-profile.md)), or with the **View History** icon on the **Allergies** panel.
* The **Allergies:** badge in the header of a questionnaire that you fill in an encounter. It lists up to 14 of the patient's **Confirmed** allergies. On a **Completed** encounter, Care does not load it.
* The **Patient Clinical History** tab of a questionnaire that you fill in an encounter. Its **Allergies** tab shows the patient's allergies, and you cannot change them there.
* The default Discharge Summary report template. Its allergies section leaves out allergies marked as entered in error.
* The **Shared records** of a referral, under **Allergies**, if an allergy is attached to the referral. You cannot attach an allergy from the referral screens: the **Record type** list of **Add record** does not offer allergies. Only a direct call to the Care API can attach one.

Note: This section describes the standard encounter workspace. Your facility can set up its own workspaces. In such a workspace, the **Allergies** panel and the quick actions that include **Allergy** can be on another tab, carry another title, or be absent. Such a workspace can also hide the **Allergies** tab of the clinical history.

## Permissions

Care controls access to allergies with patient and encounter permissions. Where you hold a permission matters.

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

* An organization 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.

A closed encounter (**Completed**, **Cancelled**, **Discontinued** or **Entered in error**) gives no role on the patient.

You hold a permission in the encounter when a role in an organization of the encounter gives it to you. The organizations of its current location also count.

The organizations of an encounter are the organizations it is assigned to, their parent organizations, and the root organization of the facility, "Administration".

The roles below are the default roles. The permission definitions also name an Admin role. Roles are matched by name, and the only role named Admin in the database is for role organizations, which the facility screens do not offer. The table below leaves it out.

| Permission | Description | System Roles |
| - | - | - |
| Can Update a Patient's data | Record a new allergy. You must hold it through a role on the patient. Your deployment can make it apply to every patient when held in any organization; this setting is off by default. The Administrator role holds it too. That role does not hold "Can view clinical data about patients", so Care does not show it the **Allergy** quick action. | Staff, Doctor, Nurse, Administrator, Facility Admin |
| Can view clinical data about patients | See the patient's allergies on the **Allergies** panel, on the clinical history **Allergies** tab and in the allergy form. You must hold it through a role on the patient. For the clinical history and the allergy form, no other permission counts. | Staff, Doctor, Nurse, Facility Admin |
| Can Read encounter related clinical data | See the **Allergies** panel of a **Completed** encounter without a role on the patient. You must hold it in the encounter. | Doctor, Nurse, Facility Admin |
| Update Encounter related clinical data | Change a saved allergy, which includes marking it as entered in error. The allergy form sends every saved allergy again with each save. So you also need it to record an allergy for a patient who already has one. You must hold it in the encounter, and the encounter must be open. | Doctor, Nurse, Facility Admin |
| Can list patients | Open the encounter, if you hold it through a role on the patient. Held in an organization the patient belongs to, it also lets you open the patient. You need this permission or "Can Read encounter". | Staff, Doctor, Nurse, Administrator, Facility Admin, Volunteer, Pharmacist |
| Can Read encounter | Open the encounter, if you hold it in the encounter. You need it when a **Completed** encounter is your only link to the patient. | Doctor, Nurse, Facility Admin |

A role in an organization of an open encounter counts both as a role on the patient and as held in the encounter. So by default, the Doctor, Nurse or Facility Admin role in such an organization lets you view, record and change allergies from that encounter.

Note: In Care 3.1, the Staff role can save the allergy form only for a patient with no saved allergy. On an open encounter, Staff sees the **Allergy** quick action and can fill the form. If the patient already has a saved allergy of any verification status, Care refuses the save. Staff does not hold "Update Encounter related clinical data", which that save needs. The form then shows "Failed to submit questionnaire".

Note: On a closed encounter, Care does not show the **Allergy** quick action or the **Edit** pencil. Care refuses every change to a saved allergy on a closed encounter, for every user. Because the allergy form sends every saved allergy again, a save there fails whenever the patient has a saved allergy.

## Related

* Flow: [Record an allergy](https://docs.ohc.network/flows/clinical/allergy-intolerance/record-allergy.md)
* Flow: [Update an allergy](https://docs.ohc.network/flows/clinical/allergy-intolerance/update-allergy.md)
* Flow: [Mark an allergy as entered in error](https://docs.ohc.network/flows/clinical/allergy-intolerance/allergy-entered-in-error.md)
* Flow: [View a patient's allergies](https://docs.ohc.network/flows/clinical/allergy-intolerance/view-allergy-history.md)
* Concept: [Patient](https://docs.ohc.network/concepts/clinical/patient.md)
* Concept: [Encounter](https://docs.ohc.network/concepts/clinical/encounter.md)
* Concept: [Questionnaire Response](https://docs.ohc.network/concepts/clinical/questionnaire-response.md)
* Concept: [Valueset](https://docs.ohc.network/concepts/definitions/valueset.md)
* Reference: [Allergy intolerance](https://docs.ohc.network/references/clinical/allergy-intolerance.md)
