PHAR-361 · Lesson 5 of 12 · 20 min

Immune-mediated drug reactions: HLA and other safety genes

▶ Video coming soon A video version of this lesson is on the way.

In early October 2026, two prescriptions arrive at Corrigan Bay Hospital within an hour of each other. A hypothetical 38-year-old newly diagnosed with HIV, Teodora Nakamura-Villeneuve, is to begin an antiretroviral regimen that includes abacavir. A hypothetical 52-year-old warehouse worker, Benedikt Oyelaran-Thorsen, has had a first focal seizure and the neurology service proposes carbamazepine; his family is from southern Thailand. Neither prescription should be dispensed before a specific HLA result is in hand. This lesson explains why, and sets out the other pharmacogenomic associations that concern safety rather than exposure.

A different kind of pharmacogenomics

The genes covered so far change how much drug or active metabolite reaches its target. The associations in this lesson work differently: variation in the genes of the human leukocyte antigen system changes how the immune system sees a drug. Three features follow from that mechanism and distinguish these associations in practice:

  • They are largely dose-independent. A usual dose can trigger the reaction, and lowering the dose is not a management strategy. The only reliable action is to avoid the drug.
  • They have a delayed onset, typically days to weeks after the first exposure, because a T cell response must develop. A patient who has tolerated the drug for years is at low risk of a new reaction of this type.
  • The consequences are severe. They include severe cutaneous adverse reactions such as Stevens-Johnson syndrome, toxic epidermal necrolysis and drug reaction with eosinophilia and systemic symptoms, and drug-induced liver injury.

How HLA works

The HLA genes on chromosome 6 encode cell-surface molecules that present short peptides to T cells. Class I molecules, encoded by HLA-A, HLA-B and HLA-C, present peptides from inside the cell to CD8-positive T cells; class II molecules, encoded by HLA-DR, HLA-DQ and HLA-DP loci, present peptides from outside the cell to CD4-positive T cells. The region is the most polymorphic in the human genome, with thousands of alleles, named by locus, allele group and protein, as in HLA-B*57:01, where 57 is the allele group and 01 identifies the specific protein.

Drugs provoke T cell responses through several proposed mechanisms. A drug or metabolite may bind covalently to a protein, which is then processed into modified peptides that look foreign (the hapten model). A drug may sit in the peptide-binding groove of a specific HLA molecule and change which self peptides can be presented, so that peptides the immune system has never been taught to tolerate are now displayed (the altered peptide repertoire model, best described for abacavir and HLA-B*57:01). Or a drug may bind the HLA molecule or the T cell receptor directly and cross-link them without peptide processing (the altered T cell receptor repertoire model). What the models share is that the reaction requires a specific HLA molecule, which is why a single allele can confer most of the risk.

A cell surface cross-section. An HLA class I molecule sits in the membrane with a peptide in its binding groove, presented to a CD8-positive T cell receptor. Three panels show mechanisms: in the hapten model a drug is bound covalently to a protein that is processed into a modified peptide; in the altered peptide repertoire model a small drug molecule occupies part of the binding groove and changes which self peptides fit; in the altered T cell receptor model the drug bridges the HLA molecule and the T cell receptor directly. Downstream arrows lead to T cell activation, clonal expansion and keratinocyte or hepatocyte injury.
Figure 1. How a drug becomes immunologically visible. Each mechanism requires a particular HLA molecule, which is why risk tracks with single alleles.

HLA-B*57:01 and abacavir

Abacavir hypersensitivity syndrome presents in the first six weeks of therapy with fever, rash, gastrointestinal symptoms, malaise and sometimes respiratory symptoms, and it recurs more severely on re-exposure. Among people who carry HLA-B*57:01, a large proportion develop the reaction, while people who do not carry the allele almost never have an immunologically confirmed reaction. The landmark randomized screening trial showed that prospective screening eliminated immunologically confirmed hypersensitivity.

Screening is now standard of care, written into HIV treatment guidelines in both Canada and the United States and into product labelling. The Food and Drug Administration's table of pharmacogenetic associations places abacavir with HLA-B in its highest-evidence section, with the management recommendation not to use the drug in HLA-B*57:01-positive patients. CPIC's guideline makes the same recommendation. This is also the pharmacogenomic test most pharmacists will encounter: before dispensing an abacavir-containing regimen, confirm that a documented negative HLA-B*57:01 result exists. A documented result is permanent, so it need not be repeated.

