I will give you notes from Book Tintinally, you convert them into a presentable for a class for the 3rd year students.
The topic name is Myxoedema. I need an explanation for better understanding, causes, signs and symptoms of myxoedema, along with its clinical features and management. is it ok with you?
mkdir -p /home/daytona/workspace/myxoedema-ppt && ls /home/daytona/workspace/myxoedema-ppt/
~/myxoedema-ppt/myxoedema.js
const pptxgen = require("pptxgenjs");
const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Myxoedema";
pres.author = "Emergency Medicine – 3rd Year";
// ─── COLOUR PALETTE ────────────────────────────────────────────────────────
const DARK = "0D1B2A"; // deep navy (dominant, ~65%)
const MID = "1B4965"; // steel blue (supporting)
const ACCENT = "5FA8D3"; // sky blue (accent)
const LIGHT = "BEE9E8"; // pale mint (light accent / dividers)
const WHITE = "FFFFFF";
const OFFWHITE = "F0F4F8";
const RED_ACC = "E63946"; // danger / warning accent
const YELLOW = "FFD166"; // highlight
// ─── FONT ───────────────────────────────────────────────────────────────────
const TITLE_FONT = "Calibri";
const BODY_FONT = "Calibri";
// ─── HELPER: Section-header slide ───────────────────────────────────────────
function sectionSlide(title, subtitle) {
const sl = pres.addSlide();
sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: "100%", fill: { color: DARK } });
sl.addShape(pres.ShapeType.rect, { x: 0, y: 4.8, w: "100%", h: 0.08, fill: { color: ACCENT } });
sl.addText(title, {
x: 0.6, y: 1.8, w: 8.8, h: 1.4,
fontFace: TITLE_FONT, fontSize: 44, bold: true, color: WHITE,
align: "center", valign: "middle"
});
if (subtitle) {
sl.addText(subtitle, {
x: 0.6, y: 3.4, w: 8.8, h: 0.7,
fontFace: BODY_FONT, fontSize: 20, color: LIGHT,
align: "center"
});
}
return sl;
}
// ─── HELPER: Bullet body slide ───────────────────────────────────────────────
function bulletSlide(heading, items, opts = {}) {
const sl = pres.addSlide();
const bgColor = opts.bg || OFFWHITE;
sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: "100%", fill: { color: bgColor } });
// Top accent bar
sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: 0.12, fill: { color: DARK } });
// Left accent stripe
sl.addShape(pres.ShapeType.rect, { x: 0, y: 0.12, w: 0.1, h: 5.505, fill: { color: ACCENT } });
// Heading box
sl.addShape(pres.ShapeType.rect, { x: 0, y: 0.12, w: "100%", h: 0.82, fill: { color: MID } });
sl.addText(heading, {
x: 0.18, y: 0.12, w: 9.64, h: 0.82,
fontFace: TITLE_FONT, fontSize: 26, bold: true, color: WHITE,
valign: "middle", margin: 6
});
// Bullet content
const bulletItems = items.map((it, idx) => ({
text: it.text || it,
options: {
bullet: it.bullet !== false ? { type: "bullet", characterCode: "25B8" } : false,
bold: it.bold || false,
color: it.color || DARK,
fontSize: it.size || 17,
fontFace: BODY_FONT,
breakLine: idx < items.length - 1,
indentLevel: it.indent || 0,
}
}));
sl.addText(bulletItems, {
x: 0.28, y: 1.05, w: 9.5, h: 4.4,
valign: "top", margin: 4
});
return sl;
}
// ─── HELPER: Two-column slide ────────────────────────────────────────────────
function twoColSlide(heading, leftTitle, leftItems, rightTitle, rightItems, opts = {}) {
const sl = pres.addSlide();
sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: "100%", fill: { color: OFFWHITE } });
sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: 0.12, fill: { color: DARK } });
sl.addShape(pres.ShapeType.rect, { x: 0, y: 0.12, w: "100%", h: 0.82, fill: { color: MID } });
sl.addText(heading, {
x: 0.18, y: 0.12, w: 9.64, h: 0.82,
fontFace: TITLE_FONT, fontSize: 26, bold: true, color: WHITE,
valign: "middle", margin: 6
});
// Left col
sl.addShape(pres.ShapeType.rect, { x: 0.18, y: 1.1, w: 4.5, h: 0.42, fill: { color: ACCENT }, rectRadius: 0.05 });
sl.addText(leftTitle, { x: 0.18, y: 1.1, w: 4.5, h: 0.42, fontFace: TITLE_FONT, fontSize: 16, bold: true, color: DARK, align: "center", valign: "middle" });
const lItems = leftItems.map((it, idx) => ({
text: it.text || it,
options: { bullet: { type: "bullet", characterCode: "25B8" }, color: DARK, fontSize: 15.5, fontFace: BODY_FONT, breakLine: idx < leftItems.length - 1 }
}));
sl.addText(lItems, { x: 0.22, y: 1.62, w: 4.46, h: 3.8, valign: "top", margin: 3 });
// Right col
sl.addShape(pres.ShapeType.rect, { x: 5.12, y: 1.1, w: 4.5, h: 0.42, fill: { color: RED_ACC }, rectRadius: 0.05 });
sl.addText(rightTitle, { x: 5.12, y: 1.1, w: 4.5, h: 0.42, fontFace: TITLE_FONT, fontSize: 16, bold: true, color: WHITE, align: "center", valign: "middle" });
const rItems = rightItems.map((it, idx) => ({
text: it.text || it,
options: { bullet: { type: "bullet", characterCode: "25B8" }, color: DARK, fontSize: 15.5, fontFace: BODY_FONT, breakLine: idx < rightItems.length - 1 }
}));
sl.addText(rItems, { x: 5.16, y: 1.62, w: 4.46, h: 3.8, valign: "top", margin: 3 });
// Divider
sl.addShape(pres.ShapeType.line, { x: 4.92, y: 1.1, w: 0, h: 4.3, line: { color: LIGHT, width: 1.5 } });
return sl;
}
// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 1 — TITLE
// ═══════════════════════════════════════════════════════════════════════════
{
const sl = pres.addSlide();
// Full dark background
sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: "100%", fill: { color: DARK } });
// Large diagonal accent band
sl.addShape(pres.ShapeType.rect, { x: 6.5, y: 0, w: 3.5, h: "100%", fill: { color: MID } });
// Bright accent stripe
sl.addShape(pres.ShapeType.rect, { x: 6.4, y: 0, w: 0.15, h: "100%", fill: { color: ACCENT } });
// Tag box
sl.addShape(pres.ShapeType.rect, { x: 0.5, y: 0.4, w: 2.6, h: 0.38, fill: { color: ACCENT }, rectRadius: 0.1 });
sl.addText("EMERGENCY MEDICINE", { x: 0.5, y: 0.4, w: 2.6, h: 0.38, fontFace: BODY_FONT, fontSize: 11, bold: true, color: DARK, align: "center", valign: "middle" });
// Main title
sl.addText("MYXOEDEMA", {
x: 0.5, y: 1.1, w: 5.7, h: 1.3,
fontFace: TITLE_FONT, fontSize: 58, bold: true, color: WHITE, charSpacing: 4
});
// Subtitle line
sl.addShape(pres.ShapeType.rect, { x: 0.5, y: 2.55, w: 3.2, h: 0.07, fill: { color: YELLOW } });
sl.addText("Hypothyroid Emergency", {
x: 0.5, y: 2.72, w: 5.8, h: 0.5,
fontFace: TITLE_FONT, fontSize: 22, color: LIGHT
});
// Key stats
sl.addText([
{ text: "Mortality up to ", options: { color: OFFWHITE, fontSize: 14, fontFace: BODY_FONT } },
{ text: "30%", options: { color: YELLOW, fontSize: 16, bold: true, fontFace: BODY_FONT } },
{ text: " with treatment | ", options: { color: OFFWHITE, fontSize: 14, fontFace: BODY_FONT } },
{ text: "~100%", options: { color: RED_ACC, fontSize: 16, bold: true, fontFace: BODY_FONT } },
{ text: " without", options: { color: OFFWHITE, fontSize: 14, fontFace: BODY_FONT } },
], { x: 0.5, y: 3.38, w: 5.8, h: 0.5 });
// Source note
sl.addText("Source: Rosen's Emergency Medicine, 9th Ed. (Tintinalli)", {
x: 0.5, y: 4.9, w: 5.8, h: 0.4,
fontFace: BODY_FONT, fontSize: 11, color: ACCENT, italic: true
});
// Right-panel decorative text
sl.addText("3RD YEAR\nMED STUDENTS", {
x: 6.55, y: 2.2, w: 3.1, h: 1.1,
fontFace: TITLE_FONT, fontSize: 16, bold: true, color: WHITE, align: "center", valign: "middle"
});
}
// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 2 — SECTION: WHAT IS MYXOEDEMA?
// ═══════════════════════════════════════════════════════════════════════════
sectionSlide("01 WHAT IS MYXOEDEMA?", "Definition & Pathophysiology");
// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 3 — DEFINITION
// ═══════════════════════════════════════════════════════════════════════════
bulletSlide("Definition", [
{ text: "Hypothyroidism is failure of the thyroid gland to produce or secrete sufficient thyroid hormone to meet peripheral tissue needs.", bold: false },
{ text: "", bullet: false, size: 6 },
{ text: "Myxoedema = severe, decompensated hypothyroidism that progresses to a life-threatening state.", bold: true, color: MID, size: 18 },
{ text: "", bullet: false, size: 6 },
{ text: "Myxoedema COMA: altered mental status + hypothermia + precipitating event — a medical emergency.", bold: true, color: RED_ACC, size: 18 },
{ text: "", bullet: false, size: 6 },
{ text: "The name 'myxoedema' derives from the characteristic non-pitting, mucin-rich oedema deposited in skin and tissues.", bold: false },
{ text: "It is the MOST COMMON functional disorder of the thyroid gland.", bold: false },
]);
// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 4 — PATHOPHYSIOLOGY
// ═══════════════════════════════════════════════════════════════════════════
bulletSlide("Pathophysiology", [
{ text: "PRIMARY hypothyroidism (99% of cases): intrinsic gland failure", bold: true, color: MID, size: 18 },
{ text: "Autoimmune destruction, surgery, radiotherapy, infiltrative disease, drugs", indent: 1 },
{ text: "", bullet: false, size: 5 },
{ text: "CENTRAL (secondary) hypothyroidism (<1%): lack of TSH/TRH stimulation", bold: true, color: MID, size: 18 },
{ text: "Pituitary / hypothalamic disease", indent: 1 },
{ text: "", bullet: false, size: 5 },
{ text: "Thyroid hormone (T3/T4) deficiency leads to:", bold: true },
{ text: "Slowed metabolic rate in ALL body systems", indent: 1 },
{ text: "Accumulation of glycosaminoglycans in tissues → myxoedematous changes", indent: 1 },
{ text: "Impaired cardiovascular, respiratory, neurological, and thermoregulatory function", indent: 1 },
]);
// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 5 — SECTION: CAUSES
// ═══════════════════════════════════════════════════════════════════════════
sectionSlide("02 CAUSES", "Aetiology of Hypothyroidism & Precipitants of Myxoedema Coma");
// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 6 — CAUSES OF HYPOTHYROIDISM
// ═══════════════════════════════════════════════════════════════════════════
{
const sl = pres.addSlide();
sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: "100%", fill: { color: OFFWHITE } });
sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: 0.12, fill: { color: DARK } });
sl.addShape(pres.ShapeType.rect, { x: 0, y: 0.12, w: "100%", h: 0.82, fill: { color: MID } });
sl.addText("Causes of Hypothyroidism", {
x: 0.18, y: 0.12, w: 9.64, h: 0.82,
fontFace: TITLE_FONT, fontSize: 26, bold: true, color: WHITE, valign: "middle", margin: 6
});
const causes = [
{ cat: "Autoimmune", detail: "Hashimoto's thyroiditis (most common cause)", color: MID },
{ cat: "Iatrogenic", detail: "Thyroidectomy, radioactive iodine therapy", color: MID },
{ cat: "Medications", detail: "Amiodarone, lithium, antithyroid drugs, iodides", color: MID },
{ cat: "Congenital", detail: "Thyroid agenesis / dysgenesis, enzyme defects", color: MID },
{ cat: "Infiltrative", detail: "Amyloidosis, sarcoidosis, haemochromatosis", color: MID },
{ cat: "Iodine deficiency", detail: "Worldwide leading cause of hypothyroidism", color: MID },
{ cat: "Central", detail: "Pituitary / hypothalamic disease (secondary)", color: MID },
{ cat: "Transient", detail: "Post-partum thyroiditis, silent thyroiditis", color: MID },
];
const cols = 2;
const colW = 4.6;
const rowH = 0.58;
const startX = [0.18, 5.12];
const startY = 1.12;
causes.forEach((c, i) => {
const col = i % cols;
const row = Math.floor(i / cols);
const x = startX[col];
const y = startY + row * rowH;
sl.addShape(pres.ShapeType.rect, { x: x, y: y, w: colW, h: rowH - 0.06, fill: { color: col === 0 ? "E8F4FD" : "FFF5F5" }, rectRadius: 0.06 });
sl.addShape(pres.ShapeType.rect, { x: x, y: y, w: 0.12, h: rowH - 0.06, fill: { color: col === 0 ? ACCENT : RED_ACC }, rectRadius: 0.06 });
sl.addText([
{ text: c.cat + ": ", options: { bold: true, color: col === 0 ? MID : RED_ACC, fontSize: 14.5, fontFace: TITLE_FONT } },
{ text: c.detail, options: { color: DARK, fontSize: 13.5, fontFace: BODY_FONT } }
], { x: x + 0.18, y: y + 0.04, w: colW - 0.24, h: rowH - 0.12, valign: "middle", margin: 3 });
});
}
// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 7 — PRECIPITATING FACTORS OF MYXOEDEMA COMA
// ═══════════════════════════════════════════════════════════════════════════
twoColSlide(
"Precipitating / Aggravating Factors of Myxoedema Coma",
"Common Triggers",
[
"Infection / sepsis (esp. pneumonia)",
"Exposure to cold",
"Myocardial infarction",
"Gastrointestinal bleeding",
"Cerebrovascular accident",
"Trauma / burns",
"Hypoxia / hypercapnia",
],
"Metabolic & Drug Triggers",
[
"Sedatives, narcotics, anaesthesia, neuroleptics",
"Amiodarone, lithium, iodides (↓ T4/T3 release)",
"Phenytoin, rifampin (↑ T4/T3 elimination)",
"Hyponatraemia, hypoglycaemia",
"Diabetic ketoacidosis",
"Congestive heart failure",
"Non-compliance with thyroid hormone replacement",
]
);
// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 8 — SECTION: SIGNS & SYMPTOMS
// ═══════════════════════════════════════════════════════════════════════════
sectionSlide("03 SIGNS & SYMPTOMS", "The Clinical Spectrum of Hypothyroidism");
// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 9 — VITAL SIGNS & HYPOMETABOLIC FEATURES
// ═══════════════════════════════════════════════════════════════════════════
{
const sl = pres.addSlide();
sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: "100%", fill: { color: OFFWHITE } });
sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: 0.12, fill: { color: DARK } });
sl.addShape(pres.ShapeType.rect, { x: 0, y: 0.12, w: "100%", h: 0.82, fill: { color: MID } });
sl.addText("Signs & Symptoms — Overview", {
x: 0.18, y: 0.12, w: 9.64, h: 0.82, fontFace: TITLE_FONT, fontSize: 26, bold: true, color: WHITE, valign: "middle", margin: 6
});
const boxes = [
{ title: "Vital Signs", icon: "❤", items: ["BP: normal or low systolic, normal/↑ diastolic", "Pulse: slow → sinus bradycardia", "RR: normal or slow/shallow", "Temp: normal but prone to hypothermia"], color: RED_ACC, textColor: WHITE },
{ title: "Hypometabolic", icon: "🌡", items: ["Cold intolerance", "Fatigue", "Weight gain (despite ↓ appetite)", "Constipation", "Decreased exercise capacity"], color: MID, textColor: WHITE },
{ title: "Cutaneous", icon: "🩺", items: ["Dry, coarse, rough skin", "Coarse/brittle hair, alopecia", "Lateral eyebrow thinning", "Periorbital oedema (puffy eyelids)", "Yellow tinge (carotenaemia)"], color: ACCENT, textColor: DARK },
{ title: "Gastrointestinal", icon: "⚕", items: ["Constipation", "Ascites", "Abnormal LFTs", "Ileus (in severe cases)"], color: "4A7C59", textColor: WHITE },
];
const bx = [0.18, 5.12, 0.18, 5.12];
const by = [1.1, 1.1, 3.2, 3.2];
const bw = 4.5;
const bh = 1.9;
boxes.forEach((b, i) => {
sl.addShape(pres.ShapeType.rect, { x: bx[i], y: by[i], w: bw, h: bh, fill: { color: b.color }, rectRadius: 0.1 });
sl.addText(b.title, {
x: bx[i] + 0.12, y: by[i] + 0.08, w: bw - 0.24, h: 0.35,
fontFace: TITLE_FONT, fontSize: 16, bold: true, color: b.textColor
});
const bItems = b.items.map((it, idx) => ({
text: it,
options: { bullet: { type: "bullet", characterCode: "25B8" }, color: b.textColor, fontSize: 13, fontFace: BODY_FONT, breakLine: idx < b.items.length - 1 }
}));
sl.addText(bItems, { x: bx[i] + 0.14, y: by[i] + 0.48, w: bw - 0.22, h: bh - 0.58, valign: "top", margin: 2 });
});
}
// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 10 — NEUROLOGICAL, MUSCULAR, CARDIAC SYMPTOMS
// ═══════════════════════════════════════════════════════════════════════════
twoColSlide(
"Signs & Symptoms — Neurological, Muscular & Cardiac",
"Neurological",
[
"Slow mentation and speech",
"Impaired concentration / memory",
"Lethargy, agitation, psychosis",
"Seizures",
"Ataxia, dysmetria",
"Peripheral neuropathy, paraesthesiae",
"Carpal tunnel syndrome",
"Sensorineural hearing loss",
],
"Muscular & Cardiac",
[
"Proximal myopathy",
"Pseudohypertrophy",
"Delayed tendon reflex relaxation (hung-up reflex)",
"Sinus bradycardia",
"Long QT + ventricular arrhythmias",
"Diastolic heart failure (delayed ventricular relaxation)",
"Pericardial effusion",
"Elevated CK, LDH, AST",
]
);
// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 11 — REPRODUCTIVE, RHEUMATIC, HEENT
// ═══════════════════════════════════════════════════════════════════════════
twoColSlide(
"Signs & Symptoms — Reproductive, Rheumatic & HEENT",
"Reproductive & Rheumatic",
[
"Menorrhagia → amenorrhoea",
"Infertility, miscarriage",
"Decreased libido, erectile dysfunction",
"Hyperprolactinaemia, galactorrhoea",
"Polyarthralgias",
"Joint effusions",
"Acute gout / pseudogout",
],
"HEENT & Respiratory",
[
"Macroglossia",
"Hoarseness, deep husky voice",
"Periorbital swelling",
"Hearing loss",
"Goitre",
"Broad nose, swollen lips",
"Pulmonary hypoventilation / hypercapnia",
"Pleural effusion",
]
);
// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 12 — SECTION: CLINICAL FEATURES
// ═══════════════════════════════════════════════════════════════════════════
sectionSlide("04 CLINICAL FEATURES", "Recognition of Myxoedema Coma");
// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 13 — RECOGNITION OF MYXOEDEMA COMA (Box 117.7)
// ═══════════════════════════════════════════════════════════════════════════
{
const sl = pres.addSlide();
sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: "100%", fill: { color: DARK } });
sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: 0.12, fill: { color: RED_ACC } });
sl.addShape(pres.ShapeType.rect, { x: 0, y: 0.12, w: "100%", h: 0.82, fill: { color: "1A0A0A" } });
sl.addText("⚠ Recognition of Myxoedema Coma (BOX 117.7)", {
x: 0.18, y: 0.12, w: 9.64, h: 0.82, fontFace: TITLE_FONT, fontSize: 23, bold: true, color: RED_ACC, valign: "middle", margin: 6
});
const features = [
{ label: "Patient Profile", detail: "Older woman presenting in winter months", icon: "👤" },
{ label: "Known Hypothyroidism", detail: "History of thyroid disease; thyroidectomy scar", icon: "📋" },
{ label: "Hypothermia", detail: "Temp usually <36°C; <32°C is a poor prognostic sign; as low as 24°C reported", icon: "🌡" },
{ label: "Altered Mental Status", detail: "Lethargy → confusion → stupor → coma; agitation, psychosis, seizures ('myxoedema madness')", icon: "🧠" },
{ label: "Hypotension", detail: "Often refractory to fluids & pressors unless thyroid hormone given", icon: "💉" },
{ label: "Respirations", detail: "Slow, shallow; hypercapnia + hypoxia; high risk of respiratory failure", icon: "💨" },
{ label: "Bradycardia", detail: "Sinus bradycardia; long QT; ventricular arrhythmias", icon: "❤" },
{ label: "Myxoedema Facies", detail: "Puffy eyelids, macroglossia, periorbital oedema, non-pitting oedema", icon: "😶" },
];
const rowH = 0.56;
const startY = 1.06;
features.forEach((f, i) => {
const col = i % 2;
const row = Math.floor(i / 2);
const x = col === 0 ? 0.18 : 5.12;
const y = startY + row * rowH;
sl.addShape(pres.ShapeType.rect, { x: x, y: y, w: 4.7, h: rowH - 0.06, fill: { color: "1E1E2E" }, rectRadius: 0.07 });
sl.addShape(pres.ShapeType.rect, { x: x, y: y, w: 0.12, h: rowH - 0.06, fill: { color: RED_ACC }, rectRadius: 0.07 });
sl.addText([
{ text: f.label + ": ", options: { bold: true, color: RED_ACC, fontSize: 13, fontFace: TITLE_FONT } },
{ text: f.detail, options: { color: LIGHT, fontSize: 12.5, fontFace: BODY_FONT } }
], { x: x + 0.16, y: y + 0.04, w: 4.5, h: rowH - 0.1, valign: "middle", margin: 2 });
});
}
// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 14 — DIAGNOSTIC TESTS
// ═══════════════════════════════════════════════════════════════════════════
bulletSlide("Diagnostic Investigations", [
{ text: "THYROID FUNCTION TESTS — cornerstone of diagnosis", bold: true, color: MID, size: 18 },
{ text: "TSH: elevated in primary hypothyroidism (most sensitive)", indent: 1 },
{ text: "Free T4 (fT4): low — confirms hypothyroidism", indent: 1 },
{ text: "T3: low (less reliable in isolation)", indent: 1 },
{ text: "", bullet: false, size: 5 },
{ text: "OTHER LABS", bold: true, color: MID, size: 18 },
{ text: "↑ CK, LDH, AST (muscle involvement)", indent: 1 },
{ text: "Hyponatraemia (associated with ↑ mortality)", indent: 1 },
{ text: "Hypoglycaemia", indent: 1 },
{ text: "↑ Cholesterol, triglycerides", indent: 1 },
{ text: "", bullet: false, size: 5 },
{ text: "ECG: sinus bradycardia, low-voltage complexes, long QT, T-wave changes", bold: false },
{ text: "CXR / Echo: cardiomegaly, pericardial/pleural effusion", bold: false },
{ text: "Cortisol: rule out concomitant adrenal insufficiency (often coexists)", bold: true, color: RED_ACC },
]);
// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 15 — SECTION: MANAGEMENT
// ═══════════════════════════════════════════════════════════════════════════
sectionSlide("05 MANAGEMENT", "Emergency Treatment of Myxoedema Coma");
// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 16 — IMMEDIATE RESUSCITATION
// ═══════════════════════════════════════════════════════════════════════════
bulletSlide("Management — Immediate Resuscitation", [
{ text: "AIRWAY & BREATHING", bold: true, color: RED_ACC, size: 18 },
{ text: "Secure airway if GCS low / respiratory failure anticipated", indent: 1 },
{ text: "Assisted ventilation for hypoventilation / hypercapnia", indent: 1 },
{ text: "", bullet: false, size: 5 },
{ text: "CIRCULATION", bold: true, color: RED_ACC, size: 18 },
{ text: "Hypotension: IV crystalloid (0.9 NS or D5/0.9 NS if hypoglycaemic)", indent: 1 },
{ text: "Vasopressors if refractory — but thyroid hormone replacement itself may restore BP", indent: 1 },
{ text: "", bullet: false, size: 5 },
{ text: "TEMPERATURE", bold: true, color: RED_ACC, size: 18 },
{ text: "Passive rewarming with blankets — active rewarming rarely needed", indent: 1 },
{ text: "If heating blankets used: pre-load with IV fluids + monitor BP closely", indent: 1 },
{ text: "", bullet: false, size: 5 },
{ text: "GLUCOSE: check and correct hypoglycaemia promptly", bold: false },
{ text: "SEDATIVES / NARCOTICS: reduce dosing — metabolism slowed in hypothyroidism", bold: false, color: YELLOW },
]);
// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 17 — THYROID HORMONE REPLACEMENT (Box 117.8)
// ═══════════════════════════════════════════════════════════════════════════
{
const sl = pres.addSlide();
sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: "100%", fill: { color: DARK } });
sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: 0.12, fill: { color: ACCENT } });
sl.addShape(pres.ShapeType.rect, { x: 0, y: 0.12, w: "100%", h: 0.82, fill: { color: MID } });
sl.addText("Thyroid Hormone Replacement — Myxoedema Coma (BOX 117.8)", {
x: 0.18, y: 0.12, w: 9.64, h: 0.82, fontFace: TITLE_FONT, fontSize: 22, bold: true, color: WHITE, valign: "middle", margin: 6
});
const drugs = [
{
name: "Levothyroxine (T4) IV", color: ACCENT,
lines: [
"Loading dose: 200–400 μg IV",
"Lower dose if: small/older patient, CAD or arrhythmia history",
"Maintenance: 1.6 μg/kg/day PO (75% of dose if IV)"
]
},
{
name: "Liothyronine (T3) IV", color: YELLOW,
lines: [
"Add ONLY in very ill patients",
"Use with EXTREME CAUTION",
"Elevated T3 serum levels associated with ↑ mortality"
]
},
{
name: "Hydrocortisone 100 mg IV q8h", color: RED_ACC,
lines: [
"Stress-dose steroid — ALWAYS give alongside thyroid hormone",
"Covers possible concomitant adrenal insufficiency",
"Drug of choice: has both mineralocorticoid + glucocorticoid effects"
]
},
{
name: "Hyponatraemia Management", color: "4A7C59",
lines: [
"Avoid hypotonic fluids — use 0.9 NS only",
"If Na⁺ <120 mEq/L or seizures: 3% saline 50–100 mL bolus",
"Correct slowly thereafter to avoid osmotic demyelination"
]
},
];
const dw = 4.6;
const dh = 1.92;
const dx = [0.18, 5.12, 0.18, 5.12];
const dy = [1.1, 1.1, 3.2, 3.2];
drugs.forEach((d, i) => {
sl.addShape(pres.ShapeType.rect, { x: dx[i], y: dy[i], w: dw, h: dh, fill: { color: "1E1E2E" }, rectRadius: 0.1 });
sl.addShape(pres.ShapeType.rect, { x: dx[i], y: dy[i], w: dw, h: 0.4, fill: { color: d.color }, rectRadius: 0.1 });
sl.addText(d.name, {
x: dx[i] + 0.1, y: dy[i] + 0.02, w: dw - 0.2, h: 0.38,
fontFace: TITLE_FONT, fontSize: 14.5, bold: true, color: i === 1 ? DARK : WHITE,
align: "center", valign: "middle"
});
const lItems = d.lines.map((l, idx) => ({
text: l,
options: { bullet: { type: "bullet", characterCode: "25B8" }, color: OFFWHITE, fontSize: 13.5, fontFace: BODY_FONT, breakLine: idx < d.lines.length - 1 }
}));
sl.addText(lItems, { x: dx[i] + 0.14, y: dy[i] + 0.46, w: dw - 0.24, h: dh - 0.56, valign: "top", margin: 3 });
});
}
// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 18 — DISPOSITION & SPECIAL POPULATIONS
// ═══════════════════════════════════════════════════════════════════════════
bulletSlide("Disposition & Special Considerations", [
{ text: "DISPOSITION", bold: true, color: MID, size: 18 },
{ text: "Mild/moderate hypothyroidism → outpatient management", indent: 1 },
{ text: "Severe hypothyroidism or myxoedema coma → INPATIENT (ICU)", indent: 1 },
{ text: "Higher mortality with: requirement for steroids, mechanical ventilation, vasopressors", indent: 1, color: RED_ACC },
{ text: "", bullet: false, size: 6 },
{ text: "SPECIAL POPULATIONS", bold: true, color: MID, size: 18 },
{ text: "Pregnancy: hypothyroidism often subtle; T4 replacement → normal maternal/fetal outcome", indent: 1 },
{ text: "Children: impaired growth, development, and cognition; T4 replacement → rapid growth spurt", indent: 1 },
{ text: "Elderly: higher risk; atypical presentation; lower replacement doses required", indent: 1 },
{ text: "", bullet: false, size: 6 },
{ text: "KEY PRINCIPLE: Identify and treat the precipitating event (infection most common)", bold: true, color: RED_ACC, size: 18 },
{ text: "Do not delay thyroid hormone while awaiting lab confirmation", bold: true, color: RED_ACC },
]);
// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 19 — SUMMARY / TAKE-HOME
// ═══════════════════════════════════════════════════════════════════════════
{
const sl = pres.addSlide();
sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: "100%", fill: { color: DARK } });
sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: 0.12, fill: { color: YELLOW } });
sl.addShape(pres.ShapeType.rect, { x: 0, y: 0.12, w: "100%", h: 0.78, fill: { color: "1A1A2E" } });
sl.addText("⭐ Take-Home Points", {
x: 0.18, y: 0.12, w: 9.64, h: 0.78, fontFace: TITLE_FONT, fontSize: 26, bold: true, color: YELLOW, valign: "middle", margin: 6
});
const points = [
{ num: "1", text: "Myxoedema coma = severe hypothyroid emergency with altered mental status, hypothermia, and a precipitating event." },
{ num: "2", text: "Mortality approaches 100% untreated; up to 30% even with optimal therapy." },
{ num: "3", text: "Classic patient: older woman, winter presentation, known thyroid disease." },
{ num: "4", text: "T4 loading dose 200–400 μg IV is the cornerstone treatment — give immediately." },
{ num: "5", text: "ALWAYS add hydrocortisone 100 mg IV — concomitant adrenal insufficiency is common." },
{ num: "6", text: "Treat the precipitating event (sepsis most frequent trigger)." },
{ num: "7", text: "Reduce doses of sedatives/narcotics — prolonged effects due to slowed metabolism." },
];
points.forEach((p, i) => {
const y = 1.04 + i * 0.65;
sl.addShape(pres.ShapeType.rect, { x: 0.2, y: y, w: 0.45, h: 0.48, fill: { color: YELLOW }, rectRadius: 0.06 });
sl.addText(p.num, { x: 0.2, y: y, w: 0.45, h: 0.48, fontFace: TITLE_FONT, fontSize: 18, bold: true, color: DARK, align: "center", valign: "middle" });
sl.addShape(pres.ShapeType.rect, { x: 0.72, y: y, w: 9.0, h: 0.48, fill: { color: "1E1E2E" }, rectRadius: 0.06 });
sl.addText(p.text, { x: 0.8, y: y + 0.04, w: 8.85, h: 0.42, fontFace: BODY_FONT, fontSize: 15, color: WHITE, valign: "middle", margin: 4 });
});
sl.addText("Source: Rosen's Emergency Medicine, 9th Ed. | Tintinalli's Emergency Medicine", {
x: 0.3, y: 5.28, w: 9.4, h: 0.3,
fontFace: BODY_FONT, fontSize: 10.5, color: ACCENT, italic: true, align: "center"
});
}
// ─── WRITE FILE ──────────────────────────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/myxoedema-ppt/Myxoedema_3rdYear.pptx" })
.then(() => console.log("✅ Presentation saved: Myxoedema_3rdYear.pptx"))
.catch(err => { console.error("ERROR:", err); process.exit(1); });
cd /home/daytona/workspace/myxoedema-ppt && node myxoedema.js
~/myxoedema-ppt/myxoedema.js
Successfully replaced 1 instance(s) of the string in '/home/daytona/workspace/myxoedema-ppt/myxoedema.js'
cd /home/daytona/workspace/myxoedema-ppt && node myxoedema.js
Myxoedema 3rdYear
Presentation · PPTX
| # | Slide |
|---|---|
| 1 | Title Slide - Bold navy/blue design with mortality stats |
| 2 | Section header: What is Myxoedema? |
| 3 | Definition - Hypothyroidism → Myxoedema → Myxoedema Coma |
| 4 | Pathophysiology - Primary vs central; glycosaminoglycan accumulation |
| 5 | Section header: Causes |
| 6 | Causes of Hypothyroidism - 8 categories in card layout |
| 7 | Precipitating Factors - Two-column: triggers vs drug/metabolic causes |
| 8 | Section header: Signs & Symptoms |
| 9 | Vital Signs, Hypometabolic, Cutaneous, GI - Coloured box grid |
| 10 | Neurological, Muscular & Cardiac - Two-column |
| 11 | Reproductive, Rheumatic & HEENT - Two-column |
| 12 | Section header: Clinical Features |
| 13 | Recognition of Myxoedema Coma (Box 117.7) - Dark emergency styling |
| 14 | Diagnostic Investigations - TFTs, ECG, cortisol |
| 15 | Section header: Management |
| 16 | Immediate Resuscitation - ABC approach |
| 17 | Thyroid Hormone Replacement (Box 117.8) - T4 dose, hydrocortisone, hyponatraemia |
| 18 | Disposition & Special Populations |
| 19 | Take-Home Points - 7 key pearls |
i cant downlod it dont give me as a ppt
| Type | Mechanism | Frequency |
|---|---|---|
| Primary hypothyroidism | Intrinsic gland failure | ~99% of cases |
| Central (secondary) | Lack of TSH/TRH stimulation from pituitary/hypothalamus | <1% |
| Cause | Details |
|---|---|
| Autoimmune | Hashimoto's thyroiditis — most common cause |
| Iatrogenic | Thyroidectomy, radioactive iodine therapy |
| Medications | Amiodarone, lithium, antithyroid drugs, iodides |
| Congenital | Thyroid agenesis/dysgenesis, enzyme defects |
| Infiltrative | Amyloidosis, sarcoidosis, haemochromatosis |
| Iodine deficiency | Worldwide leading cause |
| Central | Pituitary or hypothalamic disease |
| Transient | Post-partum thyroiditis, silent thyroiditis |
| Parameter | Finding |
|---|---|
| Blood pressure | Systolic normal or low; diastolic normal or elevated |
| Pulse | Slow → sinus bradycardia |
| Respirations | Normal or slow and shallow |
| Temperature | Normal, but prone to hypothermia under stress |
Classic patient: older woman, presenting in winter
| Feature | Detail |
|---|---|
| Known hypothyroidism | History of thyroid disease; look for thyroidectomy scar |
| Hypothermia | Temp usually <36°C; <32°C is a poor prognostic sign; as low as 24°C has been reported; may be near-normal if infection is present |
| Altered mental status | Lethargy → confusion → stupor → coma; agitation, psychosis, seizures ("myxoedema madness") |
| Hypotension | Often refractory to fluids and vasopressors unless thyroid hormone is given |
| Respirations | Slow, shallow; hypercapnia + hypoxia; high risk of respiratory failure |
| Bradycardia | Sinus bradycardia; long QT; ventricular arrhythmias |
| Myxoedema facies | Puffy eyelids, macroglossia, periorbital oedema, non-pitting oedema |
Mortality without treatment → ~100% Mortality with optimal treatment → up to 30% Higher mortality: patients requiring steroids, mechanical ventilation, or vasopressors
| Drug | Dose | Notes |
|---|---|---|
| Levothyroxine (T4) IV | Loading: 200–400 μg IV | Use lower dose in small/elderly patients, or those with CAD/arrhythmia history |
| Maintenance: 1.6 μg/kg/day PO; give 75% of dose if IV | Start after loading | |
| Liothyronine (T3) IV | Consider in very ill patients — with extreme caution | Elevated serum T3 associated with increased mortality |
Hydrocortisone 100 mg IV every 8 hours
| Severity | Disposition |
|---|---|
| Mild / moderate hypothyroidism | Outpatient management |
| Severe hypothyroidism | Inpatient |
| Myxoedema coma | ICU admission |