> ## Documentation Index
> Fetch the complete documentation index at: https://docs.encoreos.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Allergies

> Deep-link into the Allergies tab of a patient chart. This route redirects immediately to the chart detail view with the allergies tab pre-selected.

The Allergies deep-link navigates directly to the Allergies tab on a patient chart. Route: `/cl/charts/:chartId/allergies`.

## Overview

`/cl/charts/:chartId/allergies` is a **redirect-only route**. Visiting this URL immediately issues a client-side redirect to `/cl/charts/:chartId?tab=allergies` (relative redirect: `../?tab=allergies`). There is no standalone allergies screen; the content is rendered as a tab within `PatientChartPage`.

## Who it's for

Permission required: `cl.charts.view` (inherited from the parent `/cl/charts/:chartId` route). The Allergies tab within the chart additionally requires `cl.allergies.manage` per `chartSideNavConstants.ts`.

## Before you start

* You must have an active patient chart open or know the `chartId` UUID.
* You need the `cl.charts.view` permission and `cl.allergies.manage` permission to interact with the Allergies tab.

## Steps

<Steps>
  <Step title="Navigate to the chart">
    Open the patient chart at `/cl/charts/:chartId`, or follow a direct link to `/cl/charts/:chartId/allergies`.
  </Step>

  <Step title="Automatic tab selection">
    The router redirects to `/cl/charts/:chartId?tab=allergies`, pre-selecting the Allergies tab in the `PatientChartPage` tab state.
  </Step>

  <Step title="Review or manage allergies">
    The `ChartAllergiesSection` component renders inside the chart shell. An allergy-alert strip (`ChartAllergyAlertStrip`) may also appear in the patient banner area.
  </Step>
</Steps>

## Key concepts

| Term                     | Meaning                                                                              |
| ------------------------ | ------------------------------------------------------------------------------------ |
| `tab=allergies`          | URL query parameter that drives tab state in `PatientChartPage` via `useTabUrlState` |
| `ChartAllergiesSection`  | Component rendering allergy list within the chart tab panel                          |
| `ChartAllergyAlertStrip` | Banner strip showing active allergy alerts at the top of the chart page              |

## Related

<Columns cols={2}>
  <Card title="Clinical" icon="stethoscope" href="/cl/overview">
    Clinical core overview.
  </Card>

  <Card title="Governance & parity" icon="scale-balanced" href="/governance/index" />
</Columns>

<Note>
  This page documents shipped product behavior. It is not medical, legal, or
  billing advice. Verify against your organization's policies and applicable
  regulations before using it for clinical, compliance, or billing decisions.
  Protected health information (PHI) shown in the product is governed by your
  tenant's access controls and is never exposed in this documentation.
</Note>

<Accordion title="Documentation sources">
  * src/routes/cl.tsx
  * src/cores/cl/pages/PatientChartPage.tsx
  * src/cores/cl/components/chartSideNavConstants.ts
  * src/cores/cl/components/ChartAllergiesSection.tsx
  * src/cores/cl/hooks/useAllergies.ts
</Accordion>
