Answer the following questions and make sure to limit each answer to 1 presentation slide, include diagrams, flowcharts, pictures, or tables to convey information clearly and concisely, avoid long paragraphs or excessive text, and include brief citations. A 54-year-old man presents to the Emergency Department with severe abdominal pain that began suddenly 6 hours ago. The pain started in the epigastric region but later became generalized. He has vomited twice and looks unwell. He has a history of chronic gastritis, smokes one pack a day, and takes occasional antacids. No previous abdominal surgery. The patient reports sudden severe upper abdominal pain that later became generalized. 1. What is meant by the term “acute abdomen”? 2. Based on the history, what features suggest that this is a surgical acute abdomen rather than a medical cause?

Reading File
Finding Sources
Reading File
Reading File
Reading File
Finding Sources
Reading File
Finding Sources
Finding Sources
Reading File
Reading File
Finding Sources
Loading Image
Reading File
Running Command

ls /home/daytona/workspace/ && mkdir -p /home/daytona/workspace/acute-abdomen-pp…

Running Command

node /home/daytona/skills/shared/scripts/fetch_images.js "https://cdn.orris.care…

Writing File

~/acute-abdomen-ppt/create_presentation.js

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

// Fetch the abdominal regions diagram
const imageUrl = "https://cdn.orris.care/cdss_images/68d7dfb19d625f7ac81aee76a4ad11bc8b9e4bc0afda2f14d8f2ba5c581aaca1.png";
const images = JSON.parse(execSync(
  `node /home/daytona/skills/shared/scripts/fetch_images.js "${imageUrl}"`
).toString());
const abdominalDiagram = images[0];

let pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Acute Abdomen - Clinical Case";

// === COLOR PALETTE ===
// Deep navy dominant, warm gold accent, light grey for backgrounds
const colors = {
  navyDark: "0D1B2A",
  navy: "1B3A5C",
  navyMid: "2B5282",
  gold: "D4A017",
  goldLight: "F0C040",
  white: "FFFFFF",
  lightGrey: "EFF3F8",
  textDark: "0D1B2A",
  textGrey: "5A6A80",
  red: "C0392B",
  green: "1A7A4A",
  orange: "E07B00",
  tableHeader: "1B3A5C",
  tableRow1: "EFF3F8",
  tableRow2: "FFFFFF",
};