Ms. Nakamura-Villeneuve's result is negative, and the regimen proceeds. The pharmacist still counsels on the symptoms of hypersensitivity, because a negative result does not exclude other causes of rash and fever, and because the counselling is part of the labelling.

HLA-B*15:02, HLA-A*31:01 and the antiseizure drugs

Carbamazepine can cause severe cutaneous adverse reactions, and two alleles contribute in different populations:

  • **HLA-B*15:02** is strongly associated with carbamazepine-induced Stevens-Johnson syndrome and toxic epidermal necrolysis. It is common in people with ancestry from parts of Southeast Asia, particularly Han Chinese, Thai, Malaysian, Vietnamese and Indonesian populations, and rare in people of European or Japanese ancestry. Prospective screening programs in Taiwan and Hong Kong markedly reduced the incidence of these reactions. The association extends to oxcarbazepine and, to a lesser degree, to phenytoin and lamotrigine, so guidelines advise against using those drugs in carriers as substitutes for carbamazepine.
  • **HLA-A*31:01** is associated with carbamazepine hypersensitivity in populations of European and Japanese ancestry, with a reaction pattern that more often takes the form of drug reaction with eosinophilia and systemic symptoms or a maculopapular eruption than of toxic epidermal necrolysis.

CPIC's guideline for carbamazepine and oxcarbazepine recommends avoiding carbamazepine in HLA-B*15:02 carriers who have not previously taken it, and avoiding it in HLA-A*31:01 carriers unless the benefit clearly outweighs the risk and no alternative is suitable. The guideline also makes the important point that a person who has taken carbamazepine for more than about three months without a reaction can continue it, because the risk period has passed. Labelling in both countries recommends screening patients with ancestry from populations where HLA-B*15:02 is common, an approach that uses ancestry to target testing rather than to predict genotype, as discussed in Lesson 1.

For Mr. Oyelaran-Thorsen, the pharmacist's recommendation is to hold carbamazepine pending HLA-B*15:02 testing, and to suggest an antiseizure drug not associated with that allele if treatment cannot wait. The neurology service agrees and starts levetiracetam, with the plan to reconsider once the result is available. Antiseizure drug selection is covered in Pharmacotherapy V: Neurology and Psychiatry (PHAR-343).

Table 1. Principal HLA-drug associations in practice.
AlleleDrugReaction typePopulations where the allele is most frequentAction
HLA-B*57:01AbacavirMulti-organ hypersensitivity syndromeAll populations, highest in some European and South Asian groupsScreen before first use; do not use if positive
HLA-B*15:02Carbamazepine, oxcarbazepine; caution with phenytoin and lamotrigineStevens-Johnson syndrome and toxic epidermal necrolysisSoutheast Asian, including Han Chinese and ThaiScreen where prevalence is appreciable; avoid in carriers who are drug-naive
HLA-A*31:01CarbamazepineDrug reaction with eosinophilia and systemic symptoms, maculopapular eruptionEuropean, JapaneseConsider alternatives in carriers
HLA-B*58:01AllopurinolSevere cutaneous adverse reactionsHan Chinese, Thai, Korean, some African populationsConsider an alternative urate-lowering drug in carriers
HLA-B*13:01DapsoneDapsone hypersensitivity syndromeChinese, Thai, PapuanAvoid or monitor closely where testing is available
HLA-B*57:01 and othersFlucloxacillin and some other antibacterialsDrug-induced liver injuryVariesAssociation recognized; routine screening not established

HLA-B*58:01 and allopurinol

Allopurinol is a common cause of severe cutaneous adverse reactions, and HLA-B*58:01 carriage raises the risk substantially. CPIC recommends choosing an alternative urate-lowering drug for carriers. The American College of Rheumatology's gout guidance recommends testing in populations with higher allele frequency, including people of Southeast Asian and African ancestry, before starting allopurinol. Where allopurinol is still used, starting at a low dose and titrating slowly reduces the risk of cutaneous reactions generally, though it does not eliminate the genotype-associated risk. Febuxostat is an alternative in carriers, with its own cardiovascular considerations.

Genes that are not HLA but are about safety

