Hey. I'm planning to do a presentation in topic Diabetic foot ulcer.

Asking for Preferences
Reading File
Reading File
Reading File
Finding Sources
Searching PubMed

"diabetic foot ulcer" AND management

Reading File
Finding Sources
Finding Sources
Reading File
Reading File
Reading File
Reading File
Reading File
Reading File
Running Command

ls -la /home/daytona/workspace/ && mkdir -p /home/daytona/workspace/dfu-presenta…

Writing File

~/dfu-presentation/create_dfu_pptx.js

const pptxgen = require("pptxgenjs");

const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.author = "Orris AI";
pres.title = "Diabetic Foot Ulcer";

// === COLOR PALETTE ===
// Deep navy dominates, crimson accent, white/light grey text, dark teal sections
const C = {
  navy:     "0D1B2A",
  navyMid:  "1A3050",
  teal:     "1B6CA8",
  tealDark: "144E7A",
  crimson:  "C0392B",
  amber:    "E67E22",
  green:    "1E8449",
  white:    "FFFFFF",
  offWhite: "ECF0F1",
  light:    "BDC3C7",
  grey:     "7F8C8D",
  dark:     "0D1B2A",
  cardBg:   "142030",
};

// ============================
// HELPER: Title slide header bar
// ============================
function addSectionHeader(slide, title, subtitle) {
  // Full dark background
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.navy } });
  // Accent bar left
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.12, h: 5.625, fill: { color: C.crimson } });
  // Large title
  slide.addText(title, {
    x: 0.4, y: 1.8, w: 9.2, h: 1.4,
    fontSize: 46, bold: true, color: C.white, fontFace: "Calibri",
    align: "center", valign: "middle"
  });
  if (subtitle) {
    slide.addText(subtitle, {
      x: 0.4, y: 3.3, w: 9.2, h: 0.7,
      fontSize: 22, color: C.light, fontFace: "Calibri",
      align: "center"
    });
  }
}

// ============================
// HELPER: Standard content slide
// ============================
function addContentSlide(title, bullets, opts = {}) {
  const slide = pres.addSlide();
  // Background
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.navyMid } });
  // Top bar
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.7, fill: { color: C.tealDark } });
  // Accent stripe
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.1, h: 5.625, fill: { color: C.crimson } });
  // Title
  slide.addText(title, {
    x: 0.25, y: 0.05, w: 9.5, h: 0.62,
    fontSize: 22, bold: true, color: C.white, fontFace: "Calibri",
    valign: "middle", margin: 0
  });
  // Content
  const items = bullets.map((b, i) => {
    if (typeof b === "string") {
      return { text: b, options: { bullet: { type: "bullet", indent: 15 }, color: C.offWhite, fontSize: 16, fontFace: "Calibri", breakLine: i < bullets.length - 1, paraSpaceBefore: 4 } };
    }
    // object {text, sub} for sub-bullets
    if (b.sub) {
      return [
        { text: b.text, options: { bullet: { type: "bullet", indent: 15 }, color: C.offWhite, fontSize: 16, bold: true, fontFace: "Calibri", breakLine: true, paraSpaceBefore: 6 } },
        ...b.sub.map((s, si) => ({ text: s, options: { bullet: { type: "bullet", indent: 40 }, color: C.light, fontSize: 14, fontFace: "Calibri", breakLine: si < b.sub.length - 1, paraSpaceBefore: 2 } }))
      ];
    }
    return { text: b.text, options: { bullet: { type: "bullet", indent: 15 }, color: b.color || C.offWhite, fontSize: b.size || 16, bold: b.bold || false, fontFace: "Calibri", breakLine: i < bullets.length - 1, paraSpaceBefore: 4 } };
  }).flat();

  slide.addText(items, {
    x: 0.25, y: 0.85, w: opts.w || 9.3, h: opts.h || 4.5,
    valign: "top"
  });
  return slide;
}

// ============================
// HELPER: Two-column slide
// ============================
function addTwoColSlide(title, leftTitle, leftItems, rightTitle, rightItems) {
  const slide = pres.addSlide();
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.navyMid } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.7, fill: { color: C.tealDark } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.1, h: 5.625, fill: { color: C.crimson } });
  slide.addText(title, { x: 0.25, y: 0.05, w: 9.5, h: 0.62, fontSize: 22, bold: true, color: C.white, fontFace: "Calibri", valign: "middle", margin: 0 });

  // Left column header
  slide.addShape(pres.ShapeType.rect, { x: 0.25, y: 0.8, w: 4.5, h: 0.38, fill: { color: C.teal }, line: { color: C.teal } });
  slide.addText(leftTitle, { x: 0.25, y: 0.8, w: 4.5, h: 0.38, fontSize: 14, bold: true, color: C.white, fontFace: "Calibri", align: "center", valign: "middle" });

  // Right column header
  slide.addShape(pres.ShapeType.rect, { x: 5.0, y: 0.8, w: 4.75, h: 0.38, fill: { color: C.crimson }, line: { color: C.crimson } });
  slide.addText(rightTitle, { x: 5.0, y: 0.8, w: 4.75, h: 0.38, fontSize: 14, bold: true, color: C.white, fontFace: "Calibri", align: "center", valign: "middle" });

  // Divider
  slide.addShape(pres.ShapeType.line, { x: 4.92, y: 0.8, w: 0, h: 4.7, line: { color: C.grey, width: 1, dashType: "dash" } });

  const makeItems = (arr) => arr.map((b, i) => ({
    text: b, options: { bullet: { type: "bullet", indent: 12 }, color: C.offWhite, fontSize: 14, fontFace: "Calibri", breakLine: i < arr.length - 1, paraSpaceBefore: 5 }
  }));

  slide.addText(makeItems(leftItems), { x: 0.25, y: 1.25, w: 4.55, h: 4.1, valign: "top" });
  slide.addText(makeItems(rightItems), { x: 5.05, y: 1.25, w: 4.65, h: 4.1, valign: "top" });
  return slide;
}

