Classification of heat injuries Classification of burns PM Appearances of Burn Difference B/w Heat hematoma & Extradural hematoma Difference B/w Antemortem & Postmortem Burn Difference B/w Dry heat, Moist heat (Scald) & Chemical Burn Explosion injuries Cold injuries Electrical Injuries Lightening Injuries

Classification of heat injuries Classification of burns PM Appearances of Burn Difference B/w Heat hematoma & Extradural hematoma Difference B/w Antemortem & Postmortem Burn Difference B/w Dry heat, Moist heat (Scald) & Chemical Burn Explosion injuries Cold injuries Electrical Injuries Lightening Injuries. I want a .ppt format file on these topics . For each topic make 3 to 4 slides. Take reference from reddy Book of fmt and gautam vishwas book of fmt. Use images and illustration and tables charts etc

Reading File
Reading File
Reading File
Finding Sources
Finding Sources
Reading File
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Searching the Web

burns classification degrees medical illustration image forensic medicine

Searching the Web

electrical injury lightning strike forensic pathology medical diagram

Running Command

mkdir -p /home/daytona/workspace/forensic-medicine-ppt && ls /home/daytona/workspace/forensic-medicine-ppt/

Writing File

~/forensic-medicine-ppt/create_ppt.js

const pptxgen = require("pptxgenjs");
const { execSync } = require("child_process");

// Fetch images as base64
function fetchImages(urls) {
  try {
    const result = execSync(
      `node /home/daytona/skills/shared/scripts/fetch_images.js ${urls.map(u => `"${u}"`).join(" ")}`,
      { timeout: 30000 }
    ).toString();
    return JSON.parse(result);
  } catch (e) {
    console.log("Image fetch failed:", e.message);
    return urls.map(u => ({ url: u, base64: null, error: e.message }));
  }
}

// Fetch key images
const imageUrls = [
  "https://www.shutterstock.com/image-vector/skin-burn-classification-infographic-medical-600nw-2400758957.jpg",
  "https://media.springernature.com/m685/springer-static/image/art%3A10.1038%2Fs41572-020-0145-5/MediaObjects/41572_2020_145_Fig1_HTML.png",
  "https://www.researchgate.net/publication/325999173/figure/fig2/AS:641836062367745@1530037050923/Mechanisms-of-lightning-injury-a-Direct-b-Contact-c-Sidesplash-flash-d1-As.png",
];

console.log("Fetching images...");
const imgs = fetchImages(imageUrls);
console.log("Images fetched:", imgs.map(i => ({ url: i.url.substring(0, 60), ok: !i.error })));

const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.author = "Forensic Medicine";
pres.title = "Thermal & Environmental Injuries - Forensic Medicine";

// ===================== COLOR PALETTE =====================
const C = {
  darkBg:    "1A1A2E",   // Deep navy
  midBg:     "16213E",   // Mid navy
  accent:    "E94560",   // Red accent
  accent2:   "0F3460",   // Deep blue
  gold:      "F5A623",   // Gold/amber
  teal:      "00B4D8",   // Teal highlight
  light:     "E0E0E0",   // Light grey text
  white:     "FFFFFF",
  green:     "2ECC71",   // Green
  orange:    "E67E22",   // Orange
  purple:    "9B59B6",   // Purple
  headerBar: "E94560",   // Section header bar
  tablHead:  "0F3460",   // Table header
  tableAlt:  "1A2A4A",   // Alternate row
  tableBody: "0D1B2A",   // Table body
};

// ===================== HELPER FUNCTIONS =====================
function addSectionTitle(slide, title, subtitle) {
  // Full dark background
  slide.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.darkBg } });
  // Diagonal accent
  slide.addShape(pres.shapes.RECTANGLE, { x: 0, y: 3.5, w: 10, h: 0.08, fill: { color: C.accent } });
  // Top accent line
  slide.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.06, fill: { color: C.gold } });
  // Left accent bar
  slide.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 0.18, h: 5.625, fill: { color: C.accent } });
  // Main title
  slide.addText(title, {
    x: 0.4, y: 1.5, w: 9.2, h: 1.2,
    fontSize: 40, bold: true, color: C.white, align: "center",
    fontFace: "Calibri"
  });
  if (subtitle) {
    slide.addText(subtitle, {
      x: 0.4, y: 2.8, w: 9.2, h: 0.6,
      fontSize: 20, color: C.gold, align: "center",
      fontFace: "Calibri", italic: true
    });
  }
  // Bottom reference
  slide.addText("Ref: Reddy's FMT | Gautam Vishwas FMT", {
    x: 0.4, y: 5.1, w: 9.2, h: 0.35,
    fontSize: 10, color: "888888", align: "center", fontFace: "Calibri"
  });
}

function slideHeader(slide, title, topicColor) {
  const bg = topicColor || C.midBg;
  slide.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.darkBg } });
  slide.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.75, fill: { color: bg } });
  slide.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0.75, w: 10, h: 0.04, fill: { color: C.gold } });
  slide.addText(title, {
    x: 0.3, y: 0.08, w: 9.4, h: 0.6,
    fontSize: 22, bold: true, color: C.white, align: "left",
    fontFace: "Calibri", margin: 0
  });
}

function addBullet(slide, items, x, y, w, h, opts = {}) {
  const textArr = items.map((item, i) => ({
    text: item.text || item,
    options: {
      bullet: item.bullet !== false,
      color: item.color || C.light,
      fontSize: item.size || opts.fontSize || 14,
      bold: item.bold || false,
      italic: item.italic || false,
      indentLevel: item.indent || 0,
      breakLine: i < items.length - 1
    }
  }));
  slide.addText(textArr, { x, y, w, h, fontFace: "Calibri", valign: "top" });
}

function addTable(slide, headers, rows, x, y, w, opts = {}) {
  const colW = opts.colW || Array(headers.length).fill(w / headers.length);
  const headerRow = headers.map(h => ({
    text: h,
    options: { bold: true, color: C.white, fill: { color: C.tablHead }, fontSize: opts.hFontSize || 12, align: "center" }
  }));
  const dataRows = rows.map((row, ri) =>
    row.map(cell => ({
      text: String(cell),
      options: {
        color: C.light,
        fill: { color: ri % 2 === 0 ? C.tableBody : C.tableAlt },
        fontSize: opts.fontSize || 11,
        align: "left"
      }
    }))
  );
  slide.addTable([headerRow, ...dataRows], {
    x, y, w,
    colW,
    border: { type: "solid", color: "2A3A5A", pt: 0.5 },
    rowH: opts.rowH || 0.32,
    fontFace: "Calibri"
  });
}

function addCardBox(slide, title, content, x, y, w, h, color) {
  slide.addShape(pres.shapes.ROUNDED_RECTANGLE, {
    x, y, w, h,
    fill: { color: color || C.accent2 },
    line: { color: C.gold, width: 1.5 },
    rectRadius: 0.1
  });
  if (title) {
    slide.addText(title, {
      x: x + 0.1, y: y + 0.05, w: w - 0.2, h: 0.3,
      fontSize: 12, bold: true, color: C.gold, fontFace: "Calibri", margin: 0
    });
  }
  if (content) {
    slide.addText(content, {
      x: x + 0.1, y: y + 0.38, w: w - 0.2, h: h - 0.45,
      fontSize: 10.5, color: C.light, fontFace: "Calibri", margin: 0, valign: "top"
    });
  }
}

// ========================= TITLE SLIDE =========================
let s = pres.addSlide();
s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.darkBg } });
s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.06, fill: { color: C.accent } });
s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 5.56, w: 10, h: 0.065, fill: { color: C.accent } });
s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 2.5, w: 10, h: 0.04, fill: { color: C.gold } });
s.addText("THERMAL & ENVIRONMENTAL", {
  x: 0.3, y: 0.6, w: 9.4, h: 0.9, fontSize: 36, bold: true,
  color: C.white, align: "center", fontFace: "Calibri", charSpacing: 3
});
s.addText("INJURIES IN FORENSIC MEDICINE", {
  x: 0.3, y: 1.5, w: 9.4, h: 0.9, fontSize: 36, bold: true,
  color: C.accent, align: "center", fontFace: "Calibri", charSpacing: 3
});
s.addText("Burns • Scalds • Electrical Injuries • Lightning • Cold Injuries • Explosions", {
  x: 0.3, y: 2.65, w: 9.4, h: 0.5, fontSize: 14, color: C.gold,
  align: "center", fontFace: "Calibri", italic: true
});
s.addText([
  { text: "Reference: ", options: { bold: true, color: C.gold } },
  { text: "Reddy's The Essentials of Forensic Medicine & Toxicology (34th Ed.)", options: { color: C.light } },
  { text: " | ", options: { color: C.accent } },
  { text: "Gautam Vishwas - Forensic Medicine & Toxicology", options: { color: C.light } }
], {
  x: 0.3, y: 3.3, w: 9.4, h: 0.5, fontSize: 11, align: "center", fontFace: "Calibri"
});
s.addText("Topics Covered: Heat Injuries • Burns Classification • PM Appearances • Heat vs Extradural Hematoma\nAntemortem vs Postmortem Burns • Dry/Moist/Chemical Burns • Explosion • Cold • Electrical • Lightning", {
  x: 0.3, y: 4.0, w: 9.4, h: 0.7, fontSize: 11, color: "888888",
  align: "center", fontFace: "Calibri"
});

