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?
ls /home/daytona/workspace/ && mkdir -p /home/daytona/workspace/acute-abdomen-pp…
node /home/daytona/skills/shared/scripts/fetch_images.js "https://cdn.orris.care…
~/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));
cd /home/daytona/workspace/acute-abdomen-ppt && node create_presentation.js
ls -lh /home/daytona/workspace/acute-abdomen-ppt/Acute_Abdomen_Slides.pptx
Acute Abdomen Slides
Presentation · PPTX
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?