// ============================
// HELPER: Card grid slide (2x2 or similar)
// ============================
function addCardSlide(title, cards) {
  const slide = pres.addSlide();
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.navy } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.7, fill: { color: C.tealDark } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.1, h: 5.625, fill: { color: C.crimson } });
  slide.addText(title, { x: 0.25, y: 0.05, w: 9.5, h: 0.62, fontSize: 22, bold: true, color: C.white, fontFace: "Calibri", valign: "middle", margin: 0 });

  // Up to 4 cards in 2x2 grid
  const positions = [
    { x: 0.2,  y: 0.85 },
    { x: 5.15, y: 0.85 },
    { x: 0.2,  y: 3.15 },
    { x: 5.15, y: 3.15 },
  ];
  const colors = [C.teal, C.crimson, C.green, "5D6D7E"];

  cards.slice(0, 4).forEach((card, i) => {
    const pos = positions[i];
    slide.addShape(pres.ShapeType.rect, { x: pos.x, y: pos.y, w: 4.75, h: 2.15, fill: { color: colors[i] }, line: { color: colors[i] } });
    slide.addText(card.title, { x: pos.x + 0.15, y: pos.y + 0.1, w: 4.45, h: 0.38, fontSize: 15, bold: true, color: C.white, fontFace: "Calibri" });
    const items = card.bullets.map((b, bi) => ({
      text: b, options: { bullet: { type: "bullet", indent: 10 }, color: C.offWhite, fontSize: 12, fontFace: "Calibri", breakLine: bi < card.bullets.length - 1, paraSpaceBefore: 2 }
    }));
    slide.addText(items, { x: pos.x + 0.1, y: pos.y + 0.52, w: 4.55, h: 1.55, valign: "top" });
  });
  return slide;
}

// ============================
// SLIDE 1: Title
// ============================
{
  const slide = pres.addSlide();
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.navy } });
  // Decorative top gradient-like bars
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.08, fill: { color: C.crimson } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 5.545, w: 10, h: 0.08, fill: { color: C.crimson } });
  // Big teal accent block
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 1.7, w: 10, h: 2.25, fill: { color: C.navyMid } });
  // Foot icon placeholder strip
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.5, h: 5.625, fill: { color: C.tealDark } });

  slide.addText("DIABETIC FOOT ULCER", {
    x: 0.7, y: 1.75, w: 8.8, h: 1.1,
    fontSize: 44, bold: true, color: C.white, fontFace: "Calibri",
    align: "center", charSpacing: 3
  });
  slide.addText("Pathophysiology · Classification · Diagnosis · Management", {
    x: 0.7, y: 2.88, w: 8.8, h: 0.55,
    fontSize: 18, color: C.light, fontFace: "Calibri", align: "center", italic: true
  });
  slide.addText("A Comprehensive Clinical Review", {
    x: 0.7, y: 4.2, w: 8.8, h: 0.4,
    fontSize: 14, color: C.grey, fontFace: "Calibri", align: "center"
  });
  slide.addText("Sources: Fischer's Mastery of Surgery 8e · Sabiston Textbook of Surgery · Campbell's Operative Orthopaedics 15e · Current Surgical Therapy 14e", {
    x: 0.7, y: 5.1, w: 8.8, h: 0.35,
    fontSize: 10, color: C.grey, fontFace: "Calibri", align: "center", italic: true
  });
}

// ============================
// SLIDE 2: Epidemiology & Burden
// ============================
addContentSlide("Epidemiology & Global Burden", [
  { text: "Prevalence & Incidence", bold: true, color: C.amber },
  "~537 million adults worldwide have diabetes (IDF 2021); >6.3% develop foot ulcers annually",
  "Lifetime risk of DFU in diabetic patients: 15-25%",
  "DFU precedes ~85% of all diabetes-related lower extremity amputations",
  { text: "Mortality Burden", bold: true, color: C.amber },
  "5-year mortality after DFU: ~30% — comparable to many cancers",
  "5-year mortality after major amputation: ~50-70%",
  { text: "Economic Impact", bold: true, color: C.amber },
  "US: estimated $327 billion total cost of diabetes annually",
  "Excess medical costs >$9,000 per diabetic patient per year",
  "DFU management accounts for a disproportionate share of diabetes expenditure",
]);

// ============================
// SLIDE 3: Risk Factors
// ============================
addTwoColSlide(
  "Risk Factors for Diabetic Foot Ulcer",
  "Patient-Level Factors",
  [
    "Peripheral neuropathy (loss of protective sensation)",
    "Peripheral arterial disease (PAD)",
    "Poor glycemic control (HbA1c >7%)",
    "Duration of diabetes >10 years",
    "Diabetic nephropathy / renal disease",
    "Retinopathy (marker of microvascular damage)",
    "Obesity (BMI > 30)",
    "Male sex",
    "Smoking and alcohol use",
    "Prior history of foot ulceration or amputation",
  ],
  "Foot-Level Factors",
  [
    "Foot deformities: claw foot, hammer toe, bunion",
    "Callus formation at pressure points",
    "Limited joint mobility",
    "Abnormal plantar pressure distribution",
    "Dry, cracked skin (autonomic neuropathy)",
    "Onychomycosis / nail pathology",
    "Ill-fitting footwear",
    "Inadequate foot hygiene",
    "Minor trauma (unnoticed due to neuropathy)",
  ]
);