// =================================================================
// TOPIC 1: CLASSIFICATION OF HEAT INJURIES
// =================================================================

// Slide 1.1 - Section Title
s = pres.addSlide();
addSectionTitle(s, "CLASSIFICATION OF HEAT INJURIES", "Topic 1 | Forensic Medicine");

// Slide 1.2 - Overview & Classification
s = pres.addSlide();
slideHeader(s, "Classification of Heat Injuries - Overview", "E94560");
// Two column layout
s.addShape(pres.shapes.RECTANGLE, { x: 0.2, y: 0.9, w: 4.5, h: 4.5, fill: { color: "0D1B2A" }, line: { color: C.teal, width: 1 } });
s.addShape(pres.shapes.RECTANGLE, { x: 5.0, y: 0.9, w: 4.7, h: 4.5, fill: { color: "0D1B2A" }, line: { color: C.gold, width: 1 } });
s.addText("LOCAL HEAT INJURIES", { x: 0.3, y: 0.92, w: 4.3, h: 0.3, fontSize: 13, bold: true, color: C.teal, fontFace: "Calibri", margin: 0 });
addBullet(s, [
  { text: "BURNS - Caused by dry heat (flame, radiation, hot solid)", bold: true, color: C.gold },
  { text: "SCALDS - Caused by moist heat (steam, hot liquids)", bold: false },
  { text: "CHEMICAL BURNS - Acids/alkalis", bold: false },
  { text: "ELECTRICAL BURNS", bold: false },
  { text: "RADIATION BURNS - UV, X-rays, nuclear", bold: false },
  { text: "FRICTION BURNS (Abrasions)", bold: false },
], 0.3, 1.25, 4.3, 3.5, { fontSize: 12 });
s.addText("GENERAL (SYSTEMIC) HEAT INJURIES", { x: 5.1, y: 0.92, w: 4.5, h: 0.3, fontSize: 13, bold: true, color: C.gold, fontFace: "Calibri", margin: 0 });
addBullet(s, [
  { text: "HEAT CRAMPS", bold: true, color: C.teal, indent: 0 },
  { text: "Loss of salt; painful muscle cramps; treated with saline", indent: 1, size: 11 },
  { text: "HEAT EXHAUSTION (Heat Prostration)", bold: true, color: C.teal, indent: 0 },
  { text: "Loss of water & salt; collapse; pale clammy skin; temp normal/slight rise", indent: 1, size: 11 },
  { text: "HEAT STROKE (Sun Stroke)", bold: true, color: C.accent, indent: 0 },
  { text: "Failure of thermoregulation; temp >40°C; HOT DRY SKIN; most dangerous", indent: 1, size: 11 },
  { text: "HEAT HYPERPYREXIA", bold: true, color: C.accent, indent: 0 },
  { text: "Extremely high temp; brain damage; can be fatal", indent: 1, size: 11 },
], 5.1, 1.25, 4.5, 3.8, { fontSize: 12 });

// Slide 1.3 - Heat Stroke & Systemic Details
s = pres.addSlide();
slideHeader(s, "Heat Stroke - Forensic Significance (Reddy's FMT)", "E94560");
addTable(s,
  ["Feature", "Heat Cramps", "Heat Exhaustion", "Heat Stroke"],
  [
    ["Mechanism", "Salt loss", "Water + salt loss", "Thermoregulation failure"],
    ["Skin", "Normal", "Pale, clammy, moist", "HOT, DRY, red"],
    ["Temp", "Normal", "Normal / slight ↑", "> 40°C (hyperpyrexia)"],
    ["Sweating", "++", "++", "ABSENT (anhydrosis)"],
    ["Consciousness", "Normal", "Faintness/collapse", "Coma / convulsions"],
    ["Urine", "Normal", "Oliguria", "Oliguria / anuria"],
    ["Treatment", "Saline/oral fluids", "Rest + fluids + salt", "Immediate cooling"],
    ["Mortality", "Nil", "Rare", "High (30-80%)"],
  ],
  0.2, 0.85, 9.6,
  { colW: [2.0, 2.5, 2.5, 2.6], fontSize: 10.5, rowH: 0.35 }
);
s.addText("Forensic Note: Heat stroke - PM shows congestion of organs, petechiae, cerebral edema. May simulate natural death.", {
  x: 0.2, y: 4.85, w: 9.6, h: 0.4, fontSize: 11, color: C.accent,
  fontFace: "Calibri", bold: true
});

// Slide 1.4 - Classification by Agent
s = pres.addSlide();
slideHeader(s, "Classification of Heat Injuries by Agent & Mechanism", "E94560");
addCardBox(s, "DRY HEAT", "Flame, hot metal, radiation\nCauses BURNS\nEpidermis destroyed; coagulation necrosis", 0.2, 0.85, 3.0, 1.6, "1A2A4A");
addCardBox(s, "MOIST HEAT", "Steam, boiling water, hot liquids\nCauses SCALDS\nBlisters more common; deeper penetration possible", 3.4, 0.85, 3.0, 1.6, "1A2A4A");
addCardBox(s, "CHEMICAL", "Acids, alkalis, phenol, phosphorus\nAcid - coagulation necrosis (leathery)\nAlkali - liquefaction necrosis (deeper)", 6.6, 0.85, 3.2, 1.6, "1A2A4A");
addCardBox(s, "ELECTRICAL", "High/low voltage current\nEntry & exit wounds; internal burns\nJoule burns; metallization possible", 0.2, 2.65, 3.0, 1.6, "1A2A4A");
addCardBox(s, "RADIATION", "UV (sunburn), X-ray, nuclear, laser\nErythema → vesication → ulceration\nDepends on dose and type", 3.4, 2.65, 3.0, 1.6, "1A2A4A");
addCardBox(s, "FRICTION", "Road rash, abrasions from friction\nHeat generated at surface\nSurface skin loss with foreign material", 6.6, 2.65, 3.2, 1.6, "1A2A4A");
s.addText("Ref: Reddy Chapter - Burns & Scalds; Gautam Vishwas - Thermal Injuries", {
  x: 0.2, y: 5.2, w: 9.6, h: 0.25, fontSize: 9, color: "888888", fontFace: "Calibri", align: "right"
});

// =================================================================
// TOPIC 2: CLASSIFICATION OF BURNS
// =================================================================
s = pres.addSlide();
addSectionTitle(s, "CLASSIFICATION OF BURNS", "Topic 2 | Forensic Medicine");

// Slide 2.2 - Degrees Classification
s = pres.addSlide();
slideHeader(s, "Classification of Burns by Depth (Degree)", "0F3460");
addTable(s,
  ["Degree", "Depth", "Appearance", "Pain", "Healing"],
  [
    ["1st Degree\n(Superficial)", "Epidermis only", "Erythema, red, dry; NO blisters", "Painful (nerve ends intact)", "7-10 days; NO scar"],
    ["2nd Degree\n(Partial thickness)", "Epidermis + superficial dermis", "BLISTERS; red, moist, weeping surface", "Very painful", "2-3 weeks; minimal scar"],
    ["3rd Degree\n(Full thickness)", "Full dermis destroyed", "Pale white/charred; DRY; leathery", "PAINLESS (nerve ends destroyed)", "Needs grafting; scar"],
    ["4th Degree", "Subcutaneous fat/muscle/bone", "Charring; black; stiff; contracted", "Painless", "Amputation/major surgery"],
  ],
  0.15, 0.85, 9.7,
  { colW: [2.0, 2.2, 2.8, 2.0, 2.0], fontSize: 10.5, rowH: 0.55 }
);
s.addText("Rule of Nines (Wallace): Head/neck=9%, Each arm=9%, Chest=18%, Abdomen=18%, Each leg=18%, Perineum=1%  |  Used to estimate TBSA burned", {
  x: 0.15, y: 4.75, w: 9.7, h: 0.45, fontSize: 11, color: C.gold, fontFace: "Calibri", bold: true
});

