Each primary immunodeficiency knocks out one part of the immune system, and the infections show which one.
Chronic granulomatous disease is NADPH oxidase deficiency, with catalase-positive infections and an abnormal nitroblue tetrazolium test. Leukocyte adhesion deficiency causes delayed cord separation. Bruton's agammaglobulinaemia has absent B cells. IgA deficiency is the commonest antibody deficiency and can cause anaphylaxis with transfusions. DiGeorge syndrome (22q11.2) causes hypocalcaemia and tetralogy of Fallot. SCID is detected by low TRECs and cured by stem cell transplant.