Make flash caddd and nktes to easily i get to memorise

Reading File
Running Command

cd /home/daytona/workspace/attachments/6ea590bb-e936-417f-8300-a2d27aea77fe/ && python3 -c " import pdfplumber with pdfplumber.open('inbound6066616538592547381.pdf') as pdf: print(f'Pages: {len(pdf.pages)}') for i, page in enumerate(pdf.pages): text = page.extract_text() print(f'--- PAGE {i+1} ---') print(text[:3000] if text else '[empty]') print() "

Running Command

mkdir -p /home/daytona/workspace/immunodeficiency-study

Writing File

~/immunodeficiency-study/flashcards.html

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Immunodeficiency Flashcards</title>
<style>
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: 'Segoe UI', sans-serif; background: #0f172a; color: #f1f5f9; min-height: 100vh; padding: 20px; }
  h1 { text-align: center; font-size: 1.8rem; margin-bottom: 6px; color: #38bdf8; }
  .subtitle { text-align: center; color: #94a3b8; margin-bottom: 24px; font-size: 0.95rem; }
  .progress { text-align: center; margin-bottom: 20px; font-size: 1rem; color: #94a3b8; }
  .progress span { color: #38bdf8; font-weight: bold; }

  /* Card scene */
  .scene { width: 100%; max-width: 680px; margin: 0 auto 28px; perspective: 1200px; }
  .card { width: 100%; min-height: 280px; position: relative; transform-style: preserve-3d; transition: transform 0.55s ease; cursor: pointer; }
  .card.flipped { transform: rotateY(180deg); }
  .face { position: absolute; width: 100%; min-height: 280px; backface-visibility: hidden; border-radius: 18px; padding: 36px 32px; display: flex; flex-direction: column; justify-content: center; }
  .front { background: linear-gradient(135deg, #1e3a5f, #1e40af); border: 2px solid #3b82f6; }
  .back  { background: linear-gradient(135deg, #1a3a2a, #166534); border: 2px solid #22c55e; transform: rotateY(180deg); }
  .label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; opacity: 0.6; margin-bottom: 12px; }
  .card-q  { font-size: 1.3rem; font-weight: 700; line-height: 1.5; color: #e0f2fe; }
  .card-a  { font-size: 1.05rem; line-height: 1.7; color: #d1fae5; }
  .card-a ul { padding-left: 18px; margin-top: 8px; }
  .card-a li { margin-bottom: 4px; }
  .tag { display: inline-block; font-size: 0.72rem; padding: 3px 10px; border-radius: 20px; background: rgba(255,255,255,0.15); margin-bottom: 10px; }

  /* Controls */
  .controls { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
  button { padding: 11px 26px; border: none; border-radius: 10px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
  #btn-flip  { background: #3b82f6; color: #fff; }
  #btn-flip:hover { background: #2563eb; }
  #btn-prev  { background: #334155; color: #cbd5e1; }
  #btn-prev:hover { background: #475569; }
  #btn-next  { background: #334155; color: #cbd5e1; }
  #btn-next:hover { background: #475569; }
  #btn-shuffle { background: #7c3aed; color: #fff; }
  #btn-shuffle:hover { background: #6d28d9; }

  /* Category filter */
  .filters { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
  .filter-btn { padding: 6px 16px; border-radius: 20px; font-size: 0.82rem; font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: all 0.2s; }
  .filter-btn.active { border-color: #38bdf8; color: #38bdf8; background: rgba(56,189,248,0.1); }
  .filter-btn:not(.active) { background: #1e293b; color: #94a3b8; }
  .filter-btn:hover:not(.active) { background: #263348; }

  /* Dots */
  .dots { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; max-width: 680px; margin: 0 auto; }
  .dot { width: 10px; height: 10px; border-radius: 50%; background: #334155; cursor: pointer; transition: background 0.2s; }
  .dot.active { background: #38bdf8; }
  .dot.seen { background: #475569; }
</style>
</head>
<body>

<h1>🧬 Immunodeficiency Flashcards</h1>
<p class="subtitle">Click card to flip • Use arrows to navigate</p>

<div class="filters" id="filters"></div>

<div class="progress">Card <span id="cur">1</span> of <span id="tot">0</span></div>

<div class="scene">
  <div class="card" id="card" onclick="flipCard()">
    <div class="face front">
      <div class="label">Question</div>
      <div class="card-q" id="q-text"></div>
    </div>
    <div class="face back">
      <div class="label">Answer</div>
      <div class="tag" id="tag-text"></div>
      <div class="card-a" id="a-text"></div>
    </div>
  </div>
</div>

<div class="controls">
  <button id="btn-prev" onclick="move(-1)">← Prev</button>
  <button id="btn-flip" onclick="flipCard()">Flip Card</button>
  <button id="btn-next" onclick="move(1)">Next →</button>
  <button id="btn-shuffle" onclick="shuffle()">🔀 Shuffle</button>
</div>

<div class="dots" id="dots"></div>

<script>
const ALL_CARDS = [
  // HOST DEFENSE
  { cat:"Host Defense", q:"What are the 5 main host defense mechanisms?", a:"<ul><li>Skin & mucosal barriers</li><li>Humoral immunity (B cells, plasma cells, Ab)</li><li>Cell-mediated immunity (T cells)</li><li>Phagocytosis</li><li>Complement</li></ul>" },

  // SUSPECTING IMMUNODEFICIENCY
  { cat:"Clinical Clues", q:"What 5 infection features suggest immunodeficiency?", a:"<ul><li>Frequent</li><li>Recurrent / chronic</li><li>Unusual organisms</li><li>Poor response to therapy</li><li>+ Family history / growth retardation</li></ul>" },
  { cat:"Clinical Clues", q:"What infections suggest HUMORAL (B-cell) deficiency?", a:"<ul><li>Recurrent infections with <b>encapsulated bacteria</b></li><li>Chronic sinopulmonary infections</li></ul>" },
  { cat:"Clinical Clues", q:"What infections suggest CELLULAR (T-cell) deficiency?", a:"<ul><li>Viruses, fungi, opportunistic organisms (PCP)</li><li>Diarrhea, wasting, growth retardation</li></ul>" },

  // HUMORAL
  { cat:"Humoral (B-cell)", q:"Transient hypogammaglobulinemia of infancy — key facts?", a:"<ul><li>Slow to develop normal Ab levels</li><li>Low IgG, IgA (IgM usually normal)</li><li>Asymptomatic / minor infections</li><li>Resolves by <b>3–6 years old</b></li></ul>" },
  { cat:"Humoral (B-cell)", q:"IgA deficiency — key facts?", a:"<ul><li><b>Most common</b> humoral antibody deficiency</li><li>50–80% asymptomatic</li><li>Recurrent sinopulmonary infections most common</li><li>May cause severe malabsorption (chronic diarrhea)</li><li>↑ risk of autoimmune disorders</li><li>Isolated low IgA level</li></ul>" },
  { cat:"Humoral (B-cell)", q:"Bruton's X-linked Agammaglobulinemia — cause & mechanism?", a:"<b>No B cells</b> (mutation in BTK)<br>Child well for first 6 months (maternal Ab).<br>Then recurrent RTIs with <b>encapsulated bacteria</b> (S. pneumo, H. flu)." },
  { cat:"Humoral (B-cell)", q:"Bruton's XLA — labs & treatment?", a:"<ul><li>Markedly ↓ IgG, IgA, IgM</li><li>Paucity of lymphoid tissue (tonsils, adenoids)</li><li>Bronchiectasis → chronic cough / ↑ sputum</li><li>Sepsis, meningitis, skin infections</li><li><b>Tx:</b> IVIG + antibiotic therapy</li></ul>" },
  { cat:"Humoral (B-cell)", q:"Common Variable Immunodeficiency (CVID) — key facts?", a:"<ul><li>B lymphs don't differentiate into <b>plasma cells</b></li><li>Low IgG, IgA, IgM</li><li>Recurrent sinopulmonary infections</li><li>Associated with autoimmune disease, lymphoma</li><li><b>Tx:</b> IVIG</li></ul>" },

  // CELLULAR
  { cat:"Cellular (T-cell)", q:"DiGeorge Syndrome — cause & mnemonic?", a:"<b>No T cells</b> due to thymic hypoplasia (22q11 deletion)<br><br><b>CATCH 22:</b><br>Cardiac defects, Abnormal facies, Thymic aplasia, Cleft palate, Hypocalcemia, 22q11 deletion" },
  { cat:"Cellular (T-cell)", q:"DiGeorge Syndrome — treatment?", a:"<ul><li>Correct <b>hypocalcemia</b></li><li>Repair cardiac defects</li><li>Fetal thymus transplant</li><li>Overwhelmning infections: viruses, fungi, bacteria</li></ul>" },

  // COMBINED
  { cat:"Combined", q:"SCID — cause & mechanism?", a:"<ul><li>Defects in <b>stem cell maturation</b></li><li>Adenosine deaminase deficiency (toxic insult to T & B cells)</li><li>Manifestations in first <b>3 months</b> of life</li></ul>" },
  { cat:"Combined", q:"SCID — clinical features & treatment?", a:"<ul><li>Recurrent severe bacterial, viral, fungal, protozoan infections</li><li>Failure to thrive, diarrhea, dermatitis, candidiasis</li><li>Lymphopenia, ↓ IgG, IgA, IgM</li><li><b>Dx:</b> T, B, NK cell subset analysis</li><li><b>Tx:</b> Isolation, treat infections, <b>bone marrow transplant</b></li></ul>" },
  { cat:"Combined", q:"Wiskott-Aldrich Syndrome — classic triad?", a:"X-linked recessive<br><br><b>Triad:</b><ul><li>Recurrent severe <b>infections</b></li><li><b>Eczema</b></li><li><b>Thrombocytopenia</b> (petechiae)</li></ul>Low IgM; ↑ risk hematologic malignancy<br><b>Tx:</b> BMT" },
  { cat:"Combined", q:"Ataxia Telangiectasia — key facts?", a:"<ul><li>Autosomal recessive</li><li>Deficiency in <b>DNA repair</b> → affects T & B cells</li><li>Progressive ataxia, telangiectasia</li><li>Recurrent sinopulmonary infections</li><li>↑ risk of leukemia, lymphoma</li></ul>" },
  { cat:"Combined", q:"Hyper IgE (Job) Syndrome — the 3 E's?", a:"<b>3 E's:</b><ul><li><b>E</b>levated IgE</li><li><b>E</b>osinophilia</li><li><b>E</b>czema</li></ul>Also: coarse facial features, skeletal abnormalities,<br>recurrent <b>staph</b> infections, pneumonia with <b>pneumatocele</b> formation<br>Autosomal recessive" },
  { cat:"Combined", q:"Hyper IgM Syndrome — mechanism & labs?", a:"<ul><li>T cell abnormality prevents class switching <b>IgM → IgG</b></li><li>X-linked recessive (males 6 mo–1 yr)</li><li>Low IgG/IgA, <b>high IgM</b></li><li>Frequent sinopulmonary infections, diarrhea, PCP</li><li><b>Tx:</b> Ig replacement</li></ul>" },

  // HIV
  { cat:"HIV", q:"HIV — mechanism & transmission?", a:"<ul><li>Retrovirus infecting <b>CD4+ cells</b></li><li>Transmission: vertical, breast milk, sex</li></ul>" },
  { cat:"HIV", q:"HIV in children — features & initial management?", a:"<ul><li>Failure to thrive, fevers, night sweats, malaise</li><li>Recurrent thrush, recurrent bacterial infections</li><li>↓ CD4 count, may have elevated Ig</li><li><b>Tx:</b> AZT × 6 weeks, PCP prophylaxis</li></ul>" },

  // PHAGOCYTIC
  { cat:"Phagocytic", q:"Chronic Granulomatous Disease (CGD) — cause & dx?", a:"<ul><li>Defective <b>NADPH oxidase</b> (can't generate oxidative burst)</li><li>75% X-linked, 25% AR</li><li><b>Dx:</b> Nitroblue tetrazolium (NBT) test</li></ul>" },
  { cat:"Phagocytic", q:"Chronic Granulomatous Disease (CGD) — features & treatment?", a:"<ul><li>Severe recurrent <b>staph aureus</b> infections</li><li>Lymph nodes, skin granulomas (heal slowly)</li><li>Pneumonitis, osteomyelitis, hepatosplenomegaly</li><li><b>Tx:</b> Antimicrobial prophylaxis, IFN-γ, BMT</li></ul>" },
  { cat:"Phagocytic", q:"Leukocyte Adhesion Deficiency (LAD) — hallmarks?", a:"<ul><li>Deficient <b>chemotaxis</b></li><li>Recurrent soft tissue, skin, respiratory infections</li><li><b>No pus / minimal inflammation</b></li><li><b>Delayed umbilical cord separation</b></li><li>↑ WBC count</li><li><b>Tx:</b> BMT</li></ul>" },

  // COMPLEMENT
  { cat:"Complement", q:"Early complement defects (C1–C4) — associated infections?", a:"<ul><li>Encapsulated bacteria</li><li>Present similarly to humoral immune deficiencies</li><li>Also associated with autoimmune-like conditions</li></ul>" },
  { cat:"Complement", q:"Late complement defects (C5–C9) — associated infections?", a:"<b>Neisseria</b> infections (meningitidis, gonorrhoeae)<br>Also associated with autoimmune-like conditions" },
  { cat:"Complement", q:"How do you assess the entire complement cascade?", a:"<b>CH50 functional assay</b><br>(Also may test individual components)" },
];

// Categories
const CATS = ["All", ...new Set(ALL_CARDS.map(c=>c.cat))];
let activeFilter = "All";
let deck = [...ALL_CARDS];
let idx = 0;
let seen = new Set();

// Build filters
const filterEl = document.getElementById("filters");
CATS.forEach(cat => {
  const b = document.createElement("button");
  b.className = "filter-btn" + (cat==="All"?" active":"");
  b.textContent = cat;
  b.onclick = () => setFilter(cat, b);
  filterEl.appendChild(b);
});

function setFilter(cat, btn) {
  activeFilter = cat;
  document.querySelectorAll(".filter-btn").forEach(b=>b.classList.remove("active"));
  btn.classList.add("active");
  deck = cat==="All" ? [...ALL_CARDS] : ALL_CARDS.filter(c=>c.cat===cat);
  idx = 0; seen = new Set();
  renderCard(); buildDots();
}

function renderCard() {
  seen.add(idx);
  document.getElementById("card").classList.remove("flipped");
  const c = deck[idx];
  document.getElementById("q-text").textContent = c.q;
  document.getElementById("a-text").innerHTML = c.a;
  document.getElementById("tag-text").textContent = c.cat;
  document.getElementById("cur").textContent = idx+1;
  document.getElementById("tot").textContent = deck.length;
  updateDots();
}

function flipCard() {
  document.getElementById("card").classList.toggle("flipped");
}

function move(dir) {
  document.getElementById("card").classList.remove("flipped");
  idx = (idx + dir + deck.length) % deck.length;
  setTimeout(renderCard, 120);
}

function shuffle() {
  deck.sort(()=>Math.random()-0.5);
  idx = 0; seen = new Set();
  renderCard(); buildDots();
}

function buildDots() {
  const dotsEl = document.getElementById("dots");
  dotsEl.innerHTML = "";
  deck.forEach((_,i) => {
    const d = document.createElement("div");
    d.className = "dot" + (i===idx?" active":"");
    d.onclick = () => { idx=i; renderCard(); };
    dotsEl.appendChild(d);
  });
}

function updateDots() {
  document.querySelectorAll(".dot").forEach((d,i)=>{
    d.className = "dot" + (i===idx?" active":seen.has(i)?" seen":"");
  });
}

// Keyboard
document.addEventListener("keydown", e => {
  if(e.key==="ArrowRight"||e.key===" ") move(1);
  else if(e.key==="ArrowLeft") move(-1);
  else if(e.key==="Enter"||e.key==="f") flipCard();
});

renderCard();
buildDots();
</script>
</body>
</html>
Writing File

~/immunodeficiency-study/notes.html

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Immunodeficiency Study Notes</title>
<style>
  *{box-sizing:border-box;margin:0;padding:0;}
  body{font-family:'Segoe UI',sans-serif;background:#0f172a;color:#e2e8f0;padding:24px 16px;line-height:1.7;}
  .container{max-width:900px;margin:0 auto;}
  h1{text-align:center;font-size:2rem;color:#38bdf8;margin-bottom:4px;}
  .tagline{text-align:center;color:#94a3b8;margin-bottom:32px;font-size:0.9rem;}

  /* TOC */
  .toc{background:#1e293b;border-radius:14px;padding:20px 24px;margin-bottom:36px;}
  .toc h2{color:#38bdf8;font-size:1rem;margin-bottom:12px;text-transform:uppercase;letter-spacing:1px;}
  .toc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:6px;}
  .toc a{color:#7dd3fc;text-decoration:none;font-size:0.9rem;padding:4px 8px;border-radius:6px;display:block;}
  .toc a:hover{background:rgba(56,189,248,0.1);color:#38bdf8;}

  /* Sections */
  .section{margin-bottom:40px;}
  .section-header{display:flex;align-items:center;gap:12px;margin-bottom:16px;}
  .section-icon{font-size:1.4rem;}
  h2{font-size:1.35rem;color:#38bdf8;border-bottom:2px solid #1e3a5f;padding-bottom:6px;flex:1;}

  /* Cards grid */
  .cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px;}
  .card{background:#1e293b;border-radius:14px;padding:18px 20px;border-left:4px solid #3b82f6;transition:transform 0.15s;}
  .card:hover{transform:translateY(-2px);}
  .card.green{border-color:#22c55e;}
  .card.purple{border-color:#a855f7;}
  .card.orange{border-color:#f97316;}
  .card.red{border-color:#ef4444;}
  .card.yellow{border-color:#eab308;}
  .card.pink{border-color:#ec4899;}

  .card h3{font-size:1rem;color:#e0f2fe;margin-bottom:10px;display:flex;align-items:center;gap:6px;}
  .card p,.card li{font-size:0.88rem;color:#cbd5e1;line-height:1.6;}
  .card ul{padding-left:16px;}
  .card li{margin-bottom:3px;}

  /* Highlight badges */
  .badge{display:inline-block;font-size:0.72rem;font-weight:700;padding:2px 8px;border-radius:12px;margin-right:4px;margin-bottom:4px;}
  .b-blue{background:#1d4ed8;color:#bfdbfe;}
  .b-green{background:#15803d;color:#bbf7d0;}
  .b-red{background:#b91c1c;color:#fecaca;}
  .b-yellow{background:#a16207;color:#fef08a;}
  .b-purple{background:#7e22ce;color:#e9d5ff;}
  .b-orange{background:#c2410c;color:#fed7aa;}

  /* Big table */
  .table-wrap{overflow-x:auto;margin-bottom:40px;}
  table{width:100%;border-collapse:collapse;font-size:0.83rem;}
  thead th{background:#1e3a5f;color:#7dd3fc;padding:10px 12px;text-align:left;white-space:nowrap;}
  tbody td{padding:9px 12px;border-bottom:1px solid #1e293b;vertical-align:top;}
  tbody tr:nth-child(odd){background:#131f35;}
  tbody tr:nth-child(even){background:#0f172a;}
  tbody tr:hover{background:#1e293b;}

  /* Quick-ref pills */
  .pills{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:36px;}
  .pill{background:#1e293b;border:1px solid #334155;border-radius:20px;padding:8px 16px;font-size:0.82rem;}
  .pill strong{color:#38bdf8;}

  /* Mnemonic box */
  .mnemonic{background:linear-gradient(135deg,#1e1b4b,#2e1065);border:2px solid #7c3aed;border-radius:14px;padding:18px 22px;margin-bottom:16px;}
  .mnemonic h3{color:#c4b5fd;margin-bottom:10px;font-size:1rem;}
  .mnemonic p,.mnemonic li{color:#ddd6fe;font-size:0.9rem;}
  .mnemonic ul{padding-left:16px;}

  /* sticky header offset for anchors */
  :target{scroll-margin-top:16px;}
</style>
</head>
<body>
<div class="container">

<h1>🧬 Immunodeficiency Study Notes</h1>
<p class="tagline">Pediatric Immunology — concise reference for rapid review</p>

<!-- TABLE OF CONTENTS -->
<div class="toc">
  <h2>📋 Contents</h2>
  <div class="toc-grid">
    <a href="#host-defense">Host Defense Mechanisms</a>
    <a href="#clues">Suspecting Immunodeficiency</a>
    <a href="#humoral">Humoral (B-cell) Disorders</a>
    <a href="#cellular">Cellular (T-cell) Disorders</a>
    <a href="#combined">Combined Immunodeficiencies</a>
    <a href="#hiv">HIV</a>
    <a href="#phagocytic">Phagocytic Disorders</a>
    <a href="#complement">Complement Disorders</a>
    <a href="#summary-table">Summary Comparison Table</a>
    <a href="#mnemonics">Mnemonics Cheatsheet</a>
  </div>
</div>

<!-- HOST DEFENSE -->
<div class="section" id="host-defense">
  <div class="section-header"><span class="section-icon">🛡️</span><h2>Host Defense Mechanisms</h2></div>
  <div class="cards-grid">
    <div class="card">
      <h3>5 Layers of Defense</h3>
      <ul>
        <li>Skin & mucosal barriers</li>
        <li>Humoral immunity (B cells, plasma cells, Ab)</li>
        <li>Cell-mediated immunity (T cells)</li>
        <li>Phagocytosis</li>
        <li>Complement</li>
      </ul>
    </div>
  </div>
</div>

<!-- CLUES -->
<div class="section" id="clues">
  <div class="section-header"><span class="section-icon">🔍</span><h2>Suspecting Immunodeficiency</h2></div>
  <div class="cards-grid">
    <div class="card green">
      <h3>Red Flags in Infections</h3>
      <ul>
        <li>Frequent / recurrent / chronic</li>
        <li>Unusual organisms</li>
        <li>Poor response to therapy</li>
        <li>Growth retardation</li>
        <li>Family history</li>
      </ul>
    </div>
    <div class="card">
      <h3>Humoral (B-cell) Pattern</h3>
      <span class="badge b-blue">Encapsulated bacteria</span>
      <span class="badge b-blue">Sinopulmonary</span>
      <ul>
        <li>Recurrent infections with <strong>encapsulated bacteria</strong></li>
        <li>Chronic sinopulmonary infections</li>
      </ul>
    </div>
    <div class="card orange">
      <h3>Cellular (T-cell) Pattern</h3>
      <span class="badge b-orange">Viruses</span>
      <span class="badge b-orange">Fungi</span>
      <span class="badge b-orange">PCP</span>
      <ul>
        <li>Viruses, fungi, opportunistic (PCP)</li>
        <li>Diarrhea, wasting, growth retardation</li>
      </ul>
    </div>
  </div>
</div>

<!-- HUMORAL -->
<div class="section" id="humoral">
  <div class="section-header"><span class="section-icon">💉</span><h2>Humoral (B-cell) Immunodeficiencies</h2></div>
  <div class="cards-grid">
    <div class="card">
      <h3>Transient Hypogammaglobulinemia of Infancy</h3>
      <ul>
        <li>Slow to develop normal Ab levels</li>
        <li>Low IgG, IgA (IgM usually normal)</li>
        <li>Asymptomatic or minor infections</li>
        <li><span class="badge b-green">Resolves by 3–6 yrs</span></li>
      </ul>
    </div>
    <div class="card green">
      <h3>IgA Deficiency</h3>
      <span class="badge b-green">Most Common</span>
      <ul>
        <li>50–80% <strong>asymptomatic</strong></li>
        <li>Recurrent sinopulmonary infections</li>
        <li>Severe malabsorption (chronic diarrhea)</li>
        <li>Isolated low IgA</li>
        <li>↑ risk autoimmune disorders</li>
      </ul>
    </div>
    <div class="card red">
      <h3>Bruton's XLA</h3>
      <span class="badge b-red">X-linked</span><span class="badge b-red">No B cells</span>
      <ul>
        <li>Well for first 6 months (maternal Ab)</li>
        <li>Recurrent RTIs — <strong>S. pneumo, H. flu</strong></li>
        <li>Sepsis, meningitis, skin infections</li>
        <li>Paucity lymphoid tissue (↓ tonsils)</li>
        <li>Bronchiectasis → chronic cough</li>
        <li>↓↓ IgG, IgA, IgM</li>
        <li><span class="badge b-red">Tx: IVIG + antibiotics</span></li>
      </ul>
    </div>
    <div class="card purple">
      <h3>CVID (Common Variable)</h3>
      <span class="badge b-purple">B cells can't → plasma cells</span>
      <ul>
        <li>Low IgG, IgA, IgM</li>
        <li>Recurrent sinopulmonary infections</li>
        <li>Associated: autoimmune disease, lymphoma</li>
        <li><span class="badge b-purple">Tx: IVIG</span></li>
      </ul>
    </div>
  </div>
</div>

<!-- CELLULAR -->
<div class="section" id="cellular">
  <div class="section-header"><span class="section-icon">🦠</span><h2>Cellular (T-cell) Immunodeficiencies</h2></div>
  <div class="cards-grid">
    <div class="card orange">
      <h3>DiGeorge Syndrome</h3>
      <span class="badge b-orange">22q11 deletion</span><span class="badge b-orange">No T cells</span>
      <ul>
        <li>Thymic hypoplasia → no T cells</li>
        <li>Overwhelming viral, fungal, bacterial infections</li>
        <li><strong>CATCH 22:</strong> Cardiac defects, Abnormal facies, Thymic aplasia, Cleft palate, Hypocalcemia, 22q11</li>
        <li>Tx: correct hypocalcemia, fix cardiac defects, fetal thymus transplant</li>
      </ul>
    </div>
  </div>
</div>

<!-- COMBINED -->
<div class="section" id="combined">
  <div class="section-header"><span class="section-icon">🔗</span><h2>Combined Immunodeficiencies</h2></div>
  <div class="cards-grid">
    <div class="card red">
      <h3>SCID</h3>
      <span class="badge b-red">Stem cell defect</span>
      <ul>
        <li>Adenosine deaminase deficiency (toxic to T & B cells)</li>
        <li>Symptoms in first <strong>3 months</strong></li>
        <li>Recurrent severe bacterial, viral, fungal, protozoan infections</li>
        <li>FTT, diarrhea, dermatitis, candidiasis</li>
        <li>Lymphopenia, ↓ IgG/IgA/IgM</li>
        <li>Dx: T/B/NK cell subsets</li>
        <li><span class="badge b-red">Tx: isolation, treat infections, BMT</span></li>
      </ul>
    </div>
    <div class="card">
      <h3>Wiskott-Aldrich Syndrome</h3>
      <span class="badge b-blue">X-linked recessive</span>
      <p style="margin-bottom:8px"><strong>Triad:</strong></p>
      <ul>
        <li>Recurrent severe <strong>infections</strong></li>
        <li><strong>Eczema</strong></li>
        <li><strong>Thrombocytopenia</strong> (petechiae)</li>
      </ul>
      <p style="margin-top:8px">Low IgM; ↑ hematologic malignancy risk</p>
      <span class="badge b-blue">Tx: BMT</span>
    </div>
    <div class="card purple">
      <h3>Ataxia Telangiectasia</h3>
      <span class="badge b-purple">AR</span><span class="badge b-purple">DNA repair defect</span>
      <ul>
        <li>Progressive <strong>ataxia</strong> + telangiectasia</li>
        <li>T & B cell dysfunction</li>
        <li>Recurrent sinopulmonary infections</li>
        <li>↑ risk leukemia, lymphoma</li>
      </ul>
    </div>
    <div class="card yellow">
      <h3>Hyper IgE (Job) Syndrome</h3>
      <span class="badge b-yellow">AR</span>
      <p><strong>3 E's:</strong></p>
      <ul>
        <li><strong>E</strong>levated IgE</li>
        <li><strong>E</strong>osinophilia</li>
        <li><strong>E</strong>czema</li>
      </ul>
      <p style="margin-top:8px">Coarse facies, skeletal abnormalities<br>Recurrent <strong>staph</strong> infections<br>Pneumonia with <strong>pneumatoceles</strong></p>
    </div>
    <div class="card pink">
      <h3>Hyper IgM Syndrome</h3>
      <span class="badge b-purple">X-linked recessive</span>
      <ul>
        <li>T cell abnormality → can't class-switch IgM → IgG</li>
        <li>Males 6 mo–1 yr</li>
        <li>Low IgG/IgA, <strong>high IgM</strong></li>
        <li>Sinopulmonary, diarrhea, PCP</li>
        <li><span class="badge b-purple">Tx: Ig replacement</span></li>
      </ul>
    </div>
  </div>
</div>

<!-- HIV -->
<div class="section" id="hiv">
  <div class="section-header"><span class="section-icon">🔴</span><h2>HIV</h2></div>
  <div class="cards-grid">
    <div class="card red">
      <h3>HIV Overview</h3>
      <span class="badge b-red">CD4+ retrovirus</span>
      <ul>
        <li>Infects <strong>CD4+ T cells</strong></li>
        <li>Transmission: vertical, breast milk, sex</li>
        <li>FTT, fevers, night sweats, malaise</li>
        <li>Recurrent thrush, recurrent bacterial infections</li>
        <li>↓ CD4, may have elevated Ig</li>
        <li>Tx: <strong>AZT × 6 weeks</strong>, PCP prophylaxis</li>
      </ul>
    </div>
  </div>
</div>

<!-- PHAGOCYTIC -->
<div class="section" id="phagocytic">
  <div class="section-header"><span class="section-icon">🔵</span><h2>Phagocytic Disorders</h2></div>
  <div class="cards-grid">
    <div class="card">
      <h3>Chronic Granulomatous Disease (CGD)</h3>
      <span class="badge b-blue">NADPH oxidase defect</span>
      <ul>
        <li>75% X-linked, 25% AR</li>
        <li>Can't kill catalase+ organisms (e.g. <strong>S. aureus</strong>)</li>
        <li>Severe recurrent staph infections: skin, lymph nodes, granulomas, pneumonitis, osteo, hepatosplenomegaly</li>
        <li>Dx: <strong>Nitroblue tetrazolium (NBT) test</strong></li>
        <li>Tx: antimicrobial prophylaxis, IFN-γ, BMT</li>
      </ul>
    </div>
    <div class="card green">
      <h3>Leukocyte Adhesion Deficiency (LAD)</h3>
      <span class="badge b-green">Chemotaxis defect</span>
      <ul>
        <li>Recurrent soft tissue, skin, respiratory infections</li>
        <li><strong>No pus, minimal inflammation</strong></li>
        <li><strong>Delayed umbilical cord separation</strong> ← key clue!</li>
        <li>↑ WBC count</li>
        <li>Tx: BMT</li>
      </ul>
    </div>
  </div>
</div>

<!-- COMPLEMENT -->
<div class="section" id="complement">
  <div class="section-header"><span class="section-icon">⚗️</span><h2>Complement System Disorders</h2></div>
  <div class="cards-grid">
    <div class="card">
      <h3>Early Defects (C1–C4)</h3>
      <ul>
        <li>Infections with <strong>encapsulated bacteria</strong></li>
        <li>Presentation similar to humoral deficiency</li>
        <li>Associated with autoimmune-like conditions</li>
      </ul>
    </div>
    <div class="card orange">
      <h3>Late Defects (C5–C9)</h3>
      <ul>
        <li><strong>Neisseria</strong> infections (meningitidis, gonorrhoeae)</li>
        <li>Associated with autoimmune-like conditions</li>
      </ul>
    </div>
    <div class="card green">
      <h3>Testing</h3>
      <ul>
        <li><strong>CH50 functional assay</strong> — screens entire cascade</li>
        <li>Individual component testing available</li>
        <li>Tx: treat infectious and autoimmune sequelae</li>
      </ul>
    </div>
  </div>
</div>

<!-- SUMMARY TABLE -->
<div class="section" id="summary-table">
  <div class="section-header"><span class="section-icon">📊</span><h2>Summary Comparison Table</h2></div>
  <div class="table-wrap">
    <table>
      <thead>
        <tr>
          <th>Disorder</th><th>Type</th><th>Key Defect</th><th>Organisms / Features</th><th>Unique Clue</th><th>Tx</th>
        </tr>
      </thead>
      <tbody>
        <tr><td>Transient Hypogamma</td><td>B cell</td><td>Slow Ab maturation</td><td>Minor/none</td><td>Resolves 3–6 yo</td><td>Observation</td></tr>
        <tr><td>IgA Deficiency</td><td>B cell</td><td>Isolated ↓ IgA</td><td>Sinopulmonary, diarrhea</td><td>Most common humoral; autoimmune risk</td><td>Supportive</td></tr>
        <tr><td>Bruton's XLA</td><td>B cell</td><td>No B cells (BTK mutation)</td><td>Encapsulated bacteria</td><td>No tonsils, onset after 6 mo</td><td>IVIG + ABx</td></tr>
        <tr><td>CVID</td><td>B cell</td><td>B cells → no plasma cells</td><td>Sinopulmonary</td><td>Lymphoma risk</td><td>IVIG</td></tr>
        <tr><td>DiGeorge</td><td>T cell</td><td>Thymic aplasia (22q11)</td><td>Viral, fungal</td><td>CATCH 22; hypocalcemia</td><td>Thymus transplant</td></tr>
        <tr><td>SCID</td><td>Combined</td><td>Stem cell maturation</td><td>All pathogens</td><td>Symptoms by 3 months</td><td>BMT</td></tr>
        <tr><td>Wiskott-Aldrich</td><td>Combined</td><td>X-linked</td><td>All</td><td>Eczema + thrombocytopenia + infections</td><td>BMT</td></tr>
        <tr><td>Ataxia Telangiectasia</td><td>Combined</td><td>DNA repair (AR)</td><td>Sinopulmonary</td><td>Ataxia + telangiectasia</td><td>Supportive</td></tr>
        <tr><td>Hyper IgE (Job)</td><td>Combined</td><td>AR</td><td>Staph (pneumatoceles)</td><td>3 E's: Elevated IgE, Eosinophilia, Eczema</td><td>Antimicrobials</td></tr>
        <tr><td>Hyper IgM</td><td>Combined</td><td>No class switching</td><td>Sinopulmonary, PCP</td><td>High IgM, low IgG/IgA</td><td>Ig replacement</td></tr>
        <tr><td>HIV</td><td>T cell</td><td>CD4+ destruction</td><td>Opportunistic + bacterial</td><td>↓ CD4, recurrent thrush</td><td>AZT × 6 wk, PCP Px</td></tr>
        <tr><td>CGD</td><td>Phagocytic</td><td>NADPH oxidase</td><td>S. aureus, catalase+ bugs</td><td>Abnormal NBT test; granulomas</td><td>IFN-γ, BMT</td></tr>
        <tr><td>LAD</td><td>Phagocytic</td><td>Chemotaxis defect</td><td>Skin/soft tissue</td><td>No pus; delayed umbilical separation</td><td>BMT</td></tr>
        <tr><td>Complement C1–C4</td><td>Complement</td><td>Classical pathway</td><td>Encapsulated bacteria</td><td>Autoimmune features, like humoral deficiency</td><td>Treat sequelae</td></tr>
        <tr><td>Complement C5–C9</td><td>Complement</td><td>MAC deficiency</td><td>Neisseria</td><td>Recurrent meningococcal/gonococcal</td><td>Treat sequelae</td></tr>
      </tbody>
    </table>
  </div>
</div>

<!-- MNEMONICS -->
<div class="section" id="mnemonics">
  <div class="section-header"><span class="section-icon">🧠</span><h2>Mnemonics Cheatsheet</h2></div>

  <div class="mnemonic">
    <h3>DiGeorge — CATCH 22</h3>
    <ul>
      <li><strong>C</strong>ardiac defects</li>
      <li><strong>A</strong>bnormal facies</li>
      <li><strong>T</strong>hymic aplasia</li>
      <li><strong>C</strong>left palate</li>
      <li><strong>H</strong>ypocalcemia</li>
      <li><strong>22</strong>q11 deletion</li>
    </ul>
  </div>

  <div class="mnemonic">
    <h3>Hyper IgE (Job) — The 3 E's</h3>
    <ul>
      <li><strong>E</strong>levated IgE</li>
      <li><strong>E</strong>osinophilia</li>
      <li><strong>E</strong>czema</li>
    </ul>
    <p>+ Recurrent <strong>staph</strong> infections with pneumatoceles</p>
  </div>

  <div class="mnemonic">
    <h3>Wiskott-Aldrich — WIT</h3>
    <ul>
      <li><strong>W</strong>eakened immunity (recurrent infections)</li>
      <li><strong>I</strong>tchy skin (eczema)</li>
      <li><strong>T</strong>hrombocytopenia</li>
    </ul>
  </div>

  <div class="mnemonic">
    <h3>LAD Clue — "No pus, no rush, no cord"</h3>
    <ul>
      <li>No pus (minimal inflammation)</li>
      <li>No rush to heal (impaired wound healing)</li>
      <li>Delayed umbilical cord separation</li>
    </ul>
  </div>

  <div class="mnemonic">
    <h3>B-cell vs T-cell Infections</h3>
    <ul>
      <li><strong>B cells</strong> → Bacteria (especially encapsulated: S. pneumo, H. flu)</li>
      <li><strong>T cells</strong> → Viruses, Fungi, Parasites (e.g. PCP)</li>
    </ul>
  </div>

  <div class="mnemonic">
    <h3>Complement Defects</h3>
    <ul>
      <li><strong>Early (C1–C4)</strong> → same as humoral deficiency → encapsulated bacteria + autoimmune</li>
      <li><strong>Late (C5–C9)</strong> → <strong>Neisseria</strong> specifically</li>
    </ul>
  </div>
</div>

<p style="text-align:center;color:#475569;font-size:0.8rem;margin-top:40px;">Pediatric Immunodeficiencies — Study Notes</p>
</div>
</body>
</html>
Both files are ready! Here's what I made from your PDF:

📚 Immunodeficiency Study Materials

🃏 Flashcards

flashcards

HTML File · HTML

25 flashcards covering every condition. Features:
  • Click card to flip between Q and A
  • Arrow keys or buttons to navigate
  • Filter by category (Humoral, T-cell, Combined, Phagocytic, etc.)
  • Shuffle mode
  • Progress dots to track what you've seen

📝 Study Notes

notes

HTML File · HTML

Structured reference with:
  • Color-coded condition cards by category
  • Summary comparison table — all 15 disorders side-by-side (defect, organisms, unique clue, treatment)
  • Mnemonics cheatsheet (CATCH 22, 3 E's, WIT, No-pus-no-rush-no-cord, etc.)
  • Clickable table of contents

Quick memory hooks from the content:
ClueDisorder
Delayed umbilical cord separationLAD
Abnormal NBT testCGD (NADPH oxidase)
High IgM, low IgG/IgAHyper IgM Syndrome
3 E's (Elevated IgE, Eosinophilia, Eczema)Job Syndrome
CATCH 22DiGeorge
Recurrent NeisseriaC5–C9 complement defect
Onset after 6 months, no tonsilsBruton's XLA

Dont make pfd just write it down

🧬 Immunodeficiency — Flashcards & Notes


🃏 FLASHCARDS


Q: What are the 5 host defense mechanisms?
Skin/mucosal barriers · Humoral immunity (B cells, Ab) · Cell-mediated immunity (T cells) · Phagocytosis · Complement

Q: What 5 clues suggest immunodeficiency?
Frequent infections · Recurrent/chronic · Unusual organisms · Poor response to therapy · Family history / growth retardation

Q: What infections suggest HUMORAL (B-cell) deficiency?
Recurrent infections with encapsulated bacteria (S. pneumo, H. flu) · Chronic sinopulmonary infections

Q: What infections suggest CELLULAR (T-cell) deficiency?
Viruses, fungi, opportunistic (PCP) · Diarrhea, wasting, growth retardation

Q: Transient Hypogammaglobulinemia of Infancy — key facts?
Slow to develop Ab · Low IgG, IgA (IgM normal) · Asymptomatic/minor infections · Resolves by 3–6 years old

Q: IgA Deficiency — what makes it stand out?
Most common humoral deficiency · 50–80% asymptomatic · Recurrent sinopulmonary infections · Malabsorption/diarrhea · ↑ risk autoimmune disorders

Q: Bruton's XLA — mechanism and who gets it?
X-linked recessive · No B cells (BTK gene mutation) · Well for first 6 months (maternal Ab) · Then recurrent infections with encapsulated bacteria · Paucity of lymphoid tissue (no tonsils/adenoids) · ↓↓ IgG, IgA, IgM · Tx: IVIG + antibiotics

Q: CVID — what's the core defect?
B cells exist but can't differentiate into plasma cells · Low IgG, IgA, IgM · Recurrent sinopulmonary infections · Associated: autoimmune disease, lymphoma · Tx: IVIG

Q: DiGeorge Syndrome — mnemonic?
22q11 deletion → thymic aplasia → No T cells CATCH 22: Cardiac defects · Abnormal facies · Thymic aplasia · Cleft palate · Hypocalcemia · 22q11 Tx: correct hypocalcemia, repair cardiac defects, fetal thymus transplant

Q: SCID — cause and presentation?
Stem cell maturation defect · Adenosine deaminase deficiency (toxic to T & B cells) · Symptoms in first 3 months · Recurrent severe bacterial, viral, fungal, protozoan infections · FTT, diarrhea, dermatitis, candidiasis · Lymphopenia, ↓ all Ig · Tx: BMT

Q: Wiskott-Aldrich Syndrome — classic triad?
X-linked recessive
  1. Recurrent severe infections
  2. Eczema
  3. Thrombocytopenia (petechiae)
Low IgM · ↑ hematologic malignancy risk · Tx: BMT

Q: Ataxia Telangiectasia — what's the defect?
Autosomal recessive · DNA repair defect → affects T & B cells · Progressive ataxia + telangiectasia · Recurrent sinopulmonary infections · ↑ risk leukemia/lymphoma

Q: Hyper IgE (Job) Syndrome — the 3 E's?
Elevated IgE · Eosinophilia · Eczema
  • Coarse facies, skeletal abnormalities · Recurrent staph infections · Pneumonia with pneumatoceles · Autosomal recessive

Q: Hyper IgM Syndrome — what's wrong?
T cell can't signal class switching → IgM stays high, IgG/IgA low · X-linked recessive (males 6 mo–1 yr) · Sinopulmonary, diarrhea, PCP · Tx: Ig replacement

Q: CGD — defect and diagnosis test?
Defective NADPH oxidase (can't make oxidative burst) · 75% X-linked · Recurrent S. aureus infections · Lymph nodes, skin granulomas, pneumonitis, osteomyelitis · Dx: Nitroblue tetrazolium (NBT) test · Tx: IFN-γ, antimicrobial prophylaxis, BMT

Q: LAD — the unique hallmark clues?
Deficient chemotaxis · Recurrent soft tissue/skin infections · No pus, minimal inflammation · Delayed umbilical cord separation · ↑ WBC · Tx: BMT

Q: Complement C1–C4 defects → what infections?
Encapsulated bacteria (same as humoral deficiency) · Also associated with autoimmune-like conditions

Q: Complement C5–C9 defects → what infections?
Neisseria infections (meningitidis, gonorrhoeae)

Q: How do you screen the whole complement cascade?
CH50 functional assay


📝 STUDY NOTES


🔵 HUMORAL (B-CELL) DISORDERS

DisorderKey DefectIg PatternUnique FeatureTx
Transient HypogammaSlow Ab maturation↓ IgG, IgA / IgM normalResolves 3–6 yoObservation
IgA DeficiencyIsolated ↓ IgA↓ IgA onlyMost common; autoimmune riskSupportive
Bruton's XLANo B cells (XLR)↓↓ all IgNo tonsils; onset after 6 moIVIG + ABx
CVIDB cells → no plasma cells↓ IgG, IgA, IgMLymphoma riskIVIG

🟠 CELLULAR (T-CELL) DISORDERS

DisorderKey DefectUnique FeatureTx
DiGeorgeThymic aplasia (22q11 del)CATCH 22; hypocalcemia; cardiac defectsThymus transplant

🔴 COMBINED DISORDERS

DisorderInheritanceKey FeaturesTx
SCIDAR (ADA deficiency)Symptoms by 3 months; all pathogensBMT
Wiskott-AldrichXLREczema + thrombocytopenia + infectionsBMT
Ataxia TelangiectasiaARAtaxia + telangiectasia + DNA repair defectSupportive
Hyper IgE (Job)AR3 E's + staph + pneumatocelesAntimicrobials
Hyper IgMXLRHigh IgM, low IgG/IgA; no class switchingIg replacement

🟢 PHAGOCYTIC DISORDERS

DisorderDefectOrganismHallmarkDx TestTx
CGDNADPH oxidaseS. aureus (catalase+)GranulomasNBT testIFN-γ, BMT
LADChemotaxisSkin/soft tissueNo pus; delayed cord↑ WBCBMT

⚗️ COMPLEMENT DISORDERS

DefectInfectionsExtra
C1–C4 (early)Encapsulated bacteriaLooks like humoral deficiency; autoimmune
C5–C9 (late/MAC)NeisseriaAutoimmune features
ScreeningCH50 assay

🧠 MNEMONICS

DiGeorge → CATCH 22
  • Cardiac defects
  • Abnormal facies
  • Thymic aplasia
  • Cleft palate
  • Hypocalcemia
  • 22q11 deletion

Hyper IgE (Job) → 3 E's
  • Elevated IgE
  • Eosinophilia
  • Eczema → Plus: staph infections + pneumatoceles

Wiskott-Aldrich → WIT
  • Weakened immunity
  • Itchy skin (eczema)
  • Thrombocytopenia

LAD → "No pus, no rush, no cord"
  • No pus
  • No rush to heal (impaired wound healing)
  • No cord (delayed umbilical separation)

B vs T cell infections:
  • B cellsBacteria (encapsulated)
  • T cellsThrush/fungi, viruses, parasites (PCP)

Complement memory:
  • Early (C1–C4) = like B-cell deficiency → encapsulated bacteria + autoimmune
  • Late (C5–C9) = Neisseria (think N for No MAC = Neisseria gets through)
This is a shared conversation. Sign in to Orris to start your own chat.