// ============================
// SLIDE 4: Pathophysiology Overview
// ============================
addContentSlide("Pathophysiology: The Triad", [
  { text: "1. Peripheral Neuropathy (most important)", bold: true, color: C.amber },
  "Sorbitol/fructose accumulation → impaired ATPase → axonal structural breakdown",
  "Oxidative stress from mitochondrial free radical production → nerve damage",
  "Glycosylation of vasa nervorum basement membrane → ischemia → nerve fiber loss",
  "Starts with small unmyelinated fibers → progresses to larger fibers",
  { text: "2. Peripheral Arterial Disease (macrovascular)", bold: true, color: C.amber },
  "Arteriosclerosis → reduced blood flow → impaired wound healing",
  "Often multisegmental; tibial and peroneal arteries commonly affected",
  { text: "3. Foot Deformity & Abnormal Pressure", bold: true, color: C.amber },
  "Motor neuron damage → intrinsic muscle wasting → clawfoot / hammer toe",
  "Abnormal plantar pressure points → repetitive trauma → ulceration (especially great toe, 5th metatarsal head)",
]);

// ============================
// SLIDE 5: Neuropathy in Detail
// ============================
addTwoColSlide(
  "Neuropathy: Sensory, Motor & Autonomic",
  "Sensory Neuropathy",
  [
    "Loss of protective sensation (LOPS)",
    "Glove-and-stocking distribution",
    "Numbness, paresthesias, pain",
    "Unnoticed minor injuries → ulceration",
    "Assessed by 10-g Semmes-Weinstein monofilament",
    "Confirmed by: pinprick, temperature, vibration, proprioception",
  ],
  "Motor & Autonomic Neuropathy",
  [
    "Motor: intrinsic muscle wasting → deformity",
    "Clawfoot, hammer toe → abnormal pressure points",
    "Gait abnormalities: increased step width, poor balance",
    "Autonomic: decreased sweating → dry, cracked skin",
    "Skin fissuring → portal of entry for infection",
    "Arteriovenous shunting → warm foot despite ischemia",
  ]
);

// ============================
// SLIDE 6: Vascular Disease in DFU
// ============================
addContentSlide("Peripheral Arterial Disease in DFU", [
  { text: "Prevalence", bold: true, color: C.amber },
  "PAD present in 40-60% of DFU patients; frequently underdiagnosed",
  "Coexistence of neuropathy masks ischemic symptoms (painless ischemia)",
  { text: "Assessment", bold: true, color: C.amber },
  "Ankle-Brachial Index (ABI): <0.9 diagnostic of PAD; >1.3 suggests calcification (non-compressible)",
  "Toe-Brachial Index (TBI): preferred in diabetics — <0.7 abnormal",
  "Transcutaneous oxygen pressure (TcPO2): <30 mmHg indicates critical ischemia",
  "CT Angiography / MR Angiography: for revascularization planning",
  { text: "WiFi Classification — Ischemia Component", bold: true, color: C.amber },
  "Grade 0: ABI ≥0.8, TBI ≥0.6 | Grade 1: ABI 0.6-0.79, TBI 0.4-0.59",
  "Grade 2: ABI 0.4-0.59, TBI 0.25-0.39 | Grade 3: ABI <0.4, TBI <0.25",
]);

// ============================
// SLIDE 7: Classification - Wagner
// ============================
{
  const slide = pres.addSlide();
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.navyMid } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.7, fill: { color: C.tealDark } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.1, h: 5.625, fill: { color: C.crimson } });
  slide.addText("Wagner Classification System", {
    x: 0.25, y: 0.05, w: 9.5, h: 0.62, fontSize: 22, bold: true, color: C.white, fontFace: "Calibri", valign: "middle", margin: 0
  });

  const grades = [
    { grade: "Grade 0", desc: "Pre-ulcerative lesion, healed ulcer, bony deformity", color: C.green },
    { grade: "Grade 1", desc: "Superficial ulcer — skin or subcutaneous tissue only", color: "2980B9" },
    { grade: "Grade 2", desc: "Ulcer extends to tendon, capsule, or bone", color: "8E44AD" },
    { grade: "Grade 3", desc: "Deep ulcer with abscess, osteomyelitis, or joint sepsis", color: C.amber },
    { grade: "Grade 4", desc: "Forefoot gangrene (focal gangrene ± infection)", color: "E74C3C" },
    { grade: "Grade 5", desc: "Whole foot gangrene (extensive necrosis)", color: "922B21" },
  ];

  grades.forEach((g, i) => {
    const x = (i < 3) ? 0.2 : 5.2;
    const y = 0.85 + (i % 3) * 1.5;
    slide.addShape(pres.ShapeType.rect, { x, y, w: 4.65, h: 1.32, fill: { color: g.color }, line: { color: g.color } });
    slide.addText(g.grade, { x: x + 0.15, y: y + 0.08, w: 4.35, h: 0.38, fontSize: 17, bold: true, color: C.white, fontFace: "Calibri" });
    slide.addText(g.desc, { x: x + 0.15, y: y + 0.48, w: 4.35, h: 0.76, fontSize: 13, color: C.offWhite, fontFace: "Calibri", valign: "top" });
  });
}