// Slide 2.3 - Burn classification visual + Rule of Nines
s = pres.addSlide();
slideHeader(s, "Rule of Nines & Burn Area Estimation", "0F3460");
// Rule of nines diagram (boxes)
s.addShape(pres.shapes.RECTANGLE, { x: 0.2, y: 0.85, w: 9.6, h: 0.5, fill: { color: "0D1B2A" } });
s.addText("RULE OF NINES - WALLACE (1951)", { x: 0.2, y: 0.87, w: 9.6, h: 0.38, fontSize: 16, bold: true, color: C.gold, align: "center", fontFace: "Calibri" });

const bodyParts = [
  ["HEAD & NECK", "9%", C.teal],
  ["ANTERIOR TRUNK\n(Chest+Abdomen)", "18%", C.accent2],
  ["POSTERIOR TRUNK", "18%", C.accent2],
  ["EACH ARM", "9% each", "1A3A5A"],
  ["EACH LEG", "18% each", "1A3A5A"],
  ["PERINEUM", "1%", C.accent],
];
bodyParts.forEach((bp, i) => {
  const row = Math.floor(i / 3);
  const col = i % 3;
  const bx = 0.2 + col * 3.2;
  const by = 1.5 + row * 1.5;
  s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: bx, y: by, w: 3.1, h: 1.3, fill: { color: bp[2] }, line: { color: C.gold, width: 1 }, rectRadius: 0.1 });
  s.addText(bp[0], { x: bx + 0.1, y: by + 0.1, w: 2.9, h: 0.6, fontSize: 13, bold: true, color: C.white, align: "center", fontFace: "Calibri" });
  s.addText(bp[1], { x: bx + 0.1, y: by + 0.65, w: 2.9, h: 0.5, fontSize: 20, bold: true, color: C.gold, align: "center", fontFace: "Calibri" });
});
s.addText("Total = 100% | Lund & Browder chart is more accurate for children (accounts for age-varying body proportions)", {
  x: 0.2, y: 4.9, w: 9.6, h: 0.35, fontSize: 11, color: C.light, align: "center", fontFace: "Calibri"
});

// Slide 2.4 - Classification by Cause + Severity
s = pres.addSlide();
slideHeader(s, "Burns - Classification by Cause & Severity", "0F3460");
s.addText("BY SEVERITY (ABA Classification)", { x: 0.2, y: 0.85, w: 9.6, h: 0.3, fontSize: 14, bold: true, color: C.gold, fontFace: "Calibri" });
addTable(s,
  ["Severity", "Criteria", "Management"],
  [
    ["MINOR", "< 15% TBSA (adult); < 10% TBSA (child); < 2% full thickness; no special areas", "Outpatient"],
    ["MODERATE", "15-25% TBSA (adult); 10-20% (child); 2-10% full thickness; no face/hands/feet", "Hospitalization"],
    ["MAJOR/CRITICAL", "> 25% TBSA (adult); > 20% (child); > 10% full thickness; burns to face/hands/genitalia; inhalation injury; electrical burns", "Burn unit"],
  ],
  0.2, 1.2, 9.6,
  { colW: [2.0, 4.8, 2.8], fontSize: 11, rowH: 0.55 }
);
s.addText("BY CAUSE", { x: 0.2, y: 3.0, w: 9.6, h: 0.3, fontSize: 14, bold: true, color: C.gold, fontFace: "Calibri" });
addBullet(s, [
  { text: "Thermal Burns: flame, contact (hot metal), flash, radiation", bold: false },
  { text: "Chemical Burns: acid/alkali/organic compounds", bold: false },
  { text: "Electrical Burns: entry/exit wounds; internal burns", bold: false },
  { text: "Radiation Burns: UV/X-ray/nuclear radiation", bold: false },
  { text: "Friction Burns: road rash; combination of heat + abrasion", bold: false },
], 0.2, 3.35, 9.6, 1.8, { fontSize: 13 });

// =================================================================
// TOPIC 3: PM APPEARANCES OF BURN
// =================================================================
s = pres.addSlide();
addSectionTitle(s, "POSTMORTEM APPEARANCES OF BURNS", "Topic 3 | Forensic Medicine");

// Slide 3.2 - External PM Changes
s = pres.addSlide();
slideHeader(s, "External Postmortem Appearances of Burns", "9B59B6");
s.addText("EXTERNAL CHANGES AT AUTOPSY", { x: 0.2, y: 0.85, w: 9.6, h: 0.28, fontSize: 14, bold: true, color: C.gold, fontFace: "Calibri" });
addBullet(s, [
  { text: "PUGILISTIC (BOXER) ATTITUDE - Most characteristic PM finding in burned bodies", bold: true, color: C.accent },
  { text: "Flexion of limbs due to heat coagulation and shortening of muscles & tendons (NOT vital reaction)", indent: 1, size: 11 },
  { text: "CHARRING & CARBONIZATION - Black, brittle, shrunken tissues; body may be unrecognizable", bold: true, color: C.gold },
  { text: "SKIN SPLITTING - Linear splits simulating incised wounds; edges regular, not undermined; no vital reaction", bold: true, color: C.teal },
  { text: "HEAT BLISTERS - May form postmortem; fluid is CLEAR/STRAW colored; NO inflammatory cells", bold: true, color: C.gold },
  { text: "EPIDERMIS PEELING - As a glove/stocking; helps in fingerprinting", bold: false },
  { text: "SINGEING of hair, eyebrows", bold: false },
  { text: "HEAT EDEMA - Swelling of burned areas (subcutaneous)", bold: false },
], 0.2, 1.2, 9.6, 3.8, { fontSize: 12.5 });
s.addText("KEY: Pugilistic attitude ≠ fighting posture - it is a purely mechanical response to heat coagulation of flexor muscles", {
  x: 0.2, y: 5.0, w: 9.6, h: 0.35, fontSize: 11, color: C.accent, fontFace: "Calibri", bold: true
});

// Slide 3.3 - Internal PM Changes
s = pres.addSlide();
slideHeader(s, "Internal Postmortem Appearances of Burns", "9B59B6");
addTable(s,
  ["Organ/System", "PM Finding", "Forensic Significance"],
  [
    ["SKULL", "HEAT HEMATOMA - extradural blood clot; honeycomb pattern; brown/dark red; no skull fracture needed", "Distinguish from true extradural hematoma"],
    ["BRAIN", "Cooked/shrunken; heat artifacts; cerebral edema if survived", "Cannot assess injury if severely burned"],
    ["LUNGS", "Soot inhalation; carboxyhemoglobin (COHb); inhalation injury; edema", "COHb > 10-20% = alive during fire"],
    ["BLOOD", "Cherry red (if COHb present); coagulation with heat", "COHb indicates antemortem burning"],
    ["STOMACH", "Curling's ulcer (stress ulcer) - in survivors", "Evidence of survival period"],
    ["MUSCLES", "Gray-brown; coagulated; contracted", "Explains pugilistic attitude"],
    ["EPIDURAL", "Heat hematoma - postmortem artifact", "Must not confuse with trauma"],
  ],
  0.15, 0.85, 9.7,
  { colW: [2.0, 4.2, 3.5], fontSize: 10, rowH: 0.45 }
);

// Slide 3.4 - PM Changes - Survival indicators
s = pres.addSlide();
slideHeader(s, "PM Evidence of Antemortem Burning (Alive During Fire)", "9B59B6");
addCardBox(s, "RESPIRATORY SYSTEM", "• Soot/carbon particles in trachea, bronchi, lungs\n• Singed nasal vibrissae\n• Inhalation injury; pulmonary edema\n• COHb in blood (VITAL REACTION)", 0.2, 0.85, 4.7, 2.1, "0D1B2A");
addCardBox(s, "CARBOXYHEMOGLOBIN (COHb)", "• CO binds Hb 200-250x more than O2\n• COHb > 10% = alive during fire\n• COHb > 50-60% = lethal\n• Blood appears cherry-red\n• SPECTROSCOPIC examination", 5.1, 0.85, 4.7, 2.1, "0D1B2A");
addCardBox(s, "VITAL REACTIONS", "• Inflammatory cells at burn margins\n• Hyperemia and edema in surrounding tissue\n• Blister fluid with protein/leucocytes\n• Carbon particles BELOW vocal cords\n• Curling's ulcer (survival > 24 hrs)", 0.2, 3.1, 4.7, 2.0, "0D1B2A");
addCardBox(s, "BLOOD CHANGES", "• Hemoconcentration\n• Elevated plasma proteins\n• Elevated BUN, creatinine (renal failure)\n• Metabolic acidosis\n• COHb (spectroscopy/CO-oximetry)", 5.1, 3.1, 4.7, 2.0, "0D1B2A");
s.addText("If only external burns present without soot inhalation or COHb → body placed in fire AFTER death (postmortem burning)", {
  x: 0.2, y: 5.2, w: 9.6, h: 0.2, fontSize: 9, color: C.accent, fontFace: "Calibri", bold: true
});

