Give crisp and concise answer from latest edition of Harrison's medicine
| Q | Answer | Key Rationale (Harrison's) |
|---|---|---|
| 1 | (c) Mycoplasma pneumoniae | Most common cause of atypical (walking) pneumonia; extrapulmonary features include cold agglutinin-mediated hemolytic anemia, Stevens-Johnson syndrome, and neurologic manifestations |
| 2 | (a) Decreased FEV1/FVC ratio with bronchodilator reversibility | Asthma = obstructive pattern; FEV1/FVC <0.70, with ≥12% reversibility after bronchodilator |
| 3 | (d) Lichen Planus | Classic "5 P's": Purple, Polygonal, Planar, Pruritic, Papules on flexor wrists; Wickham's striae seen |
| 4 | (b) Erythema Chronicum Migrans | Pathognomonic of Lyme disease (Borrelia burgdorferi); expanding bull's-eye rash at tick bite site |
| 5 | (d) Pityriasis Rosea | Herald patch precedes "Christmas tree" distribution of lesions along Langer's lines on the trunk |
| 6 | (c) Auditory Hallucinations | Positive symptoms = added phenomena (hallucinations, delusions, disorganized speech). Social withdrawal, anhedonia, alogia = negative symptoms |
| 7 | (b) Lithium | Drug of choice for acute mania and long-term maintenance; also has anti-suicidal properties |
| 8 | (a) IgE | Type I hypersensitivity (anaphylactic/allergic) is mediated by IgE bound to mast cells and basophils |
| 9 | (b) Inhibition of acetylcholinesterase | Organophosphates irreversibly inhibit AChE → ACh accumulation → muscarinic effects including miosis |
| 10 | (d) Naloxone | Competitive opioid receptor antagonist; dose 0.4-2 mg IV; reverses respiratory depression, miosis, and coma |
| 11 | (b) Bamboo Spine | Ankylosing Spondylitis: ossification of annulus fibrosus + anterior longitudinal ligament → "bamboo spine" on X-ray |
| 12 | (a) Reactive Arthritis | Reiter's syndrome (urethritis + conjunctivitis + arthritis) = Reactive Arthritis; triggered by Chlamydia, Salmonella, Shigella, Campylobacter |
| 13 | (c) Trisomy 21 | Down Syndrome = three copies of chromosome 21; most commonly due to meiotic non-disjunction |
| 14 | (d) Marfan Syndrome | Autosomal dominant (fibrillin-1 gene, chromosome 15); Thalassemia = AR; PKU = AR; Cystic Fibrosis = AR |
| 15 | (b) Enteric Fever (Typhoid) | Widal test detects agglutinating antibodies against O and H antigens of Salmonella typhi |
| 16 | (c) Arsenic | Chronic arsenic poisoning: Mees' lines on nails, raindrop pigmentation (alternating hyperpigmentation/depigmentation), arsenical keratosis |
| 17 | (a) Aedes aegypti | Primary vector of Dengue, Zika, Chikungunya, Yellow Fever; breeds in stagnant clean water |
| 18 | (b) Primaquine | Radical cure of P. vivax/P. ovale (kills liver hypnozoites); must test for G6PD deficiency first |
| 19 | (b) Rifampicin, Dapsone, and Clofazimine | Paucibacillary: Rifampicin + Dapsone × 6 months. Multibacillary: Rifampicin + Dapsone + Clofazimine × 12 months |
| 20 | (a) Respiratory Failure | Elapid (cobra, krait) venom → neurotoxic → neuromuscular blockade → respiratory muscle paralysis → death |
| Complication | Mechanism |
|---|---|
| Cerebral malaria | Sequestration of parasitized RBCs in brain microvasculature → coma, seizures |
| Blackwater fever | Massive intravascular hemolysis → hemoglobinuria, renal failure |
| Acute Renal Failure | Hemoglobinuria + cytokine damage |
| ARDS/Pulmonary edema | Capillary leak |
| Hypoglycemia | Glucose consumption by parasites + quinine-induced hyperinsulinism |
| Algid malaria | Circulatory collapse, cold skin |
| DIC | Coagulation cascade activation |
| Hyperparasitemia | >5% parasitized RBCs = severe malaria marker |
| Type | Skin Lesions | Nerve | Smear | Treatment |
|---|---|---|---|---|
| Paucibacillary (PB) | 1-5 lesions | ≤1 nerve | Negative | Rifampicin + Dapsone × 6 months |
| Multibacillary (MB) | >5 lesions | >1 nerve | Positive | Rifampicin + Dapsone + Clofazimine × 12 months |
| Feature | Bipolar I | Bipolar II |
|---|---|---|
| Manic episodes | Full mania (≥7 days, hospitalization may be needed) | Absent |
| Hypomanic episodes | May occur | Present (≥4 days, not requiring hospitalization) |
| Depressive episodes | Usually present | Prominent/required for diagnosis |
| Psychosis | Can occur during mania | Does not occur in hypomania |
| Severity | More severe | Less severe overall, but depression can be disabling |
| Hospitalization | May be required for mania | Not required for hypomania |
| Key point | Mania alone = Bipolar I | No full mania ever = Bipolar II |
| Feature | Neurotoxic (Elapid) | Vasculotoxic (Viper) |
|---|---|---|
| Snakes | Cobra, Krait, Mamba | Russell's viper, Saw-scaled viper, Pit viper |
| Mechanism | Pre-synaptic (krait): blocks ACh release; Post-synaptic (cobra): blocks nAChR | Proteases, hyaluronidase, phospholipases → local tissue destruction, coagulopathy |
| Local effects | Minimal swelling | Severe swelling, necrosis, blister formation |
| Systemic features | Ptosis (earliest sign), diplopia, dysphagia, respiratory paralysis, areflexia | Bleeding (hemotoxin): ecchymosis, hematuria, hematemesis, DIC |
| Pupils | Dilated (cobra) | Normal |
| Death cause | Respiratory failure | Hemorrhage, ARF |
| 20WBCT test | Normal | Abnormal (blood doesn't clot in 20 min) |
| Treatment | Polyvalent ASV + neostigmine (for post-synaptic) + atropine; ventilatory support | Polyvalent ASV; FFP, platelets; manage ARF with dialysis |
| Letter | Feature | Detail |
|---|---|---|
| C | Calcinosis cutis | Calcium deposits in skin/soft tissues, especially fingers |
| R | Raynaud's phenomenon | Episodic digital vasospasm (white → blue → red with cold/stress) |
| E | Esophageal dysmotility | Dysphagia, GERD; lower 2/3 of esophagus affected |
| S | Sclerodactyly | Tight, shiny skin of fingers; "sausage fingers" |
| T | Telangiectasia | Dilated capillaries on face, lips, hands |
| Drug | Dose | Route | Timing |
|---|---|---|---|
| Epinephrine | 0.3-0.5 mg (adult); 0.01 mg/kg in children (max 0.5mg) of 1:1000 solution | IM (anterolateral thigh) | Immediately |
| Oxygen | 100%, 15 L/min via non-rebreather mask | Inhalation | Immediately |
| IV Fluids | 1-2 L normal saline bolus | IV | If hypotensive |
| Diphenhydramine (H1 blocker) | 25-50 mg IV/IM | IV/IM | After epi |
| Ranitidine/Famotidine (H2 blocker) | 50 mg IV | IV | After epi |
| Hydrocortisone | 200 mg IV | IV | After epi (prevents biphasic) |
| Salbutamol nebulization | 2.5-5 mg | Inhaled | If bronchospasm |
| Feature | Delirium | Dementia |
|---|---|---|
| Onset | Acute (hours to days) | Insidious (months to years) |
| Course | Fluctuating, worse at night | Progressive, gradually worsening |
| Consciousness | Impaired (clouded) | Clear until late stages |
| Attention | Markedly impaired | Relatively preserved early |
| Orientation | Disoriented | Preserved early |
| Memory | Short-term impaired acutely | Short-term first, then long-term |
| Sleep-wake cycle | Severely disrupted | Mildly disrupted |
| Hallucinations | Common (visual > auditory) | Less common (visual in LBD) |
| Reversibility | Usually reversible (treat cause) | Irreversible (progressive) |
| EEG | Diffuse slowing | Normal early (except prion disease) |
| Duration | Days to weeks | Years |
| Common causes | Infection, drugs, metabolic, post-op | Alzheimer's, vascular, LBD, FTD |
| Treatment | Treat underlying cause; haloperidol for agitation | Cholinesterase inhibitors (donepezil), memantine |
Key distinction: Delirium = acute, fluctuating, impaired consciousness; Dementia = chronic, progressive, clear consciousness until late.
Generate a flashcard presentation on Harrison's diagnostic criteria for these conditions
ls /home/daytona/workspace/ 2>/dev/null || mkdir -p /home/daytona/workspace/flashcards
mkdir -p /home/daytona/workspace/flashcards && ls /home/daytona/workspace/flashcards
~/flashcards/generate_flashcards.js
const pptxgen = require("pptxgenjs");
const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Harrison's Diagnostic Criteria - Flashcards";
pres.author = "Harrison's 22nd Edition";
// ─── COLOR PALETTE ───────────────────────────────────────────────────────────
const C = {
navy: "0D1B3E",
deepBlue: "1A2F6B",
medBlue: "2563EB",
accentGold: "F59E0B",
accentRed: "EF4444",
accentGreen:"10B981",
accentTeal: "0EA5E9",
accentPurp: "8B5CF6",
accentOran: "F97316",
white: "FFFFFF",
offWhite: "F8FAFC",
lightGray: "E2E8F0",
darkGray: "334155",
midGray: "64748B",
};
// ─── HELPER: rounded rect background ─────────────────────────────────────────
function addBg(slide, color) {
slide.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: 10, h: 5.625,
fill: { color },
line: { type: "none" },
});
}
function addAccentBar(slide, color, x = 0, w = 0.12, h = 5.625) {
slide.addShape(pres.ShapeType.rect, {
x, y: 0, w, h,
fill: { color },
line: { type: "none" },
});
}
function addCard(slide, {
qNum, condition, category, criteria, mnemonic, keyFact,
bgColor = C.navy, accentColor = C.accentGold, tagColor = C.medBlue,
}) {
// Background
addBg(slide, bgColor);
// Left accent bar
addAccentBar(slide, accentColor);
// Top tag ribbon
slide.addShape(pres.ShapeType.rect, {
x: 0.2, y: 0.12, w: 2.2, h: 0.38,
fill: { color: tagColor },
line: { type: "none" },
rectRadius: 0.04,
});
slide.addText(category.toUpperCase(), {
x: 0.2, y: 0.12, w: 2.2, h: 0.38,
fontSize: 8, bold: true, color: C.white,
align: "center", valign: "middle", margin: 0,
});
// Card number badge
slide.addShape(pres.ShapeType.ellipse, {
x: 9.2, y: 0.1, w: 0.62, h: 0.62,
fill: { color: accentColor },
line: { type: "none" },
});
slide.addText(String(qNum), {
x: 9.2, y: 0.1, w: 0.62, h: 0.62,
fontSize: 11, bold: true, color: C.navy,
align: "center", valign: "middle", margin: 0,
});
// Condition title
slide.addText(condition, {
x: 0.28, y: 0.58, w: 9.3, h: 0.72,
fontSize: 20, bold: true, color: C.white,
align: "left", valign: "middle",
fontFace: "Calibri",
margin: 0,
});
// Divider line
slide.addShape(pres.ShapeType.rect, {
x: 0.28, y: 1.32, w: 9.4, h: 0.03,
fill: { color: accentColor, transparency: 40 },
line: { type: "none" },
});
// "DIAGNOSTIC CRITERIA" label
slide.addText("DIAGNOSTIC CRITERIA", {
x: 0.28, y: 1.38, w: 4, h: 0.3,
fontSize: 8, bold: true, color: accentColor,
align: "left", valign: "middle",
charSpacing: 3, margin: 0,
});
// Criteria bullets
const bulletItems = criteria.map((c, i) => ({
text: c,
options: {
bullet: { code: "2022", indent: 12 },
breakLine: i < criteria.length - 1,
color: C.offWhite,
fontSize: 11.5,
},
}));
slide.addText(bulletItems, {
x: 0.28, y: 1.72, w: 5.8, h: 3.3,
fontFace: "Calibri",
valign: "top",
margin: [0, 0, 0, 0],
lineSpacingMultiple: 1.25,
});
// Right panel - mnemonic / key fact box
if (mnemonic) {
// Mnemonic box
slide.addShape(pres.ShapeType.rect, {
x: 6.35, y: 1.38, w: 3.45, h: 1.8,
fill: { color: C.white, transparency: 88 },
line: { color: accentColor, width: 1.2, transparency: 30 },
rectRadius: 0.08,
});
slide.addText("MNEMONIC", {
x: 6.45, y: 1.44, w: 3.25, h: 0.28,
fontSize: 7.5, bold: true, color: accentColor,
align: "center", valign: "middle", charSpacing: 2, margin: 0,
});
slide.addText(mnemonic, {
x: 6.45, y: 1.74, w: 3.25, h: 1.34,
fontSize: 11.5, bold: false, color: C.white,
align: "center", valign: "middle", fontFace: "Calibri",
margin: [4, 4, 4, 4],
});
}
if (keyFact) {
// Key fact box
slide.addShape(pres.ShapeType.rect, {
x: 6.35, y: 3.3, w: 3.45, h: 1.8,
fill: { color: accentColor, transparency: 82 },
line: { color: accentColor, width: 1, transparency: 20 },
rectRadius: 0.08,
});
slide.addText("KEY FACT", {
x: 6.45, y: 3.36, w: 3.25, h: 0.28,
fontSize: 7.5, bold: true, color: accentColor,
align: "center", valign: "middle", charSpacing: 2, margin: 0,
});
slide.addText(keyFact, {
x: 6.45, y: 3.66, w: 3.25, h: 1.3,
fontSize: 11, color: C.white,
align: "center", valign: "middle", fontFace: "Calibri",
margin: [4, 4, 4, 4],
});
}
// Harrison's watermark
slide.addText("Harrison's 22nd Ed · 2025", {
x: 0.28, y: 5.3, w: 4, h: 0.22,
fontSize: 7, color: C.white, italic: true,
align: "left", valign: "middle", margin: 0,
transparency: 50,
});
}
// ─── SLIDE 1: TITLE SLIDE ─────────────────────────────────────────────────────
{
const s = pres.addSlide();
// Deep navy gradient-style bg
s.addShape(pres.ShapeType.rect, { x:0, y:0, w:10, h:5.625, fill:{ color: C.navy }, line:{type:"none"} });
s.addShape(pres.ShapeType.rect, { x:0, y:0, w:10, h:2.5, fill:{ color: C.deepBlue }, line:{type:"none"} });
// Gold bar
s.addShape(pres.ShapeType.rect, { x:0, y:2.4, w:10, h:0.06, fill:{ color: C.accentGold }, line:{type:"none"} });
s.addText("HARRISON'S", {
x:0.6, y:0.5, w:8.8, h:0.6,
fontSize:13, bold:true, color:C.accentGold,
align:"center", charSpacing:8, margin:0,
});
s.addText("Diagnostic Criteria", {
x:0.6, y:1.05, w:8.8, h:1,
fontSize:34, bold:true, color:C.white,
align:"center", fontFace:"Calibri", margin:0,
});
s.addText("Flashcard Study Set", {
x:0.6, y:2.0, w:8.8, h:0.5,
fontSize:16, color:C.lightGray,
align:"center", fontFace:"Calibri", margin:0,
});
// Condition chips at bottom
const conditions = [
"Asthma","Lobar Pneumonia","Lichen Planus","Atypical Pneumonia",
"Ankylosing Spondylitis","OCD","Schizophrenia","Scleroderma CREST",
"Bipolar I/II","Reactive Arthritis","HIV/AIDS Staging","Kala-azar",
];
const chipColors = [C.medBlue, C.accentTeal, C.accentPurp, C.accentOran,
C.accentGreen, C.accentRed, C.accentGold, C.medBlue,
C.accentTeal, C.accentPurp, C.accentGreen, C.accentOran];
const perRow = 6;
conditions.forEach((cond, i) => {
const col = i % perRow;
const row = Math.floor(i / perRow);
const x = 0.3 + col * 1.58;
const y = 2.65 + row * 0.52;
s.addShape(pres.ShapeType.rect, {
x, y, w: 1.5, h: 0.36,
fill: { color: chipColors[i], transparency: 55 },
line: { color: chipColors[i], width: 0.5 },
rectRadius: 0.05,
});
s.addText(cond, {
x, y, w: 1.5, h: 0.36,
fontSize: 7.5, bold: true, color: C.white,
align: "center", valign: "middle", margin: 0,
});
});
s.addText("22nd Edition · McGraw Hill · 2025 | MBT-402 Exam Prep", {
x:0.6, y:5.3, w:8.8, h:0.25,
fontSize:8, color:C.midGray, align:"center", margin:0,
});
}
// ─── FLASHCARD DATA ───────────────────────────────────────────────────────────
const cards = [
{
qNum: 1,
condition: "Bronchial Asthma",
category: "Respiratory",
accentColor: C.accentTeal,
bgColor: "0A2540",
tagColor: C.accentTeal,
criteria: [
"FEV1/FVC ratio < 0.70 (obstructive pattern)",
"Reversibility: ≥12% AND ≥200 mL increase in FEV1 after bronchodilator",
"FEV1 < 80% predicted (variability on serial measurements)",
"PC20 < 8 mg/mL on methacholine challenge (hyperresponsiveness)",
"Peak Expiratory Flow (PEF) variability > 10% (diurnal variation)",
"Symptoms: wheeze, cough, chest tightness, shortness of breath",
],
mnemonic: "ROVER\nReversibility\nObstruction\nVariability\nEosinophilia\nResponse to steroids",
keyFact: "Spirometry is KEY:\nFEV1/FVC < 0.70 +\n≥12% reversibility\n= Asthma until proven otherwise",
},
{
qNum: 2,
condition: "Community-Acquired Pneumonia (CURB-65)",
category: "Infectious Disease / Respiratory",
accentColor: C.accentOran,
bgColor: "1A1200",
tagColor: C.accentOran,
criteria: [
"C – Confusion (new onset, AMT ≤8)",
"U – Urea > 7 mmol/L (BUN > 19 mg/dL)",
"R – Respiratory rate ≥ 30/min",
"B – Blood pressure: SBP < 90 or DBP ≤ 60 mmHg",
"65 – Age ≥ 65 years",
"Score 0-1: Outpatient | 2: Hospital ward | 3-5: ICU/HDU",
],
mnemonic: "CURB-65\nConfusion\nUrea\nRespiratory rate\nBlood pressure\n65 years",
keyFact: "Score ≥ 3 = SEVERE\nMortality doubles\nwith each added point\n\n'Rusty sputum' = S. pneumoniae",
},
{
qNum: 3,
condition: "Lichen Planus",
category: "Dermatology",
accentColor: C.accentPurp,
bgColor: "120A2A",
tagColor: C.accentPurp,
criteria: [
"Clinical: 5 P's - Purple, Polygonal, Planar, Pruritic, Papules",
"Location: flexor wrists, ankles, lower back, buccal mucosa",
"Wickham's striae: white lacy network on surface of papules",
"Koebner phenomenon: lesions appear at sites of trauma",
"Biopsy: saw-tooth rete ridges, band-like lymphocytic infiltrate at DEJ",
"Civatte bodies (apoptotic keratinocytes) at DEJ - pathognomonic",
],
mnemonic: "5 P's of LP:\nPurple\nPolygonal\nPlanar\nPruritic\nPapules",
keyFact: "Oral LP on buccal\nmucosa = risk of SCC\n\nWickham's striae\n= pathognomonic sign",
},
{
qNum: 4,
condition: "Atypical Pneumonia (Mycoplasma)",
category: "Infectious Disease",
accentColor: C.accentGreen,
bgColor: "021A0E",
tagColor: C.accentGreen,
criteria: [
"Insidious onset: gradual fever, headache, malaise (prodrome)",
"Dry (non-productive) cough - hallmark",
"Chest X-ray worse than clinical findings ('walking pneumonia')",
"Extrapulmonary: cold agglutinin hemolytic anemia, Stevens-Johnson",
"Cold agglutinin titer > 1:64 (suggestive)",
"PCR for M. pneumoniae or serology (4-fold rise in IgG titers)",
],
mnemonic: "MAC-WE:\nMycoplasma\nAtypical\nCold agglutinins\nWalking pneumonia\nExtrapulmonary features",
keyFact: "Most common cause\nof atypical CAP\n\nTreat: Azithromycin\nor Doxycycline\n(no cell wall = no β-lactam)",
},
{
qNum: 5,
condition: "Ankylosing Spondylitis (modified NY criteria)",
category: "Rheumatology",
accentColor: C.accentGold,
bgColor: "1A1200",
tagColor: "D97706",
criteria: [
"Clinical: Low back pain > 3 months, improves with exercise, not rest",
"Clinical: Limitation of lumbar spine motion (sagittal & frontal planes)",
"Clinical: Limited chest expansion relative to age/sex normal values",
"Radiological: Sacroiliitis grade ≥2 bilateral OR grade 3-4 unilateral",
"Definite AS: radiological criterion + ≥1 clinical criterion",
"HLA-B27 present in 90-95%; Schober's test < 5 cm increase",
],
mnemonic: "SPINE:\nSacroiliitis (X-ray)\nPain improves with activity\nInflammatory back pain\nNight pain/stiffness\nEarly morning stiffness",
keyFact: "Bamboo spine =\ncomplete ankylosis\n\nFirst-line: NSAIDs\nBiologics: TNF-α inhibitors\n(Etanercept, Adalimumab)",
},
{
qNum: 6,
condition: "Schizophrenia (DSM-5)",
category: "Psychiatry",
accentColor: C.accentRed,
bgColor: "1A0505",
tagColor: C.accentRed,
criteria: [
"≥2 of: delusions, hallucinations, disorganized speech, disorganized behavior, negative symptoms (≥1 must be from first 3)",
"Duration: continuous signs for ≥6 months (including ≥1 month active phase)",
"Significant functional decline (work, social, self-care)",
"Rule out: schizoaffective, mood disorder, substance, medical cause",
"POSITIVE symptoms: hallucinations (auditory > visual), delusions",
"NEGATIVE symptoms: avolition, alogia, anhedonia, flat affect",
],
mnemonic: "DDHDB:\nDelusions\nDisorganized speech\nHallucinations\nDisorganized behavior\n(negative) Blunted affect",
keyFact: "Auditory hallucinations\n= most common positive symptom\n\nNegative symptoms:\n4 A's - Alogia, Anhedonia,\nAvolition, Affect flat",
},
{
qNum: 7,
condition: "OCD (DSM-5)",
category: "Psychiatry",
accentColor: C.accentTeal,
bgColor: "011520",
tagColor: C.accentTeal,
criteria: [
"Obsessions: recurrent, persistent, intrusive thoughts/urges/images",
"Obsessions: attempts to ignore/suppress or neutralize with compulsions",
"Compulsions: repetitive behaviors/mental acts aimed at reducing distress",
"Compulsions: not realistically connected to feared event (excessive)",
"Time-consuming: > 1 hour/day OR causes significant distress/impairment",
"Not attributable to substances, medical condition, or better explained by another disorder",
],
mnemonic: "OCD = EGO-DYSTONIC\nPerson recognizes\nobsessions as\nexcessive/unreasonable\n\nERP (CBT) + SSRI",
keyFact: "Y-BOCS scale\n= severity assessment\n\nFirst-line Rx:\nSSRI + ERP therapy\n(Fluvoxamine preferred)",
},
{
qNum: 8,
condition: "Bipolar I vs. Bipolar II",
category: "Psychiatry",
accentColor: C.accentPurp,
bgColor: "0D0520",
tagColor: C.accentPurp,
criteria: [
"BIPOLAR I: ≥1 manic episode (≥7 days, hospitalizable, with/without psychosis)",
"BIPOLAR I: Mania may occur alone (depression NOT required for diagnosis)",
"BIPOLAR II: ≥1 hypomanic episode (≥4 days, NO hospitalization, NO psychosis)",
"BIPOLAR II: ≥1 major depressive episode (REQUIRED for diagnosis)",
"BIPOLAR II: NEVER had a full manic episode",
"Both: Rule out substances, medical causes, other psychiatric disorders",
],
mnemonic: "I = full MANIA\n(hospitalize, psychosis ok)\n\nII = HYPOMANIA +\nDEPRESSION\n(never full mania)",
keyFact: "Bipolar II is NOT\n'milder' than Bipolar I —\ndepression is more\npredominant and disabling\n\nRx: Lithium (gold standard)",
},
{
qNum: 9,
condition: "Reactive Arthritis (Reiter's Syndrome)",
category: "Rheumatology",
accentColor: C.accentOran,
bgColor: "1A0900",
tagColor: C.accentOran,
criteria: [
"Triad: Urethritis + Conjunctivitis + Arthritis",
"Triggered by preceding infection (1-4 weeks before): Chlamydia (STI) or enteric (Salmonella, Shigella, Campylobacter, Yersinia)",
"Asymmetric oligoarthritis (lower limb predominant)",
"HLA-B27 positive in ~75% of cases",
"Extra-articular: circinate balanitis, keratoderma blennorrhagicum, oral ulcers",
"Classification: ASAS criteria for reactive arthritis in spondyloarthritis spectrum",
],
mnemonic: "Can't SEE, can't PEE,\ncan't climb a TREE\n(Conjunctivitis,\nUrethritis, Arthritis)",
keyFact: "Seronegative arthritis\n(RF negative)\n\nMost common in\nyoung males 20-40 yrs\n\nRx: NSAIDs ± antibiotics",
},
{
qNum: 10,
condition: "Scleroderma CREST Syndrome",
category: "Rheumatology / Dermatology",
accentColor: C.accentGreen,
bgColor: "011A08",
tagColor: C.accentGreen,
criteria: [
"C – Calcinosis cutis (calcium deposits in skin/fingers)",
"R – Raynaud's phenomenon (white → blue → red triphasic color change)",
"E – Esophageal dysmotility (lower 2/3, GERD, dysphagia)",
"S – Sclerodactyly (tight, shiny skin of fingers)",
"T – Telangiectasia (dilated capillaries: face, hands, lips)",
"Antibody: Anti-centromere antibody (ACA) >90% sensitive for lcSSc",
],
mnemonic: "CREST:\nCalcinosis\nRaynaud's\nEsophageal dysmotility\nSclerodactyly\nTelangiectasia",
keyFact: "Limited cutaneous SSc\n= lcSSc = CREST\n\nAnti-centromere Ab\n= hallmark\n\nPAH = leading\ncause of death in CREST",
},
{
qNum: 11,
condition: "HIV/AIDS — WHO Clinical Staging",
category: "Infectious Disease",
accentColor: C.accentRed,
bgColor: "150005",
tagColor: C.accentRed,
criteria: [
"Stage 1: Asymptomatic / Persistent generalized lymphadenopathy (PGL)",
"Stage 2: Minor weight loss <10%, herpes zoster, recurrent oral ulcers, seborrheic dermatitis",
"Stage 3: Weight loss >10%, oral candidiasis, hairy leukoplakia, pulmonary TB, severe bacterial pneumonia",
"Stage 4 (AIDS): PCP, cerebral toxoplasmosis, CMV retinitis, Kaposi's sarcoma, cryptococcal meningitis, HIV wasting",
"CD4 < 200 cells/μL = AIDS (US CDC definition)",
"ART: Start ALL patients regardless of CD4. 1st line: TDF + 3TC + DTG",
],
mnemonic: "1: Asymptomatic\n2: Minor (skin/mucosa)\n3: Advanced (TB, oral)\n4: Severe/AIDS-defining\n\nCD4 < 200 = AIDS",
keyFact: "Opportunistic infections\nby CD4 count:\n<500: PGL, candida\n<200: PCP, Toxo\n<50: CMV, MAC, Crypto",
},
{
qNum: 12,
condition: "Kala-azar (Visceral Leishmaniasis)",
category: "Infectious Disease / Tropical",
accentColor: C.accentGold,
bgColor: "0D0A00",
tagColor: "B45309",
criteria: [
"Clinical: Prolonged fever + massive splenomegaly + weight loss in endemic area",
"Pancytopenia: anemia, leukopenia, thrombocytopenia + hypoalbuminemia",
"Definitive: LD bodies (amastigotes) in splenic aspirate (>95%) or BM aspirate (70-80%)",
"Serological: rK39 immunochromatographic test (ICT) - rapid POC test of choice",
"DAT (Direct Agglutination Test) - high sensitivity in field settings",
"PCR: highly sensitive; Aldehyde (formol-gel) test: obsolete but historically used",
],
mnemonic: "FESP:\nFever (prolonged)\nEnormouss Splenomegaly\nSkin darkening (kala=black)\nPancytopenia",
keyFact: "rK39 ICT strip =\nbest rapid field test\n\nTreatment:\nLiposomal Amphotericin B\n(drug of choice)\nor Miltefosine (oral)",
},
{
qNum: 13,
condition: "Anaphylaxis (WAO/NIAID criteria)",
category: "Emergency Medicine / Immunology",
accentColor: C.accentRed,
bgColor: "180000",
tagColor: C.accentRed,
criteria: [
"Criterion 1: Acute onset of illness with skin/mucosal involvement (urticaria, angioedema, flushing) PLUS respiratory compromise OR hypotension/end-organ dysfunction",
"Criterion 2: ≥2 of following after exposure to likely allergen: skin/mucosa, respiratory, hypotension, persistent GI symptoms",
"Criterion 3: Reduced BP after exposure to KNOWN allergen for that patient",
"Tryptase elevation (>11.4 ng/mL) - confirms mast cell activation",
"Epinephrine 1:1000, 0.3-0.5 mg IM anterolateral thigh = FIRST treatment",
"Biphasic reaction can occur 8-72 hours later; observe for ≥6 hours",
],
mnemonic: "SHART:\nSkin (urticaria, flush)\nHypotension\nAirway (wheeze, stridor)\nRespiratory distress\nTachycardia",
keyFact: "EPINEPHRINE FIRST!\n0.3-0.5 mg IM (1:1000)\nAnterolateral thigh\n\nDO NOT delay for\nantihistamines or steroids",
},
{
qNum: 14,
condition: "Down Syndrome (Trisomy 21)",
category: "Genetics",
accentColor: C.accentTeal,
bgColor: "001518",
tagColor: C.accentTeal,
criteria: [
"Genetic: Trisomy 21 in 95% (non-disjunction), Translocation 4%, Mosaic 1%",
"Facial: flat facies, upslanting palpebral fissures, Brushfield spots in iris",
"Facial: small ears, flat nasal bridge, protruding tongue, short neck",
"Hands: single palmar crease (simian crease), clinodactyly of 5th finger",
"Hypotonia at birth, intellectual disability (mild-moderate)",
"Associations: ASD/VSD (40-50%), Hirschsprung disease, duodenal atresia, ALL risk",
],
mnemonic: "Trisomy 21:\nFlat face\nUpslanting eyes\nSingle palmar crease\nHypotonia\nIntellectual disability",
keyFact: "Most common\nchromosomal disorder\n\nMostly due to\nmaternal non-disjunction\n\nRisk ↑ with\nmaternal age > 35",
},
];
// ─── GENERATE ALL FLASHCARDS ──────────────────────────────────────────────────
cards.forEach(card => {
const s = pres.addSlide();
addCard(s, card);
});
// ─── FINAL SLIDE: QUICK REFERENCE TABLE ──────────────────────────────────────
{
const s = pres.addSlide();
s.addShape(pres.ShapeType.rect, { x:0, y:0, w:10, h:5.625, fill:{ color: C.navy }, line:{type:"none"} });
addAccentBar(s, C.accentGold);
s.addText("QUICK REFERENCE — Key Diagnostic Numbers", {
x:0.28, y:0.12, w:9.5, h:0.5,
fontSize:15, bold:true, color:C.accentGold,
align:"left", valign:"middle", margin:0,
});
const rows = [
["Condition", "Key Threshold / Criterion", "Drug of Choice"],
["Asthma", "FEV1/FVC <0.70 + ≥12% reversibility", "Inhaled SABA + ICS"],
["Pneumonia (CURB-65)", "Score ≥3 = ICU admission", "Ceftriaxone + Azithromycin"],
["Ankylosing Spondylitis", "Sacroiliitis grade ≥2 bilateral", "NSAIDs → TNF-α inhibitors"],
["HIV/AIDS", "CD4 <200 = AIDS (CDC)", "TDF + 3TC + DTG"],
["Kala-azar", "rK39 ICT + LD bodies in BM/spleen", "Liposomal Ampho B"],
["Anaphylaxis", "Acute onset: skin + respiratory/hypotension", "Epinephrine 0.3mg IM (1:1000)"],
["OCD (DSM-5)", ">1 hour/day, ego-dystonic", "SSRI + ERP (CBT)"],
["Bipolar I", "≥1 manic episode ≥7 days", "Lithium"],
["Scleroderma CREST", "Anti-centromere Ab (>90%)", "CCBs (Raynaud's)"],
["Reactive Arthritis", "Urethritis + Conjunctivitis + Arthritis", "NSAIDs"],
];
const colW = [2.8, 4.0, 2.9];
const colX = [0.2, 3.05, 7.1];
const rowH = 0.41;
rows.forEach((row, ri) => {
const y = 0.68 + ri * rowH;
const isHeader = ri === 0;
const bgFill = isHeader ? C.medBlue : (ri % 2 === 0 ? "0D1B3E" : "162248");
s.addShape(pres.ShapeType.rect, { x:0.18, y, w:9.64, h:rowH - 0.02, fill:{color:bgFill}, line:{type:"none"} });
row.forEach((cell, ci) => {
s.addText(cell, {
x: colX[ci], y: y + 0.03, w: colW[ci], h: rowH - 0.06,
fontSize: isHeader ? 9 : 8.5,
bold: isHeader,
color: isHeader ? C.white : (ci === 2 ? C.accentGold : C.offWhite),
align: "left", valign: "middle", margin: [0, 4, 0, 4],
});
});
});
s.addText("Harrison's Principles of Internal Medicine 22nd Edition (2025, McGraw Hill)", {
x:0.28, y:5.35, w:9.5, h:0.22,
fontSize:7, color:C.midGray, italic:true, align:"center", margin:0,
});
}
// ─── WRITE FILE ───────────────────────────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/flashcards/Harrisons_Diagnostic_Criteria_Flashcards.pptx" })
.then(() => console.log("✅ Flashcards PPTX created successfully!"))
.catch(err => console.error("Error:", err));
cd /home/daytona/workspace/flashcards && node generate_flashcards.js 2>&1
ls -lh /home/daytona/workspace/flashcards/Harrisons_Diagnostic_Criteria_Flashcards.pptx
Harrisons Diagnostic Criteria Flashcards
Presentation · PPTX
| Slides | Content |
|---|---|
| Slide 1 | Title slide with all 14 condition chips |
| Slides 2-15 | One flashcard per condition (see below) |
| Slide 16 | Quick reference table - key thresholds + drugs |