// ============================
// SLIDE 8: University of Texas & SINBAD
// ============================
addContentSlide("University of Texas (UT) & SINBAD Classification", [
  { text: "University of Texas Classification", bold: true, color: C.amber },
  "Two dimensions: Stage (A-D) × Grade (0-3)",
  "Grade 0: pre/post-ulcer | Grade 1: superficial | Grade 2: tendon/capsule | Grade 3: bone/joint",
  "Stage A: clean wound | Stage B: infected | Stage C: ischemic | Stage D: infected + ischemic",
  "Amputation and healing outcomes worsen from stage A→D",
  { text: "SINBAD Score (0-6)", bold: true, color: C.amber },
  "S - Site: forefoot (0) vs. midfoot/hindfoot (1)",
  "I - Ischemia: pedal flow intact (0) vs. reduced (1)",
  "N - Neuropathy: protective sensation present (0) vs. absent (1)",
  "B - Bacterial infection: none (0) vs. present (1)",
  "A - Area: <1 cm² (0) vs. ≥1 cm² (1)",
  "D - Depth: skin/subcutaneous (0) vs. tendon/deeper (1)",
  "SINBAD score ≥3 predicts poor healing outcomes",
]);

// ============================
// SLIDE 9: WiFi Classification
// ============================
addContentSlide("WIfI Classification System (Society for Vascular Surgery)", [
  { text: "Components: Wound + Ischemia + foot Infection", bold: true, color: C.amber },
  "Each component graded 0 (none) to 3 (severe) → 64 possible permutations",
  "Predicts 1-year risk of major limb amputation and benefit of revascularization",
  "Validated for all lower extremity threatened limb, including DFU",
  "Advanced WIfI stage correlates with: prolonged healing, decreased 1-year amputation-free survival",
  { text: "Wound Grade", bold: true, color: C.amber },
  "W0: no ulcer/gangrene | W1: small shallow ulcer | W2: deeper ulcer, exposed bone/tendon | W3: extensive deep ulcer or gangrene",
  { text: "Ischemia Grade", bold: true, color: C.amber },
  "I0: ABI ≥0.8 (no ischemia) | I1-3: progressive reduction in ABI/TBI with I3 = critical ischemia",
  { text: "foot Infection Grade (IDSA/IWGDF based)", bold: true, color: C.amber },
  "fI0: no infection | fI1: mild (skin only) | fI2: moderate (deep tissue) | fI3: severe (systemic signs)",
]);

// ============================
// SLIDE 10: Clinical Assessment
// ============================
addContentSlide("Clinical Evaluation: A Three-Level Approach", [
  { text: "Level 1: The Patient as a Whole", bold: true, color: C.amber },
  "Glycemic control: HbA1c, fasting glucose — optimize preoperatively and throughout",
  "Cardiovascular risk: hypertension, dyslipidemia, smoking cessation",
  "Nutritional status: albumin, prealbumin — critical for wound healing",
  "Immunological status: leukocyte count, immune function",
  { text: "Level 2: The Affected Limb", bold: true, color: C.amber },
  "Neuropathy: 10-g monofilament + vibration tuning fork (128 Hz) + pinprick + temperature",
  "Vascularity: pulses (dorsalis pedis, posterior tibial), ABI, TBI, duplex ultrasound",
  "Structural deformity: hallux valgus, hammer/claw toes, Charcot neuroarthropathy",
  { text: "Level 3: The Wound", bold: true, color: C.amber },
  "Infection: purulence or ≥2 signs of inflammation (erythema, warmth, tenderness, pain, swelling)",
  "Depth: superficial vs. deep — probe-to-bone test (specificity ~89% for osteomyelitis)",
  "Osteomyelitis: positive probe-to-bone, elevated ESR/CRP/WBC, MRI (most sensitive)",
]);

// ============================
// SLIDE 11: Wound Assessment & Probe-to-Bone
// ============================
addContentSlide("Wound Examination: Key Steps", [
  { text: "Initial Callus Debridement", bold: true, color: C.amber },
  "Overriding callus obscures the wound — always debride before assessment",
  "Callus increases underlying tissue pressure and blocks wound edge epithelialization",
  { text: "Wound Characteristics", bold: true, color: C.amber },
  "Location: plantar forefoot (metatarsal heads), hallux, heel (different etiologies and prognosis)",
  "Size (area and depth), shape, undermining, sinus tracts",
  "Wound bed: granulation, slough, eschar, biofilm",
  "Surrounding skin: maceration, callus, erythema, induration",
  { text: "Probe-to-Bone (PTB) Test", bold: true, color: C.amber },
  "Sterile stainless-steel probe to wound depth — 'click' on striking bone = positive",
  "Positive PTB has sensitivity ~66%, specificity ~85% for osteomyelitis",
  "Recurrent or deepening ulcers should raise high suspicion for osteomyelitis",
  { text: "MRI for Osteomyelitis", bold: true, color: C.amber },
  "Most sensitive modality (sensitivity ~90%, specificity ~80%)",
  "Gold standard short of bone biopsy — guides surgical planning",
]);