// =================================================================
// TOPIC 4: HEAT HEMATOMA vs EXTRADURAL HEMATOMA
// =================================================================
s = pres.addSlide();
addSectionTitle(s, "HEAT HEMATOMA vs EXTRADURAL HEMATOMA", "Topic 4 | Forensic Medicine");

// Slide 4.2 - Comparison Table
s = pres.addSlide();
slideHeader(s, "Heat Hematoma vs Extradural Hematoma - Key Differences", "F5A623");
addTable(s,
  ["Feature", "HEAT HEMATOMA", "EXTRADURAL HEMATOMA"],
  [
    ["Origin", "POSTMORTEM artifact; due to heat", "ANTEMORTEM; due to trauma (head injury)"],
    ["Cause", "Heat causes blood to boil, froth and collect in extradural space", "Rupture of middle meningeal artery (usually)"],
    ["Color", "DARK BROWN to chocolate; frothy/honeycomb", "DARK RED; gelatinous; no honeycomb"],
    ["Consistency", "SPONGY, honeycomb/porous (gas bubbles from boiling)", "CLOTTED; firm; jelly-like"],
    ["Skull Fracture", "Usually ABSENT; NO skull fracture", "Usually PRESENT (95%); fracture of temporal bone"],
    ["Location", "Frontoparietal; widespread", "Temporal (pterion region); localized"],
    ["Dura Mater", "NOT stripped from bone (attached)", "Dura STRIPPED from inner table"],
    ["Volume", "Small; < 25 ml typically", "Can be large (30-100 ml)"],
    ["Brain", "No compression pattern; boiled/cooked", "COMPRESSION of brain; herniation"],
    ["Clinical Hx", "Body found in fire/burned environment", "History of head trauma; lucid interval"],
    ["Forensic Signif.", "Postmortem fire artifact; NOT evidence of trauma", "Evidence of antemortem injury; manner of death"],
  ],
  0.15, 0.82, 9.7,
  { colW: [2.0, 3.8, 3.9], fontSize: 10, rowH: 0.32 }
);

// Slide 4.3 - Memory Aid + Notes
s = pres.addSlide();
slideHeader(s, "Heat Hematoma - Mechanism & Memory Aid", "F5A623");
addCardBox(s, "MECHANISM OF HEAT HEMATOMA", "1. Intense heat → boiling of blood in diploe (skull marrow)\n2. Boiled blood + gas → expand → collect in epidural space\n3. Dura remains attached to bone\n4. Gives characteristic HONEYCOMB (spongy, porous) appearance\n5. Dark brown color (hematin from hemoglobin breakdown)", 0.2, 0.85, 9.6, 2.0, "0D1B2A");
s.addShape(pres.shapes.RECTANGLE, { x: 0.2, y: 3.0, w: 4.6, h: 2.3, fill: { color: "0D1B2A" }, line: { color: C.teal, width: 1 } });
s.addText("HEAT HEMATOMA\n(Remember: H-H-H-H)", { x: 0.3, y: 3.05, w: 4.4, h: 0.4, fontSize: 14, bold: true, color: C.teal, fontFace: "Calibri" });
addBullet(s, [
  { text: "HEAT-induced (Postmortem)", bold: true, color: C.gold },
  { text: "HONEYCOMB appearance", bold: true, color: C.gold },
  { text: "HELMET (frontovertex region)", bold: true, color: C.gold },
  { text: "Dura is HELD (not stripped)", bold: true, color: C.gold },
], 0.3, 3.5, 4.4, 1.7, { fontSize: 13 });
s.addShape(pres.shapes.RECTANGLE, { x: 5.1, y: 3.0, w: 4.7, h: 2.3, fill: { color: "0D1B2A" }, line: { color: C.accent, width: 1 } });
s.addText("EXTRADURAL HEMATOMA", { x: 5.2, y: 3.05, w: 4.5, h: 0.4, fontSize: 14, bold: true, color: C.accent, fontFace: "Calibri" });
addBullet(s, [
  { text: "TRAUMA-induced (Antemortem)", bold: true, color: C.gold },
  { text: "TEMPORAL region (pterion)", bold: true, color: C.gold },
  { text: "Middle Meningeal Artery tear", bold: true, color: C.gold },
  { text: "Dura is DETACHED (stripped)", bold: true, color: C.gold },
], 5.2, 3.5, 4.5, 1.7, { fontSize: 13 });

// =================================================================
// TOPIC 5: ANTEMORTEM vs POSTMORTEM BURNS
// =================================================================
s = pres.addSlide();
addSectionTitle(s, "ANTEMORTEM vs POSTMORTEM BURNS", "Topic 5 | Forensic Medicine");

// Slide 5.2 - Comparison Table
s = pres.addSlide();
slideHeader(s, "Antemortem vs Postmortem Burns - Comparison", "2ECC71");
addTable(s,
  ["Feature", "ANTEMORTEM BURNS", "POSTMORTEM BURNS"],
  [
    ["Definition", "Burns sustained when ALIVE", "Burns after death"],
    ["Vital Reaction", "PRESENT: hyperemia, edema, inflammatory cells at margins", "ABSENT: no inflammatory response"],
    ["Blister Fluid", "Contains PROTEIN (albumin), WBCs, fibrin", "Clear fluid or absent; NO protein/WBCs"],
    ["Blister Base", "RED, inflamed, hyperemic", "PALE; no hyperemia"],
    ["COHb in blood", "PRESENT > 10% (inhaled CO)", "ABSENT (< 5%)"],
    ["Soot in airways", "PRESENT: soot below glottis, in bronchi/lungs", "ABSENT: soot only above glottis (larynx)"],
    ["Skin margins", "Inflamed/hyperemic red halo around burns", "No red halo; dry, parchment-like edges"],
    ["Histology", "Vascular congestion, PMN infiltration, edema", "No cellular reaction"],
    ["Blood color", "CHERRY RED (COHb)", "Normal; no COHb"],
    ["Pain response", "Evidence of struggle, posture changes", "Pugilistic attitude only (postmortem)"],
    ["Curling's ulcer", "Can occur (>24h survival)", "Absent"],
    ["Forensic Imp.", "HOMICIDE: fire to conceal crime; accident/suicide", "Fire set after murder to destroy evidence"],
  ],
  0.15, 0.82, 9.7,
  { colW: [2.2, 3.75, 3.75], fontSize: 9.5, rowH: 0.31 }
);

// Slide 5.3 - Key Differentiating Tests
s = pres.addSlide();
slideHeader(s, "Key Tests to Distinguish Antemortem from Postmortem Burns", "2ECC71");
addCardBox(s, "1. CARBOXYHEMOGLOBIN (COHb) - MOST IMPORTANT", "• COHb > 10%: person was alive & breathing during fire\n• Levels > 50-60% = fatal CO poisoning\n• Tested by: CO-oximetry or Spectroscopy\n• Absent in PM burns (no breathing)", 0.2, 0.85, 9.6, 1.3, "0D1B2A");
addCardBox(s, "2. HISTOLOGICAL EXAMINATION", "• Antemortem: PMN infiltration, vascular congestion, edema, fibrin\n• Postmortem: No cellular reaction; acellular; no vascular response", 0.2, 2.3, 4.7, 1.3, "0D1B2A");
addCardBox(s, "3. BLISTER FLUID ANALYSIS", "• Antemortem: Protein > 2g/100ml; albumin/globulin; WBCs present\n• Postmortem: No protein; clear fluid; no cells", 5.1, 2.3, 4.7, 1.3, "0D1B2A");
addCardBox(s, "4. SOOT INHALATION", "• Antemortem: Carbon particles below vocal cords (bronchi/alveoli)\n• Postmortem: Carbon only in mouth/nose/above larynx (passive deposition)", 0.2, 3.75, 4.7, 1.3, "0D1B2A");
addCardBox(s, "5. MACROSCOPIC VITAL REACTION", "• Red/pink erythematous halo around burns = antemortem\n• No such halo = postmortem\n• Heat blisters PM: pale, acellular, no congested base", 5.1, 3.75, 4.7, 1.3, "0D1B2A");
s.addText("Ref: Reddy - Chapter Burns & Scalds; Gautam Vishwas - Antemortem vs PM Burns", {
  x: 0.2, y: 5.2, w: 9.6, h: 0.2, fontSize: 9, color: "888888", fontFace: "Calibri", align: "right"
});

