Transient Ischemic Attack (TIA) Definition TIA is a temporary interruption of blood flow to the brain, spinal cord, or retina. It causes temporary neurological symptoms without permanent brain damage. Symptoms usually last less than 1 hour (always less than 24 hours). TIA is often called a "warning stroke" because it increases the risk of a future stroke. Slide 2: Causes & Symptoms Causes Atherosclerosis Cardioembolism (e.g., atrial fibrillation) Small vessel disease Risk factors: Hypertension Diabetes mellitus Smoking Hyperlipidemia Symptoms Sudden weakness or numbness on one side Difficulty speaking (slurred speech) Temporary loss of vision Dizziness or loss of balance Symptoms resolve completely Slide 3: Pharmacological Management (KDT) Drug Therapy Antiplatelet Drugs Aspirin (first-line) Clopidogrel Aspirin + Clopidogrel (short-term in high-risk TIA) Anticoagulants Warfarin or DOACs Used in TIA due to atrial fibrillation Statins Atorvastatin Rosuvastatin Slide 4: Prevention & Conclusion Prevention Control blood pressure Control diabetes Stop smoking Healthy diet & regular exercise Reduce cholesterol with statins Conclusion TIA is a medical emergency and a warning sign of stroke. Early diagnosis and prompt treatment reduce the risk of future stroke. Antiplatelets, anticoagulants (when indicated), statins, and lifestyle modification are the main treatments. Thank You Give me PPT presentation in four slides with simple background
mkdir -p /home/daytona/workspace/tia-ppt && cat > /home/daytona/workspace/tia-ppt/create_tia.js << 'EOF' const pptxgen = require("pptxgenjs"); let pres = new pptxgen(); pres.layout = 'LAYOUT_16x9'; pres.title = 'Transient Ischemic Attack (TIA)'; // Color palette const NAVY = "1B3A6B"; // dominant dark blue const TEAL = "2A7FA5"; // accent const LIGHT_BLUE = "E8F4FB"; // slide background const WHITE = "FFFFFF"; const DARK_TEXT = "1A1A2E"; const MID_GRAY = "4A5568"; const ACCENT_RED = "C0392B"; // for warning/emergency note // ─── Helper: add a slide background ─────────────────────────────────────────── function addBg(slide) { // full-slide light background slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: LIGHT_BLUE }, line: { color: LIGHT_BLUE } }); } // ─── Helper: top header bar ──────────────────────────────────────────────────── function addHeader(slide, title, subtitle) { slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 1.15, fill: { color: NAVY }, line: { color: NAVY } }); // decorative teal accent strip slide.addShape(pres.ShapeType.rect, { x: 0, y: 1.15, w: 10, h: 0.07, fill: { color: TEAL }, line: { color: TEAL } }); slide.addText(title, { x: 0.35, y: 0.12, w: 9.3, h: 0.65, fontSize: 26, bold: true, color: WHITE, fontFace: "Calibri", valign: "middle" }); if (subtitle) { slide.addText(subtitle, { x: 0.35, y: 0.72, w: 9.3, h: 0.38, fontSize: 13, color: "A8D4F0", fontFace: "Calibri", valign: "top" }); } } // ─── Helper: section label pill ──────────────────────────────────────────────── function addPill(slide, label, x, y, w) { slide.addShape(pres.ShapeType.rect, { x, y, w: w || 2.2, h: 0.34, fill: { color: TEAL }, line: { color: TEAL }, rectRadius: 0.05 }); slide.addText(label, { x, y, w: w || 2.2, h: 0.34, fontSize: 11, bold: true, color: WHITE, fontFace: "Calibri", align: "center", valign: "middle" }); } // ─── Helper: content box ─────────────────────────────────────────────────────── function addBox(slide, x, y, w, h, fillColor) { slide.addShape(pres.ShapeType.rect, { x, y, w, h, fill: { color: fillColor || WHITE }, line: { color: "D0E8F5", pt: 1 }, shadow: { type: "outer", color: "BBCCDD", blur: 4, offset: 2, angle: 45, opacity: 0.3 } }); } // ══════════════════════════════════════════════════════════════════════════════ // SLIDE 1 — Title / Definition // ══════════════════════════════════════════════════════════════════════════════ { const s = pres.addSlide(); // Full dark background for title slide s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: NAVY }, line: { color: NAVY } }); // Teal accent band s.addShape(pres.ShapeType.rect, { x: 0, y: 2.85, w: 10, h: 0.08, fill: { color: TEAL }, line: { color: TEAL } }); // subtle top strip s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.08, fill: { color: TEAL }, line: { color: TEAL } }); // Brain / medical icon area (decorative circle) s.addShape(pres.ShapeType.ellipse, { x: 7.5, y: 0.5, w: 2.1, h: 2.1, fill: { color: TEAL, transparency: 70 }, line: { color: TEAL, pt: 1 } }); s.addText("🧠", { x: 7.6, y: 0.8, w: 1.8, h: 1.5, fontSize: 52, align: "center", valign: "middle" }); // Main title s.addText("Transient Ischemic Attack", { x: 0.5, y: 0.55, w: 7.0, h: 0.85, fontSize: 32, bold: true, color: WHITE, fontFace: "Calibri" }); s.addText("TIA", { x: 0.5, y: 1.35, w: 3.5, h: 0.7, fontSize: 42, bold: true, color: TEAL, fontFace: "Calibri" }); // Definition section s.addText("DEFINITION", { x: 0.5, y: 3.05, w: 9, h: 0.38, fontSize: 11, bold: true, color: TEAL, fontFace: "Calibri", charSpacing: 3 }); const defPoints = [ "A temporary interruption of blood flow to the brain, spinal cord, or retina", "Causes temporary neurological symptoms without permanent brain damage", "Symptoms usually last less than 1 hour (always less than 24 hours)", "Often called a \"warning stroke\" — significantly increases future stroke risk" ]; s.addText(defPoints.map((t, i) => [ { text: "▸ ", options: { color: TEAL, bold: true, fontSize: 12 } }, { text: t, options: { color: "D6EAF8", fontSize: 12, breakLine: i < defPoints.length - 1 } } ]).flat(), { x: 0.5, y: 3.45, w: 9.1, h: 1.95, fontFace: "Calibri", paraSpaceBefore: 4 }); // Footer s.addText("Pharmacology & Neurology | Clinical Education", { x: 0, y: 5.3, w: 10, h: 0.28, fontSize: 9, color: "7FB3D3", align: "center", fontFace: "Calibri" }); } // ══════════════════════════════════════════════════════════════════════════════ // SLIDE 2 — Causes & Symptoms // ══════════════════════════════════════════════════════════════════════════════ { const s = pres.addSlide(); addBg(s); addHeader(s, "Causes & Symptoms", "Slide 2 of 4"); // LEFT COLUMN — Causes addBox(s, 0.3, 1.35, 4.4, 3.95, WHITE); addPill(s, "⚡ CAUSES", 0.55, 1.18, 1.9); s.addText([ { text: "Primary Causes", options: { bold: true, color: NAVY, fontSize: 12, breakLine: true } }, { text: "• Atherosclerosis\n• Cardioembolism (e.g., atrial fibrillation)\n• Small vessel disease", options: { color: DARK_TEXT, fontSize: 12, breakLine: true } }, { text: "\nRisk Factors", options: { bold: true, color: NAVY, fontSize: 12, breakLine: true } }, { text: "• Hypertension\n• Diabetes mellitus\n• Smoking\n• Hyperlipidemia", options: { color: DARK_TEXT, fontSize: 12 } } ], { x: 0.5, y: 1.55, w: 4.0, h: 3.65, fontFace: "Calibri", paraSpaceBefore: 3 }); // RIGHT COLUMN — Symptoms addBox(s, 5.3, 1.35, 4.4, 3.95, WHITE); addPill(s, "🩺 SYMPTOMS", 5.55, 1.18, 2.0); s.addText([ { text: "• Sudden weakness or numbness (one side)\n", options: { color: DARK_TEXT, fontSize: 12 } }, { text: "• Difficulty speaking / slurred speech\n", options: { color: DARK_TEXT, fontSize: 12 } }, { text: "• Temporary loss of vision\n", options: { color: DARK_TEXT, fontSize: 12 } }, { text: "• Dizziness or loss of balance\n", options: { color: DARK_TEXT, fontSize: 12 } }, { text: "• All symptoms resolve completely", options: { color: DARK_TEXT, fontSize: 12 } } ], { x: 5.45, y: 1.55, w: 4.0, h: 3.65, fontFace: "Calibri", paraSpaceBefore: 6 }); // Divider s.addShape(pres.ShapeType.line, { x: 4.95, y: 1.35, w: 0, h: 3.95, line: { color: "BDD7EE", pt: 1.5 } }); } // ══════════════════════════════════════════════════════════════════════════════ // SLIDE 3 — Pharmacological Management // ══════════════════════════════════════════════════════════════════════════════ { const s = pres.addSlide(); addBg(s); addHeader(s, "Pharmacological Management (KDT)", "Slide 3 of 4"); // Three columns const cols = [ { x: 0.25, label: "💊 ANTIPLATELETS", color: "1B6CA8", title: "Antiplatelet Drugs", items: [ { bold: true, text: "Aspirin" }, { text: "(First-line therapy)" }, { bold: true, text: "Clopidogrel" }, { text: "Alternative antiplatelet" }, { bold: true, text: "Aspirin + Clopidogrel" }, { text: "Short-term in high-risk TIA" } ] }, { x: 3.55, label: "💉 ANTICOAGULANTS", color: "17706E", title: "Anticoagulants", items: [ { bold: true, text: "Warfarin" }, { text: "Vitamin K antagonist" }, { bold: true, text: "DOACs" }, { text: "(e.g., Apixaban, Rivaroxaban)" }, { bold: true, text: "Indication:" }, { text: "TIA due to atrial fibrillation" } ] }, { x: 6.8, label: "🫀 STATINS", color: "7D3C98", title: "Statins", items: [ { bold: true, text: "Atorvastatin" }, { text: "High-intensity statin" }, { bold: true, text: "Rosuvastatin" }, { text: "Alternative high-intensity" }, { bold: true, text: "Goal:" }, { text: "Reduce LDL & plaque stabilization" } ] } ]; cols.forEach(col => { // box addBox(s, col.x, 1.35, 3.0, 3.95, WHITE); // colored pill header s.addShape(pres.ShapeType.rect, { x: col.x, y: 1.35, w: 3.0, h: 0.48, fill: { color: col.color }, line: { color: col.color } }); s.addText(col.label, { x: col.x + 0.05, y: 1.35, w: 2.9, h: 0.48, fontSize: 11, bold: true, color: WHITE, fontFace: "Calibri", align: "center", valign: "middle" }); // content const richText = col.items.map((item, i) => ({ text: item.text + (i < col.items.length - 1 ? "\n" : ""), options: { bold: item.bold || false, color: item.bold ? NAVY : MID_GRAY, fontSize: 12, fontFace: "Calibri" } })); s.addText(richText, { x: col.x + 0.15, y: 1.9, w: 2.7, h: 3.25, fontFace: "Calibri", paraSpaceBefore: 5 }); }); } // ══════════════════════════════════════════════════════════════════════════════ // SLIDE 4 — Prevention & Conclusion // ══════════════════════════════════════════════════════════════════════════════ { const s = pres.addSlide(); // Dark background for final slide s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: NAVY }, line: { color: NAVY } }); s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.07, fill: { color: TEAL }, line: { color: TEAL } }); // Header s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 1.0, fill: { color: "162D56" }, line: { color: "162D56" } }); s.addText("Prevention & Conclusion", { x: 0.35, y: 0.1, w: 9, h: 0.55, fontSize: 26, bold: true, color: WHITE, fontFace: "Calibri" }); s.addText("Slide 4 of 4", { x: 0.35, y: 0.65, w: 5, h: 0.3, fontSize: 12, color: "7FB3D3", fontFace: "Calibri" }); s.addShape(pres.ShapeType.rect, { x: 0, y: 1.0, w: 10, h: 0.06, fill: { color: TEAL }, line: { color: TEAL } }); // LEFT: Prevention s.addText("PREVENTION", { x: 0.4, y: 1.18, w: 4.2, h: 0.35, fontSize: 11, bold: true, color: TEAL, fontFace: "Calibri", charSpacing: 2 }); const prevItems = [ "Control blood pressure", "Manage diabetes mellitus", "Stop smoking", "Healthy diet & regular exercise", "Reduce cholesterol with statins" ]; s.addText(prevItems.map((t, i) => [ { text: "✔ ", options: { color: TEAL, bold: true, fontSize: 13 } }, { text: t, options: { color: "D6EAF8", fontSize: 13, breakLine: i < prevItems.length - 1 } } ]).flat(), { x: 0.4, y: 1.55, w: 4.4, h: 3.5, fontFace: "Calibri", paraSpaceBefore: 6 }); // Divider s.addShape(pres.ShapeType.line, { x: 5.0, y: 1.12, w: 0, h: 3.8, line: { color: "2A7FA5", pt: 1.5 } }); // RIGHT: Conclusion s.addText("CONCLUSION", { x: 5.3, y: 1.18, w: 4.3, h: 0.35, fontSize: 11, bold: true, color: TEAL, fontFace: "Calibri", charSpacing: 2 }); s.addShape(pres.ShapeType.rect, { x: 5.3, y: 1.55, w: 4.35, h: 1.0, fill: { color: ACCENT_RED, transparency: 20 }, line: { color: ACCENT_RED, pt: 1 } }); s.addText("⚠ TIA is a Medical Emergency!", { x: 5.35, y: 1.6, w: 4.25, h: 0.45, fontSize: 13, bold: true, color: WHITE, fontFace: "Calibri", align: "center" }); s.addText("Acts as a critical warning sign of stroke", { x: 5.35, y: 2.0, w: 4.25, h: 0.4, fontSize: 11, color: "FADBD8", fontFace: "Calibri", align: "center" }); const concItems = [ "Early diagnosis & prompt treatment reduce future stroke risk", "Antiplatelets are the cornerstone of therapy", "Anticoagulants indicated for cardioembolic TIA (AF)", "Statins + lifestyle modification are essential adjuncts" ]; s.addText(concItems.map((t, i) => [ { text: "▸ ", options: { color: TEAL, bold: true, fontSize: 12 } }, { text: t, options: { color: "D6EAF8", fontSize: 12, breakLine: i < concItems.length - 1 } } ]).flat(), { x: 5.3, y: 2.65, w: 4.35, h: 2.3, fontFace: "Calibri", paraSpaceBefore: 5 }); // Thank You footer s.addShape(pres.ShapeType.rect, { x: 0, y: 5.25, w: 10, h: 0.375, fill: { color: TEAL }, line: { color: TEAL } }); s.addText("Thank You • Any Questions?", { x: 0, y: 5.25, w: 10, h: 0.375, fontSize: 14, bold: true, color: WHITE, fontFace: "Calibri", align: "center", valign: "middle" }); } // ─── Write file ──────────────────────────────────────────────────────────────── pres.writeFile({ fileName: "/home/daytona/workspace/tia-ppt/TIA_Presentation.pptx" }) .then(() => console.log("Done: TIA_Presentation.pptx")) .catch(e => { console.error(e); process.exit(1); }); EOF node /home/daytona/workspace/tia-ppt/create_tia.js
TIA Presentation
Presentation · PPTX