I was studying systemic lupus erythematous amd I feel the patjo physiology is weird check it for me
The body produces antibodies against nuclear components ↓ These antibodies from immune complexes ↓ Immune complexes deposit in tissues ↓ This causes inflammation and tissue damage.
Genetic susceptibility (HLA-DR, complement genes, IRF5, etc.)
+ Environmental triggers (UV light, EBV, silica, hormones)
↓
Increased cellular apoptosis/NETosis → nuclear debris released
↓
Impaired clearance of debris (↓complement C1q, ↓DNase1L3)
↓
Innate immune activation: Plasmacytoid dendritic cells
sense nucleic acids via TLR7/TLR9 → secrete Type I IFN
↓
Type I IFN amplifies adaptive immune response
↓
Dendritic cells present autoantigens to autoreactive T cells
↓
Autoreactive B cells stimulated → produce autoantibodies
(anti-dsDNA, anti-Sm, anti-histone, anti-Ro, anti-La)
↓
Autoantibodies + autoantigens → circulating immune complexes
↓
Immune complexes deposit in tissues (kidney, skin, joints,
vessels, brain)
↓
Complement activation (Classical pathway via C1q)
+ Fc receptor engagement → neutrophil/monocyte recruitment
↓
Local inflammation → tissue damage (lupus nephritis,
serositis, CNS disease, cytopenias)
| Element | Correct? | Comment |
|---|---|---|
| Antibodies against nuclear components | ✅ | Correct, especially anti-dsDNA, anti-Sm |
| Antibodies "from" immune complexes | ⚠️ | Typo - should be "form" |
| Immune complexes deposit in tissues | ✅ | Correct - kidneys, skin, vessels mainly |
| Causes inflammation and tissue damage | ✅ | Correct - via complement activation |
| Missing: source of autoantigens | ❌ | Apoptosis/NETosis not mentioned |
| Missing: Type I IFN central role | ❌ | Key amplifier of the entire cascade |
| Missing: T cell - B cell cooperation | ❌ | B cells need T-helper cell signals |
| Missing: complement activation step | ❌ | Classical pathway drives much of the damage |