// =================================================================
// TOPIC 6: DRY HEAT vs MOIST HEAT (SCALD) vs CHEMICAL BURN
// =================================================================
s = pres.addSlide();
addSectionTitle(s, "DRY HEAT vs MOIST HEAT (SCALD) vs CHEMICAL BURN", "Topic 6 | Forensic Medicine");

// Slide 6.2 - Big comparison table
s = pres.addSlide();
slideHeader(s, "Dry Heat vs Scald (Moist Heat) vs Chemical Burns", "00B4D8");
addTable(s,
  ["Feature", "DRY HEAT (Burns)", "MOIST HEAT (Scalds)", "CHEMICAL BURNS"],
  [
    ["Agent", "Flame, hot solid, radiant heat", "Boiling water, steam, hot liquid", "Acids, alkalis, phenol, phosphorus"],
    ["Area Affected", "Localized; often clothing pattern", "Irregular; trickling/splash pattern", "Area of contact; may be widespread"],
    ["Blisters", "In 2nd degree; may be absent in 3rd°", "COMMON; large fluid-filled blisters", "Rare (acids); may occur (alkalis)"],
    ["Depth", "Often superficial to deep", "Usually superficial-partial thickness", "Acids: coagulation (limited)\nAlkalis: DEEPER (liquefaction necrosis)"],
    ["Eschar", "Hard, leathery eschar", "Soft, moist, shredded skin", "Acid: hard, parchment-like eschar\nAlkali: soft, slippery, soapy"],
    ["Charring", "YES (3rd/4th degree)", "NO charring", "Possible with conc. acid; NO with alkali"],
    ["Hair/Clothing", "Singed/burned", "Wet; clothing may retain heat", "Dissolved/discolored by agent"],
    ["Pain", "Varies by degree", "Severe pain initially", "Burning pain; may be delayed"],
    ["Smell", "Burning flesh/hair odor", "Scalded/cooked smell", "Characteristic chemical odor"],
    ["Pattern", "Contact pattern; splash", "Splash/trickling/poured pattern", "Contact/splash/deliberate pour"],
    ["Healing", "Variable; scar in deep burns", "Less scarring than dry burns", "Deep necrosis; poor healing; keloids"],
    ["Forensic Note", "Often accidental/suicidal/homicidal", "Child abuse (dunking); scalding assault", "Assault (vitriolage); suicide (rare)"],
  ],
  0.15, 0.82, 9.7,
  { colW: [2.0, 2.5, 2.5, 2.7], fontSize: 9.5, rowH: 0.32 }
);

// Slide 6.3 - Chemical Burns Detail
s = pres.addSlide();
slideHeader(s, "Chemical Burns - Acids vs Alkalis (Forensic Details)", "00B4D8");
s.addShape(pres.shapes.RECTANGLE, { x: 0.2, y: 0.85, w: 4.6, h: 4.5, fill: { color: "0D1B2A" }, line: { color: C.accent, width: 1.5 } });
s.addShape(pres.shapes.RECTANGLE, { x: 5.1, y: 0.85, w: 4.7, h: 4.5, fill: { color: "0D1B2A" }, line: { color: C.teal, width: 1.5 } });
s.addText("ACID BURNS", { x: 0.3, y: 0.88, w: 4.4, h: 0.3, fontSize: 16, bold: true, color: C.accent, fontFace: "Calibri" });
addBullet(s, [
  { text: "Mechanism: COAGULATION NECROSIS", bold: true, color: C.gold },
  { text: "Protein coagulation limits deeper penetration (self-limiting)", indent: 1, size: 11 },
  { text: "Eschar: HARD, leathery, parchment-like, brown/black", bold: false },
  { text: "Common agents: H2SO4, HCl, HNO3, Carbolic acid (phenol)", bold: false },
  { text: "Sulfuric acid: Black burns", bold: false },
  { text: "Nitric acid: Yellow burns (xanthoproteic reaction)", bold: false },
  { text: "Hydrochloric acid: White-grey discoloration", bold: false },
  { text: "Forensic: VITRIOLAGE - acid attacks (face/eyes); homicidal", bold: true, color: C.accent },
], 0.3, 1.25, 4.4, 4.0, { fontSize: 11.5 });
s.addText("ALKALI BURNS", { x: 5.2, y: 0.88, w: 4.5, h: 0.3, fontSize: 16, bold: true, color: C.teal, fontFace: "Calibri" });
addBullet(s, [
  { text: "Mechanism: LIQUEFACTION NECROSIS", bold: true, color: C.gold },
  { text: "Saponification of fat → deeper, more severe injury (NOT self-limiting)", indent: 1, size: 11 },
  { text: "Eschar: SOFT, slippery, soapy-feel, grey/white", bold: false },
  { text: "Common agents: NaOH (caustic soda), KOH, lime, ammonia", bold: false },
  { text: "Burns appear deceptively superficial initially", bold: false },
  { text: "Worse than acid - continues to penetrate deeper", bold: true, color: C.accent },
  { text: "Phosphorus burns: glow in dark; continue burning; garlic odor", bold: false },
  { text: "Forensic: Industrial accidents; assault; child abuse", bold: true, color: C.teal },
], 5.2, 1.25, 4.5, 4.0, { fontSize: 11.5 });

// Slide 6.4 - Scald (Moist Heat) Forensic Patterns
s = pres.addSlide();
slideHeader(s, "Scalds (Moist Heat) - Forensic Patterns & Child Abuse", "00B4D8");
addCardBox(s, "ACCIDENT PATTERN", "• Splash/spill burns - irregular, asymmetric\n• Upper body: neck, chest, arms\n• Trickling streams of liquid visible\n• Clothing protects underlying areas", 0.2, 0.85, 3.0, 2.0, "0D1B2A");
addCardBox(s, "CHILD ABUSE PATTERN (DUNKING)", "• Stocking/glove distribution on limbs\n• Symmetric; clear tide marks\n• Buttocks/perineum burns (forced dunking)\n• No splash marks\n• Sharp line of demarcation", 3.4, 0.85, 3.0, 2.0, "0D1B2A");
addCardBox(s, "HOMICIDAL SCALDING", "• Bound victim burns (circular/line patterns)\n• Burns in unusual sites for accident\n• Multiple sessions of burns\n• Inconsistent history", 6.6, 0.85, 3.2, 2.0, "0D1B2A");
s.addText("CHARACTERISTICS OF SCALD vs BURN", { x: 0.2, y: 3.0, w: 9.6, h: 0.3, fontSize: 14, bold: true, color: C.gold, fontFace: "Calibri" });
addTable(s,
  ["Feature", "Burns (Dry Heat)", "Scalds (Moist Heat)"],
  [
    ["Singed hair", "YES", "NO"],
    ["Charring", "YES (3rd°)", "NEVER"],
    ["Blisters", "Present", "Prominent & larger"],
    ["Pattern", "Contact/flame shape", "Splash/trickling/symmetric"],
    ["Steam scalds", "N/A", "Full thickness, widespread"],
  ],
  0.2, 3.35, 9.6,
  { colW: [3.0, 3.3, 3.3], fontSize: 12, rowH: 0.32 }
);

// =================================================================
// TOPIC 7: EXPLOSION INJURIES
// =================================================================
s = pres.addSlide();
addSectionTitle(s, "EXPLOSION INJURIES", "Topic 7 | Forensic Medicine");

// Slide 7.2 - Classification
s = pres.addSlide();
slideHeader(s, "Classification of Explosion Injuries", "E67E22");
addTable(s,
  ["Category", "Mechanism", "Injuries", "Examples"],
  [
    ["PRIMARY\n(Blast Injuries)", "Pressure wave / blast overpressure directly acting on body", "Tympanic membrane rupture (hallmark); pulmonary blast; hollow organ rupture; blast lung; bowel perforation", "Bomb blasts; IED; mine explosions"],
    ["SECONDARY\n(Missile/Fragment)", "Fragments, shrapnel, debris propelled by explosion", "Penetrating wounds; multiple small wounds; foreign body embedding; contusions", "Shell fragments; glass; debris"],
    ["TERTIARY\n(Displacement)", "Body thrown by blast wind; impacts solid objects", "Blunt trauma; fractures; crush injuries; traumatic amputation; head injury", "Thrown against walls/vehicles"],
    ["QUATERNARY\n(Miscellaneous)", "Burns, inhalation, toxic gases, crush (building collapse)", "Burns (flame/flash); smoke/CO inhalation; toxic fumes; traumatic asphyxia", "Structural collapse; gas fires"],
    ["QUINARY\n(5th)", "Bacteria/radiation/chemical contamination (dirty bombs)", "Sepsis; radiation sickness; chemical poisoning", "Dirty bombs; chemical/bio agents"],
  ],
  0.15, 0.85, 9.7,
  { colW: [1.9, 2.3, 3.2, 2.3], fontSize: 9.5, rowH: 0.58 }
);

