Immunodeficiency and HIV
Immunodeficiency Disorders and HIV: Primary, Secondary and Opportunistic Infections
Primary immunodeficiencies (Bruton, DiGeorge, SCID, CGD, hyper-IgE, complement), secondary causes, and HIV testing, CD4 thresholds and treatment. Each defect is linked to the infections it allows, so the pattern of infection points to the missing arm of immunity.
Matching the defect to the infections
- Each arm of immunity guards against particular organisms, so the pattern of infection tells you which arm is missing.
| Defect | Typical infections |
|---|---|
| B cells / antibodies | Recurrent encapsulated bacteria (pneumococcus, Haemophilus): otitis, sinusitis, pneumonia, bronchiectasis; enteroviruses; Giardia |
| T cells | Viruses, fungi (Candida, Pneumocystis), intracellular bacteria (mycobacteria, Listeria), protozoa; failure to thrive |
| Th17 / IL-17 | Chronic mucocutaneous candidiasis of mouth, nails and skin without invasive disease |
| Neutrophils | Staphylococcus aureus, Gram-negatives, Aspergillus; abscesses, poor wound healing |
| Early complement (C1–C4) | SLE-like immune complex disease |
| C3 | Severe pyogenic infections |
| Terminal complement (C5–C9) | Recurrent Neisseria infections |
- Superficial Candida (mouth, nails, skin) points to Th17 failure; invasive Candida or Aspergillus points to neutrophil failure.
Antibody and T-cell disorders
| Disorder | Defect | Key features |
|---|---|---|
| X-linked agammaglobulinaemia (Bruton) | BTK; B cells cannot mature | Boys; infections from about 6 months when maternal IgG wanes; no B cells, all Ig low; tiny tonsils; no live polio vaccine |
| Common variable immunodeficiency | B cells fail to become plasma cells | Teens or adults; low Ig with B cells present; bronchiectasis, Giardia, autoimmunity, lymphoma |
| Selective IgA deficiency | Low IgA | Commonest primary immunodeficiency; often silent; coeliac disease; anaphylaxis to IgA in blood products |
| Hyper-IgM syndrome | CD40 ligand (X-linked): no class switch | Normal or high IgM, low IgG, IgA, IgE; Pneumocystis, Cryptosporidium |
| DiGeorge syndrome | 22q11 deletion; 3rd and 4th pharyngeal pouches | Thymic hypoplasia, hypocalcaemia, conotruncal heart defects, cleft palate |
| SCID | X-linked γ-chain (commonest) or ADA deficiency | T and B fail; thrush, Pneumocystis, diarrhoea in early infancy; no thymic shadow; stem cell transplant; no live vaccines |
| Wiskott–Aldrich | WAS gene (X-linked) | Eczema, thrombocytopenia with small platelets, recurrent infections; lymphoma |
| Ataxia-telangiectasia | ATM (DNA repair) | Ataxia, telangiectasia, IgA deficiency, raised AFP, radiosensitivity |
| Hyper-IgE (Job) syndrome | STAT3 (autosomal dominant); poor Th17 response | Eczema, cold staphylococcal abscesses, pneumonias leaving lung cysts (pneumatoceles), retained primary teeth, coarse face, very high IgE, eosinophilia |
- Eczema with infections is not always Wiskott–Aldrich: check the platelets (small and low in WAS) and IgE (very high in hyper-IgE).
Phagocyte disorders
- Chronic granulomatous disease (CGD): NADPH oxidase defect, so neutrophils cannot make superoxide (no respiratory burst). Infections with catalase-positive organisms: S. aureus, Aspergillus (a leading cause of death), Serratia, Nocardia, Burkholderia, Klebsiella; granulomas; recurrent lymphadenitis and liver abscesses.
- Why catalase matters: catalase-negative bacteria (streptococci) release their own H₂O₂, which the neutrophil's myeloperoxidase can use to kill them. Catalase-positive organisms destroy their own H₂O₂, so the neutrophil has nothing to work with.
- Test: nitroblue tetrazolium fails to turn blue, or dihydrorhodamine flow test is abnormal. Treat with prophylactic co-trimoxazole and itraconazole, interferon-γ, stem cell transplant.
- Myeloperoxidase deficiency: normal NBT test (respiratory burst intact) but neutrophils lack MPO staining; usually mild; recurrent Candida, especially in diabetics.
- Leucocyte adhesion deficiency (CD18): delayed umbilical cord separation, neutrophilia without pus. Chédiak–Higashi (LYST): giant granules, partial albinism, neuropathy.
Exam trap A normal NBT test excludes CGD; consider MPO deficiency when neutrophils lack the MPO granule enzyme.
Complement disorders and hereditary angioedema
- Terminal complement (C5–C9) deficiency: recurrent meningococcal infection; vaccinate.
- Hereditary angioedema (C1 esterase inhibitor deficiency, autosomal dominant): recurrent non-itchy swelling of face, larynx and gut (colicky pain) without urticaria, often triggered by trauma or dental work. Uncontrolled C1 activation consumes C4 and generates bradykinin.
- Serum C4 is the best screening test between attacks (low); C1 inhibitor level and function confirm.
- Acute attacks: C1 inhibitor concentrate or icatibant (bradykinin B2 antagonist); antihistamines, steroids and adrenaline work poorly. ACE inhibitors worsen it.
Secondary immunodeficiency
- Far commoner than primary: malnutrition (commonest worldwide), HIV, diabetes, kidney and liver disease, malignancy (lymphoma, myeloma, CLL), chemotherapy, steroids, burns, old age.
- Nephrotic syndrome: urinary loss of IgG and factor B (alternative complement pathway) explains pneumococcal peritonitis in children with relapsing nephrotic syndrome.
- Splenectomy: overwhelming infection with encapsulated bacteria (pneumococcus, meningococcus, Haemophilus); vaccinate and give prophylactic penicillin.
- Burns: Candida is the commonest non-bacterial opportunistic organism.
HIV: the virus and its target
- RNA retrovirus (lentivirus), not a DNA virus: reverse transcriptase copies RNA into DNA, integrase inserts it into the host genome.
- Envelope gp120 binds CD4, with co-receptor CCR5 (early) or CXCR4 (later); gp41 mediates fusion. Targets: CD4 T cells, macrophages, dendritic cells, microglia.
- Course: acute seroconversion illness (fever, rash, lymphadenopathy), a long latent period with falling CD4 (HIV has one of the longest incubation periods to clinical disease), then AIDS (CD4 below 200 or an AIDS-defining illness).
HIV testing
- Adults: fourth-generation test (antibody plus p24 antigen) shortens the window period; positives are confirmed with a different assay (Western blot formerly) and viral load by RNA PCR.
- Infants of HIV-positive mothers: maternal IgG crosses the placenta and persists up to 18 months, so antibody tests are useless; confirm with an HIV nucleic acid test (DNA or RNA PCR) at birth, 6 weeks and later.
Opportunistic infections and cancers
| CD4 count (cells/µL) | Typical problems |
|---|---|
| Any | TB (commonest serious OI in Pakistan), zoster, oral candida, bacterial pneumonia |
| Below 200 | Pneumocystis pneumonia (start co-trimoxazole prophylaxis), oesophageal candidiasis |
| Below 100 | Toxoplasma encephalitis (ring-enhancing lesions), cryptococcal meningitis |
| Below 50 | CMV retinitis, M. avium complex, primary CNS lymphoma (EBV), PML (JC virus) |
- Pneumocystis jirovecii pneumonia is the classic AIDS-defining infection: dry cough, breathlessness, hypoxia on exertion, bilateral perihilar shadowing.
- Oesophageal candidiasis (painful swallowing, white plaques): oral fluconazole empirically; failure to respond needs endoscopy for HSV, CMV or resistant Candida.
- Cryptococcal meningitis may have nearly normal CSF cells and glucose; test CSF cryptococcal antigen or India ink. Cryptosporidium causes chronic watery diarrhoea.
- Cancers: Kaposi sarcoma (HHV-8) is the commonest tumour and skin malignancy in advanced HIV; non-Hodgkin lymphoma (EBV-driven, often extranodal or CNS); invasive cervical cancer (HPV).
HIV treatment and prevention
- Everyone diagnosed starts combination ART regardless of CD4, typically two nucleoside reverse transcriptase inhibitors (tenofovir with lamivudine or emtricitabine) plus dolutegravir.
- Abacavir: test HLA-B*57:01 first; carriers risk a fatal hypersensitivity reaction, and abacavir is never restarted after a suspected reaction.
- Pre-exposure prophylaxis (PrEP): daily tenofovir–emtricitabine for HIV-negative people at ongoing high risk; confirm HIV-negative first, because PrEP in undiagnosed HIV breeds resistance.
- Post-exposure prophylaxis: tenofovir, lamivudine and dolutegravir within 72 hours for 28 days.
- Mother-to-child transmission: maternal ART through pregnancy and breastfeeding (historically zidovudine alone), infant prophylaxis (nevirapine or zidovudine), and infant NAT testing.
Remember Antibodies fight encapsulated bacteria, T cells fight viruses and fungi, neutrophils fight staph and Aspergillus, terminal complement fights Neisseria.
Exam trap Babies of HIV-positive mothers need nucleic acid testing; their antibody test reflects the mother's IgG.
How FCPS asks about this
- Test confirming HIV in a 3-month-old of an HIV-positive mother: HIV nucleic acid test (PCR).
- HIV protein binding CD4: gp120 (co-receptor CCR5).
- CD4 count for PCP prophylaxis: below 200; co-trimoxazole.
- Why CGD spares catalase-negative organisms: they supply their own H₂O₂.
- Eczema, cold abscesses, lung cysts, retained teeth, high IgE: hyper-IgE syndrome, STAT3.
- Recurrent non-itchy swelling without urticaria: hereditary angioedema; screen with serum C4.
- Test before abacavir: HLA-B*57:01; commonest tumour in AIDS is Kaposi sarcoma (HHV-8).
Test yourself on this topic
5 of the 29 questions in our bank on this topic. Choose an answer to see why every option is right or wrong.
An immunocompromised patient who had a bone marrow transplant has watery diarrhoea. Microscopy shows oocysts of 4-6 micrometres. What is the cause?
Answer: Cryptosporidium parvum
Cryptosporidium oocysts are 4-6 micrometres and are acid-fast on Ziehl-Neelsen staining. It causes severe, prolonged watery diarrhoea in the immunocompromised. How it's asked clinically: A 35-year-old man with advanced HIV has had profuse watery diarrhoea and weight loss for six weeks; a modified acid-fast stain of stool shows small oocysts → Cryptosporidium.
Opportunistic parasites
- Oocysts 4-6 μm, acid-fast
- Watery diarrhoea in AIDS, transplant
- Cyclospora 8-10 μm
- Isospora 20-30 μm
Remember Acid-fast oocysts of 4-6 micrometres in immunocompromised diarrhoea mean Cryptosporidium.
Why the other options are wrong
- Cyclospora cayetanensis Oocysts are 8-10 micrometres and also acid-fast; associated with imported produce.
- Entamoeba histolytica Produces cysts and causes bloody dysentery, not oocysts.
- Giardia lamblia Pear-shaped trophozoites and cysts, not oocysts.
- Cystoisospora belli Oocysts are large (20-30 micrometres) and oval.
Which fungus is the most common opportunistic fungal infection in HIV-infected patients?
Answer: Candida albicans
Oropharyngeal and oesophageal candidiasis is the commonest fungal complication of HIV and often appears early as CD4 counts fall. The others occur at lower CD4 counts and less often.
Opportunistic fungal infection in HIV
- Oral thrush is the early clue
- Oesophageal Candida is AIDS-defining
- Cryptococcus at CD4 <100
Remember Candida is the most common fungal infection in HIV, often oral thrush.
Why the other options are wrong
- Cryptococcus neoformans Causes meningitis at very low CD4 counts; common but less than Candida.
- Pneumocystis jirovecii Causes pneumonia at CD4 below 200, but is much less frequent than Candida.
- Histoplasma capsulatum Endemic mycosis causing disseminated disease in specific regions.
- Aspergillus fumigatus Invasive disease mostly in neutropenia and severe immunosuppression.
A child with eczema, recurrent respiratory infections and a low platelet count most likely has:
Answer: Wiskott-Aldrich syndrome
Wiskott-Aldrich syndrome is an X-linked disorder of the WASP gene causing the triad of eczema, recurrent infections and thrombocytopenia with small platelets. Defective actin cytoskeleton impairs T-cell and platelet function.
Primary immunodeficiency
- X-linked recessive, WAS gene
- Triad: eczema, infection, low platelets
- Small platelets
- Treat with stem cell transplant
Remember Wiskott-Aldrich syndrome: eczema, thrombocytopenia and recurrent infections.
Why the other options are wrong
- Ataxia telangiectasia Cerebellar ataxia and telangiectasia with IgA deficiency.
- Bruton agammaglobulinaemia Recurrent bacterial infections with absent B cells, but no eczema or low platelets.
- DiGeorge syndrome Presents with hypocalcaemia, cardiac defects and absent thymus.
- Hyper-IgM syndrome Presents with high IgM and low IgG, IgA, IgE; no thrombocytopenia.
A 3-year-old boy has had recurrent Staphylococcus aureus liver and skin abscesses and now has Aspergillus pneumonia. His neutrophil count is normal, but his neutrophils fail to reduce nitroblue tetrazolium dye. Which condition does he have?
Answer: Chronic granulomatous disease
Recurrent catalase-positive bacterial and fungal infections with normal neutrophil numbers but a negative nitroblue tetrazolium test show an absent respiratory burst from defective NADPH oxidase. Defective NADPH oxidase prevents the respiratory burst, so catalase-positive organisms such as Staphylococcus aureus, Aspergillus, Burkholderia and Serratia survive. Nitroblue tetrazolium or dihydrorhodamine tests are abnormal.
Phagocyte defects
- CGD: NADPH oxidase defect
- Test: DHR or NBT
- Bugs: catalase-positive
Remember CGD is NADPH oxidase deficiency; catalase-positive organisms and Aspergillus cause infections.
Why the other options are wrong
- DiGeorge syndrome T-cell deficiency from thymic hypoplasia.
- Bruton agammaglobulinaemia B-cell defect causing recurrent bacterial infections.
- Chediak-Higashi syndrome Lysosomal trafficking defect with albinism.
- Leukocyte adhesion deficiency Defective neutrophil migration with delayed cord separation.
A 3-year-old boy has had recurrent Staphylococcus aureus skin and liver abscesses and an Aspergillus pneumonia. Neutrophil count is normal, and his neutrophils ingest bacteria but fail to kill them. Which test assesses his likely defect?
Answer: Nitroblue tetrazolium test
Recurrent staphylococcal and Aspergillus abscesses in a boy whose neutrophils ingest but cannot kill catalase-positive organisms indicate chronic granulomatous disease. The nitroblue tetrazolium test detects reduction of dye during the neutrophil oxidative burst. Failure to form blue formazan supports defective NADPH oxidase activity.
Neutrophil function
- Oxidative burst requires NADPH oxidase
- Normal stimulated neutrophils produce blue formazan
- Modern flow testing commonly uses dihydrorhodamine
Remember Neutrophil oxidative activity reduces nitroblue tetrazolium to blue formazan.
Why the other options are wrong
- Coombs test The Coombs test detects antibodies or complement associated with red cells.
- Ristocetin aggregation test Ristocetin assesses von Willebrand factor-dependent platelet agglutination.
- Ham test The historical Ham test assessed complement-sensitive red-cell lysis.
- Schilling test The historical Schilling test assessed vitamin B12 absorption.
Where this sits in the CPSP syllabus
- Medicine & Allied, Paper 2: Immunopathology, Immunodeficiency disorders including HIV
Read next
Drug dose pages
Doses, cautions and practical tips for drugs in this chapter.