Supplements
16
 min read

ICD-10 Allergy to Medication: UK Coding Guide and Clinical Advice

Written by
Bolt Pharmacy
Published on
7/3/2026

ICD-10 allergy to medication coding is a critical component of safe clinical documentation across the NHS. The International Classification of Diseases, Tenth Revision (ICD-10) provides a standardised framework for recording adverse drug reactions, distinguishing true immune-mediated allergies from intolerances and pharmacological side effects. Accurate coding supports patient safety, antimicrobial stewardship, and national reporting through NHS Hospital Episode Statistics. This article explains the key ICD-10 codes used in UK practice, how they differ from prescribing alert systems, and what clinicians and patients need to know about documenting and managing medication allergies in line with NICE and MHRA guidance.

Summary: ICD-10 codes for allergy to medication classify adverse drug reactions in UK secondary care, using clinical manifestation codes alongside Y40–Y59 external cause codes, with Z88 codes recording known drug allergy history.

  • Z88 codes (e.g., Z88.0 for penicillin allergy) record a patient's known drug allergy status in discharge summaries and secondary care records, not as active diagnoses.
  • In UK ICD-10 practice, adverse effects of drugs in therapeutic use are coded with the clinical manifestation first, followed by an external cause code from Y40–Y59 identifying the responsible drug.
  • T88.6 codes anaphylactic shock due to a correctly administered drug; T78.4 is used for unspecified allergic reactions where the cause is not clearly identified.
  • ICD-10 codes support audit and national reporting but do not drive real-time prescribing alerts in NHS systems — those are underpinned by SNOMED CT and the NHS dm+d.
  • NICE CG183 recommends structured clinical assessment for all suspected drug allergies and supports penicillin de-labelling programmes as part of antimicrobial stewardship.
  • Suspected adverse drug reactions, including allergic reactions, should be reported to the MHRA via the Yellow Card scheme regardless of ICD-10 coding.
60-second quiz
See if weight loss injections could be right for you
Answer a few quick questions to check suitability — no commitment.
Start the eligibility quiz
Most people finish in under a minute • Results shown instantly

Understanding ICD-10 Codes for Medication Allergy in the UK

The International Classification of Diseases, Tenth Revision (ICD-10) is the coding system used across NHS England and the wider UK healthcare system to classify diagnoses, symptoms, and clinical conditions. Maintained globally by the World Health Organisation (WHO) and adapted for UK use by NHS England, ICD-10 codes provide a standardised language that enables consistent documentation, audit, and reporting across clinical settings.

When it comes to medication allergy, accurate ICD-10 coding is essential for patient safety and for national reporting. It is important to understand, however, that ICD-10 is used primarily for secondary care activity coding — for example, coding admitted patient care episodes submitted to NHS England's Hospital Episode Statistics (HES) — and for epidemiological analysis and commissioning purposes. It is not the primary mechanism by which allergy alerts are generated at the point of prescribing in NHS electronic patient record (EPR) systems.

Point-of-care prescribing alerts in NHS GP and hospital systems are driven by SNOMED CT clinical terminology and the NHS Dictionary of Medicines and Devices (dm+d), which underpin structured allergy and adverse reaction records in systems such as EMIS Web, SystmOne, and hospital EPR platforms. ICD-10 codes complement these records for reporting and audit purposes.

ICD-10 distinguishes between a true allergic reaction (involving an immune-mediated response) and other types of adverse drug reactions (ADRs), such as intolerance or pharmacological side effects. These distinctions carry clinical significance and influence how a reaction is coded, documented, and managed. Clinicians and clinical coders must apply codes carefully, based on the nature and mechanism of the reaction rather than patient-reported labels alone.

In UK ICD-10 practice, adverse effects of drugs taken in therapeutic use are coded using the clinical manifestation code first, followed by an external cause code from Y40–Y59 to identify the responsible drug. This approach differs from the US ICD-10-CM system and is specified in the NHS England National Clinical Coding Standards ICD-10 (5th edition).

How Medication Allergies Are Classified and Documented

Medication allergies are broadly classified into immunological and non-immunological reactions. A true drug allergy involves an immune-mediated mechanism — for example, IgE-mediated hypersensitivity (Type I), which can cause anaphylaxis, urticaria, or angioedema. Other immune-mediated reactions include serum sickness (Type III) and delayed hypersensitivity reactions such as Stevens-Johnson syndrome (SJS) and toxic epidermal necrolysis (TEN) (Type IV). Non-immunological reactions, by contrast, include predictable side effects, drug intolerances, and pharmacological interactions, which are classified differently under ICD-10.