// Slide 7.3 - Blast Lung + PM Features
s = pres.addSlide();
slideHeader(s, "Blast Lung & PM Findings in Explosion Deaths", "E67E22");
addCardBox(s, "BLAST WAVE PHYSICS", "Mach stem effect - positive pressure wave followed by negative wave\nTransmitted at speed of sound\nLiquid-air interfaces most vulnerable: LUNGS, GUT, EAR\nOpen space vs confined space injuries differ significantly", 0.2, 0.85, 4.7, 1.7, "0D1B2A");
addCardBox(s, "BLAST LUNG (PRIMARY)", "• Bilateral pulmonary contusions\n• Petechiae; hemorrhage; edema\n• Air embolism - cerebral/coronary → sudden death\n• No external marks (deceptive)\n• MOST COMMON CAUSE OF BLAST DEATH", 5.1, 0.85, 4.7, 1.7, "0D1B2A");
s.addText("PM EXAMINATION FINDINGS", { x: 0.2, y: 2.7, w: 9.6, h: 0.3, fontSize: 14, bold: true, color: C.gold, fontFace: "Calibri" });
addTable(s,
  ["Finding", "Description"],
  [
    ["Tympanic Membrane", "Rupture (50% with primary blast); hemorrhage in external canal; ossicular chain disruption"],
    ["Lungs", "Diffuse hemorrhage; 'shock lung'; contusions; pneumothorax; hemothorax"],
    ["Hollow Organs", "Perforation of bowel (gas-containing loops most vulnerable); stomach; sinuses"],
    ["Brain", "Cerebral air embolism; concussion; contusion; DAI"],
    ["Eyes", "Retinal detachment; globe rupture; corneal/lens injury"],
    ["External", "Multiple puncture wounds (secondary); burns (quaternary); traumatic amputation"],
  ],
  0.2, 3.05, 9.6,
  { colW: [2.5, 7.1], fontSize: 10.5, rowH: 0.36 }
);

// Slide 7.4 - Types of Explosion & Forensic Notes
s = pres.addSlide();
slideHeader(s, "Types of Explosive Agents & Forensic Significance", "E67E22");
addTable(s,
  ["Type", "Agent", "Forensic Characteristics"],
  [
    ["HIGH EXPLOSIVES", "TNT, RDX, Semtex, C4, PETN", "High velocity detonation; blast wave; dismemberment; fragmentation; residue analysis"],
    ["LOW EXPLOSIVES\n(Propellants)", "Gunpowder, smokeless powder", "Deflagration; burning; no true blast wave; projectile propulsion; GSR"],
    ["IMPROVISED (IED)", "ANFO, TATP, HMTD, peroxide-based", "Variable composition; wide fragment scatter; chemical residues; often triggered remotely"],
    ["GAS EXPLOSIONS", "LPG, natural gas, methane", "Burns predominate; blast less; CO inhalation; building collapse; secondary fires"],
    ["NUCLEAR", "Fission/fusion devices", "Blast + burns + radiation; flash burns; radiation sickness; EMP; thermal pulse"],
  ],
  0.15, 0.85, 9.7,
  { colW: [2.2, 2.3, 5.2], fontSize: 10.5, rowH: 0.48 }
);
s.addText("Key PM: Collect fragments for analysis; document pattern of injuries; residue swabs; document organ damage pattern; assist identification (dental/DNA)", {
  x: 0.15, y: 4.82, w: 9.7, h: 0.4, fontSize: 11, color: C.gold, fontFace: "Calibri", bold: true
});

// =================================================================
// TOPIC 8: COLD INJURIES
// =================================================================
s = pres.addSlide();
addSectionTitle(s, "COLD INJURIES", "Topic 8 | Forensic Medicine");

// Slide 8.2 - Classification
s = pres.addSlide();
slideHeader(s, "Classification of Cold Injuries", "0099CC");
s.addShape(pres.shapes.RECTANGLE, { x: 0.2, y: 0.85, w: 4.6, h: 4.5, fill: { color: "0D1B2A" }, line: { color: C.teal, width: 1.5 } });
s.addShape(pres.shapes.RECTANGLE, { x: 5.1, y: 0.85, w: 4.7, h: 4.5, fill: { color: "0D1B2A" }, line: { color: C.gold, width: 1.5 } });
s.addText("LOCAL COLD INJURIES", { x: 0.3, y: 0.88, w: 4.4, h: 0.3, fontSize: 15, bold: true, color: C.teal, fontFace: "Calibri" });
addBullet(s, [
  { text: "1. FROSTBITE", bold: true, color: C.gold },
  { text: "Freezing of tissue; extremities; nose/ears", indent: 1, size: 11 },
  { text: "Grades: Frostnip → 1st→2nd→3rd→4th degree", indent: 1, size: 11 },
  { text: "2. CHILBLAIN (Pernio)", bold: true, color: C.gold },
  { text: "Mild non-freezing; repeated cold exposure; erythema/itching", indent: 1, size: 11 },
  { text: "3. TRENCH FOOT (Immersion Foot)", bold: true, color: C.gold },
  { text: "Prolonged wet cold; not freezing; neuropathy + vascular", indent: 1, size: 11 },
  { text: "4. IMMERSION FOOT", bold: true, color: C.gold },
  { text: "Cold water exposure; sailors/soldiers; similar to trench foot", indent: 1, size: 11 },
], 0.3, 1.25, 4.4, 4.0, { fontSize: 12 });
s.addText("GENERAL COLD INJURIES", { x: 5.2, y: 0.88, w: 4.5, h: 0.3, fontSize: 15, bold: true, color: C.gold, fontFace: "Calibri" });
addBullet(s, [
  { text: "HYPOTHERMIA - Core temp < 35°C", bold: true, color: C.accent },
  { text: "Mild: 32-35°C - shivering, tachycardia", indent: 1, size: 11 },
  { text: "Moderate: 28-32°C - muscle rigidity, confusion, bradycardia, J-wave", indent: 1, size: 11 },
  { text: "Severe: < 28°C - cardiac arrhythmias, coma", indent: 1, size: 11 },
  { text: "Profound: < 20°C - asystole; death", indent: 1, size: 11 },
  { text: "PARADOXICAL UNDRESSING", bold: true, color: C.accent },
  { text: "Victim removes clothing due to burning sensation (terminal vasodilation)", indent: 1, size: 11 },
  { text: "TERMINAL BURROWING", bold: true, color: C.accent },
  { text: "Person hides in enclosed space just before death", indent: 1, size: 11 },
], 5.2, 1.25, 4.5, 4.0, { fontSize: 12 });

// Slide 8.3 - Frostbite Grading Table
s = pres.addSlide();
slideHeader(s, "Frostbite - Grading & PM Appearances in Cold Death", "0099CC");
s.addText("FROSTBITE - GRADING", { x: 0.2, y: 0.85, w: 9.6, h: 0.28, fontSize: 14, bold: true, color: C.gold, fontFace: "Calibri" });
addTable(s,
  ["Grade", "Depth", "Appearance", "Features", "Prognosis"],
  [
    ["1st (Frostnip)", "Superficial skin", "Erythema, numbness", "No blisters; reversible", "Full recovery"],
    ["2nd (Superficial)", "Epidermis + upper dermis", "Blisters (clear fluid)", "Vesicles within 24h; painful on thawing", "Recovery in weeks"],
    ["3rd (Deep)", "Dermis + subcutaneous", "Hemorrhagic blisters", "Dark red/purple; non-blanching; gangrenous", "Tissue loss possible"],
    ["4th (Complete)", "Full tissue freeze", "Black; mummified; dry gangrene", "Bone/joint involvement; amputation", "Amputation often needed"],
  ],
  0.2, 1.18, 9.6,
  { colW: [1.8, 2.0, 2.2, 2.5, 1.5], fontSize: 10.5, rowH: 0.45 }
);
s.addText("PM APPEARANCES IN COLD DEATH", { x: 0.2, y: 3.35, w: 9.6, h: 0.28, fontSize: 14, bold: true, color: C.gold, fontFace: "Calibri" });
addBullet(s, [
  { text: "Body found in flexed 'fetal' posture (protection from cold)", bold: false },
  { text: "PARADOXICAL UNDRESSING: clothes removed/scattered nearby (65% of hypothermia deaths)", bold: true, color: C.accent },
  { text: "WISCHNEWSKI SPOTS (WISCHNEWSKY): brownish-red hemorrhagic erosions in gastric mucosa - PATHOGNOMONIC of cold death", bold: true, color: C.teal },
  { text: "Bright pink/cherry red lividity (oxyhemoglobin; no CO needed)", bold: false },
  { text: "Frost/ice crystals on body surface; frozen clothing", bold: false },
  { text: "Pancreatitis, hepatic necrosis (internal PM findings)", bold: false },
], 0.2, 3.7, 9.6, 1.5, { fontSize: 12 });