I am an occupational therapy ug student in second year it is ny gm gs 5 mark question a part
Defective clearance of nuclear debris → autoantibody production → immune complex deposition in tissues → complement activation → inflammation and organ damage.
Create a study guide for SLE clinical features and investigations
ls /home/daytona/workspace/ 2>/dev/null || echo "workspace empty or missing"
mkdir -p /home/daytona/workspace/sle-study-guide
~/sle-study-guide/create_sle_guide.js
const pptxgen = require("pptxgenjs");
let pres = new pptxgen();
pres.layout = 'LAYOUT_WIDE';
pres.title = 'SLE Clinical Features & Investigations - Study Guide';
// ── COLOR PALETTE ──────────────────────────────────────────
const DARK_BG = "1A1A2E"; // deep navy (title / section headers)
const MID_BG = "16213E"; // slightly lighter navy
const ACCENT = "E94560"; // vivid red-pink (headings, icons)
const ACCENT2 = "0F3460"; // medium blue (boxes)
const CARD_BG = "0D1B2A"; // card background
const WHITE = "FFFFFF";
const PALE = "C9D6E3"; // muted light blue for body text
const YELLOW = "FFD166"; // highlight / mnemonic
const GREEN = "06D6A0"; // positive / key finding
const ORANGE = "F4A261"; // warning / important
// ── HELPERS ──────────────────────────────────────────────────
function addSlideBg(slide, color) {
slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 13.3, h: 7.5, fill: { color } });
}
function sectionBar(slide, title, y = 0) {
slide.addShape(pres.ShapeType.rect, { x: 0, y, w: 13.3, h: 0.55, fill: { color: ACCENT } });
slide.addText(title, { x: 0.2, y: y + 0.04, w: 13, h: 0.48, fontSize: 16, bold: true, color: WHITE, valign: "middle", margin: 0 });
}
function card(slide, x, y, w, h, bgColor) {
slide.addShape(pres.ShapeType.roundRect, {
x, y, w, h,
fill: { color: bgColor || CARD_BG },
line: { color: ACCENT2, width: 1 },
rectRadius: 0.12
});
}
function slideNumber(slide, n) {
slide.addText(`${n}`, { x: 12.8, y: 7.1, w: 0.4, h: 0.3, fontSize: 9, color: "555577", align: "right" });
}
// ── SLIDE 1 – TITLE ──────────────────────────────────────────
{
let s = pres.addSlide();
addSlideBg(s, DARK_BG);
// decorative circles
s.addShape(pres.ShapeType.ellipse, { x: -1, y: -1, w: 5, h: 5, fill: { color: "E94560", transparency: 85 }, line: { color: "E94560", transparency: 85 } });
s.addShape(pres.ShapeType.ellipse, { x: 9.5, y: 4, w: 6, h: 6, fill: { color: "0F3460", transparency: 80 }, line: { color: "0F3460", transparency: 80 } });
s.addText("SYSTEMIC LUPUS ERYTHEMATOSUS", {
x: 0.6, y: 1.6, w: 12, h: 0.8,
fontSize: 28, bold: true, color: ACCENT, align: "center", charSpacing: 3
});
s.addText("Clinical Features & Investigations", {
x: 0.6, y: 2.55, w: 12, h: 0.7,
fontSize: 22, bold: false, color: WHITE, align: "center"
});
// divider line
s.addShape(pres.ShapeType.rect, { x: 3, y: 3.35, w: 7.3, h: 0.04, fill: { color: ACCENT } });
s.addText("Study Guide for OT 2nd Year • GM/GS", {
x: 0.6, y: 3.55, w: 12, h: 0.45,
fontSize: 13, color: PALE, align: "center", italic: true
});
// badge row
const badges = ["Multisystem", "Type III HSR", "F > M (9:1)", "Age 20-40 yrs"];
const bw = 2.5, bx0 = 1.65;
badges.forEach((b, i) => {
card(s, bx0 + i * (bw + 0.2), 4.55, bw, 0.6, ACCENT2);
s.addText(b, { x: bx0 + i * (bw + 0.2) + 0.05, y: 4.55, w: bw, h: 0.6, fontSize: 13, color: YELLOW, bold: true, align: "center", valign: "middle" });
});
s.addText("Source: Harrison's Principles of Internal Medicine 22E (2025) • Andrews' Diseases of the Skin", {
x: 0.5, y: 7.1, w: 12.3, h: 0.3, fontSize: 8, color: "445566", align: "center"
});
}
// ── SLIDE 2 – OVERVIEW ───────────────────────────────────────
{
let s = pres.addSlide();
addSlideBg(s, MID_BG);
sectionBar(s, "OVERVIEW & SYSTEMIC MANIFESTATIONS");
slideNumber(s, 2);
// left column - definition box
card(s, 0.3, 0.7, 6, 1.5, "0A1628");
s.addText("What is SLE?", { x: 0.4, y: 0.75, w: 5.8, h: 0.4, fontSize: 13, bold: true, color: ACCENT });
s.addText([
{ text: "Chronic, systemic autoimmune disease", options: { breakLine: true } },
{ text: "caused by autoantibodies against nuclear", options: { breakLine: true } },
{ text: "antigens → immune complex deposition.", options: {} }
], { x: 0.4, y: 1.15, w: 5.8, h: 0.9, fontSize: 11, color: PALE });
// epidemiology box
card(s, 0.3, 2.35, 6, 2.3, "0A1628");
s.addText("Key Epidemiology", { x: 0.4, y: 2.4, w: 5.8, h: 0.4, fontSize: 13, bold: true, color: GREEN });
const epi = [
["Female : Male", "9 : 1"],
["Peak age", "20 - 40 years"],
["Higher risk", "African American, Hispanic women"],
["Hypersensitivity", "Type III (immune complex)"],
];
epi.forEach(([label, val], i) => {
s.addText(label + ":", { x: 0.45, y: 2.88 + i * 0.38, w: 2.4, h: 0.35, fontSize: 10.5, color: PALE, bold: true });
s.addText(val, { x: 2.85, y: 2.88 + i * 0.38, w: 3.2, h: 0.35, fontSize: 10.5, color: YELLOW });
});
// right column - constitutional symptoms
card(s, 6.8, 0.7, 6.2, 3.95, "0A1628");
s.addText("Constitutional / Systemic Symptoms", { x: 6.9, y: 0.75, w: 5.9, h: 0.4, fontSize: 13, bold: true, color: ORANGE });
const sys = [
"Fever (common during flares)",
"Fatigue (most frequent complaint, affects QoL)",
"Unintentional weight loss",
"Anorexia",
"Brain fog / cognitive slowing",
"Lymphadenopathy",
"Approximately 15% have mild disease only"
];
sys.forEach((item, i) => {
s.addText("▸ " + item, { x: 6.9, y: 1.25 + i * 0.47, w: 5.9, h: 0.42, fontSize: 10.5, color: PALE });
});
// bottom note
card(s, 0.3, 4.75, 12.7, 0.6, "1C2E40");
s.addText("⚠ Disease course: relapsing-remitting flares. Majority require ongoing therapy. Goal = low disease activity (SLEDAI ≤ 4) or remission.", {
x: 0.5, y: 4.78, w: 12.5, h: 0.54, fontSize: 10, color: YELLOW, italic: true, valign: "middle"
});
slideNumber(s, 2);
}
// ── SLIDE 3 – SKIN MANIFESTATIONS ────────────────────────────
{
let s = pres.addSlide();
addSlideBg(s, MID_BG);
sectionBar(s, "CUTANEOUS MANIFESTATIONS (Skin - 80% of patients)");
slideNumber(s, 3);
const skinData = [
{
title: "ACUTE Cutaneous LE (ACLE)",
color: ACCENT,
items: [
"Malar (butterfly) rash — cheeks + nasal bridge, SPARES nasolabial folds",
"Photosensitive, slightly raised, erythematous",
"Can resemble rosacea but nasolabial sparing distinguishes SLE",
"Also: bullous ACLE, toxic epidermal necrolysis variant"
]
},
{
title: "SUBACUTE Cutaneous LE (SCLE)",
color: ORANGE,
items: [
"Photosensitive, non-scarring rash",
"Flat, red-rimmed annular or psoriasiform lesions",
"Associated with anti-Ro (SSA) antibodies"
]
},
{
title: "CHRONIC Cutaneous LE",
color: GREEN,
items: [
"Discoid LE (DLE) — most common chronic form",
"Rough, circular, slightly raised, hyperpigmented",
"Atrophic, depigmented centre + erythematous rim",
"Other: hypertrophic lupus, lupus panniculitis, tumid lupus"
]
},
{
title: "Non-specific Skin Features",
color: YELLOW,
items: [
"Non-scarring alopecia (hair thinning/loss)",
"Oral / nasal mucosal ulcers (painful or painless)",
"Raynaud's phenomenon: triphasic color change (white→blue→red)",
"Leukocytoclastic vasculitis, urticarial vasculitis"
]
}
];
const cols = [0.25, 6.75];
const rows = [0.65, 3.8];
skinData.forEach((sec, i) => {
const cx = cols[i % 2];
const cy = rows[Math.floor(i / 2)];
card(s, cx, cy, 6.3, 3, CARD_BG);
s.addShape(pres.ShapeType.rect, { x: cx, y: cy, w: 6.3, h: 0.42, fill: { color: ACCENT2 } });
s.addText(sec.title, { x: cx + 0.1, y: cy + 0.04, w: 6.1, h: 0.36, fontSize: 11.5, bold: true, color: sec.color, valign: "middle", margin: 0 });
sec.items.forEach((item, j) => {
s.addText("• " + item, { x: cx + 0.15, y: cy + 0.52 + j * 0.56, w: 6.0, h: 0.52, fontSize: 9.8, color: PALE });
});
});
// bottom mnemonic strip
s.addShape(pres.ShapeType.rect, { x: 0, y: 7.1, w: 13.3, h: 0.4, fill: { color: DARK_BG } });
s.addText("★ EXAM TIP: Malar rash SPARES nasolabial folds (unlike rosacea). Discoid = scarring + hyperpigmented. Anti-Ro → SCLE.", {
x: 0.2, y: 7.12, w: 13, h: 0.36, fontSize: 9.5, color: YELLOW, bold: true
});
}
// ── SLIDE 4 – MUSCULOSKELETAL + RENAL ────────────────────────
{
let s = pres.addSlide();
addSlideBg(s, MID_BG);
sectionBar(s, "MUSCULOSKELETAL & RENAL MANIFESTATIONS");
slideNumber(s, 4);
// MSK
card(s, 0.25, 0.65, 6.3, 3.15, CARD_BG);
s.addText("🦴 Musculoskeletal", { x: 0.35, y: 0.7, w: 6, h: 0.45, fontSize: 14, bold: true, color: ORANGE });
const msk = [
"Arthralgia / myalgia — most common complaint",
"Polyarthritis: wrists, MCPs, PIPs, knees",
"Non-erosive (unlike RA) — may show on MRI",
"Jaccoud arthropathy: reversible joint deformity from ligament damage",
"'Rhupus' = RA + SLE overlap",
"Avascular necrosis (esp. hip/shoulder) — steroid-related",
"Inflammatory myopathy: proximal weakness, ↑CK, ↑aldolase"
];
msk.forEach((item, i) => {
s.addText("▸ " + item, { x: 0.35, y: 1.22 + i * 0.38, w: 6.05, h: 0.36, fontSize: 9.8, color: PALE });
});
// Renal
card(s, 6.75, 0.65, 6.3, 3.15, CARD_BG);
s.addText("🫘 Renal (Lupus Nephritis)", { x: 6.85, y: 0.7, w: 6, h: 0.45, fontSize: 14, bold: true, color: ACCENT });
const renal = [
"~35% of SLE patients develop nephritis",
"More severe in non-white patients",
"May be ASYMPTOMATIC → screen every 3 months",
"Screen with: random urine protein:creatinine ratio (UPCR)",
"Renal biopsy if UPCR > 0.5 or declining eGFR",
"Class III/IV = proliferative GN = aggressive therapy",
"Class V = membranous = nephrotic syndrome",
"Markers: ↑anti-dsDNA + ↓C3/C4 = impending nephritis"
];
renal.forEach((item, i) => {
s.addText("▸ " + item, { x: 6.85, y: 1.22 + i * 0.38, w: 6.05, h: 0.36, fontSize: 9.8, color: PALE });
});
// WHO classes table
card(s, 0.25, 3.9, 12.8, 2.9, "0A1628");
s.addText("Lupus Nephritis Classes (ISN/RPS)", { x: 0.4, y: 3.95, w: 12, h: 0.4, fontSize: 13, bold: true, color: GREEN });
const classes = [
["Class I", "Minimal mesangial", "No treatment needed"],
["Class II", "Mesangial proliferative", "Conservative"],
["Class III", "Focal proliferative GN (<50% glomeruli)", "Aggressive immunosuppression"],
["Class IV", "Diffuse proliferative GN (≥50% glomeruli)", "Aggressive immunosuppression ← worst"],
["Class V", "Membranous GN", "Treat like III/IV if combined; nephrotic"],
];
const colXs = [0.35, 1.85, 4.85, 8.6];
const colWs = [1.4, 2.9, 3.65, 4.4];
const headers = ["Class", "Type", "Pathology", "Management"];
headers.forEach((h, ci) => {
s.addText(h, { x: colXs[ci], y: 4.4, w: colWs[ci], h: 0.32, fontSize: 9.5, bold: true, color: YELLOW });
});
classes.forEach((row, ri) => {
const rowColor = ri % 2 === 0 ? "0D1B2A" : "111E30";
const cols_data = [row[0], row[1], row[2]];
const xs = [colXs[0], colXs[1], colXs[2]];
const ws = [colWs[0], colWs[1], colWs[2] + colWs[3]];
xs.forEach((x, ci) => {
s.addText(cols_data[ci], { x, y: 4.77 + ri * 0.38, w: ws[ci], h: 0.35, fontSize: 9, color: ci === 0 ? ACCENT : PALE });
});
});
slideNumber(s, 4);
}
// ── SLIDE 5 – CNS + HAEMATOLOGICAL + CARDIOPULMONARY ─────────
{
let s = pres.addSlide();
addSlideBg(s, MID_BG);
sectionBar(s, "NERVOUS SYSTEM • HAEMATOLOGICAL • CARDIOPULMONARY MANIFESTATIONS");
slideNumber(s, 5);
// CNS
card(s, 0.25, 0.65, 4.15, 6.2, CARD_BG);
s.addText("🧠 CNS / Neuropsychiatric", { x: 0.35, y: 0.7, w: 3.9, h: 0.42, fontSize: 12, bold: true, color: ACCENT });
const cns = [
"Brain fog / cognitive dysfunction (most common diffuse symptom)",
"Severe headache (migraine-like)",
"Seizures (any type)",
"Acute psychosis / confusional state",
"Transverse myelitis",
"Mononeuritis multiplex",
"Cerebrovascular disease / stroke (esp. with APLA)",
"Peripheral neuropathy",
"Cranial nerve palsies",
"Optic neuritis",
"Chorea"
];
cns.forEach((item, i) => {
s.addText("▸ " + item, { x: 0.32, y: 1.22 + i * 0.47, w: 3.95, h: 0.44, fontSize: 9.2, color: PALE });
});
// Haematological
card(s, 4.6, 0.65, 4.1, 3.0, CARD_BG);
s.addText("🩸 Haematological", { x: 4.7, y: 0.7, w: 3.9, h: 0.42, fontSize: 12, bold: true, color: ORANGE });
const haem = [
"Haemolytic anaemia (Coombs positive)",
"Leukopenia / lymphopenia",
"Thrombocytopenia",
"Antiphospholipid antibodies (APLA) → thrombosis, recurrent miscarriage",
"Lupus anticoagulant → paradoxically thrombotic (not protective)",
"Elevated ESR (not CRP usually)"
];
haem.forEach((item, i) => {
s.addText("▸ " + item, { x: 4.7, y: 1.22 + i * 0.44, w: 3.85, h: 0.42, fontSize: 9.2, color: PALE });
});
// Cardiopulmonary
card(s, 4.6, 3.8, 4.1, 3.05, CARD_BG);
s.addText("🫀 Cardiopulmonary", { x: 4.7, y: 3.85, w: 3.9, h: 0.42, fontSize: 12, bold: true, color: GREEN });
const cardio = [
"Pericarditis (most common cardiac feature)",
"Myocarditis → heart failure",
"Libman-Sacks endocarditis (sterile verrucous)",
"Pleuritis / pleural effusion (most common chest feature)",
"Pneumonitis (acute lupus pneumonitis)",
"Pulmonary arterial hypertension",
"Shrinking lung syndrome"
];
cardio.forEach((item, i) => {
s.addText("▸ " + item, { x: 4.7, y: 4.35 + i * 0.38, w: 3.85, h: 0.36, fontSize: 9.2, color: PALE });
});
// GI / Other
card(s, 8.9, 0.65, 4.15, 6.2, CARD_BG);
s.addText("🔬 GI & Other Organs", { x: 9.0, y: 0.7, w: 3.9, h: 0.42, fontSize: 12, bold: true, color: YELLOW });
const other = [
"Hepatomegaly / splenomegaly",
"Serositis (peritonitis)",
"Nausea, abdominal pain, diarrhoea",
"Mesenteric vasculitis (rare but serious)",
"",
"Eyes:",
"Keratoconjunctivitis sicca (sicca syndrome)",
"Retinal vasculitis",
"Episcleritis",
"",
"Glands:",
"Parotid enlargement (overlap with Sjogren's)",
"Secondary Sjogren's syndrome (30%)",
];
other.forEach((item, i) => {
if (item === "") return;
s.addText((item.endsWith(":") ? item : "▸ " + item), {
x: 9.0, y: 1.22 + i * 0.42, w: 3.95, h: 0.4,
fontSize: 9.2, color: item.endsWith(":") ? ORANGE : PALE,
bold: item.endsWith(":")
});
});
slideNumber(s, 5);
}
// ── SLIDE 6 – ACR / SLICC CRITERIA ───────────────────────────
{
let s = pres.addSlide();
addSlideBg(s, MID_BG);
sectionBar(s, "DIAGNOSTIC CRITERIA — ACR 1997 & SLICC 2012");
slideNumber(s, 6);
// ACR box
card(s, 0.25, 0.65, 8.1, 6.2, CARD_BG);
s.addText("ACR 1997 Criteria (≥ 4 of 11 = SLE)", { x: 0.35, y: 0.7, w: 7.8, h: 0.45, fontSize: 13, bold: true, color: ACCENT });
const acr = [
["1", "Malar rash", "Butterfly rash across cheeks"],
["2", "Discoid rash", "Scarring, hyperpigmented lesions"],
["3", "Photosensitivity", "UV-induced rash"],
["4", "Oral ulcers", "Usually painless"],
["5", "Arthritis", "Non-erosive, ≥2 joints"],
["6", "Serositis", "Pleuritis or pericarditis"],
["7", "Renal disorder", "Proteinuria >0.5 g/day or casts"],
["8", "Neurologic", "Seizures or psychosis (no other cause)"],
["9", "Haematologic", "Haemolytic anaemia, leukopenia, thrombocytopenia"],
["10", "Immunologic", "Anti-dsDNA, anti-Sm, APLA, false +ve VDRL"],
["11", "ANA", "Positive in absence of drug-induced lupus"],
];
acr.forEach((row, i) => {
const bg = i % 2 === 0 ? "0D1B2A" : "111E30";
card(s, 0.32, 1.22 + i * 0.47, 7.93, 0.44, bg);
s.addText(row[0], { x: 0.38, y: 1.24 + i * 0.47, w: 0.35, h: 0.4, fontSize: 10, bold: true, color: YELLOW, align: "center" });
s.addText(row[1], { x: 0.8, y: 1.24 + i * 0.47, w: 2.5, h: 0.4, fontSize: 10, bold: true, color: ORANGE });
s.addText(row[2], { x: 3.4, y: 1.24 + i * 0.47, w: 4.8, h: 0.4, fontSize: 9.5, color: PALE });
});
// SLICC box
card(s, 8.6, 0.65, 4.45, 6.2, CARD_BG);
s.addText("SLICC 2012 Criteria", { x: 8.7, y: 0.7, w: 4.2, h: 0.45, fontSize: 13, bold: true, color: GREEN });
s.addText("Requires ≥4 criteria (at least 1 clinical + 1 immunologic) OR biopsy-proven lupus nephritis + ANA or anti-dsDNA", {
x: 8.7, y: 1.2, w: 4.2, h: 0.75, fontSize: 9.8, color: PALE
});
s.addText("SLICC Clinical Criteria (11):", { x: 8.7, y: 2.0, w: 4.2, h: 0.35, fontSize: 10.5, bold: true, color: ORANGE });
const sliccClin = ["Acute cutaneous lupus", "Chronic cutaneous lupus", "Oral ulcers", "Non-scarring alopecia", "Arthritis", "Serositis", "Renal (UPCR >500 mg/g or RBC casts)", "Neurologic", "Haemolytic anaemia", "Leukopenia / lymphopenia", "Thrombocytopenia"];
sliccClin.forEach((item, i) => {
s.addText("▸ " + item, { x: 8.7, y: 2.4 + i * 0.31, w: 4.2, h: 0.29, fontSize: 9, color: PALE });
});
s.addText("SLICC Immunologic Criteria (6):", { x: 8.7, y: 5.84, w: 4.2, h: 0.35, fontSize: 10.5, bold: true, color: ORANGE });
const sliccImm = ["ANA", "Anti-dsDNA", "Anti-Sm", "APLA", "Low complement (C3/C4/CH50)", "Direct Coombs test +ve"];
sliccImm.forEach((item, i) => {
s.addText("▸ " + item, { x: 8.7, y: 6.22 + i * 0.22, w: 4.2, h: 0.21, fontSize: 8.5, color: PALE });
});
slideNumber(s, 6);
}
// ── SLIDE 7 – INVESTIGATIONS ─────────────────────────────────
{
let s = pres.addSlide();
addSlideBg(s, MID_BG);
sectionBar(s, "INVESTIGATIONS");
slideNumber(s, 7);
// Immunology
card(s, 0.25, 0.65, 6.3, 4.0, CARD_BG);
s.addText("🔬 Immunological / Serological Tests", { x: 0.35, y: 0.7, w: 6.0, h: 0.42, fontSize: 12.5, bold: true, color: ACCENT });
const immuno = [
["ANA (Antinuclear Antibody)", "Best SCREENING test", "Positive in 95% of SLE"],
["Anti-dsDNA", "HIGH SPECIFICITY", "Correlates with disease activity + nephritis; ↑ in flare"],
["Anti-Sm (Smith antigen)", "HIGHLY SPECIFIC", "Not common but diagnostic; does not correlate with activity"],
["Anti-histone", "Drug-induced lupus", "Positive in drug-induced SLE"],
["Anti-Ro (SSA)", "SCLE + neonatal lupus", "Associated with photosensitive SCLE"],
["Anti-La (SSB)", "Secondary Sjogren's", "Often with anti-Ro"],
["APLA (anticardiolipin, anti-β2GPI, LA)", "Thrombosis risk", "Associated with stroke, DVT, recurrent miscarriage"],
];
immuno.forEach((row, i) => {
s.addText(row[0], { x: 0.35, y: 1.18 + i * 0.49, w: 2.5, h: 0.44, fontSize: 9, bold: true, color: YELLOW });
s.addText(row[1], { x: 2.9, y: 1.18 + i * 0.49, w: 1.5, h: 0.44, fontSize: 8.5, color: GREEN, bold: true });
s.addText(row[2], { x: 4.45, y: 1.18 + i * 0.49, w: 2.0, h: 0.44, fontSize: 8.5, color: PALE });
});
// Complement
card(s, 0.25, 4.75, 6.3, 2.15, CARD_BG);
s.addText("Complement Levels", { x: 0.35, y: 4.8, w: 6.0, h: 0.4, fontSize: 12.5, bold: true, color: ORANGE });
const comp = [
["C3, C4, CH50", "↓ DECREASED in active disease", "Consumed by immune complex formation"],
["↓C3 + ↓C4 + ↑anti-dsDNA", "= Active lupus nephritis marker", "Monitor quarterly"],
];
comp.forEach((row, i) => {
s.addText(row[0], { x: 0.35, y: 5.28 + i * 0.5, w: 2.2, h: 0.45, fontSize: 9.5, bold: true, color: YELLOW });
s.addText(row[1], { x: 2.6, y: 5.28 + i * 0.5, w: 1.8, h: 0.45, fontSize: 9, color: ACCENT });
s.addText(row[2], { x: 4.45, y: 5.28 + i * 0.5, w: 2.0, h: 0.45, fontSize: 9, color: PALE });
});
// Routine blood + urine
card(s, 6.8, 0.65, 6.25, 3.0, CARD_BG);
s.addText("🩸 Haematology & Biochemistry", { x: 6.9, y: 0.7, w: 6.0, h: 0.42, fontSize: 12.5, bold: true, color: GREEN });
const blood = [
"CBC: Anaemia (haemolytic or chronic disease), leukopenia, lymphopenia, thrombocytopenia",
"ESR: Raised (often high even between flares)",
"CRP: Usually NORMAL or mildly elevated in SLE flare (unlike bacterial infection where CRP is markedly ↑)",
"LFTs: May be abnormal in hepatic involvement",
"Serum creatinine + eGFR: Renal monitoring",
"Urinalysis: Proteinuria, haematuria, RBC casts (active nephritis)",
"UPCR (urine protein:creatinine ratio): Screen every 3 months"
];
blood.forEach((item, i) => {
s.addText("▸ " + item, { x: 6.9, y: 1.2 + i * 0.44, w: 6.0, h: 0.42, fontSize: 9.2, color: PALE });
});
// Imaging
card(s, 6.8, 3.75, 6.25, 1.55, CARD_BG);
s.addText("📡 Imaging", { x: 6.9, y: 3.8, w: 6.0, h: 0.4, fontSize: 12.5, bold: true, color: YELLOW });
const imaging = [
"CXR / CT Chest: Pleural effusion, pericardial effusion, pneumonitis",
"Echocardiography: Libman-Sacks endocarditis, pericardial effusion, PAH",
"MRI Brain: Neuropsychiatric lupus — cerebral atrophy, white matter lesions",
"MRI / Ultrasound joints: Erosive changes (more sensitive than X-ray)"
];
imaging.forEach((item, i) => {
s.addText("▸ " + item, { x: 6.9, y: 4.28 + i * 0.38, w: 6.0, h: 0.36, fontSize: 9.2, color: PALE });
});
// Biopsy
card(s, 6.8, 5.4, 6.25, 1.4, CARD_BG);
s.addText("🔎 Biopsy", { x: 6.9, y: 5.45, w: 6.0, h: 0.38, fontSize: 12.5, bold: true, color: ORANGE });
const biopsy = [
"Renal biopsy: Indicated if UPCR >0.5 or ↓eGFR → classify nephritis (I-V)",
"Skin biopsy: Lupus band test (immunofluorescence) — IgG, IgM, C3 deposits at DEJ",
"Muscle biopsy: If inflammatory myopathy suspected"
];
biopsy.forEach((item, i) => {
s.addText("▸ " + item, { x: 6.9, y: 5.88 + i * 0.34, w: 6.0, h: 0.32, fontSize: 9.2, color: PALE });
});
slideNumber(s, 7);
}
// ── SLIDE 8 – AUTOANTIBODY CHEAT SHEET ───────────────────────
{
let s = pres.addSlide();
addSlideBg(s, MID_BG);
sectionBar(s, "AUTOANTIBODY QUICK-REFERENCE CHEAT SHEET ★ HIGH-YIELD FOR EXAMS");
slideNumber(s, 8);
const antibodies = [
{ ab: "ANA", sens: "95%", spec: "Low", assoc: "Best screening test. Positive in most connective tissue diseases. NOT specific for SLE.", color: PALE },
{ ab: "Anti-dsDNA", sens: "60-70%", spec: "HIGH", assoc: "SPECIFIC for SLE. Titre CORRELATES with disease activity and nephritis. Monitor to detect flares.", color: ACCENT },
{ ab: "Anti-Sm", sens: "20-30%", spec: "HIGHEST", assoc: "MOST SPECIFIC for SLE. Does NOT correlate with disease activity. Diagnostic if positive.", color: GREEN },
{ ab: "Anti-histone", sens: "60-70%", spec: "Moderate", assoc: "Drug-induced lupus (procainamide, hydralazine, isoniazid, methyldopa). Rare in true SLE.", color: ORANGE },
{ ab: "Anti-Ro (SSA)", sens: "30%", spec: "Moderate", assoc: "SCLE, neonatal lupus, congenital heart block. Also Sjogren's syndrome.", color: YELLOW },
{ ab: "Anti-La (SSB)", sens: "20%", spec: "Moderate", assoc: "Often with anti-Ro. Secondary Sjogren's syndrome.", color: YELLOW },
{ ab: "Anti-phospholipid\n(APLA)", sens: "30-40%", spec: "Moderate", assoc: "Antiphospholipid syndrome: arterial/venous thrombosis, recurrent pregnancy loss, thrombocytopenia.", color: ORANGE },
{ ab: "Anti-C1q", sens: "Low", spec: "Moderate", assoc: "Particularly associated with lupus nephritis and low complement.", color: PALE },
{ ab: "Anti-RNP (U1-RNP)", sens: "30%", spec: "Low", assoc: "High titres → Mixed Connective Tissue Disease (MCTD). Also seen in SLE overlap.", color: PALE },
{ ab: "Lupus anticoagulant", sens: "~30%", spec: "High", assoc: "Part of APLA. Paradoxically THROMBOTIC (not anticoagulant!). Detected by DRVVT / APTT.", color: ACCENT },
];
const colXs = [0.25, 1.55, 2.5, 3.45, 5.7];
const colWs = [1.25, 0.95, 0.95, 2.2, 7.3];
const headers2 = ["Antibody", "Sensitivity", "Specificity", "Clinical Association", ""];
headers2.forEach((h, ci) => {
if (ci < 4) s.addText(h, { x: colXs[ci], y: 0.63, w: colWs[ci], h: 0.36, fontSize: 10, bold: true, color: YELLOW });
});
// full width "notes" header
s.addText("Key Clinical Significance", { x: colXs[3], y: 0.63, w: 12.8 - colXs[3], h: 0.36, fontSize: 10, bold: true, color: YELLOW });
antibodies.forEach((row, i) => {
const rowBg = i % 2 === 0 ? "0D1B2A" : "111E30";
card(s, 0.22, 1.03 + i * 0.62, 12.86, 0.58, rowBg);
s.addText(row.ab, { x: colXs[0], y: 1.06 + i * 0.62, w: colWs[0], h: 0.52, fontSize: 9.5, bold: true, color: row.color, valign: "middle" });
s.addText(row.sens, { x: colXs[1], y: 1.06 + i * 0.62, w: colWs[1], h: 0.52, fontSize: 9, color: PALE, valign: "middle", align: "center" });
s.addText(row.spec, { x: colXs[2], y: 1.06 + i * 0.62, w: colWs[2], h: 0.52, fontSize: 9, color: row.spec === "HIGHEST" ? GREEN : row.spec === "HIGH" ? ACCENT : PALE, bold: row.spec.includes("HIGH"), valign: "middle", align: "center" });
s.addText(row.assoc, { x: colXs[3], y: 1.06 + i * 0.62, w: 8.8, h: 0.52, fontSize: 9, color: PALE, valign: "middle" });
});
slideNumber(s, 8);
}
// ── SLIDE 9 – MEMORY MNEMONICS ───────────────────────────────
{
let s = pres.addSlide();
addSlideBg(s, DARK_BG);
sectionBar(s, "MEMORY AIDS & EXAM TIPS ★ FOR 5-MARK QUESTIONS");
slideNumber(s, 9);
// SOAP BRAIN MD mnemonic
card(s, 0.25, 0.65, 7.5, 6.25, "0A1628");
s.addText('"SOAP BRAIN MD" — ACR Criteria Mnemonic', {
x: 0.4, y: 0.7, w: 7.2, h: 0.45, fontSize: 13, bold: true, color: YELLOW
});
const soap = [
{ letter: "S", word: "Serositis", detail: "Pleuritis / pericarditis" },
{ letter: "O", word: "Oral ulcers", detail: "Painless usually" },
{ letter: "A", word: "Arthritis", detail: "Non-erosive, ≥2 joints" },
{ letter: "P", word: "Photosensitivity", detail: "UV-induced rash" },
{ letter: "B", word: "Blood disorders", detail: "Anaemia, leukopenia, thrombocytopenia" },
{ letter: "R", word: "Renal disorder", detail: "Proteinuria, casts" },
{ letter: "A", word: "ANA positive", detail: "Screening test" },
{ letter: "I", word: "Immunologic", detail: "Anti-dsDNA, anti-Sm, APLA" },
{ letter: "N", word: "Neurologic", detail: "Seizures, psychosis" },
{ letter: "M", word: "Malar rash", detail: "Butterfly rash" },
{ letter: "D", word: "Discoid rash", detail: "Scarring, hyperpigmented" },
];
soap.forEach((item, i) => {
s.addText(item.letter, { x: 0.35, y: 1.22 + i * 0.47, w: 0.35, h: 0.42, fontSize: 16, bold: true, color: ACCENT, align: "center" });
s.addText(item.word, { x: 0.78, y: 1.22 + i * 0.47, w: 2.4, h: 0.42, fontSize: 10.5, bold: true, color: ORANGE });
s.addText("→ " + item.detail, { x: 3.22, y: 1.22 + i * 0.47, w: 4.3, h: 0.42, fontSize: 10, color: PALE });
});
// Key tips
card(s, 8.0, 0.65, 5.0, 6.25, "0A1628");
s.addText("⭐ High-Yield Exam Facts", { x: 8.1, y: 0.7, w: 4.7, h: 0.45, fontSize: 13, bold: true, color: GREEN });
const tips = [
["ANA", "Best SCREEN (95% sensitive)"],
["Anti-dsDNA", "Tracks DISEASE ACTIVITY"],
["Anti-Sm", "MOST SPECIFIC for SLE"],
["Anti-histone", "DRUG-INDUCED lupus"],
["Anti-Ro", "SCLE + Neonatal lupus"],
["C3/C4 ↓", "Active disease / nephritis"],
["ESR ↑, CRP normal", "Classic in SLE flare"],
["Malar rash", "SPARES nasolabial folds"],
["Renal screen", "Every 3 months (urine UPCR)"],
["Class IV nephritis", "Worst prognosis"],
["Lupus anticoagulant", "Thrombotic, NOT protective"],
["APLA + pregnancy", "Recurrent miscarriage"],
["F:M ratio", "9:1 (peak age 20-40)"],
];
tips.forEach((tip, i) => {
s.addText(tip[0] + ":", { x: 8.1, y: 1.22 + i * 0.4, w: 2.0, h: 0.37, fontSize: 9.5, bold: true, color: YELLOW });
s.addText(tip[1], { x: 10.15, y: 1.22 + i * 0.4, w: 2.7, h: 0.37, fontSize: 9.5, color: PALE });
});
slideNumber(s, 9);
}
// ── SLIDE 10 – SUMMARY ───────────────────────────────────────
{
let s = pres.addSlide();
addSlideBg(s, DARK_BG);
// decorative shapes
s.addShape(pres.ShapeType.ellipse, { x: -1, y: 4, w: 5, h: 5, fill: { color: ACCENT, transparency: 88 }, line: { color: ACCENT, transparency: 88 } });
s.addShape(pres.ShapeType.ellipse, { x: 10, y: -1, w: 6, h: 6, fill: { color: ACCENT2, transparency: 82 }, line: { color: ACCENT2, transparency: 82 } });
s.addText("SLE — SUMMARY CARD", {
x: 0.5, y: 0.4, w: 12.3, h: 0.7, fontSize: 24, bold: true, color: ACCENT, align: "center", charSpacing: 4
});
const summary = [
{ label: "Definition", text: "Chronic autoimmune disease, Type III hypersensitivity, multisystem" },
{ label: "Who gets it", text: "Women 9:1, age 20-40, African American / Hispanic higher risk" },
{ label: "Skin", text: "Malar rash (spares nasolabial), discoid, SCLE, alopecia, oral ulcers, Raynaud's" },
{ label: "MSK", text: "Non-erosive polyarthritis, Jaccoud arthropathy, avascular necrosis" },
{ label: "Renal", text: "~35%, class III/IV worst, screen UPCR every 3 months" },
{ label: "CNS", text: "Brain fog, seizures, psychosis, stroke (esp. APLA), transverse myelitis" },
{ label: "Haematology", text: "Haemolytic anaemia, leukopenia, thrombocytopenia, APLA" },
{ label: "Heart/Lung", text: "Pericarditis, Libman-Sacks, pleuritis, lupus pneumonitis" },
{ label: "Key tests", text: "ANA (screen) → anti-dsDNA + anti-Sm + complement + UPCR + CBC" },
{ label: "Diagnosis", text: "ACR: ≥4/11 criteria | SLICC: ≥4 (1 clinical + 1 immunologic)" },
{ label: "Monitoring", text: "Anti-dsDNA titre + C3/C4 every visit, UPCR quarterly, eye exam yearly (HCQ)" },
];
summary.forEach((item, i) => {
const col = i < 6 ? 0 : 1;
const row = i < 6 ? i : i - 6;
const x = col === 0 ? 0.25 : 6.8;
const y = 1.2 + row * 1.0;
card(s, x, y, 6.3, 0.88, "0D1B2A");
s.addText(item.label, { x: x + 0.12, y: y + 0.04, w: 1.6, h: 0.4, fontSize: 10, bold: true, color: YELLOW });
s.addText(item.text, { x: x + 0.12, y: y + 0.44, w: 6.0, h: 0.42, fontSize: 9.5, color: PALE });
});
s.addText("Study Guide compiled from Harrison's Internal Medicine 22E (2025) • Andrews' Diseases of the Skin • Firestein & Kelley's Rheumatology • Miller's Review of Orthopaedics", {
x: 0.5, y: 7.2, w: 12.3, h: 0.25, fontSize: 7.5, color: "334455", align: "center"
});
}
// ── WRITE FILE ────────────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/sle-study-guide/SLE_Study_Guide_OT2ndYear.pptx" })
.then(() => console.log("SUCCESS: SLE Study Guide created."))
.catch(e => console.error("ERROR:", e));
cd /home/daytona/workspace/sle-study-guide && node create_sle_guide.js
ls -lh /home/daytona/workspace/sle-study-guide/
SLE Study Guide OT2ndYear
Presentation · PPTX
| Slide | Content |
|---|---|
| 1 | Title slide with key facts (F:M ratio, age, hypersensitivity type) |
| 2 | Overview, epidemiology, constitutional symptoms |
| 3 | Cutaneous manifestations - ACLE, SCLE, Chronic, Non-specific |
| 4 | Musculoskeletal + Renal with the ISN/RPS nephritis class table |
| 5 | CNS / Neuropsychiatric + Haematological + Cardiopulmonary + GI |
| 6 | Full ACR 1997 (all 11 criteria) + SLICC 2012 side by side |
| 7 | Complete Investigations - serology, blood tests, imaging, biopsy |
| 8 | Autoantibody Cheat Sheet with sensitivity, specificity, and clinical meaning |
| 9 | "SOAP BRAIN MD" mnemonic for ACR criteria + high-yield exam tips |
| 10 | Summary card - one-stop revision before exams |