Several other associations fit the safety rather than the exposure pattern.

  • RYR1 and CACNA1S encode the skeletal muscle calcium release channel and its voltage sensor. Pathogenic variants cause malignant hyperthermia susceptibility, in which volatile anesthetics and succinylcholine trigger uncontrolled calcium release, muscle rigidity, hyperthermia, acidosis and rhabdomyolysis. CPIC's guideline advises that patients with these variants avoid volatile anesthetics and succinylcholine; the condition has a specific antidote in dantrolene, which must be immediately available wherever triggering agents are used. A family history of an anesthetic crisis is a reason to ask about genetic testing before elective surgery.
  • BCHE encodes butyrylcholinesterase, the enzyme that hydrolyses succinylcholine and mivacurium. Deficiency causes prolonged neuromuscular blockade, so the person needs continued ventilatory support until the drug is cleared. This is a pharmacokinetic mechanism with a safety presentation and was, as Lesson 1 described, one of the founding observations of the field.
  • G6PD deficiency, covered in Lesson 4 for rasburicase, also matters for dapsone, primaquine, tafenoquine, nitrofurantoin, methylene blue and several other oxidant drugs. Tafenoquine and primaquine require documented G6PD status before use.
  • MT-RNR1 variants predispose to aminoglycoside-associated hearing loss, as noted in Lesson 3. Because the gene is mitochondrial, the trait is maternally inherited, and a maternal family history of hearing loss after an aminoglycoside is a signal.
  • CFTR genotype determines which cystic fibrosis transmembrane conductance regulator modulators will work. This is pharmacogenomics in reverse: the genotype selects the drug, and the drug is useless without the right variant class. CPIC's guideline covers ivacaftor, and the modulator combinations have each been approved for specified variant sets.
  • IFNL3 and IFNL4 variants predicted response to interferon-based hepatitis C therapy, an association that mattered greatly for a decade and became largely historical once direct-acting antivirals achieved high cure rates regardless of genotype. It is a useful reminder that pharmacogenomic relevance can disappear when therapy improves.

How much risk does an allele carry?

Two numbers describe an association, and they answer different questions. The relative risk or odds ratio says how much more likely the reaction is in carriers than in non-carriers, and for the strongest HLA associations it is very large, in the hundreds or higher. The absolute risk says what proportion of carriers actually react, and it is much smaller for most pairs: a large majority of HLA-B*15:02 carriers who take carbamazepine never develop a severe cutaneous reaction, because other factors must also align. The two numbers together explain why screening is worthwhile and why a positive result is not a prediction of certain harm.

A third concept, the number needed to test, matters for policy. It depends on allele frequency in the population tested, on the absolute risk in carriers, and on how serious the outcome is. Where the allele is rare, thousands of people must be tested to prevent one reaction; where it is common, as HLA-B*15:02 is in parts of Southeast Asia, the number is far smaller. That is why HLA-B*15:02 screening is routine in some health systems and targeted by ancestry in others, while HLA-B*57:01 screening, with an allele present at appreciable frequency in most populations and an outcome that is both common in carriers and easily avoided, is universal.

The negative predictive value of these tests is their most useful property. A negative HLA-B*57:01 result makes immunologically confirmed abacavir hypersensitivity very unlikely, which is precisely what a prescriber needs before committing a patient to a long-term regimen.

Practical management of a positive safety genotype

A positive HLA result is a permanent, high-value piece of safety information, and it should be handled like a severe allergy.

  • Document it as a contraindication, not as a note. In most dispensing and prescribing systems the appropriate place is the allergy or intolerance field with the gene and allele named, so that the alert fires for the drug and for related drugs.
  • Name the related drugs. For HLA-B*15:02, the alert should cover oxcarbazepine as well as carbamazepine, with a caution for phenytoin and lamotrigine.
  • Tell the patient in writing what the result means, which drugs to avoid and what to say in an emergency department.
  • Consider relatives. Unlike most metabolizer phenotypes, a severe immune risk allele is information that first-degree relatives may wish to know about, since they have a substantial chance of carrying it. The conversation must respect the patient's privacy and is usually offered rather than pressed, and the legal context in Canada and the United States is covered in Lesson 6.
  • Do not try dose reduction or desensitization as a workaround for these reactions. Avoidance is the management.

Recognizing the reactions

Pharmacists in community practice are often the first professional a patient contacts about a new rash. Features that should prompt urgent medical assessment rather than reassurance include fever, mucosal involvement of the mouth, eyes or genitals, skin pain, blistering or skin that separates with gentle pressure, facial swelling, extensive confluent rash, lymphadenopathy, or a rash appearing one to eight weeks after starting a new drug. Any of these in a person who has recently started an antiseizure drug, allopurinol, a sulfonamide antibacterial, nevirapine, abacavir or dapsone is a reason to stop the drug and seek immediate assessment.