// Slide 8.4 - Hypothermia ECG + Forensic
s = pres.addSlide();
slideHeader(s, "Hypothermia - Signs, ECG Changes & Forensic Importance", "0099CC");
addCardBox(s, "CLINICAL SIGNS BY TEMP", "35-32°C: Shivering, tachycardia, confusion, skin pallor\n32-28°C: Shivering STOPS, muscle rigidity, bradycardia, hypotension, drowsiness\n28-20°C: Coma, fixed pupils, absent reflexes, arrhythmias\n< 20°C: Asystole, death", 0.2, 0.85, 4.7, 2.0, "0D1B2A");
addCardBox(s, "ECG CHANGES (Osborn J-Wave)", "J wave (Osborn wave) = notch at QRS-ST junction\nAppears at core temp < 32°C\nPathognomonic of hypothermia\nOther: Prolonged PR/QRS/QT; AF; VF at < 28°C\nBradycardia → heart block → asystole", 5.1, 0.85, 4.7, 2.0, "0D1B2A");
addCardBox(s, "FORENSIC SIGNIFICANCE", "• Natural causes vs exposure/neglect vs homicide\n• Elder/infant neglect; vagrant population\n• Wischnewski spots: specific for cold death\n• Bright pink lividity may mislead (not CO poisoning)\n• Paradoxical undressing may suggest sexual assault → rule out\n• Blood: pink color; no COHb\n• Require toxicology: alcohol (impairs thermoregulation)", 0.2, 3.05, 4.7, 2.1, "0D1B2A");
addCardBox(s, "COLD INJURY INVESTIGATIONS", "• Core temperature (rectal/esophageal)\n• Blood alcohol (alcohol = common co-factor)\n• COHb (rule out CO)\n• Toxicology screen\n• Gastric examination for Wischnewski spots\n• Histology: adipose necrosis; hemorrhages\n• External exam: paradoxical undressing; frostbite", 5.1, 3.05, 4.7, 2.1, "0D1B2A");

// =================================================================
// TOPIC 9: ELECTRICAL INJURIES
// =================================================================
s = pres.addSlide();
addSectionTitle(s, "ELECTRICAL INJURIES", "Topic 9 | Forensic Medicine");

// Slide 9.2 - Classification & Factors
s = pres.addSlide();
slideHeader(s, "Electrical Injuries - Classification & Determining Factors", "9B59B6");
s.addText("FACTORS DETERMINING SEVERITY", { x: 0.2, y: 0.85, w: 9.6, h: 0.28, fontSize: 14, bold: true, color: C.gold, fontFace: "Calibri" });
addTable(s,
  ["Factor", "Effect", "Notes"],
  [
    ["VOLTAGE", "Higher V → more severe injury", "Low (<1000V): domestic; High (>1000V): industrial\nUltra-high: lightning (30 million V)"],
    ["CURRENT (Amperage)", "Current kills - NOT voltage", "1mA: tingling; 10-15mA: tetanic; 100mA: VF & death\nOhm's law: I = V/R"],
    ["RESISTANCE", "Low R → more current → more damage", "Wet skin: 1000Ω; Dry skin: 100,000-600,000Ω\nBone: highest R; Blood/nerve: lowest"],
    ["PATHWAY", "AC crosses chest (heart) more dangerous", "Hand-to-hand via chest: most dangerous\nHand-to-foot: VF; vertical: brain damage"],
    ["TYPE (AC vs DC)", "AC more dangerous at low voltage", "AC causes tetanic contraction (can't let go)\nDC causes single convulsion; used medically"],
    ["DURATION", "Longer → more damage", "Time × current = tissue damage"],
    ["FREQUENCY", "60 Hz (household) most dangerous", "High frequency (>100,000 Hz): less cardiac risk"],
  ],
  0.2, 1.18, 9.6,
  { colW: [2.0, 3.0, 4.6], fontSize: 10, rowH: 0.38 }
);

// Slide 9.3 - Entry/Exit Wounds & PM Findings
s = pres.addSlide();
slideHeader(s, "Electrical Entry/Exit Wounds & PM Findings", "9B59B6");
addTable(s,
  ["Feature", "ENTRY WOUND", "EXIT WOUND"],
  [
    ["Location", "Site of first contact (hand/head)", "Where current leaves (foot/ground)"],
    ["Shape", "ROUND or oval; cup/crater-shaped", "Irregular; burst outward"],
    ["Size", "Small; well-demarcated", "Larger; more destructive"],
    ["Edges", "Indurated, rolled; charred", "Everted, exploded outward"],
    ["Skin Changes", "Crocodile skin / puckered / metallic deposit", "Blown-out; fragmented"],
    ["Metallization", "May contain metal deposit from conductor", "Rare"],
  ],
  0.2, 0.85, 9.6,
  { colW: [2.0, 3.8, 3.8], fontSize: 11, rowH: 0.38 }
);
s.addText("PM AUTOPSY FINDINGS - ELECTRICAL DEATHS", { x: 0.2, y: 3.35, w: 9.6, h: 0.28, fontSize: 14, bold: true, color: C.gold, fontFace: "Calibri" });
addBullet(s, [
  { text: "JOULE BURNS: at entry/exit and along path; may be minimal externally despite massive internal damage", bold: true, color: C.teal },
  { text: "Crocodile skin appearance at contact point", bold: false },
  { text: "Internal burns: deep muscle, vessels, nerves along current path; muscle charring", bold: false },
  { text: "Heart: VF → no clot in heart (sudden death); may show myocardial necrosis", bold: false },
  { text: "METALLIZATION: deposit of metal ions in skin at contact point (histology/XRF analysis)", bold: true, color: C.gold },
  { text: "May have MINIMAL external findings with massive internal burns (especially high voltage)", bold: false },
], 0.2, 3.7, 9.6, 1.6, { fontSize: 12 });

// Slide 9.4 - Mechanisms of Death
s = pres.addSlide();
slideHeader(s, "Mechanisms of Death in Electrical Injuries", "9B59B6");
addCardBox(s, "CARDIAC EFFECTS (Most Common Cause of Death)", "• VF (ventricular fibrillation): most common at 100mA; 60Hz AC\n• Asystole (direct DC; very high current)\n• Myocardial necrosis; conduction defects\n• Delayed cardiac arrest (up to 24h later)", 0.2, 0.85, 4.7, 2.0, "0D1B2A");
addCardBox(s, "RESPIRATORY EFFECTS", "• Respiratory arrest: tetanic contraction of chest muscles\n• Diaphragm paralysis\n• CNS paralysis (brainstem)\n• May outlast cardiac arrest → resuscitation window", 5.1, 0.85, 4.7, 2.0, "0D1B2A");
addCardBox(s, "NEUROLOGICAL EFFECTS", "• Immediate LOC; seizures\n• Peripheral nerve damage; neuropathy\n• Delayed: parkinsonism; cataracts; psychiatric\n• Spinal cord damage (transverse myelitis)\n• Keraunoparalysis (lightning-specific)", 0.2, 3.05, 4.7, 2.0, "0D1B2A");
addCardBox(s, "FORENSIC CONSIDERATIONS", "• Manner: Accident (most); Homicide (rare); Suicide\n• Scene: look for conductor, damp environment\n• Minimum current: 100-200mA causes VF → death\n• Domestic 220V can kill (if wet skin)\n• Death may occur without any external burns\n• Electrothermal metallization → forensic proof", 5.1, 3.05, 4.7, 2.0, "0D1B2A");
s.addText("Ref: Reddy Chapter 17 - Electrical & Lightning Injuries | Gautam Vishwas FMT", {
  x: 0.2, y: 5.2, w: 9.6, h: 0.2, fontSize: 9, color: "888888", fontFace: "Calibri", align: "right"
});