// ============================
// SLIDE 12: Diagnosing Infection (IDSA/IWGDF)
// ============================
{
  const slide = pres.addSlide();
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.navyMid } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.7, fill: { color: C.tealDark } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.1, h: 5.625, fill: { color: C.crimson } });
  slide.addText("IDSA/IWGDF Infection Severity Classification", {
    x: 0.25, y: 0.05, w: 9.5, h: 0.62, fontSize: 22, bold: true, color: C.white, fontFace: "Calibri", valign: "middle", margin: 0
  });

  const rows = [
    { sev: "Uninfected", criteria: "No signs or symptoms of infection", idsa: "Grade 1", mgmt: "No antibiotics; wound care", color: C.green },
    { sev: "Mild", criteria: "≥2 signs of inflammation; erythema <2 cm from wound; superficial only", idsa: "Grade 2", mgmt: "Oral antibiotics targeting S. aureus/Streptococci", color: "2980B9" },
    { sev: "Moderate", criteria: "Deeper infection (tendon, joint, bone, fascia) OR erythema >2 cm from wound", idsa: "Grade 3", mgmt: "IV/oral antibiotics; surgical evaluation", color: C.amber },
    { sev: "Severe", criteria: "Any diabetic foot infection with systemic signs (fever, leukocytosis, hemodynamic instability)", idsa: "Grade 4", mgmt: "IV antibiotics; urgent surgical debridement; hospitalize", color: C.crimson },
  ];

  rows.forEach((r, i) => {
    const y = 0.82 + i * 1.15;
    slide.addShape(pres.ShapeType.rect, { x: 0.15, y, w: 1.2, h: 1.0, fill: { color: r.color } });
    slide.addText(r.sev + "\n" + r.idsa, { x: 0.15, y, w: 1.2, h: 1.0, fontSize: 12, bold: true, color: C.white, fontFace: "Calibri", align: "center", valign: "middle" });
    slide.addText(r.criteria, { x: 1.42, y: y + 0.05, w: 4.5, h: 0.9, fontSize: 12, color: C.offWhite, fontFace: "Calibri", valign: "top" });
    slide.addText(r.mgmt, { x: 6.0, y: y + 0.05, w: 3.85, h: 0.9, fontSize: 12, color: C.offWhite, fontFace: "Calibri", valign: "top" });
  });
  slide.addText("Criteria", { x: 1.42, y: 0.73, w: 4.5, h: 0.25, fontSize: 11, bold: true, color: C.light, fontFace: "Calibri" });
  slide.addText("Management Approach", { x: 6.0, y: 0.73, w: 3.85, h: 0.25, fontSize: 11, bold: true, color: C.light, fontFace: "Calibri" });
}

// ============================
// SLIDE 13: Microbiology & Antibiotics
// ============================
addTwoColSlide(
  "Microbiology & Antibiotic Therapy",
  "Common Pathogens",
  [
    "MILD: Gram-positive cocci dominate",
    "  - S. aureus (including MRSA)",
    "  - Beta-hemolytic Streptococci",
    "MODERATE-SEVERE: Polymicrobial",
    "  - Gram-negative: Pseudomonas, Enterobacteriaceae",
    "  - Anaerobes (in necrotic, ischemic wounds)",
    "MRSA risk factors: prior hospitalization, prior antibiotic use, nasal carriage",
    "Deep cultures via unbroken skin or bone biopsy preferred",
    "Surface swabs NOT recommended (poor specificity)",
  ],
  "Antibiotic Selection",
  [
    "Mild: oral anti-staph/strep",
    "  - Amoxicillin-clavulanate",
    "  - Clindamycin (if penicillin-allergic)",
    "  - TMP-SMX or doxycycline (for MRSA coverage)",
    "Moderate: IV ± oral",
    "  - Piperacillin-tazobactam",
    "  - Cefoxitin, ertapenem",
    "Severe / MRSA: IV",
    "  - Vancomycin + piperacillin-tazobactam",
    "  - Daptomycin (if vancomycin-resistant)",
    "Duration: until signs of infection resolve (2-4 weeks for soft tissue; 4-6 wks for osteomyelitis)",
  ]
);

// ============================
// SLIDE 14: Off-loading
// ============================
addContentSlide("Off-loading: The Cornerstone of DFU Management", [
  { text: "Why Off-loading?", bold: true, color: C.amber },
  "Neuropathic ulcers result from repeated mechanical trauma at pressure points",
  "Continued weight-bearing prevents healing even with best wound care",
  "Reduces plantar pressure → removes primary etiology for neuropathic DFU",
  { text: "Total Contact Cast (TCC) — Gold Standard", bold: true, color: C.amber },
  "Distributes pressure evenly across entire plantar surface",
  "Non-removable = enforced compliance (major advantage over removable devices)",
  "Heals ~90% of plantar neuropathic ulcers within 6-8 weeks",
  "Contraindications: severe ischemia, active deep infection, uncontrolled skin maceration",
  { text: "Alternative Off-loading Devices", bold: true, color: C.amber },
  "Removable cast walker (RCW) — effective if compliant; renders TCC equivalent when made irremovable",
  "Forefoot-relief footwear (post-op shoe) — for hindfoot ulcers only",
  "Pressure-relieving insoles — Oxford leather shoes with replaceable insoles (every 4-6 months) for prevention",
  "Surgical correction of deformity: Achilles tendon lengthening, metatarsal head resection — reduces recurrence",
]);