The clinical documentation of a medication allergy should capture several key elements:

  • The causative drug (using its generic name where possible, referenced against dm+d)

  • The nature of the reaction (e.g., rash, anaphylaxis, gastrointestinal upset)

  • The severity of the reaction (mild, moderate, or severe)

  • The timing of onset relative to drug administration

  • Whether allergy testing has confirmed or refuted the diagnosis

  • The information source (patient-reported, clinician-observed, or formally allergy-tested)

In practice, many reactions recorded as 'allergies' in clinical systems are in fact intolerances or side effects. This over-labelling can have significant consequences — for example, penicillin allergy labels are frequently inaccurate, and evidence suggests that up to 90% of patients labelled as penicillin-allergic may tolerate the drug on formal testing. This leads to the use of broader-spectrum antibiotics and contributes to antimicrobial resistance. NICE guideline CG183 (Drug allergy: diagnosis and management) and NHS England have highlighted de-labelling programmes as a clinical priority, encouraging formal allergy assessment where resources allow, in line with antimicrobial stewardship objectives.

NICE CG183 recommends that all patients with a suspected drug allergy receive a structured clinical assessment. Referral to a specialist allergy or immunology service should be considered for patients who have experienced suspected anaphylaxis, immediate-type hypersensitivity reactions, or severe cutaneous adverse reactions (SCARs) such as SJS or TEN. Patients who have experienced a severe reaction should not be re-exposed to the suspected causative drug pending specialist evaluation.

Accurate classification at the point of documentation is therefore not merely an administrative task — it is a patient safety intervention with downstream implications for prescribing, antibiotic stewardship, and clinical outcomes. Allergy records should be reviewed and updated following formal assessment or de-labelling.

Commonly Used ICD-10 Codes for Adverse Drug Reactions

Within WHO ICD-10 as used in the UK, adverse drug reactions and medication allergies are captured across several code categories. Understanding the correct application of each is essential for accurate clinical coding.

Coding adverse effects of drugs in therapeutic use (UK practice)

  1. When a drug causes a harmful effect whilst being taken correctly (an adverse effect in therapeutic use), UK coding practice — as set out in the NHS England National Clinical Coding Standards ICD-10 (5th edition) — requires:
  2. A code for the clinical manifestation (e.g., the rash, anaphylaxis, or organ injury) coded first.
  3. An external cause code from Y40–Y59 to identify the drug responsible.

For example, anaphylactic shock due to a correctly administered drug would be coded with the manifestation code, plus the appropriate Y40–Y59 code identifying the drug. This two-code approach is the standard UK method for adverse effects in therapeutic use.

Poisoning by drugs (T36–T50)

Codes T36–T50 in WHO ICD-10 relate to poisoning by drugs, medicaments, and biological substances — that is, situations involving overdose, wrong drug administered, or drug taken in error. These are not used to code adverse effects occurring during correct therapeutic use. Note that the concept of 'underdosing' as a separate code category is a feature of the US ICD-10-CM system and does not apply to WHO ICD-10 as used in the UK.

Other relevant codes

  • T88.6 — Anaphylactic shock due to adverse effect of correct drug or medicament properly administered

  • T88.7 — Unspecified adverse effect of drug or medicament

  • T78.4 — Allergy, unspecified (used when an allergic reaction is documented but the specific cause is not clearly identified)

  • L27.0 — Generalised skin eruption due to drugs and medicaments

  • L27.1 — Localised skin eruption due to drugs and medicaments

Note: T78.1 (other adverse food reactions) relates to reactions to food and should not be used in the context of drug allergy or drug–food interactions.

Z88 codes — Allergy status to drugs (history/status codes)

The Z88 category records a patient's known drug allergy history as a status code — it documents a clinically relevant past history rather than an active or acute condition. Examples include:

  • Z88.0 — Allergy status to penicillin

  • Z88.1 — Allergy status to other antibiotic agents

  • Z88.8 — Allergy status to other drugs, medicaments, and biological substances

Z88 codes are used in discharge summaries and secondary care records to flag known sensitivities. They are not the mechanism by which prescribing alerts are generated in NHS EPR systems — that function is performed by SNOMED CT and dm+d-based allergy records. Correct use of Z88 codes, alongside narrative documentation and structured SNOMED CT/dm+d entries, supports safe medication management across the NHS.

Recording Drug Allergies in NHS Clinical Systems

Across NHS clinical systems — including EMIS Web, SystmOne, and hospital EPR platforms — drug allergy information is recorded in dedicated allergy and adverse reaction fields. These structured fields are designed to interface with prescribing modules, generating automatic alerts when a clinician attempts to prescribe a drug to which a patient has a documented allergy or sensitivity.