// =================================================================
// TOPIC 10: LIGHTNING INJURIES
// =================================================================
s = pres.addSlide();
addSectionTitle(s, "LIGHTNING INJURIES", "Topic 10 | Forensic Medicine");

// Slide 10.2 - Mechanisms
s = pres.addSlide();
slideHeader(s, "Lightning Injuries - Mechanisms & Types", "F5A623");
addTable(s,
  ["Mechanism", "Description", "Injuries"],
  [
    ["DIRECT STRIKE", "Lightning strikes person directly", "Most severe; full current through body; cardiac arrest; severe burns"],
    ["CONTACT INJURY", "Person in contact with struck object (tree/pole)", "Current passes to person via object; intermediate severity"],
    ["SIDE FLASH (Splash)", "Current jumps from struck object to nearby person", "Multiple victims possible; less severe than direct"],
    ["GROUND CURRENT\n(Step Voltage)", "Current spreads radially from lightning strike point on ground", "Enters one foot/leg; exits other; affects multiple people; tetany"],
    ["UPWARD STREAMER", "Person develops upward leader discharge", "Burns to top of head; hair singing; skin marks"],
    ["BLAST WAVE", "Explosive thunder/shock wave", "Barotrauma: TM rupture; concussion; blast lung; blunt injury"],
  ],
  0.15, 0.85, 9.7,
  { colW: [2.2, 3.5, 4.0], fontSize: 10, rowH: 0.48 }
);
s.addText("Lightning = 30 million volts; 100,000-300,000 amperes; 1/10,000 second duration → massive but brief current", {
  x: 0.15, y: 4.87, w: 9.7, h: 0.38, fontSize: 11, color: C.gold, fontFace: "Calibri", bold: true
});

// Slide 10.3 - PM Appearances
s = pres.addSlide();
slideHeader(s, "PM Appearances of Lightning Injury (Forensic Pathology)", "F5A623");
addTable(s,
  ["Feature", "Finding", "Significance"],
  [
    ["LICHTENBERG FIGURES\n(Arborescent marks)", "Fern-like/tree-branch pattern of reddish-brown skin marks; fade within 24h", "PATHOGNOMONIC of lightning; keraunoparalytic marks; due to electron bombardment"],
    ["MAGNETIZATION", "Metal objects (belt buckles, rings, coins) may be magnetized/welded", "Confirms lightning (not electrical injury)"],
    ["HAIR", "Singed; may be matted/beaded; clothes may be torn/shredded", "Current path indicator"],
    ["BURNS", "May be minimal; linear; feathering; punctate", "Entry at top of head (direct); soles of feet (ground current)"],
    ["EYES", "Unilateral or bilateral cataract (delayed); retinal detachment; corneal burns", "Delayed complication"],
    ["HEART", "VF; asystole; myocardial injury; cardiac arrest", "Primary cause of death"],
    ["EARS", "TM rupture; ossicular disruption; hearing loss", "Barotrauma from blast wave"],
    ["CLOTHING", "Shredded/torn/vaporized; metalwork fused; shoes blown off", "Characteristic of lightning"],
    ["KERAUNOPARALYSIS", "Temporary paralysis (vasospasm) of limbs; pulseless; cold; resolves", "Unique to lightning; must not confuse with spinal injury"],
  ],
  0.15, 0.82, 9.7,
  { colW: [2.4, 3.5, 3.8], fontSize: 9.5, rowH: 0.35 }
);

// Slide 10.4 - Electrical vs Lightning Comparison
s = pres.addSlide();
slideHeader(s, "Electrical Injury vs Lightning Injury - Key Differences", "F5A623");
addTable(s,
  ["Feature", "ELECTRICAL INJURY", "LIGHTNING INJURY"],
  [
    ["Voltage", "110-500,000V (domestic/industrial)", "30 million volts"],
    ["Current", "Prolonged contact (seconds-minutes)", "VERY BRIEF (1/1000 - 1/100 sec)"],
    ["Mechanism", "Joule heating; tetanic contraction; VF", "Flashover; blast; massive short-duration discharge"],
    ["Entry/Exit wounds", "Well-defined; craters; metallization", "Punctate/linear; may be absent or at head/feet"],
    ["Lichtenberg figures", "ABSENT", "PRESENT (pathognomonic)"],
    ["Clothing", "Burns along body", "BLOWN OFF / Shredded / vaporized"],
    ["Magnetization", "ABSENT", "Metal objects MAGNETIZED"],
    ["Type of burn", "Deep burns along path; internal>>external", "Surface flash burns; limited depth"],
    ["Eye changes", "Cataracts (rare)", "Cataracts COMMON; retinal injury"],
    ["Keraunoparalysis", "Absent", "PRESENT (temporary limb paralysis)"],
    ["COHb", "Possible (if fire)", "Usually absent"],
    ["Multiple victims", "Rare (single contact)", "Common (ground current/side flash)"],
    ["CPR success", "Lower", "HIGHER (reversible cardiac arrest)"],
  ],
  0.15, 0.82, 9.7,
  { colW: [2.2, 3.75, 3.75], fontSize: 9.5, rowH: 0.31 }
);

// =========================== SUMMARY SLIDE ===========================
s = pres.addSlide();
s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.darkBg } });
s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.06, fill: { color: C.accent } });
s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 5.56, w: 10, h: 0.065, fill: { color: C.accent } });
s.addText("SUMMARY", { x: 0.3, y: 0.15, w: 9.4, h: 0.5, fontSize: 28, bold: true, color: C.white, align: "center", fontFace: "Calibri" });
const summaryItems = [
  ["HEAT INJURIES", "Cramps → Exhaustion → Stroke; Local: Burns/Scalds/Chemical/Electrical/Radiation"],
  ["BURNS", "4 Degrees; Rule of Nines; Minor/Moderate/Major classification"],
  ["PM BURNS", "Pugilistic attitude; Heat hematoma; Soot in airways; COHb; Vital reactions"],
  ["HEAT vs EDH", "Heat: PM, honeycomb, no fracture, dura attached | EDH: AM, trauma, MMA tear, dura stripped"],
  ["AM vs PM BURNS", "AM: vital reaction, COHb, protein in blisters, soot below glottis | PM: opposite"],
  ["DRY/MOIST/CHEM", "Dry: charring, pattern; Scald: blisters, child abuse; Chemical: acid coag/alkali liquefaction"],
  ["EXPLOSION", "Primary/Secondary/Tertiary/Quaternary; Blast lung; TM rupture; Fragmentation"],
  ["COLD", "Hypothermia <35°C; Frostbite 4 grades; Wischnewski spots; Paradoxical undressing"],
  ["ELECTRICAL", "Current kills; VF at 100mA; Joule burns; Entry/exit wounds; Metallization"],
  ["LIGHTNING", "Lichtenberg figures; Magnetization; Keraunoparalysis; Clothing shredded"],
];
summaryItems.forEach((item, i) => {
  const row = Math.floor(i / 2);
  const col = i % 2;
  s.addShape(pres.shapes.RECTANGLE, { x: 0.2 + col * 4.9, y: 0.75 + row * 0.48, w: 4.7, h: 0.42, fill: { color: "0D1B2A" } });
  s.addText([
    { text: item[0] + ": ", options: { bold: true, color: C.gold, fontSize: 10.5 } },
    { text: item[1], options: { color: C.light, fontSize: 10 } }
  ], { x: 0.25 + col * 4.9, y: 0.78 + row * 0.48, w: 4.6, h: 0.36, fontFace: "Calibri" });
});
s.addText("Reference: Reddy's The Essentials of Forensic Medicine & Toxicology, 34th Ed. | Gautam Vishwas - Forensic Medicine & Toxicology", {
  x: 0.3, y: 5.3, w: 9.4, h: 0.2, fontSize: 9, color: "888888", align: "center", fontFace: "Calibri"
});

// Write file
const outputPath = "/home/daytona/workspace/forensic-medicine-ppt/Thermal_Environmental_Injuries_FMT.pptx";
pres.writeFile({ fileName: outputPath }).then(() => {
  console.log("SUCCESS: File written to", outputPath);
}).catch(err => {
  console.error("ERROR:", err);
  process.exit(1);
});
Your credits are exhausted. Your daily credits reset tomorrow, or you can purchase a top-up for more.
This is a shared conversation. Sign in to Orris to start your own chat.