// ================================================================
// SLIDE 1: What is "Acute Abdomen"?
// ================================================================
{
  let slide = pres.addSlide();

  // --- Dark background ---
  slide.addShape(pres.ShapeType.rect, {
    x: 0, y: 0, w: "100%", h: "100%",
    fill: { color: colors.navyDark }
  });

  // --- Gold accent bar left ---
  slide.addShape(pres.ShapeType.rect, {
    x: 0, y: 0, w: 0.18, h: "100%",
    fill: { color: colors.gold }
  });

  // --- Slide number chip ---
  slide.addShape(pres.ShapeType.rect, {
    x: 0.28, y: 0.25, w: 0.45, h: 0.35,
    fill: { color: colors.gold },
    line: { width: 0 }
  });
  slide.addText("01", {
    x: 0.28, y: 0.25, w: 0.45, h: 0.35,
    fontSize: 14, bold: true, color: colors.navyDark,
    align: "center", valign: "middle", margin: 0
  });

  // --- Title ---
  slide.addText("What Is the Acute Abdomen?", {
    x: 0.85, y: 0.18, w: 5.8, h: 0.65,
    fontSize: 28, bold: true, color: colors.white,
    align: "left", valign: "middle",
    fontFace: "Calibri"
  });

  // --- Subtitle tag ---
  slide.addText("DEFINITION & OVERVIEW", {
    x: 0.85, y: 0.82, w: 4.2, h: 0.28,
    fontSize: 9, bold: true, color: colors.gold,
    align: "left", fontFace: "Calibri", charSpacing: 2
  });

  // --- Divider line ---
  slide.addShape(pres.ShapeType.rect, {
    x: 0.85, y: 1.15, w: 8.7, h: 0.04,
    fill: { color: colors.navyMid }
  });

  // --- Definition box (left side) ---
  slide.addShape(pres.ShapeType.rect, {
    x: 0.85, y: 1.3, w: 4.1, h: 1.55,
    fill: { color: colors.navyMid },
    line: { width: 0 },
    rounding: true
  });

  slide.addText("DEFINITION", {
    x: 0.95, y: 1.38, w: 3.9, h: 0.28,
    fontSize: 9, bold: true, color: colors.goldLight,
    align: "left", fontFace: "Calibri", charSpacing: 2
  });

  slide.addText(
    '"Acute abdomen" is a condition in which an intra-abdominal process with rapid onset requires surgical intervention in an expeditious manner — patients have time-sensitive disease requiring prompt evaluation and management.',
    {
      x: 0.95, y: 1.68, w: 3.8, h: 1.1,
      fontSize: 10, color: colors.white,
      align: "left", valign: "top",
      fontFace: "Calibri"
    }
  );

  // --- Key Characteristics box (middle) ---
  slide.addShape(pres.ShapeType.rect, {
    x: 5.1, y: 1.3, w: 4.5, h: 3.55,
    fill: { color: colors.navy },
    line: { width: 0 },
    rounding: true
  });

  slide.addText("KEY CHARACTERISTICS", {
    x: 5.2, y: 1.38, w: 4.2, h: 0.28,
    fontSize: 9, bold: true, color: colors.goldLight,
    align: "left", fontFace: "Calibri", charSpacing: 2
  });

  const characteristics = [
    { icon: "⚡", label: "Sudden onset", desc: "Rapid development of severe abdominal pain" },
    { icon: "🔴", label: "Peritoneal signs", desc: "Guarding, rigidity, rebound tenderness" },
    { icon: "⚠️", label: "Systemic response", desc: "Tachycardia, fever, haemodynamic compromise" },
    { icon: "🔪", label: "May need surgery", desc: "Urgent evaluation; source control often required" },
    { icon: "🌡️", label: "Diverse aetiology", desc: "Perforation, ischaemia, obstruction, inflammation" },
  ];

  characteristics.forEach((item, i) => {
    const y = 1.75 + i * 0.6;
    slide.addShape(pres.ShapeType.rect, {
      x: 5.2, y: y, w: 4.25, h: 0.5,
      fill: { color: colors.navyDark }, line: { width: 0 }, rounding: true
    });
    slide.addText([
      { text: item.label + ": ", options: { bold: true, color: colors.goldLight } },
      { text: item.desc, options: { color: colors.white } }
    ], {
      x: 5.3, y: y + 0.01, w: 4.0, h: 0.48,
      fontSize: 9.5, valign: "middle", fontFace: "Calibri"
    });
  });

  // --- Abdominal diagram ---
  if (abdominalDiagram && !abdominalDiagram.error) {
    slide.addImage({
      data: abdominalDiagram.base64,
      x: 0.85, y: 2.95, w: 3.9, h: 2.5,
      sizing: { type: "contain", w: 3.9, h: 2.5 }
    });
    slide.addText("9-Region Map of Abdominal Pain", {
      x: 0.85, y: 5.48, w: 3.9, h: 0.2,
      fontSize: 7.5, color: colors.textGrey, align: "center", italic: true
    });
  }

  // --- Separator between left & centre ---
  slide.addShape(pres.ShapeType.rect, {
    x: 5.0, y: 1.3, w: 0.05, h: 3.55,
    fill: { color: colors.gold }
  });

  // --- Citation footer ---
  slide.addText("Fischer's Mastery of Surgery 8th ed. | Bailey & Love's Short Practice of Surgery 28th ed.", {
    x: 0.28, y: 5.35, w: 9.4, h: 0.25,
    fontSize: 7, color: colors.textGrey, align: "left", italic: true
  });
}

// ================================================================
// SLIDE 2: Surgical vs Medical Acute Abdomen
// ================================================================
{
  let slide = pres.addSlide();

  // --- Light background ---
  slide.addShape(pres.ShapeType.rect, {
    x: 0, y: 0, w: "100%", h: "100%",
    fill: { color: colors.lightGrey }
  });

  // --- Navy header band ---
  slide.addShape(pres.ShapeType.rect, {
    x: 0, y: 0, w: "100%", h: 1.15,
    fill: { color: colors.navyDark }
  });

  // --- Gold left accent bar ---
  slide.addShape(pres.ShapeType.rect, {
    x: 0, y: 0, w: 0.18, h: "100%",
    fill: { color: colors.gold }
  });

  // --- Slide number chip ---
  slide.addShape(pres.ShapeType.rect, {
    x: 0.28, y: 0.25, w: 0.45, h: 0.35,
    fill: { color: colors.gold },
    line: { width: 0 }
  });
  slide.addText("02", {
    x: 0.28, y: 0.25, w: 0.45, h: 0.35,
    fontSize: 14, bold: true, color: colors.navyDark,
    align: "center", valign: "middle", margin: 0
  });

  // --- Title ---
  slide.addText("Why Surgical? Identifying a Surgical Acute Abdomen", {
    x: 0.85, y: 0.12, w: 8.8, h: 0.65,
    fontSize: 24, bold: true, color: colors.white,
    align: "left", valign: "middle", fontFace: "Calibri"
  });
  slide.addText("CASE ANALYSIS — 54-YEAR-OLD MALE, SUDDEN EPIGASTRIC PAIN GENERALISING", {
    x: 0.85, y: 0.78, w: 8.8, h: 0.25,
    fontSize: 8, bold: true, color: colors.gold,
    align: "left", charSpacing: 1.5, fontFace: "Calibri"
  });

  // ---- CASE SUMMARY BOX ----
  slide.addShape(pres.ShapeType.rect, {
    x: 0.28, y: 1.25, w: 4.35, h: 1.0,
    fill: { color: colors.navyMid },
    line: { width: 0 }, rounding: true
  });
  slide.addText("CASE SUMMARY", {
    x: 0.38, y: 1.3, w: 4.15, h: 0.25,
    fontSize: 8, bold: true, color: colors.goldLight, charSpacing: 2,
    align: "left", fontFace: "Calibri"
  });
  slide.addText(
    "• 54M  •  Sudden severe epigastric pain → generalised  •  6 hrs\n• Vomited ×2  •  Unwell  •  Chronic gastritis  •  1 ppd smoker\n• Occasional antacids  •  No prior abdominal surgery",
    {
      x: 0.38, y: 1.55, w: 4.15, h: 0.65,
      fontSize: 9, color: colors.white, align: "left",
      fontFace: "Calibri"
    }
  );

  // ---- SURGICAL FEATURES TABLE ----
  slide.addText("FEATURES SUGGESTING A SURGICAL CAUSE", {
    x: 0.28, y: 2.32, w: 9.4, h: 0.28,
    fontSize: 9, bold: true, color: colors.navy, charSpacing: 1.5,
    align: "left", fontFace: "Calibri"
  });

  // Table header
  const tableTop = 2.62;
  const colWidths = [2.2, 3.1, 4.1];
  const headers = ["FEATURE", "IN THIS PATIENT", "CLINICAL SIGNIFICANCE"];
  const headerX = [0.28, 2.52, 5.66];

  // Header row
  slide.addShape(pres.ShapeType.rect, {
    x: 0.28, y: tableTop, w: 9.44, h: 0.36,
    fill: { color: colors.navyDark }, line: { width: 0 }
  });
  headers.forEach((h, i) => {
    slide.addText(h, {
      x: headerX[i] + 0.1, y: tableTop, w: colWidths[i], h: 0.36,
      fontSize: 8.5, bold: true, color: colors.goldLight,
      align: "left", valign: "middle", fontFace: "Calibri", margin: 0
    });
  });

  const tableRows = [
    ["Sudden catastrophic onset", "Pain started abruptly 6 hrs ago", "Perforation / rupture / vascular event — classic surgical presentation"],
    ["Epigastric → generalised spread", "Started epigastric, became generalised", "Suggests free peritoneal soiling (e.g. perforated ulcer with gastric acid spill)"],
    ["History of peptic disease", "Chronic gastritis + antacids", "Significantly raises suspicion of perforated peptic ulcer"],
    ["Systemic upset / vomiting", "Vomited ×2, looks unwell", "Suggests significant intra-abdominal pathology with systemic response"],
    ["Risk factors present", "Heavy smoker (1 ppd)", "Smoking ↑ risk peptic ulceration and perforation"],
    ["Absence of surgical history", "No prior abdominal surgery", "Excludes adhesional obstruction; perforation more likely aetiology"],
  ];

  const rowH = 0.43;
  tableRows.forEach((row, i) => {
    const y = tableTop + 0.36 + i * rowH;
    const fillColor = i % 2 === 0 ? colors.tableRow1 : colors.tableRow2;
    slide.addShape(pres.ShapeType.rect, {
      x: 0.28, y, w: 9.44, h: rowH,
      fill: { color: fillColor }, line: { color: "CBD5E0", width: 0.5 }
    });
    // Feature
    slide.addText(row[0], {
      x: headerX[0] + 0.1, y, w: colWidths[0] - 0.1, h: rowH,
      fontSize: 9, bold: true, color: colors.navy,
      valign: "middle", fontFace: "Calibri", margin: 0
    });
    // In patient
    slide.addText(row[1], {
      x: headerX[1] + 0.1, y, w: colWidths[1] - 0.1, h: rowH,
      fontSize: 9, color: colors.textDark,
      valign: "middle", fontFace: "Calibri", margin: 0
    });
    // Significance
    slide.addText(row[2], {
      x: headerX[2] + 0.1, y, w: colWidths[2] - 0.1, h: rowH,
      fontSize: 8.5, color: colors.textGrey, italic: true,
      valign: "middle", fontFace: "Calibri", margin: 0
    });
  });

  // ---- Most Likely Dx badge ----
  slide.addShape(pres.ShapeType.rect, {
    x: 0.28, y: 5.28, w: 4.7, h: 0.3,
    fill: { color: colors.red }, line: { width: 0 }, rounding: true
  });
  slide.addText("⚠  Most Likely Diagnosis: PERFORATED PEPTIC ULCER  →  Requires urgent surgical assessment", {
    x: 0.35, y: 5.28, w: 4.6, h: 0.3,
    fontSize: 8.5, bold: true, color: colors.white,
    valign: "middle", fontFace: "Calibri", margin: 0
  });

  // Citation
  slide.addText("Bailey & Love's Short Practice of Surgery 28th ed. | Sleisenger & Fordtran's GI & Liver Disease | Fischer's Mastery of Surgery 8th ed.", {
    x: 5.05, y: 5.38, w: 4.65, h: 0.25,
    fontSize: 7, color: colors.textGrey, align: "right", italic: true
  });
}

// === SAVE ===
pres.writeFile({ fileName: "/home/daytona/workspace/acute-abdomen-ppt/Acute_Abdomen_Slides.pptx" })
  .then(() => console.log("PPTX created successfully!"))
  .catch(err => console.error("Error:", err));
Running Command

cd /home/daytona/workspace/acute-abdomen-ppt && node create_presentation.js

Running Command

ls -lh /home/daytona/workspace/acute-abdomen-ppt/Acute_Abdomen_Slides.pptx

Your presentation is ready (379 KB). Download it here:

Acute Abdomen Slides

Presentation · PPTX


Here is what each slide contains:
Slide 1 - What Is the Acute Abdomen?
  • Dark navy background with a gold left accent bar and slide number chip
  • Definition box: Fischer's textbook definition - "an intra-abdominal process with rapid onset requiring surgical intervention in an expeditious manner"
  • Five characteristic features in tiled blocks (sudden onset, peritoneal signs, systemic response, may need surgery, diverse aetiology)
  • The 9-region abdominal map diagram from Bailey & Love embedded at bottom left
  • Source citations in the footer
Slide 2 - Why Surgical? Clinical Feature Analysis
  • Light grey background with a dark navy header band
  • Case summary box at top left (all the patient's details in a concise chip)
  • A 3-column table with 6 rows breaking down each surgical feature:
    • Sudden catastrophic onset
    • Epigastric pain spreading to generalised
    • History of peptic disease (chronic gastritis + antacids)
    • Systemic upset / vomiting
    • Smoking risk factor
    • No prior surgery (excludes adhesions)
  • Each row maps the feature to this patient's specific history and then explains its clinical significance
  • A red alert badge at the bottom: "Most Likely Diagnosis: PERFORATED PEPTIC ULCER - Requires urgent surgical assessment"

Answer the following questions and make sure to limit each answer to 1 presentation slide (no need to give me a downloadable powerpoint), include diagrams, flowcharts, pictures, or tables to convey information clearly and concisely, avoid long paragraphs or excessive text, and include brief citations. A 54-year-old man presents to the Emergency Department with severe abdominal pain that began suddenly 6 hours ago. The pain started in the epigastric region but later became generalized. He has vomited twice and looks unwell. He has a history of chronic gastritis, smokes one pack a day, and takes occasional antacids. No previous abdominal surgery. The patient reports sudden severe upper abdominal pain that later became generalized. 1. What is meant by the term “acute abdomen”? 2. Based on the history, what features suggest that this is a surgical acute abdomen rather than a medical cause?

Loading Image
Finding Sources
Good - I have the abdominal diagram. The DB query pulled unrelated results, so I'll use the content already synthesized from the prior session. Here are both slides rendered as rich visual panels:

Slide 1 — What Is the "Acute Abdomen"?

01

What Is the Acute Abdomen?

DEFINITION & OVERVIEW

DEFINITION
"A condition in which an intra-abdominal process with rapid onset requires surgical intervention in an expeditious manner — patients have time-sensitive disease requiring prompt evaluation."
Fischer's Mastery of Surgery, 8th ed.
9-region abdominal pain map
9-Region Map of Abdominal Pain — Bailey & Love, 28th ed.
KEY CHARACTERISTICS
⚡ Sudden onset
Rapid development of severe abdominal pain
🔴 Peritoneal signs
Guarding, board-like rigidity, rebound tenderness
⚠️ Systemic response
Tachycardia, fever, haemodynamic compromise
🔪 May require surgery
Urgent evaluation; source control often required
🌡️ Diverse aetiology
Perforation · Ischaemia · Obstruction · Inflammation
SURGICAL vs MEDICAL AETIOLOGY
SURGICALMEDICAL (mimics)
Perforated peptic ulcerAcute MI (inferior)
Bowel obstructionDiabetic ketoacidosis
Mesenteric ischaemiaPulmonary embolism
Ruptured AAAAddisonian crisis
Appendicitis / PeritonitisPorphyria / sickle cell
Fischer's Mastery of Surgery, 8th ed. | Bailey and Love's Short Practice of Surgery, 28th ed.

Slide 2 — Why Surgical? Features in This Patient

02

Why Surgical? Identifying a Surgical Acute Abdomen

CASE ANALYSIS — 54-YEAR-OLD MALE | SUDDEN EPIGASTRIC PAIN GENERALISING OVER 6 HOURS
CASE SUMMARY
54M  |  Sudden severe epigastric pain → generalised (6 hrs)  |  Vomited ×2  |  Looks unwell  |  Chronic gastritis  |  1 ppd smoker  |  Occasional antacids  |  No prior abdominal surgery
FEATURES SUGGESTING A SURGICAL CAUSE
FEATUREIN THIS PATIENTCLINICAL SIGNIFICANCE
⚡ Sudden catastrophic onsetPain started abruptly, 6 hrs agoPerforation/rupture/vascular event — hallmark of surgical pathology; medical causes rarely present this acutely
🔴 Epigastric → generalised painStarted epigastric, spread to whole abdomenSuggests free peritoneal soiling — gastric acid/contents spreading from perforation site; classic for perforated peptic ulcer
📋 Peptic disease backgroundChronic gastritis + antacid usePrior ulcer-type symptoms strongly predict perforated peptic ulcer as the surgical cause — "past history of ulcer-type pain followed by sudden severe upper abdominal pain" (Bailey & Love)
🚬 Smoking (1 ppd)Heavy smoker↑ risk of peptic ulceration and perforation; impairs mucosal defence and healing
🤢 Vomiting + systemic upsetVomited ×2, looks unwellAccompanies peritoneal irritation and early systemic inflammatory response — indicates significant intra-abdominal pathology
🔲 No prior abdominal surgeryAbdomen surgically virginExcludes adhesional obstruction; acute onset without prior surgery more consistent with perforation
CLINICAL REASONING PATHWAY
Sudden onset
severe epigastric pain
🌐
Generalisation
free fluid/soiling
📋
PUD history
+ smoking
⚠️
PERFORATED PEPTIC ULCER
Surgical emergency
Medical mimics to exclude: Inferior MI (ECG) · Aortic dissection (CT) · Pancreatitis (lipase) · DKA (glucose/ketones) · Pulmonary embolism (D-dimer/CTPA)
Bailey and Love's Short Practice of Surgery, 28th ed. | Fischer's Mastery of Surgery, 8th ed. | Mulholland & Greenfield's Surgery, 7th ed. | Yamada's Textbook of Gastroenterology, 7th ed.

Key takeaways

Slide 1 defines acute abdomen as any sudden-onset intra-abdominal process demanding urgent surgical assessment, and contrasts surgical vs medical causes in a reference table alongside the 9-region pain map.
Slide 2 maps each feature of this patient's history to its surgical significance using a colour-coded table, then distills the logic into a 4-step reasoning flowchart arriving at perforated peptic ulcer - a surgical emergency - while flagging the medical mimics that still need exclusion.
This is a shared conversation. Sign in to Orris to start your own chat.