SNOMED CT and the NHS Dictionary of Medicines and Devices (dm+d) are the authoritative terminologies underpinning allergy recording and prescribing decision support at the point of care in NHS systems. ICD-10 codes are used for admitted patient care coding and national reporting, rather than for driving real-time clinical alerts.

The PRSB (Professional Record Standards Body) Allergies and Adverse Reactions standard provides best-practice guidance on how allergy and intolerance data should be structured across care settings. Interoperability between primary and secondary care is supported by the NHS England UK Core FHIR AllergyIntolerance implementation profile, which defines how allergy data should be shared across NHS systems — for example, ensuring that a patient's allergy status recorded by their GP is visible to hospital prescribers.

Best practice for recording a drug allergy in NHS systems includes:

  • Selecting the specific drug using dm+d to ensure standardised identification

  • Documenting the reaction type (allergy, intolerance, or side effect) using SNOMED CT concepts

  • Recording the severity and clinical manifestation

  • Noting the information source (patient-reported, clinician-observed, or formally allergy-tested), to support appropriate clinical interpretation

  • Applying the appropriate ICD-10 code for secondary care episode coding and reporting where required

Clinicians should ensure that allergy records are reviewed and updated regularly — particularly following formal allergy assessment, specialist review, or de-labelling — and that the provenance of each entry (patient-reported versus clinician-confirmed) is clearly captured. Regular reconciliation of allergy records across care settings is an important component of safe medicines management.

MHRA and NICE Guidance on Allergy Coding and Reporting

The Medicines and Healthcare products Regulatory Agency (MHRA) plays a central role in monitoring adverse drug reactions in the UK through the Yellow Card scheme. Healthcare professionals and patients are encouraged to report all suspected adverse drug reactions — including allergic reactions — via the Yellow Card portal at yellowcard.mhra.gov.uk. These reports contribute to post-marketing pharmacovigilance and can prompt regulatory action, such as updates to a drug's Summary of Product Characteristics (SmPC) or the issue of safety warnings.

It is important to note that Yellow Card reporting and ICD-10 coding serve different purposes. Yellow Card data feeds into national safety surveillance, whilst ICD-10 codes are used for clinical documentation, commissioning, and epidemiological analysis. Both systems are complementary and should be used appropriately.

NICE has produced guidance directly relevant to allergy assessment and management:

  • NICE guideline CG183 (Drug allergy: diagnosis and management, 2014, updated): Provides recommendations on the assessment, investigation, documentation, and de-labelling of drug allergy across NHS settings. NICE recommends that all patients with a suspected drug allergy receive a structured clinical assessment, and that allergy labels are reviewed and, where appropriate, removed following specialist evaluation.

  • NICE guideline CG134 (Anaphylaxis: assessment and referral after emergency treatment): Defines post-anaphylaxis management, including the need for specialist allergy referral following emergency treatment, provision of an adrenaline auto-injector where appropriate, and patient education.

NICE also highlights the importance of penicillin allergy de-labelling as part of antimicrobial stewardship, given that the majority of patients labelled as penicillin-allergic may tolerate the drug on formal testing. Accurate ICD-10 coding supports audit of allergy prevalence and outcomes, enabling NHS organisations to monitor compliance with NICE recommendations and identify areas for quality improvement.

Following emergency treatment for anaphylaxis, NICE CG134 recommends that patients are referred to a specialist allergy service for further assessment, and that those at ongoing risk are provided with an adrenaline auto-injector and trained in its use.

When to Seek Medical Advice About a Medication Allergy

If you suspect you have experienced an allergic reaction to a medication, it is important to seek appropriate medical advice promptly. The urgency of that advice will depend on the severity of your symptoms.

Seek emergency care (call 999 or go to A&E immediately) if you experience:

  • Difficulty breathing, wheezing, or throat tightening

  • Swelling of the face, lips, tongue, or throat (angioedema)

  • A sudden drop in blood pressure, dizziness, or loss of consciousness

  • A widespread, rapidly spreading rash accompanied by systemic symptoms

  • Blistering, peeling, or raw skin; sores or ulcers affecting the mouth, eyes, or genitals; or a painful widespread rash with fever — these may be signs of a severe cutaneous adverse reaction (SCAR) such as Stevens-Johnson syndrome (SJS) or toxic epidermal necrolysis (TEN), which require urgent hospital assessment

The symptoms listed above may indicate anaphylaxis or another life-threatening reaction requiring immediate treatment. If anaphylaxis is suspected, call 999 immediately. Following emergency treatment for anaphylaxis, you should be referred to a specialist allergy clinic for further assessment, and your doctor will discuss whether you need to carry an adrenaline auto-injector.

If you suspect an allergic reaction, stop taking the suspected medication if it is safe to do so and seek urgent advice. Do not stop life-sustaining medicines (such as anticoagulants, immunosuppressants, or medicines for serious long-term conditions) without first speaking to a clinician, as stopping abruptly may itself carry risks.

Contact your GP or NHS 111 if you experience:

  • A new rash, hives, or itching after starting a new medication

  • Mild swelling not affecting the airway

  • Nausea, vomiting, or gastrointestinal symptoms following a new drug

  • Any reaction you are uncertain about

Your GP can review your medication, document the reaction appropriately in your records, and refer you to a specialist allergy clinic if further investigation is warranted.

Following any confirmed or suspected drug allergy, ensure that the reaction is clearly recorded in your NHS records and that you inform all future healthcare providers — including dentists and pharmacists — of your allergy status. Wearing a medical alert bracelet may also be advisable for severe or confirmed allergies.

Patients and healthcare professionals are encouraged to report suspected adverse drug reactions, including allergic reactions, via the MHRA Yellow Card scheme at yellowcard.mhra.gov.uk. Reporting helps to improve the safety of medicines for everyone.

Frequently Asked Questions

What ICD-10 code should I use for a medication allergy in the UK?

In UK ICD-10 practice, a medication allergy or adverse drug reaction in therapeutic use is coded using the clinical manifestation code first (for example, the rash or anaphylaxis), followed by an external cause code from Y40–Y59 to identify the responsible drug. For recording a known drug allergy history, Z88 codes are used — for example, Z88.0 for penicillin allergy. This two-code approach follows the NHS England National Clinical Coding Standards ICD-10 (5th edition).

What is the difference between ICD-10 codes Z88 and T88 for drug allergy?

Z88 codes record a patient's known allergy status as a historical or background finding — for example, Z88.0 flags a known penicillin allergy in a discharge summary. T88.6, by contrast, is used to code an active clinical event: specifically, anaphylactic shock caused by a correctly administered drug. Z88 codes document past sensitivity, whilst T88 codes capture acute adverse reactions occurring during an episode of care.

Does an ICD-10 allergy to medication code trigger a prescribing alert in NHS systems?

No — ICD-10 codes do not generate real-time prescribing alerts in NHS clinical systems such as EMIS Web, SystmOne, or hospital EPR platforms. Prescribing alerts are driven by structured allergy records using SNOMED CT clinical terminology and the NHS Dictionary of Medicines and Devices (dm+d). ICD-10 codes are used for secondary care episode coding, audit, and national reporting rather than point-of-care decision support.

Can I be tested to confirm whether I actually have a penicillin allergy?

Yes — formal allergy testing can confirm or refute a penicillin allergy label, and evidence suggests that up to 90% of patients labelled as penicillin-allergic may tolerate the drug on testing. NICE guideline CG183 recommends structured clinical assessment for all suspected drug allergies, and NHS England supports penicillin de-labelling programmes as part of antimicrobial stewardship. Your GP can refer you to a specialist allergy or immunology service if assessment is appropriate.

What should I do if I think I'm having an allergic reaction to a medication right now?

If you experience difficulty breathing, throat swelling, a sudden drop in blood pressure, or blistering and peeling skin, call 999 immediately as these may indicate anaphylaxis or a severe cutaneous adverse reaction requiring emergency treatment. For milder symptoms such as a new rash, hives, or gastrointestinal upset, stop the suspected medication if it is safe to do so and contact your GP or NHS 111 for urgent advice. Never stop life-sustaining medicines without speaking to a clinician first.

How do I make sure my medication allergy is properly recorded across all my NHS care?

Ask your GP to document the allergy in your NHS record using the specific drug name, the nature of the reaction, its severity, and whether it was patient-reported or clinician-confirmed. Inform all healthcare providers — including dentists, pharmacists, and hospital teams — of your allergy status at every contact, and consider wearing a medical alert bracelet for severe or confirmed allergies. You should also report the reaction to the MHRA via the Yellow Card scheme at yellowcard.mhra.gov.uk to support national medicines safety surveillance.


Disclaimer & Editorial Standards

The health-related content published on this site is based on credible scientific sources and is periodically reviewed to ensure accuracy and relevance. Although we aim to reflect the most current medical knowledge, the material is meant for general education and awareness only.

The information on this site is not a substitute for professional medical advice. For any health concerns, please speak with a qualified medical professional. By using this information, you acknowledge responsibility for any decisions made and understand we are not liable for any consequences that may result.

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

Block quote

Ordered list

  1. Item 1
  2. Item 2
  3. Item 3

Unordered list

  • Item A
  • Item B
  • Item C

Text link

Bold text

Emphasis

Superscript

Subscript

Book a discovery call

and discuss your eligibility for the Fella Program

Book your free call