// ============================
// SLIDE 15: Wound Care
// ============================
addCardSlide("Wound Care Principles", [
  {
    title: "Debridement",
    bullets: [
      "Sharp/surgical: removes necrotic tissue, stimulates wound bed",
      "Enzymatic: collagenase for sloughy wounds",
      "Wet-to-dry dressings (classic nonsurgical)",
      "Maggot therapy: selective, not faster than standard"
    ]
  },
  {
    title: "Dressings",
    bullets: [
      "Moist environment to promote re-epithelialization",
      "Control exudate, prevent maceration",
      "Saline/Vaseline gauze: low cost, daily or BID",
      "Silver-impregnated: antimicrobial properties",
      "Foam/hydrocolloid: for moderate exudate"
    ]
  },
  {
    title: "Negative Pressure Wound Therapy (NPWT)",
    bullets: [
      "Vacuum sponge 2-3x/week changes",
      "Debrides superficial tissue, reduces bacterial load",
      "Promotes angiogenesis and granulation tissue",
      "Meta-analysis 2025 (Angulo et al.): faster wound closure vs standard care",
      "Infusion VAC: instills antibiotics/saline"
    ]
  },
  {
    title: "Growth Factors & Advanced Therapies",
    bullets: [
      "Topical PDGF (becaplermin): for wounds failing standard therapy",
      "Platelet-rich plasma (PRP): promotes healing via growth factors",
      "Hyperbaric oxygen therapy (HBOT): for well-perfused wounds",
      "Increases tissue O2, promotes angiogenesis",
      "Photodynamic therapy: emerging (meta-analysis Hou et al. 2024)"
    ]
  }
]);

// ============================
// SLIDE 16: Revascularization
// ============================
addContentSlide("Revascularization in Ischemic DFU", [
  { text: "Indications", bold: true, color: C.amber },
  "ABI <0.6 or TcPO2 <30 mmHg with non-healing wound",
  "Chronic limb-threatening ischemia (CLTI) — WIfI ischemia grade 2-3",
  "Failed conservative wound management despite adequate off-loading and infection control",
  { text: "Pre-operative Imaging", bold: true, color: C.amber },
  "CT angiography: preferred — detailed runoff vessel assessment",
  "MR angiography: alternative (avoids radiation, good soft tissue detail)",
  "Duplex ultrasound: first-line non-invasive; operator dependent",
  { text: "Revascularization Options", bold: true, color: C.amber },
  "Endovascular (PTA ± stenting): preferred for tibial/peroneal disease; lower morbidity",
  "Bypass surgery (vein preferred): better long-term patency for longer occlusions",
  "Hybrid procedures: combination endovascular + surgical",
  { text: "Outcomes", bold: true, color: C.amber },
  "Successful revascularization significantly reduces amputation rates",
  "WIfI ischemia grade guides likelihood of benefit from revascularization",
]);

// ============================
// SLIDE 17: Surgical Management & Amputation
// ============================
addTwoColSlide(
  "Surgical Management",
  "Debridement & Minor Procedures",
  [
    "Surgical debridement: grossly infected or necrotic wounds",
    "Metatarsal head resection: for grade 1 forefoot ulcers under bony prominences",
    "Achilles tendon lengthening: reduces forefoot plantar pressure, decreases recurrence",
    "Sesamoidectomy, condylectomy: for focal bony prominences",
    "Probe-to-bone positive → evaluate for surgical bone excision",
    "Bone biopsy: gold standard for osteomyelitis diagnosis",
  ],
  "Amputation Levels",
  [
    "Digital/ray amputation: toe or ray with metatarsal segment",
    "Transmetatarsal amputation (TMA): mid-forefoot; good function if viable",
    "Syme amputation: through ankle; preserves limb length",
    "Below-knee (BK) amputation: most common major amputation",
    "Above-knee (AK) amputation: for extensive proximal disease",
    "5-year mortality post-major amputation: 50-70%",
    "Multidisciplinary team essential for rehabilitation planning",
  ]
);

// ============================
// SLIDE 18: Osteomyelitis Management
// ============================
addContentSlide("Osteomyelitis in Diabetic Foot", [
  { text: "Diagnosis", bold: true, color: C.amber },
  "Clinical suspicion: deepening ulcer, visible/palpable bone, sinus tract, chronic non-healing wound",
  "Probe-to-bone test: positive test has high predictive value",
  "Lab markers: ESR >70 mm/hr, CRP elevation (non-specific but supportive)",
  "MRI: best imaging modality (sensitivity ~90%, specificity ~80%)",
  "Bone biopsy with culture: definitive diagnosis — guides targeted antibiotic therapy",
  { text: "Treatment: Medical vs. Surgical", bold: true, color: C.amber },
  "Conservative: prolonged antibiotics (6-12 weeks) for non-surgical candidates",
  "Surgical: preferred when possible — resect involved bone → shorter antibiotic course",
  "Avoid surface swab cultures — unreliable, should not guide antibiotic choice",
  { text: "Antibiotic Duration", bold: true, color: C.amber },
  "Post-surgical with clear margins: 2-5 days",
  "Residual infected bone: 4-6 weeks total",
  "No surgery: 3-6 months (controversial, evidence limited)",
]);

// ============================
// SLIDE 19: Charcot Neuroarthropathy
// ============================
addContentSlide("Charcot Neuroarthropathy (Charcot Foot)", [
  { text: "Definition", bold: true, color: C.amber },
  "Progressive destruction of bone, joints, soft tissue of the foot/ankle in neuropathic patients",
  "Results from repetitive trauma on insensate foot + autonomic neuropathy (increased blood flow → bone resorption)",
  { text: "Clinical Presentation", bold: true, color: C.amber },
  "Warm, swollen, erythematous foot — often mistaken for infection or DVT",
  "Painless (due to neuropathy) — key differentiating feature",
  "Rocker-bottom deformity: midfoot collapse (classic late finding)",
  "Temperature difference >2°C between feet highly suggestive",
  { text: "Diagnosis", bold: true, color: C.amber },
  "X-ray: fragmentation, dislocation, sclerosis, periarticular new bone",
  "MRI: early marrow edema before radiographic changes",
  "Bone scan: increased uptake (not specific)",
  { text: "Management", bold: true, color: C.amber },
  "Acute phase: strict non-weight-bearing — TCC until skin temperature normalizes",
  "Chronic phase: accommodative footwear with custom insoles",
  "Surgery: for unstable deformity causing recurrent ulceration (arthrodesis, exostectomy)",
]);