Common mistakes

  • MistakeLowering the dose of carbamazepine in an HLA-B*15:02 carrier to reduce risk.

    InsteadThese reactions are largely dose-independent; the drug must be avoided.

  • MistakeSubstituting oxcarbazepine for carbamazepine in an HLA-B*15:02 carrier.

    InsteadThe association extends to oxcarbazepine; choose an unrelated agent.

  • MistakeRepeating an HLA-B*57:01 test because the earlier result is old.

    InsteadGermline HLA results are permanent; repeat testing adds no information.

  • MistakeStopping carbamazepine in a patient who has taken it uneventfully for years after a positive HLA-B*15:02 result.

    InsteadThe risk period is early; long-term tolerance means the drug can be continued.

  • MistakeFiling an HLA result in free text.

    InsteadIt belongs in the allergy or contraindication field so decision support fires for all related drugs.

  • MistakeReassuring a patient with a new rash plus fever and mouth ulcers two weeks after starting allopurinol.

    InsteadThese are features of a severe cutaneous adverse reaction; stop the drug and seek urgent assessment.

Summary and key terms

  • HLA-associated reactions are immune-mediated, largely dose-independent, delayed by days to weeks, and managed by avoidance rather than dose adjustment.
  • HLA molecules present peptides to T cells; drugs provoke responses through hapten formation, an altered peptide repertoire or direct receptor interactions.
  • HLA-B*57:01 screening before abacavir is standard of care and eliminates immunologically confirmed hypersensitivity.
  • HLA-B*15:02 predicts carbamazepine and oxcarbazepine severe cutaneous reactions in Southeast Asian populations; HLA-A*31:01 predicts carbamazepine hypersensitivity in European and Japanese populations.
  • HLA-B*58:01 raises the risk of severe cutaneous reactions with allopurinol, and an alternative urate-lowering drug is recommended for carriers.
  • Non-HLA safety genes include RYR1 and CACNA1S for malignant hyperthermia, BCHE for prolonged neuromuscular blockade, G6PD for oxidant drugs, MT-RNR1 for aminoglycoside ototoxicity and CFTR for modulator selection.
  • Positive safety genotypes are documented as contraindications covering related drugs, communicated to the patient in writing, and never managed by dose reduction.
Human leukocyte antigen
The highly polymorphic gene family encoding the molecules that present peptides to T cells.
Class I HLA
HLA-A, HLA-B and HLA-C molecules, which present intracellular peptides to CD8-positive T cells.
Hapten model
A mechanism in which a drug binds covalently to protein, creating modified peptides seen as foreign.
Altered peptide repertoire
A mechanism in which a drug in the HLA binding groove changes which self peptides are presented.
Stevens-Johnson syndrome
A severe cutaneous adverse reaction with mucosal involvement and epidermal detachment.
Drug reaction with eosinophilia and systemic symptoms
A delayed multi-organ drug hypersensitivity syndrome with eosinophilia.
Malignant hyperthermia susceptibility
An inherited predisposition, usually from RYR1 variants, to a hypermetabolic crisis triggered by volatile anesthetics or succinylcholine.
Butyrylcholinesterase deficiency
Reduced plasma enzyme activity causing prolonged blockade after succinylcholine or mivacurium.
CFTR modulator
A drug whose activity depends on the patient's specific CFTR variant class.

Practice problems

Work each problem on paper first, then reveal the answer to check.

  1. Why is dose reduction not a strategy for HLA-associated reactions?

    Show answer

    The reaction is immune-mediated and largely independent of dose; only avoidance reliably prevents it.

  2. A patient has taken carbamazepine for four years and is found to carry HLA-B*15:02. What is the advice?

    Show answer

    The high-risk period is the first weeks to months; established tolerance means the drug can be continued.

  3. Which antiseizure drugs should be avoided as substitutes in an HLA-B*15:02 carrier?

    Show answer

    Oxcarbazepine primarily, with caution for phenytoin and lamotrigine.

  4. What two drug classes require documented G6PD status before use?

    Show answer

    The 8-aminoquinoline antimalarials such as primaquine and tafenoquine, and rasburicase.

  5. Name four rash features that warrant urgent assessment rather than reassurance.

    Show answer

    Fever, mucosal involvement, skin pain or blistering, and extensive confluent rash with lymphadenopathy.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz