I have to present a seminar on abdominal abscess in department of surgery can you get the slides to be prepared and the content which must be present in it in about 30 slides

Asking for Preferences
Reading File
Reading File
Reading File
Finding Sources
Finding Sources
Reading File
Reading File
Reading File
Reading File
Finding Sources
Finding Sources
Reading File
Reading File
Reading File
Reading File
Reading File
Reading File
Reading File
Running Command

mkdir -p /home/daytona/workspace/abdominal-abscess-seminar && ls /home/daytona/workspace/abdominal-abscess-seminar/

Writing File

~/abdominal-abscess-seminar/build.js

const pptxgen = require("pptxgenjs");

const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Abdominal Abscess - Surgical Seminar";
pres.author = "Department of Surgery";

// ─── COLOUR PALETTE ───────────────────────────────────────────────
const C = {
  navy:      "1A2E4A",   // dominant dark background
  teal:      "1B7A8C",   // accent headers
  tealLight: "2A9DAF",
  gold:      "E8A838",   // highlight / accent
  white:     "FFFFFF",
  offWhite:  "F0F4F8",
  textDark:  "1A2E4A",
  textLight: "D0E8EE",
  bullet:    "E8A838",
  subtleGray:"C5D5DF",
  red:       "C0392B",
  green:     "1A7A4A",
};

// ─── HELPER: add a slide with navy bg and a top colour bar ─────────
function titleSlide(pres, heading, subText) {
  const s = pres.addSlide();
  // full bg
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:"100%", fill:{color:C.navy} });
  // accent bar
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:0.09, fill:{color:C.gold} });
  // bottom bar
  s.addShape(pres.ShapeType.rect, { x:0, y:5.52, w:"100%", h:0.1, fill:{color:C.teal} });

  s.addText(heading, {
    x:0.6, y:1.8, w:8.8, h:1.4,
    fontSize:44, bold:true, color:C.white,
    align:"center", fontFace:"Calibri",
  });
  if (subText) {
    s.addText(subText, {
      x:0.6, y:3.4, w:8.8, h:0.9,
      fontSize:18, color:C.gold, align:"center", fontFace:"Calibri",
    });
  }
  return s;
}

// ─── HELPER: content slide (title bar + bullet area) ───────────────
function contentSlide(pres, title, bullets, opts = {}) {
  const s = pres.addSlide();
  // light bg
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:"100%", fill:{color:C.offWhite} });
  // top bar
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:0.85, fill:{color:C.navy} });
  // left accent stripe
  s.addShape(pres.ShapeType.rect, { x:0, y:0.85, w:0.07, h:4.77, fill:{color:C.teal} });
  // bottom bar
  s.addShape(pres.ShapeType.rect, { x:0, y:5.52, w:"100%", h:0.1, fill:{color:C.gold} });

  s.addText(title, {
    x:0.2, y:0.08, w:9.6, h:0.7,
    fontSize:22, bold:true, color:C.white, fontFace:"Calibri",
    valign:"middle",
  });

  // Slide number hint
  if (opts.slideNum) {
    s.addText(opts.slideNum.toString(), {
      x:9.5, y:0.1, w:0.4, h:0.5,
      fontSize:10, color:C.subtleGray, align:"right",
    });
  }

  const textItems = bullets.map((b, i) => {
    if (b.startsWith("##")) {
      return { text: b.replace("##","").trim(), options: { bold:true, color:C.teal, fontSize:15, breakLine:true, bullet:false } };
    }
    if (b.startsWith(">")) {
      return { text: "    " + b.replace(">","").trim(), options: { color:"555555", fontSize:13, breakLine:true, bullet:{code:"2023", color:C.tealLight} } };
    }
    return { text: b, options: { color:C.textDark, fontSize:14, breakLine: i < bullets.length-1, bullet:{code:"25CF", color:C.gold} } };
  });

  s.addText(textItems, {
    x:0.25, y:0.92, w:9.5, h:4.5,
    fontFace:"Calibri", valign:"top", paraSpaceAfter:3,
  });

  return s;
}

// ─── HELPER: two-column slide ──────────────────────────────────────
function twoColSlide(pres, title, leftBullets, rightBullets, leftTitle="", rightTitle="") {
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:"100%", fill:{color:C.offWhite} });
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:0.85, fill:{color:C.navy} });
  s.addShape(pres.ShapeType.rect, { x:0, y:5.52, w:"100%", h:0.1, fill:{color:C.gold} });
  // divider
  s.addShape(pres.ShapeType.rect, { x:4.98, y:0.9, w:0.04, h:4.6, fill:{color:C.subtleGray} });

  s.addText(title, {
    x:0.2, y:0.08, w:9.6, h:0.7,
    fontSize:22, bold:true, color:C.white, fontFace:"Calibri", valign:"middle",
  });

  const makeItems = (arr) => arr.map((b, i) => {
    if (b.startsWith("##")) return { text:b.replace("##","").trim(), options:{bold:true,color:C.teal,fontSize:14,breakLine:true,bullet:false}};
    return { text:b, options:{color:C.textDark,fontSize:13,breakLine:i<arr.length-1,bullet:{code:"25CF",color:C.gold}}};
  });

  if (leftTitle) s.addText(leftTitle, { x:0.2, y:0.88, w:4.6, h:0.3, fontSize:13, bold:true, color:C.teal, fontFace:"Calibri" });
  s.addText(makeItems(leftBullets), { x:0.2, y:leftTitle?1.22:0.92, w:4.6, h:leftTitle?4.1:4.5, fontFace:"Calibri", valign:"top", paraSpaceAfter:3 });

  if (rightTitle) s.addText(rightTitle, { x:5.2, y:0.88, w:4.6, h:0.3, fontSize:13, bold:true, color:C.teal, fontFace:"Calibri" });
  s.addText(makeItems(rightBullets), { x:5.2, y:rightTitle?1.22:0.92, w:4.6, h:rightTitle?4.1:4.5, fontFace:"Calibri", valign:"top", paraSpaceAfter:3 });

  return s;
}

// ─── HELPER: section divider slide ─────────────────────────────────
function sectionSlide(pres, sectionNum, sectionTitle) {
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:"100%", fill:{color:C.navy} });
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:0.12, h:"100%", fill:{color:C.teal} });
  s.addShape(pres.ShapeType.rect, { x:0, y:5.52, w:"100%", h:0.1, fill:{color:C.gold} });

  s.addText(`Section ${sectionNum}`, {
    x:0.5, y:1.6, w:9, h:0.5,
    fontSize:14, color:C.gold, fontFace:"Calibri", bold:true,
  });
  s.addText(sectionTitle, {
    x:0.5, y:2.1, w:9, h:1.6,
    fontSize:36, bold:true, color:C.white, fontFace:"Calibri",
  });
  return s;
}

// ═══════════════════════════════════════════════════════════════════
//  SLIDES
// ═══════════════════════════════════════════════════════════════════

// ── SLIDE 1: Title ─────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:"100%", fill:{color:C.navy} });
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:0.12, fill:{color:C.gold} });
  s.addShape(pres.ShapeType.rect, { x:0, y:5.5, w:"100%", h:0.12, fill:{color:C.teal} });
  s.addShape(pres.ShapeType.rect, { x:4.2, y:0.12, w:0.06, h:5.38, fill:{color:C.teal} });

  s.addText("ABDOMINAL\nABSCESS", {
    x:0.4, y:0.8, w:3.7, h:3.2,
    fontSize:46, bold:true, color:C.white, fontFace:"Calibri",
    align:"left", valign:"middle",
  });
  s.addText([
    { text:"A Surgical Seminar\n", options:{ bold:true, fontSize:18, color:C.gold, breakLine:true }},
    { text:"Department of Surgery\n", options:{ fontSize:14, color:C.textLight, breakLine:true }},
    { text:"Undergraduate Medical Programme", options:{ fontSize:13, color:C.subtleGray }},
  ], { x:4.5, y:1.4, w:5.2, h:3.0, fontFace:"Calibri", valign:"middle" });

  s.addText("Bailey & Love | Sleisenger & Fordtran | Mulholland & Greenfield", {
    x:0.4, y:5.15, w:9.2, h:0.35, fontSize:9, color:C.subtleGray, fontFace:"Calibri", align:"center",
  });
}

// ── SLIDE 2: Learning Objectives ───────────────────────────────────
contentSlide(pres, "Learning Objectives", [
  "Define intra-abdominal abscess (IAA) and understand its significance",
  "Identify common causes and predisposing risk factors",
  "Describe the pathophysiology of abscess formation",
  "Classify abdominal abscesses by anatomical location",
  "Enumerate the microbiology and bacteriology",
  "Recognise the clinical features and symptoms",
  "Outline the diagnostic investigations (imaging & lab)",
  "Discuss management: antibiotics, drainage, and surgery",
  "Identify complications and prognosis",
], {slideNum:2});

// ── SLIDE 3: Section 1 divider ─────────────────────────────────────
sectionSlide(pres, "1", "Definition & Overview");

// ── SLIDE 4: Definition ────────────────────────────────────────────
contentSlide(pres, "Definition", [
  "An intra-abdominal abscess (IAA) is a localized abdominal infection",
  "Arises in the background of infectious (secondary) peritonitis",
  "Represents a walled-off collection of pus within the peritoneal cavity or a retroperitoneal space",
  "##Types by peritonitis context:",
  ">Secondary peritonitis (most common) - bowel perforation, appendicitis, diverticulitis",
  ">Tertiary peritonitis - persistent/recurrent infection >48 hrs after treatment",
  "Solid organ abscesses (liver, spleen, pancreas) are a separate category",
  "Abscess formation = the body's attempt to CONTAIN infection and prevent fatal sepsis",
], {slideNum:4});

// ── SLIDE 5: Epidemiology & Importance ─────────────────────────────
contentSlide(pres, "Epidemiology & Importance", [
  "~8% of patients develop IAA after appendicectomy",
  "10-25% of hospitalised diverticulitis patients develop diverticular abscess",
  "Major cause of postoperative morbidity and mortality in surgical patients",
  "##Why it matters:",
  ">Significant cause of prolonged hospital stay and ICU admission",
  ">Can lead to sepsis, multi-organ failure if unrecognised",
  ">Preventable in many cases with good surgical technique",
  "Prompt diagnosis and drainage reduces mortality",
], {slideNum:5});

// ── SLIDE 6: Section 2 divider ─────────────────────────────────────
sectionSlide(pres, "2", "Aetiology & Risk Factors");

// ── SLIDE 7: Causes / Aetiology ────────────────────────────────────
twoColSlide(pres,
  "Causes of Intra-Abdominal Abscess",
  [
    "##Common Surgical Causes",
    "Perforated appendicitis",
    "Perforated peptic ulcer (gastric/duodenal)",
    "Diverticulitis with perforation",
    "Anastomotic leak post-colorectal surgery",
    "Cholecystitis / biliary perforation",
    "Pancreatitis (pancreatic abscess)",
    "Abdominal trauma",
  ],
  [
    "##Other Causes",
    "Crohn disease (entero-enteric fistula)",
    "Neoplastic disease (tumour perforation)",
    "Post-operative: retained sponge (gossypiboma)",
    "Pelvic inflammatory disease (PID)",
    "Iatrogenic - post-ERCP, post-angioembolisation",
    "Haematogenous spread (rare)",
  ],
  "", ""
);

// ── SLIDE 8: Risk Factors ──────────────────────────────────────────
contentSlide(pres, "Predisposing Risk Factors", [
  "##Host (Patient) Factors:",
  "Diabetes mellitus - impaired phagocytosis",
  "Malnutrition - decreased immune function",
  "Advancing age - diminished immune reserves",
  "Pre-existing organ dysfunction (renal, hepatic)",
  "Underlying malignancy",
  "Blood transfusion (immune modulation)",
  "##Iatrogenic / Drug-related Factors:",
  "Chronic glucocorticoid use - increased IAA risk",
  "Azathioprine for IBD - increases septic complications",
  "Anti-TNF-α therapy within 12 weeks of surgery (risk not clearly elevated per recent data)",
], {slideNum:8});

// ── SLIDE 9: Section 3 divider ─────────────────────────────────────
sectionSlide(pres, "3", "Pathophysiology");

// ── SLIDE 10: Pathophysiology Part 1 ──────────────────────────────
contentSlide(pres, "Pathophysiology - How Does an Abscess Form?", [
  "Bacteria enter peritoneal cavity via bowel perforation or surgical contamination",
  "##Host Defence Response:",
  "Peritoneal macrophages phagocytose bacteria → cleared by lymphatics",
  "Lymphatic drainage via diaphragmatic pumping is highly efficient",
  "##When defences are overwhelmed:",
  "PMN leucocytes invade → splanchnic blood flow increases",
  "Protein and fluid exudate into peritoneal cavity",
  "Fibrinogen + reduced plasminogen activator → FIBRIN DEPOSITION",
  "Fibrin entraps bacteria → localization of infection",
  "Peritoneal recesses, pouches, and spaces facilitate compartmentalisation",
  "Result: walled-off abscess = CONTAINED infection",
], {slideNum:10});

// ── SLIDE 11: Pathophysiology Part 2 ──────────────────────────────
contentSlide(pres, "Pathophysiology - Adjuvant Substances & Abscess Expansion", [
  "Adjuvant substances WORSEN abscess formation:",
  ">Haemoglobin (iron) - provides bacterial nutrients",
  ">Barium / faecal particles - block lymphatic vessels",
  ">Necrotic tissue - impairs bacterial killing",
  "##Dual effect of fibrin:",
  "Beneficial: traps bacteria, prevents sepsis",
  "Harmful: impairs antibiotic penetration and phagocytic migration",
  "##Net consequence of peritoneal defences:",
  "Lymphatic clearance → can cause bacteraemia",
  "Fluid exudate → hypovolaemia + dilution of opsonins",
  "Abscess formation = 'bacterial apoptosis' - sacrifices extraintestinal bacteria to prevent host death",
], {slideNum:11});

// ── SLIDE 12: Section 4 divider ────────────────────────────────────
sectionSlide(pres, "4", "Anatomical Classification");

// ── SLIDE 13: Classification by Location ──────────────────────────
contentSlide(pres, "Anatomical Classification of Abdominal Abscesses", [
  "##INTRAPERITONEAL ABSCESSES",
  ">Subphrenic (subdiaphragmatic) - right or left",
  ">Subhepatic - between liver and transverse colon",
  ">Pelvic abscess - most common site (appendix often pelvic)",
  ">Paracolic / pericolic - alongside colon",
  ">Interloop abscess - between bowel loops",
  ">Lesser sac abscess - behind stomach",
  "##RETROPERITONEAL ABSCESSES",
  ">Perinephric abscess",
  ">Psoas abscess",
  "##SOLID ORGAN ABSCESSES",
  ">Hepatic abscess | Splenic abscess | Pancreatic abscess",
], {slideNum:13});

// ── SLIDE 14: Subphrenic Abscess ──────────────────────────────────
contentSlide(pres, "Subphrenic Abscess", [
  "Pus immediately beneath the diaphragm (right > left side)",
  "##Classic causes:",
  "Post-appendicectomy, post-gastric surgery, post-biliary surgery",
  "##Symptoms:",
  "Spiking evening pyrexia - characteristic pattern",
  "Shoulder tip pain (C4/C5 dermatome referred pain)",
  "Hiccoughs due to diaphragmatic irritation",
  "##Signs:",
  "High, immobile diaphragm on affected side (CXR / screening)",
  "Clinical adage: 'Pus somewhere, pus nowhere, pus under the diaphragm'",
  "##Management: Percutaneous CT/US-guided drainage (preferred) or surgical drainage",
], {slideNum:14});

// ── SLIDE 15: Pelvic Abscess ───────────────────────────────────────
contentSlide(pres, "Pelvic Abscess", [
  "Most common site of intra-abdominal abscess formation",
  "Appendix often pelvic in position; Fallopian tubes also frequent source",
  "Common sequel to diffuse peritonitis or anastomotic leak after colorectal surgery",
  "##Symptoms:",
  "Pelvic pain, diarrhoea, passage of mucus per rectum",
  "Lower back pain / pressure sensation in pelvis",
  "May spontaneously discharge into anal canal via anastomotic leak",
  "##Signs: Tender pelvic mass on PR/PV examination",
  "##Management:",
  "CT or US confirmation",
  "Transanal or transgluteal percutaneous drainage",
  "Laparotomy if above fails",
], {slideNum:15});

// ── SLIDE 16: Section 5 divider ────────────────────────────────────
sectionSlide(pres, "5", "Microbiology & Bacteriology");

// ── SLIDE 17: Bacteriology ─────────────────────────────────────────
twoColSlide(pres,
  "Microbiology of Intra-Abdominal Abscess",
  [
    "##Community-acquired (Secondary peritonitis)",
    "Polymicrobial - gut flora predominate",
    "Escherichia coli - early predominant aerobe",
    "Bacteroides fragilis - late predominant anaerobe",
    "Anaerobic streptococci",
    "Klebsiella, Proteus species",
    "Enterococcus species",
    "##Key synergy:",
    "E. coli creates anaerobic microenvironment for B. fragilis",
    "B. fragilis impairs host phagocytosis of E. coli",
  ],
  [
    "##Hospital-acquired / ICU (Tertiary peritonitis)",
    "Resistant Gram-negative organisms",
    "Enterococcus species",
    "Candida (yeast) - most common in ICU (41%)",
    "Enterobacter (21%)",
    "Staphylococcus epidermidis (21%)",
    "E. coli and Bacteroides each only ~7-17%",
    "##B. fragilis virulence:",
    "8 types of capsular polysaccharides",
    "Polysaccharide A (PSA) triggers IL-17 and IL-10 → abscess formation",
    "Fibrinogenolytic proteases → may cause bacteraemia",
  ],
  "", ""
);

// ── SLIDE 18: Section 6 divider ────────────────────────────────────
sectionSlide(pres, "6", "Clinical Features");

// ── SLIDE 19: Symptoms & Signs ─────────────────────────────────────
twoColSlide(pres,
  "Clinical Features of Abdominal Abscess",
  [
    "##SYMPTOMS",
    "Malaise, lethargy, failure to recover as expected post-op",
    "Anorexia and weight loss",
    "Sweats ± rigors",
    "Fever - classic 'swinging pyrexia'",
    "Abdominal / pelvic pain",
    "##Location-specific symptoms:",
    "Subphrenic: shoulder tip pain, hiccoughs",
    "Lesser sac / perigastric: nausea, early satiety",
    "Interloop: ileus, distension, vomiting",
    "Pelvic: tenesmus, rectal urgency, mucus per rectum",
  ],
  [
    "##SIGNS",
    "Pyrexia (often spiking), tachycardia",
    "Localised abdominal tenderness ± mass",
    "Tender mass on PR/PV exam (pelvic abscess)",
    "##Classic tetrad (not always present):",
    "1. Abdominal pain",
    "2. Fever with chills",
    "3. Palpable abdominal mass",
    "4. Leucocytosis",
    "##Special note:",
    "Elderly and immunocompromised patients may present subtly",
    "Maintain HIGH clinical suspicion in post-op patients with prolonged ileus or fever",
  ],
  "", ""
);

// ── SLIDE 20: Section 7 divider ────────────────────────────────────
sectionSlide(pres, "7", "Investigations");

// ── SLIDE 21: Laboratory Investigations ───────────────────────────
contentSlide(pres, "Laboratory Investigations", [
  "##Blood Tests:",
  "Full Blood Count (FBC) - leucocytosis (WBC >12,000/mm³)",
  "C-Reactive Protein (CRP) - elevated; serial monitoring tracks treatment response",
  "Blood cultures - obtain BEFORE starting antibiotics",
  "Serum electrolytes, urea, creatinine - baseline organ function",
  "Liver function tests (if hepatic abscess suspected)",
  "Serum procalcitonin - marker of bacterial sepsis",
  "##Aspirate:",
  "Gram stain + culture of aspirated fluid = definitive diagnosis",
  "Guides targeted antibiotic therapy",
], {slideNum:21});

// ── SLIDE 22: Imaging - Ultrasound & CT ───────────────────────────
contentSlide(pres, "Imaging Investigations", [
  "##Ultrasound (US):",
  "First-line; rapid, no radiation, bedside-available",
  "Useful in children and pregnant patients",
  "Appearance: anechoic to complex echogenic fluid collection",
  "Limitation: operator-dependent; poor for deep/gas-containing collections",
  "##CT Scan (GOLD STANDARD):",
  "Sensitivity 96%, Specificity 95%, Accuracy 96% for acute abdominal pathology",
  "Classic appearance: rim-enhancing fluid collection ± gas (air-fluid level)",
  "Oral + IV contrast optimises detection",
  "Identifies complications: bowel obstruction, pylephlebitis, fistula",
  "Guides percutaneous drainage",
  "Multi-detector CT (MDCT) provides coronal/sagittal reconstructions",
], {slideNum:22});

// ── SLIDE 23: Imaging - MRI & Nuclear ─────────────────────────────
contentSlide(pres, "Advanced Imaging", [
  "##MRI:",
  "Superior soft-tissue contrast; no radiation",
  "Useful for interloop and retroperitoneal abscesses",
  "T2-weighted: fluid appears bright; DWI useful for pus characterisation",
  "Good for pregnancy, paediatric cases, and when CT is inconclusive",
  "##Plain X-Ray (AXR/CXR):",
  "Low sensitivity (30%) and specificity",
  "May show: gas under diaphragm, air-fluid levels, high immobile diaphragm",
  "##Nuclear Medicine:",
  "Radiolabelled leucocyte scan - whole-body, high sensitivity & specificity",
  "Drawback: 18-72 hours to complete; not routinely available",
  "18F-FDG PET/CT - test of choice in fever of unknown origin; cannot differentiate sterile vs infected",
  "Gallium scan - limited by false positives from bowel uptake",
], {slideNum:23});

// ── SLIDE 24: Section 8 divider ────────────────────────────────────
sectionSlide(pres, "8", "Management");

// ── SLIDE 25: General Principles & Resuscitation ─────────────────
contentSlide(pres, "Management - General Principles", [
  "##The TRIAD of Management:",
  "1. Resuscitation & Stabilisation",
  "2. Antibiotic Therapy",
  "3. Source Control (Drainage or Surgery)",
  "##Step 1 - Resuscitation:",
  "IV fluid resuscitation with crystalloids (follow Surviving Sepsis Campaign)",
  "Oxygen supplementation; monitor urine output",
  "Correct electrolyte imbalances",
  "Analgesia",
  "##Monitoring:",
  "Serial CRP useful to non-invasively monitor treatment response",
  "Blood cultures BEFORE starting antibiotics",
  "Catheter for urine output monitoring in sepsis",
], {slideNum:25});

// ── SLIDE 26: Antibiotic Therapy ──────────────────────────────────
contentSlide(pres, "Antibiotic Therapy", [
  "Start empirical antibiotics PROMPTLY after blood cultures taken",
  "##Target organisms (community-acquired / secondary peritonitis):",
  "Cover Gram-negative aerobes (E. coli, Klebsiella)",
  "Cover anaerobes (Bacteroides fragilis)",
  "##Empirical regimen options:",
  "Piperacillin-tazobactam (monotherapy) - broad spectrum",
  "Cefuroxime + Metronidazole (combination)",
  "Carbapenems (Imipenem, Meropenem) - for resistant organisms / ICU",
  "##Important considerations:",
  "No RCTs showing one agent superior - use non-inferiority data",
  "Adjust based on local hospital antibiogram",
  "ICU/tertiary peritonitis: add antifungal (Fluconazole / Caspofungin) if Candida suspected",
  "De-escalate based on culture sensitivities",
  "Duration: typically 5-7 days after source control",
], {slideNum:26});

// ── SLIDE 27: Drainage - Percutaneous & Surgical ──────────────────
contentSlide(pres, "Source Control - Drainage Options", [
  "##Percutaneous Image-Guided Drainage (PREFERRED when feasible):",
  "CT or US-guided drain placement",
  "Indications: unilocular abscess, accessible collection, radiological expertise available",
  "Success rate: up to 80% non-operative",
  "Best results: unilocular, transabdominal route",
  "Drain left in situ for 7-10 days; sinogram before removal",
  "##Abscess <5 cm: antibiotics alone may suffice (monitor closely)",
  "##Abscess >5 cm: percutaneous drainage or surgical intervention required",
  "##Surgical Drainage (Open or Laparoscopic):",
  "Indicated when: percutaneous fails, multilocular/complex collection, worsening sepsis",
  "Laparoscopic lavage for washout of peritoneal cavity",
  "Open laparotomy for extensive contamination or bowel resection needed",
  "Technical challenges: matted bowel loops, difficult access",
], {slideNum:27});

// ── SLIDE 28: Specific Site Management ────────────────────────────
contentSlide(pres, "Management by Location", [
  "##Subphrenic abscess:",
  "CT/US-guided percutaneous drainage preferred",
  "Surgical: extraperitoneal approach if image-guided fails",
  "Large-bore drain; left 7-10 days",
  "##Pelvic abscess:",
  "Transanal or transgluteal percutaneous drainage",
  "Laparotomy if above fails",
  "Transintestinal drainage no longer used (high fistula rate)",
  "##Interloop abscess:",
  "Usually NOT amenable to percutaneous drainage",
  "Surgical washout / laparoscopic lavage often required",
  "##Diverticular abscess (Hinchey I/II):",
  "Small (<3 cm): antibiotics alone",
  "Large (>3 cm): image-guided drainage + antibiotics",
  "Failed non-op → emergency colectomy (Hartmann procedure for Hinchey III/IV)",
], {slideNum:28});

// ── SLIDE 29: Complications ────────────────────────────────────────
contentSlide(pres, "Complications", [
  "##If untreated or inadequately treated:",
  "Septicaemia → Systemic Inflammatory Response Syndrome (SIRS)",
  "Multi-organ dysfunction / failure (MOF)",
  "Death",
  "##Local complications:",
  "Fistula formation (entero-cutaneous, colovesical)",
  "Bowel obstruction (adhesions)",
  "Portal pyaemia / pylephlebitis (septicaemia in portal venous system)",
  "Hepatic abscess (from portal pyaemia)",
  "SMV thrombosis (superior mesenteric vein)",
  "##After drainage:",
  "Recurrence (15-25% after diverticular abscess drainage)",
  "Persistent collection requiring re-drainage",
  "Drain-site infection / hernia",
], {slideNum:29});

// ── SLIDE 30: Summary & Key Points ────────────────────────────────
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:"100%", fill:{color:C.navy} });
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:0.09, fill:{color:C.gold} });
  s.addShape(pres.ShapeType.rect, { x:0, y:5.52, w:"100%", h:0.1, fill:{color:C.teal} });

  s.addText("Summary & Key Points", {
    x:0.4, y:0.18, w:9.2, h:0.6,
    fontSize:26, bold:true, color:C.gold, fontFace:"Calibri",
  });

  const summaryItems = [
    { text:"IAA = localized pus in peritoneal/retroperitoneal cavity following peritonitis\n", options:{color:C.white,fontSize:13,breakLine:true,bullet:{code:"25CF",color:C.gold}}},
    { text:"Most common causes: perforated appendicitis, diverticulitis, anastomotic leak\n", options:{color:C.white,fontSize:13,breakLine:true,bullet:{code:"25CF",color:C.gold}}},
    { text:"Pathophysiology: fibrin entrapment of bacteria in peritoneal recesses\n", options:{color:C.white,fontSize:13,breakLine:true,bullet:{code:"25CF",color:C.gold}}},
    { text:"Key organisms: E. coli + B. fragilis (community); Candida, Enterococcus (ICU)\n", options:{color:C.white,fontSize:13,breakLine:true,bullet:{code:"25CF",color:C.gold}}},
    { text:"CT scan = gold standard investigation (sensitivity 96%)\n", options:{color:C.white,fontSize:13,breakLine:true,bullet:{code:"25CF",color:C.gold}}},
    { text:"Management triad: Resuscitation + Antibiotics + Source Control\n", options:{color:C.white,fontSize:13,breakLine:true,bullet:{code:"25CF",color:C.gold}}},
    { text:"Abscess <5 cm → antibiotics; >5 cm → drainage (percutaneous preferred)\n", options:{color:C.white,fontSize:13,breakLine:true,bullet:{code:"25CF",color:C.gold}}},
    { text:"Pelvic abscess = most common site; Subphrenic = swinging fever + shoulder pain\n", options:{color:C.white,fontSize:13,breakLine:true,bullet:{code:"25CF",color:C.gold}}},
    { text:"Complications include sepsis, MOF, fistula, recurrence", options:{color:C.white,fontSize:13,bullet:{code:"25CF",color:C.gold}}},
  ];
  s.addText(summaryItems, { x:0.4, y:0.88, w:9.2, h:4.4, fontFace:"Calibri", valign:"top", paraSpaceAfter:4 });
}

// ── SLIDE 31: References ───────────────────────────────────────────
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:"100%", fill:{color:C.offWhite} });
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:0.85, fill:{color:C.navy} });
  s.addShape(pres.ShapeType.rect, { x:0, y:5.52, w:"100%", h:0.1, fill:{color:C.gold} });

  s.addText("References", {
    x:0.2, y:0.08, w:9.6, h:0.7,
    fontSize:22, bold:true, color:C.white, fontFace:"Calibri", valign:"middle",
  });

  const refs = [
    { text:"1. Bailey & Love's Short Practice of Surgery, 28th Edition. Norman Williams, Ronan O'Connell, Andrew W. McCaskie. 2023.\n", options:{fontSize:12,color:C.textDark,breakLine:true}},
    { text:"2. Sleisenger and Fordtran's Gastrointestinal and Liver Disease, 11th Edition. Feldman M, Friedman LS, Brandt LJ. Elsevier.\n", options:{fontSize:12,color:C.textDark,breakLine:true}},
    { text:"3. Mulholland and Greenfield's Surgery: Scientific Principles and Practice, 7th Edition. Jones DB et al. Wolters Kluwer.\n", options:{fontSize:12,color:C.textDark,breakLine:true}},
    { text:"4. Tintinalli's Emergency Medicine: A Comprehensive Study Guide, 9th Edition. Tintinalli JE et al. McGraw-Hill.\n", options:{fontSize:12,color:C.textDark,breakLine:true}},
    { text:"5. Pye's Surgical Handicraft, 22nd Edition. Lumley JSP, Craven JL, Aitken RJ.\n", options:{fontSize:12,color:C.textDark,breakLine:true}},
    { text:"6. Current Surgical Therapy, 14th Edition. Cameron JL, Cameron AM. Elsevier.", options:{fontSize:12,color:C.textDark}},
  ];

  s.addText(refs, { x:0.4, y:1.0, w:9.2, h:4.3, fontFace:"Calibri", valign:"top", paraSpaceAfter:6 });
}

// ═══════════════════════════════════════════════════════════════════
//  WRITE FILE
// ═══════════════════════════════════════════════════════════════════
pres.writeFile({ fileName: "/home/daytona/workspace/abdominal-abscess-seminar/Abdominal_Abscess_Seminar.pptx" })
  .then(() => console.log("DONE: PPTX written successfully"))
  .catch(e => { console.error("ERROR:", e); process.exit(1); });
Running Command

cd /home/daytona/workspace/abdominal-abscess-seminar && node build.js

Running Command

libreoffice --headless --convert-to pdf /home/daytona/workspace/abdominal-abscess-seminar/Abdominal_Abscess_Seminar.pptx --outdir /home/daytona/workspace/abdominal-abscess-seminar/ 2>&1

Running Command

ls -lh /home/daytona/workspace/abdominal-abscess-seminar/

Both files are ready. Here are your downloads:

Abdominal Abscess Seminar

Presentation · PPTX

(400 KB)

Abdominal Abscess Seminar

PDF Document · PDF

(217 KB)

What's Inside - Slide-by-Slide Outline (31 slides)

#Slide TitleContent
1Title SlideSeminar title, dept, textbook sources
2Learning Objectives9 UG-level objectives
3Section dividerDefinition & Overview
4DefinitionIAA, secondary vs tertiary peritonitis, abscess as containment
5Epidemiology & Importance8% post-appendicectomy, diverticulitis stats, morbidity
6Section dividerAetiology & Risk Factors
7CausesTwo-column: surgical causes vs other causes
8Predisposing Risk FactorsHost factors + drug-related factors (steroids, azathioprine)
9Section dividerPathophysiology
10Pathophysiology Pt 1Peritoneal defence, fibrin deposition, compartmentalisation
11Pathophysiology Pt 2Adjuvant substances, dual effect of fibrin, bacterial apoptosis concept
12Section dividerAnatomical Classification
13ClassificationIntraperitoneal, retroperitoneal, solid organ abscesses
14Subphrenic AbscessClassic features, shoulder tip pain, "pus under diaphragm" adage
15Pelvic AbscessMost common site, clinical features, drainage routes
16Section dividerMicrobiology
17BacteriologyTwo-column: community-acquired vs ICU/tertiary organisms
18Section dividerClinical Features
19Symptoms & SignsTwo-column: full symptom/sign list with location-specific features
20Section dividerInvestigations
21Lab InvestigationsFBC, CRP, blood cultures, Gram stain, procalcitonin
22Imaging: US & CTCT gold standard (96% sensitivity), US role, contrast protocols
23Advanced ImagingMRI, plain X-ray, nuclear medicine (PET/CT, gallium, leucocyte scan)
24Section dividerManagement
25General PrinciplesTriad: resuscitation + antibiotics + source control
26Antibiotic TherapyEmpirical choices, community vs ICU organisms, antifungals
27Drainage OptionsPercutaneous vs surgical; <5 cm vs >5 cm rule
28Management by LocationSite-specific drainage approach for each abscess type
29ComplicationsSepsis, MOF, fistula, pylephlebitis, SMV thrombosis, recurrence
30Summary & Key Points9 bullet summary for exam revision
31References6 authoritative surgical textbooks cited

Design: Navy/teal/gold palette - professional surgical seminar look with colour-coded section dividers, two-column slides for comparisons, and gold accent bullets throughout. All content sourced from Bailey & Love, Sleisenger & Fordtran, Mulholland & Greenfield, Tintinalli, and Pye's Surgical Handicraft.
This is a shared conversation. Sign in to Orris to start your own chat.