> For the complete documentation index, see [llms.txt](https://docs.snomed.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.snomed.org/implementation-guides/implementation-demonstrators-guide/allergy-demonstrator.md). Agents can also search and read this documentation through its [MCP server](https://docs.snomed.org/~gitbook/mcp).

# Allergy, Hypersensitivity and Intolerance Demonstrator

The **Allergy, Hypersensitivity and Intolerance Demonstrator** shows how to record allergy and intolerance details using **SNOMED CT** and **HL7 FHIR** resources. It is one of the open-source [SNOMED CT Implementation Demonstrators](https://implementation.snomed.org/showcase/demonstrators), and it supplements the [SNOMED CT Implementation Guide for Allergy, Hypersensitivity and Intolerance](https://docs.snomed.org/implementation-guides/allergy-implementation-guide), developed by the SNOMED International Allergy Clinical Reference Group.

**Try it here:** <https://ihtsdo.github.io/sct-implementation-demonstrator/#/allergies>

## Watch the video

{% embed url="<https://youtu.be/a5bIbDS2A0Q>" %}
A short walkthrough of the demonstrator: the two recording approaches, the substance-based and propensity-based models, the FHIR resource, the problem list and decision support.
{% endembed %}

{% hint style="info" %}
This is a **demonstrator**. Use it to explore and compare recording approaches. It is not a clinical system. Review any FHIR resources it produces before you use them as a model for production.
{% endhint %}

## What you can do

| Goal                                                    | Where in the tool                                                | What you see                                                   |
| ------------------------------------------------------- | ---------------------------------------------------------------- | -------------------------------------------------------------- |
| Record an allergy in a dedicated allergy list           | **Allergy List Approach (AllergyIntolerance FHIR resource)** tab | A live FHIR `AllergyIntolerance` resource                      |
| Compare the substance-based and propensity-based models | **Propensity based model** switch                                | Which concept goes in the resource's `code` element            |
| See which SNOMED CT content each field allows           | The **i** icon next to a field                                   | The terminology binding as an ECL expression                   |
| Record an allergy as a problem                          | **Problem List Approach (Condition FHIR resource)** tab          | The problem list and the substances the patient is allergic to |
| Work with a national edition or another language        | The menu (☰)                                                     | Search results from the selected edition and language          |

## Before you start

* **Find the tool.** Open the [SNOMED CT Implementation Demonstrators](https://implementation.snomed.org/showcase/demonstrators) page and select the **Allergies** card under **Featured demos**.
* **Check the edition.** The top bar shows the edition the tool searches, for example **International Edition**.
* **Read the guide.** The demonstrator follows the recommendations in the [Implementation Guide](https://docs.snomed.org/implementation-guides/allergy-implementation-guide). Select the **i** icon next to a form's title for a summary of the guidance for that approach.

<figure><img src="https://1640050952-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmPjWCAiobWdBRSXPqbq4%2Fuploads%2Fgit-blob-4355dfb95eb5f7229ff97a208d97d5e5cc24dfb4%2Fal-01-demonstrators.png?alt=media" alt="SNOMED CT Implementation Demonstrators page with the Allergies card among the featured demos"><figcaption><p>Open the demonstrator from the Allergies card.</p></figcaption></figure>

## Two ways to record an allergy

An electronic health record can hold allergy information in two places. The demonstrator has a tab for each:

* **Allergy List Approach (AllergyIntolerance FHIR resource):** a dedicated allergy and intolerance section of the record. Each entry is a FHIR `AllergyIntolerance` resource.
* **Problem List Approach (Condition FHIR resource):** the allergy is recorded as a problem among the patient's other problems. Each entry is a FHIR `Condition` resource.

<figure><img src="https://1640050952-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmPjWCAiobWdBRSXPqbq4%2Fuploads%2Fgit-blob-653eceb79efa22166784d3c9929418a171258f12%2Fal-02-allergy-list.png?alt=media" alt="Allergy List Approach tab with the empty Allergy Intolerance Form on the left and the AllergyIntolerance HL7 FHIR Resource on the right"><figcaption><p>The Allergy List Approach: the form on the left, the FHIR resource on the right.</p></figcaption></figure>

## Choose the model: substance-based or propensity-based

On the **Allergy List Approach** tab, the **Propensity based model** switch sets which concept goes into the `code` element of the `AllergyIntolerance` resource:

| Switch | Model            | code holds                                        | Example                       |
| ------ | ---------------- | ------------------------------------------------- | ----------------------------- |
| Off    | Substance-based  | The causative **substance**                       | `13577000` \|Nut\|            |
| On     | Propensity-based | The **disorder** (propensity to adverse reaction) | `91934008` \|Allergy to nut\| |

In both models the substance is also recorded in `reaction.substance`. Choosing a model is one of the key decisions implementers need to make. The [Implementation Guide](https://docs.snomed.org/implementation-guides/allergy-implementation-guide) explains the options.

## Record an allergy in the allergy list

{% stepper %}
{% step %}

### Enter the allergy

In **Allergy/Intolerance by propensity**, start typing, for example `nut`, and choose a concept such as **Allergy to nut** from the list.

The search only offers the part of SNOMED CT that is relevant to the field. Select the **i** icon next to the field to see its **Terminology binding**, written in ECL (the SNOMED Expression Constraint Language), for example `<<418038007 |Propensity to adverse reactions to substance| OR …`.

<figure><img src="https://1640050952-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmPjWCAiobWdBRSXPqbq4%2Fuploads%2Fgit-blob-117f87aff5149b9a1e21dc2cc42ac9cbe1016d08%2Fal-03-terminology-binding.png?alt=media" alt="Terminology binding tooltip showing the ECL expression for the Allergy/Intolerance by propensity field"><figcaption><p>Each field shows its terminology binding.</p></figcaption></figure>

The tool then fills in other fields from the concept's definition:

* **Allergy Intolerance Type**, for example *Hypersensitivity disposition (finding)*
* **Allergy/Intolerance substance or product**, for example *Nut*
* **Substance Category**, for example *Food*
  {% endstep %}

{% step %}

### Add the details

Complete the rest of the form as needed:

* **Clinical Status**, for example *Active*
* **Verification Status**, for example *Unconfirmed*
* **Allergy Criticality**: *Low Risk*, *High Risk* or *Unable to Assess Risk*

Select **Clear** to start again.
{% endstep %}

{% step %}

### Check the FHIR resource

The **AllergyIntolerance HL7 FHIR Resource** panel updates as you fill in the form. Use its icons to download or copy the JSON.

With the substance-based model, the `code` holds the substance:

<figure><img src="https://1640050952-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmPjWCAiobWdBRSXPqbq4%2Fuploads%2Fgit-blob-be9dafbf57c88447c53dfdc54ef2f8cda9c4800a%2Fal-04-code-substance.png?alt=media" alt="FHIR AllergyIntolerance resource where the code element holds 13577000 Nut"><figcaption><p>Substance-based model: the code is Nut.</p></figcaption></figure>

Switch on **Propensity based model** and the `code` holds the disorder instead. The substance field is relabelled **Allergy/Intolerance substance based on propensity**.

<figure><img src="https://1640050952-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmPjWCAiobWdBRSXPqbq4%2Fuploads%2Fgit-blob-429b5021fef1125109049bad96bab05ecbd36cca%2Fal-05-code-propensity.png?alt=media" alt="FHIR AllergyIntolerance resource where the code element holds 91934008 Allergy to nut"><figcaption><p>Propensity-based model: the code is Allergy to nut.</p></figcaption></figure>
{% endstep %}

{% step %}

### Record a reaction

In the blue reaction section, enter:

* **Reaction Manifestation**, for example *Eruption* (SNOMED CT 271807003)
* **Reaction Severity**: *Mild*, *Moderate* or *Severe*
* **Exposure Route**, if known

The reaction appears in the resource under `reaction.manifestation` and `reaction.severity`.

<figure><img src="https://1640050952-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmPjWCAiobWdBRSXPqbq4%2Fuploads%2Fgit-blob-c90e31c7bdf75a1bf7c495ba7f7bf9320630d5f4%2Fal-06-reaction.png?alt=media" alt="Reaction section with Eruption as the manifestation and the Reaction Severity list open"><figcaption><p>Record the reaction and its severity.</p></figcaption></figure>
{% endstep %}

{% step %}

### Save

Select **Save**. The allergy is added to the patient's problem list, and the tool confirms with *Problem list updated*.
{% endstep %}
{% endstepper %}

## Record allergies on the problem list

1. Open the **Problem List Approach (Condition FHIR resource)** tab. Allergies you saved from the allergy list are already there.
2. In **Search…**, type a problem, for example `shellfish`, and choose **Allergy to shellfish**. This field isn't limited to allergies, because the problem list holds any kind of problem.
3. Select **Add problem**. The problem appears in the list with the date, concept ID, term and an **Allergy / Intolerance condition** tag.

Under **Substances the patient is allergic to**, the tool derives the causative substance of each allergy from its SNOMED CT definition:

| Problem                              | Derived substance         |
| ------------------------------------ | ------------------------- |
| `91934008` \|Allergy to nut\|        | `13577000` \|Nut\|        |
| `300913006` \|Allergy to shellfish\| | `735029006` \|Shellfish\| |
| `293586001` \|Allergy to aspirin\|   | `387458008` \|Aspirin\|   |

<figure><img src="https://1640050952-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmPjWCAiobWdBRSXPqbq4%2Fuploads%2Fgit-blob-64ac5759849c307e6bae9bf7de1f525bd0c5e9a9%2Fal-07-problem-list.png?alt=media" alt="Problem list with allergy to nut, shellfish and aspirin, and the derived substances Nut, Shellfish and Aspirin"><figcaption><p>The problem list and the substances derived from it.</p></figcaption></figure>

{% hint style="success" %}
**Why this matters for decision support.** Because the substance is recorded, a clinical decision support rule can check it against the active ingredients of a new prescription. For example, it can warn when someone prescribes a medicine that contains aspirin to a patient with an allergy to aspirin.
{% endhint %}

## Change the edition or language

Open the menu (☰) at the top left. Under **Terminology settings** you can change:

* **Edition**: choose an edition and version, for example **Swedish Edition**. The searches then use that edition's content.
* **Terminology language**: search and display terms in another language.

<figure><img src="https://1640050952-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmPjWCAiobWdBRSXPqbq4%2Fuploads%2Fgit-blob-9ca4fec1ea0f4374917eb574549b9f4c041faead%2Fal-08-editions.png?alt=media" alt="Menu with Terminology settings and the list of editions, including Argentinian, International and Swedish editions"><figcaption><p>Choose an edition and version.</p></figcaption></figure>

{% hint style="info" %}
The demonstrator's own screens are in English only. When you select another edition, the tool shows *This module is currently available in English only.*
{% endhint %}

## Tips

* **Not finding a concept?** Each field only searches the content in its terminology binding. Select the **i** icon to see what the field allows.
* **Unexpected results?** Check the edition in the top bar. Search results and concept IDs depend on the selected edition.
* **Comparing models?** Keep the FHIR resource visible and toggle **Propensity based model**. Only the `code` element changes.
* **Want the background?** Select the **i** icon next to **Allergy Intolerance Form** or **Problem List** for a summary of the guidance for each approach.

## Related resources

* [SNOMED CT Implementation Guide for Allergy, Hypersensitivity and Intolerance](https://docs.snomed.org/implementation-guides/allergy-implementation-guide)
* [SNOMED CT Implementation Demonstrators](https://implementation.snomed.org/showcase/demonstrators)
* [ECL - SNOMED Expression Constraint Language guide](https://docs.snomed.org/snomed-ct-specifications/snomed-ct-expression-constraint-language)
* [FHIR AllergyIntolerance resource (HL7)](https://hl7.org/fhir/allergyintolerance.html)
* [FHIR Condition resource (HL7)](https://hl7.org/fhir/condition.html)

*SNOMED CT Implementation Demos - Allergy, Hypersensitivity and Intolerance Demonstrator*\
<https://ihtsdo.github.io/sct-implementation-demonstrator/#/allergies>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.snomed.org/implementation-guides/implementation-demonstrators-guide/allergy-demonstrator.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