// ============================
// SLIDE 20: Multidisciplinary Team
// ============================
addCardSlide("Multidisciplinary Team Approach", [
  {
    title: "Endocrinology / Diabetologist",
    bullets: [
      "Optimize glycemic control (HbA1c target <7-8%)",
      "Adjust insulin regimens",
      "Manage other diabetes complications",
      "Long-term diabetes care coordination"
    ]
  },
  {
    title: "Vascular Surgery / Interventional Radiology",
    bullets: [
      "ABI/TBI assessment and vascular imaging",
      "Endovascular or surgical revascularization",
      "CLTI management and limb salvage",
      "WIfI-guided treatment planning"
    ]
  },
  {
    title: "Podiatry / Orthopaedics",
    bullets: [
      "Wound debridement and local care",
      "Off-loading prescription (TCC, footwear)",
      "Surgical correction of deformities",
      "Management of Charcot neuroarthropathy"
    ]
  },
  {
    title: "Infectious Disease / Microbiology",
    bullets: [
      "MRSA screening and management",
      "Antibiotic selection and stewardship",
      "Bone biopsy interpretation",
      "Prolonged antibiotic therapy monitoring"
    ]
  }
]);

// ============================
// SLIDE 21: Prevention
// ============================
addContentSlide("Prevention: Reducing DFU Risk", [
  { text: "Patient Education (ALL diabetic patients)", bold: true, color: C.amber },
  "Daily foot inspection — use mirror or caregiver for plantar surface",
  "Wash feet in lukewarm water, dry thoroughly especially between toes",
  "Never walk barefoot; inspect shoes before wearing",
  "Moisturize (not between toes); trim nails straight across",
  { text: "Footwear & Pressure Relief", bold: true, color: C.amber },
  "Oxford leather shoes with laces; avoid narrow toe box",
  "Pressure-relieving insoles: replace every 4-6 months for high-risk patients",
  "Therapeutic footwear: Medicare covers for high-risk diabetics",
  { text: "Surveillance by Risk Category", bold: true, color: C.amber },
  "Low risk (no neuropathy, no PAD): annual foot exam by provider",
  "Moderate risk (neuropathy OR PAD): exam every 6 months",
  "High risk (neuropathy + PAD or deformity): exam every 3-4 months",
  "Very high risk (prior ulcer or amputation): exam every 1-3 months",
  { text: "Glycemic & Cardiovascular Optimization", bold: true, color: C.amber },
  "HbA1c <7% → significantly reduces microvascular complications including neuropathy",
  "Blood pressure control, statins, smoking cessation",
]);

// ============================
// SLIDE 22: Emerging & Advanced Therapies
// ============================
addContentSlide("Emerging Therapies in DFU Management", [
  { text: "Bioengineered Skin Substitutes", bold: true, color: C.amber },
  "Acellular dermal matrices, bilayer skin substitutes (Apligraf, Dermagraft)",
  "Provide scaffold for wound healing; FDA-approved for DFU",
  { text: "Photodynamic Therapy (PDT)", bold: true, color: C.amber },
  "Uses photosensitizing agents + light to kill bacteria and stimulate healing",
  "2024 meta-analysis (Hou et al.): PDT significantly improves DFU healing rates",
  { text: "Low-Level Laser Therapy (LLLT)", bold: true, color: C.amber },
  "Biostimulatory effects on fibroblasts and keratinocytes",
  "2025 umbrella review (Miranda et al.): modest evidence for adjunct use",
  { text: "Extracorporeal Shockwave Therapy (ESWT)", bold: true, color: C.amber },
  "Promotes angiogenesis, reduces biofilm, stimulates growth factors",
  "2025 meta-analysis (Ruiz-Munoz et al.): significant improvement in wound healing in chronic DFU",
  { text: "Stem Cell Therapy & Growth Factors", bold: true, color: C.amber },
  "Mesenchymal stem cells: promote angiogenesis and wound healing (early-phase trials)",
  "EGF, FGF, VEGF topical formulations — under active investigation",
  "Autologous PRP: emerging evidence supports use as adjunct therapy",
]);

// ============================
// SLIDE 23: Key Evidence Summary
// ============================
addContentSlide("Key Evidence: Recent Systematic Reviews (2023-2025)", [
  { text: "Off-loading", bold: true, color: C.amber },
  "TCC remains gold standard — superior healing rates vs. removable devices (Cochrane evidence)",
  { text: "NPWT (Negative Pressure Wound Therapy)", bold: true, color: C.amber },
  "Angulo et al. 2025 (Meta-analysis): NPWT superior to standard care in wound healing and closure in DFU",
  { text: "Photodynamic Therapy", bold: true, color: C.amber },
  "Hou et al. 2024 (Meta-analysis, PMID 38866070): PDT significantly improves DFU outcomes",
  { text: "Low-Level Laser Therapy", bold: true, color: C.amber },
  "Miranda et al. 2025 (Umbrella review, PMID 39982518): moderate evidence for adjunct LLLT",
  { text: "Extracorporeal Shockwave Therapy", bold: true, color: C.amber },
  "Ruiz-Munoz et al. 2025 (Meta-analysis, PMID 41133500): ESWT effective for chronic DFU",
  { text: "Risk Factor Meta-analysis", bold: true, color: C.amber },
  "Tang et al. 2024 (Systematic Review, PMID 36740805): neuropathy, PAD, glycemic control = strongest modifiable risk factors",
  { text: "Classification & Outcomes", bold: true, color: C.amber },
  "WIfI classification validated as best predictor of 1-year amputation risk and revascularization benefit",
]);

// ============================
// SLIDE 24: Summary & Take-Home Points
// ============================
{
  const slide = pres.addSlide();
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.navy } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.08, fill: { color: C.crimson } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 5.545, w: 10, h: 0.08, fill: { color: C.crimson } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.5, h: 5.625, fill: { color: C.tealDark } });

  slide.addText("Key Take-Home Points", {
    x: 0.7, y: 0.15, w: 9.0, h: 0.6,
    fontSize: 26, bold: true, color: C.white, fontFace: "Calibri", align: "center"
  });

  const points = [
    "DFU = triad of neuropathy + PAD + mechanical deformity — address all three",
    "Assess at three levels: patient (glycemia), limb (vascular/neuro), wound (infection/depth)",
    "WIfI classification best predicts amputation risk and need for revascularization",
    "Probe-to-bone + MRI for osteomyelitis; bone biopsy for definitive microbiology",
    "Off-loading (TCC) is the single most important treatment for neuropathic DFU",
    "Infection severity guides antibiotic route; avoid swab cultures — use deep/bone cultures",
    "Revascularize before wound closure in ischemic wounds (ABI <0.6 / TcPO2 <30 mmHg)",
    "Multidisciplinary team (endocrine, vascular, podiatry, ID) improves limb salvage rates",
    "5-year mortality post-DFU rivals many cancers — aggressive management is warranted",
    "Prevention: structured foot care education + appropriate footwear + glycemic control",
  ];

  const items = points.map((p, i) => ({
    text: `${i + 1}.  ${p}`,
    options: { bullet: false, color: i % 2 === 0 ? C.offWhite : C.light, fontSize: 13.5, fontFace: "Calibri", breakLine: i < points.length - 1, paraSpaceBefore: 5 }
  }));

  slide.addText(items, { x: 0.7, y: 0.85, w: 9.1, h: 4.6, valign: "top" });
}

// ============================
// Write file
// ============================
pres.writeFile({ fileName: "/home/daytona/workspace/dfu-presentation/Diabetic_Foot_Ulcer.pptx" })
  .then(() => console.log("✅ Presentation saved!"))
  .catch(err => console.error("❌ Error:", err));
Running Command

cd /home/daytona/workspace/dfu-presentation && node create_dfu_pptx.js

Running Command

ls -lh /home/daytona/workspace/dfu-presentation/

Your presentation is ready! Here's the download link:

Diabetic Foot Ulcer

Presentation · PPTX


What's inside (24 slides):
#Slide
1Title slide
2Epidemiology & Global Burden
3Risk Factors (two-column)
4Pathophysiology: The Triad
5Neuropathy: Sensory, Motor & Autonomic
6Peripheral Arterial Disease in DFU
7Wagner Classification (colour-coded grade cards)
8University of Texas & SINBAD Classification
9WIfI Classification System
10Clinical Evaluation: Three-Level Approach
11Wound Examination & Probe-to-Bone Test
12IDSA/IWGDF Infection Severity Classification (table)
13Microbiology & Antibiotic Therapy
14Off-loading (TCC as gold standard)
15Wound Care (4-card grid: debridement, dressings, NPWT, advanced)
16Revascularization
17Surgical Management & Amputation Levels
18Osteomyelitis Management
19Charcot Neuroarthropathy
20Multidisciplinary Team (4-card grid)
21Prevention & Surveillance by Risk Category
22Emerging Therapies (PDT, LLLT, ESWT, stem cells)
23Key Evidence: Recent Meta-analyses 2023-2025
24Take-Home Points
Design: Deep navy/teal palette with crimson accents, varied layouts (card grids, two-column, table-style, bullet slides) for visual interest throughout.
Sources used: Fischer's Mastery of Surgery 8e, Sabiston Textbook of Surgery, Campbell's Operative Orthopaedics 15e (2026), Current Surgical Therapy 14e, Textbook of Family Medicine 9e, and 4 recent PubMed meta-analyses (2024-2025).

How to download ?

Simply click the link in my previous message:

Diabetic Foot Ulcer

Presentation · PPTX

Clicking it will download the .pptx file directly to your device. You can then open it in Microsoft PowerPoint, Google Slides (File → Import), or LibreOffice Impress.
If the link doesn't work on your end, let me know what device/browser you're using and I'll help troubleshoot.

One plus and chrome

On your OnePlus phone with Chrome, here's what to do:
  1. Tap the link

    Diabetic Foot Ulcer

    Presentation · PPTX

  2. Chrome will show a download bar at the bottom of the screen — tap it to open, or find the file in your Downloads folder (Files app → Downloads)
  3. Open the .pptx file with:
    • WPS Office (most common on OnePlus, usually pre-installed)
    • Microsoft PowerPoint (free from Play Store)
    • Google Slides (tap "Open with" → Slides)
If the link doesn't trigger a download:
  • Long-press the link → tap "Download link" from the menu
  • Or tap the link, then tap the 3-dot menu (top right in Chrome) → Download
The file will appear in Chrome's download history (tap the 3-dot menu → Downloads) if you can't find it.
This is a shared conversation. Sign in to Orris to start your own chat.