Detailed answer according to the weightage from standard textbooks
4 mL x weight (kg) x % TBSA burned = total fluid in 24 hours (Ringer's Lactate)
0.5 mL x weight (kg) x % TBSA - given in 6 time periods (4h, 4h, 4h, 6h, 6h, 12h)
| Problem | Example |
|---|---|
| Gut short | Volvulus with infarction, short bowel syndrome |
| Gut blocked | Anastomotic oedema, obstruction |
| Gut unable to cope | Radiation enteritis, severe Crohn's |
| Gut fistulated | Proximal GI fistula |
| Nutrient | Requirement |
|---|---|
| Calories | 25-30 kcal/kg/day (normal); 35-45 (hypermetabolic) |
| Protein | 1-1.5 g/kg/day; up to 2 g/kg/day in burns/trauma |
| Glucose | 4-5 g/kg/day |
| Na, K | 70-100 mmol/day each |
| Marker | Half-life | Use |
|---|---|---|
| Albumin | 21 days | Chronic nutritional status; <35 g/L mild, <28 g/L severe |
| Pre-albumin (transthyretin) | 2 days | Most sensitive acute marker |
| Transferrin | 9 days | Intermediate status |
| Lymphocyte count | -- | <1500/mm³ = malnutrition |
Na deficit = 0.6 x weight x (target Na - actual Na)
| Instrument | Benefit |
|---|---|
| Slimline/low-profile instruments | Reduces clashing |
| Varied-length instruments | Reduces extracorporeal clashing |
| Longer instruments | Better reach |
| Articulating/pre-bent instruments | Restores triangulation |
| Small-diameter angled scope | More space, reduces clashing |
| HD camera | High-quality visualisation |
| Deflectable tip laparoscope | Overcomes in-line axis problem |
Make me a presentation for pg clinics for general surgery on Examination of acute abdomen
ls /home/daytona/workspace/ 2>/dev/null && mkdir -p /home/daytona/workspace/acute-abdomen-pptx
~/acute-abdomen-pptx/build.js
const pptxgen = require("pptxgenjs");
const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Examination of Acute Abdomen";
pres.author = "General Surgery PG Clinic";
// ─────────────────────────────────────────────
// COLOUR PALETTE
// Primary bg (dark): 1A2744 (deep navy)
// Accent: E8371B (surgical red)
// Light card bg: FFFFFF
// Text dark: 1A2744
// Text light: FFFFFF
// Subheading accent: E8371B
// Muted grey: F0F2F6
// Table stripe: EAF0FB
// ─────────────────────────────────────────────
const NAVY = "1A2744";
const RED = "E8371B";
const WHITE = "FFFFFF";
const LGREY = "F0F2F6";
const STRIPE = "EAF0FB";
const GOLD = "F5A623";
// Helper: dark slide background
function darkBg(slide) {
slide.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: NAVY }, line: { color: NAVY } });
}
// Helper: light slide background
function lightBg(slide) {
slide.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: WHITE }, line: { color: WHITE } });
// left accent bar
slide.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 0.08, h: 5.625, fill: { color: RED }, line: { color: RED } });
}
// Helper: section divider slide
function sectionSlide(slide, number, title, subtitle) {
darkBg(slide);
// Red diagonal accent
slide.addShape(pres.shapes.RECTANGLE, { x: 0, y: 3.8, w: 10, h: 1.825, fill: { color: RED }, line: { color: RED } });
slide.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 0.5, h: 5.625, fill: { color: RED }, line: { color: RED } });
// Section number
slide.addText(`${number}`, {
x: 0.7, y: 0.5, w: 2, h: 1.2,
fontSize: 72, bold: true, color: RED, fontFace: "Calibri", margin: 0
});
slide.addText(title, {
x: 0.7, y: 1.6, w: 8.8, h: 1.2,
fontSize: 34, bold: true, color: WHITE, fontFace: "Calibri", margin: 0
});
if (subtitle) {
slide.addText(subtitle, {
x: 0.7, y: 2.8, w: 8.8, h: 0.7,
fontSize: 18, color: "CCDDFF", fontFace: "Calibri", italic: true, margin: 0
});
}
}
// Helper: content slide header
function slideHeader(slide, title, subtitle) {
lightBg(slide);
slide.addShape(pres.shapes.RECTANGLE, { x: 0.08, y: 0, w: 9.92, h: 0.95, fill: { color: NAVY }, line: { color: NAVY } });
slide.addText(title, {
x: 0.25, y: 0.05, w: 9.5, h: 0.6,
fontSize: 20, bold: true, color: WHITE, fontFace: "Calibri", valign: "middle", margin: 0
});
if (subtitle) {
slide.addText(subtitle, {
x: 0.25, y: 0.62, w: 9.5, h: 0.28,
fontSize: 11, color: "BBCCEE", fontFace: "Calibri", italic: true, margin: 0
});
}
}
// Helper: footer reference
function addFooter(slide, ref) {
slide.addText(ref, {
x: 0.15, y: 5.38, w: 9.7, h: 0.22,
fontSize: 8, color: "999999", fontFace: "Calibri", italic: true, align: "right", margin: 0
});
}
// ═══════════════════════════════════════════
// SLIDE 1 — TITLE
// ═══════════════════════════════════════════
{
const s = pres.addSlide();
darkBg(s);
// Red top bar
s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.18, fill: { color: RED }, line: { color: RED } });
// Red bottom bar
s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 5.445, w: 10, h: 0.18, fill: { color: RED }, line: { color: RED } });
// Large red circle accent (decorative)
s.addShape(pres.shapes.OVAL, { x: 6.5, y: -1.2, w: 5.5, h: 5.5, fill: { color: RED, transparency: 85 }, line: { color: RED, transparency: 85 } });
s.addShape(pres.shapes.OVAL, { x: 7.2, y: -0.5, w: 4.2, h: 4.2, fill: { color: RED, transparency: 75 }, line: { color: RED, transparency: 75 } });
s.addText("PG CLINIC — GENERAL SURGERY", {
x: 0.5, y: 0.5, w: 9, h: 0.45,
fontSize: 12, bold: true, color: RED, charSpacing: 4, fontFace: "Calibri", margin: 0
});
s.addText("EXAMINATION OF", {
x: 0.5, y: 1.1, w: 8, h: 0.9,
fontSize: 44, bold: true, color: WHITE, fontFace: "Calibri", margin: 0
});
s.addText("ACUTE ABDOMEN", {
x: 0.5, y: 1.9, w: 9, h: 1.1,
fontSize: 54, bold: true, color: RED, fontFace: "Calibri", margin: 0
});
s.addShape(pres.shapes.RECTANGLE, { x: 0.5, y: 3.1, w: 3.5, h: 0.05, fill: { color: WHITE }, line: { color: WHITE } });
s.addText("A Systematic Approach to the Surgical Emergency", {
x: 0.5, y: 3.25, w: 9, h: 0.45,
fontSize: 16, color: "AABBCC", fontFace: "Calibri", italic: true, margin: 0
});
s.addText([
{ text: "Based on: ", options: { bold: false } },
{ text: "Sabiston 21e | Bailey & Love 28e | Sleisenger & Fordtran 11e", options: { bold: true } }
], {
x: 0.5, y: 4.6, w: 9, h: 0.35,
fontSize: 11, color: "88AACC", fontFace: "Calibri", margin: 0
});
}
// ═══════════════════════════════════════════
// SLIDE 2 — OUTLINE
// ═══════════════════════════════════════════
{
const s = pres.addSlide();
darkBg(s);
s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.18, fill: { color: RED }, line: { color: RED } });
s.addText("PRESENTATION OUTLINE", {
x: 0.4, y: 0.35, w: 9.2, h: 0.55,
fontSize: 22, bold: true, color: WHITE, charSpacing: 2, fontFace: "Calibri", margin: 0
});
const items = [
["01", "Definition & Surgical Relevance"],
["02", "Causes & Classification"],
["03", "History Taking — Pain Analysis (SOCRATES)"],
["04", "General Examination — Systemic Assessment"],
["05", "Abdominal Examination — Inspection"],
["06", "Palpation — Tenderness, Guarding & Rigidity"],
["07", "Percussion & Auscultation"],
["08", "Eponymous Signs (Table)"],
["09", "Rectal, Genital & Pelvic Examination"],
["10", "Investigations & Imaging"],
["11", "Clinical Decision Making"],
["12", "Summary — Structured Approach"],
];
const cols = [items.slice(0, 6), items.slice(6)];
cols.forEach((col, ci) => {
col.forEach((item, i) => {
const x = ci === 0 ? 0.4 : 5.3;
const y = 1.1 + i * 0.7;
s.addShape(pres.shapes.RECTANGLE, { x, y: y + 0.04, w: 0.45, h: 0.45, fill: { color: RED }, line: { color: RED } });
s.addText(item[0], { x, y: y + 0.04, w: 0.45, h: 0.45, fontSize: 12, bold: true, color: WHITE, align: "center", valign: "middle", fontFace: "Calibri", margin: 0 });
s.addText(item[1], { x: x + 0.55, y, w: 4.4, h: 0.55, fontSize: 14, color: "DDEEFF", fontFace: "Calibri", valign: "middle", margin: 0 });
});
});
}
// ═══════════════════════════════════════════
// SLIDE 3 — DEFINITION & RELEVANCE
// ═══════════════════════════════════════════
{
const s = pres.addSlide();
slideHeader(s, "DEFINITION & SURGICAL RELEVANCE", "Sabiston Textbook of Surgery 21e, Chapter 85");
s.addShape(pres.shapes.RECTANGLE, { x: 0.15, y: 1.05, w: 9.7, h: 1.45,
fill: { color: NAVY }, line: { color: NAVY },
shadow: { type: "outer", color: "000000", blur: 8, offset: 2, angle: 135, opacity: 0.12 }
});
s.addText('"An acute abdomen is any sudden-onset abdominal condition of obscure etiology requiring emergency surgical evaluation and often immediate intervention."', {
x: 0.35, y: 1.1, w: 9.3, h: 1.35,
fontSize: 15, italic: true, color: WHITE, fontFace: "Calibri", valign: "middle", align: "center", margin: 8
});
const points = [
"One of the most challenging presentations in emergency surgery",
"Ranges from benign self-limiting pain to life-threatening catastrophe",
"Diagnosis is primarily clinical — history and examination remain paramount",
"Extraabdominal causes (AMI, lower lobe pneumonia, DKA) can mimic acute abdomen",
"Delayed diagnosis significantly increases morbidity and mortality",
"Immunosuppressed / elderly patients may have blunted responses — higher suspicion needed",
];
points.forEach((pt, i) => {
const col = i < 3 ? 0 : 1;
const row = i % 3;
const x = col === 0 ? 0.2 : 5.1;
const y = 2.65 + row * 0.85;
s.addShape(pres.shapes.OVAL, { x, y: y + 0.14, w: 0.22, h: 0.22, fill: { color: RED }, line: { color: RED } });
s.addText(pt, { x: x + 0.3, y, w: 4.5, h: 0.7, fontSize: 12.5, color: NAVY, fontFace: "Calibri", valign: "middle", margin: 0 });
});
addFooter(s, "Sabiston Textbook of Surgery 21e | Bailey & Love's Short Practice of Surgery 28e");
}
// ═══════════════════════════════════════════
// SLIDE 4 — CAUSES & CLASSIFICATION
// ═══════════════════════════════════════════
{
const s = pres.addSlide();
slideHeader(s, "CAUSES & CLASSIFICATION OF ACUTE ABDOMEN", "Bailey & Love 28e");
const categories = [
{ title: "INFLAMMATORY / INFECTIVE", color: "C0392B", items: ["Acute appendicitis", "Acute cholecystitis", "Acute pancreatitis", "Peritonitis (1°/2°)", "Pelvic inflammatory disease", "Diverticulitis"] },
{ title: "OBSTRUCTIVE", color: "1A6B8A", items: ["Small bowel obstruction", "Large bowel obstruction", "Volvulus (sigmoid/caecal)", "Intussusception", "Incarcerated hernia", "Biliary / ureteric colic"] },
{ title: "VASCULAR / ISCHAEMIC", color: "7D3C98", items: ["Ruptured AAA", "Acute mesenteric ischaemia", "Ischaemic colitis", "Splenic infarct", "Ruptured ectopic pregnancy", "Ovarian torsion"] },
{ title: "PERFORATIVE", color: "1E8449", items: ["Perforated peptic ulcer", "Perforated appendix", "Perforated diverticulum", "Typhoid perforation", "Traumatic perforation", "Spontaneous oesophageal rupture"] },
];
categories.forEach((cat, i) => {
const x = (i % 2) * 4.85 + 0.15;
const y = i < 2 ? 1.05 : 3.2;
s.addShape(pres.shapes.RECTANGLE, { x, y, w: 4.7, h: 2.05, fill: { color: LGREY }, line: { color: cat.color, size: 1.5 } });
s.addShape(pres.shapes.RECTANGLE, { x, y, w: 4.7, h: 0.38, fill: { color: cat.color }, line: { color: cat.color } });
s.addText(cat.title, { x: x + 0.08, y: y + 0.03, w: 4.55, h: 0.32, fontSize: 10, bold: true, color: WHITE, fontFace: "Calibri", valign: "middle", margin: 0 });
const half = Math.ceil(cat.items.length / 2);
cat.items.forEach((item, j) => {
const cx = j < half ? x + 0.1 : x + 2.4;
const cy = y + 0.44 + (j % half) * 0.31;
s.addText(`• ${item}`, { x: cx, y: cy, w: 2.25, h: 0.29, fontSize: 10.5, color: NAVY, fontFace: "Calibri", margin: 0 });
});
});
addFooter(s, "Bailey & Love's Short Practice of Surgery 28e | Sabiston Textbook of Surgery 21e");
}
// ═══════════════════════════════════════════
// SLIDE 5 — HISTORY: SOCRATES PAIN ANALYSIS
// ═══════════════════════════════════════════
{
const s = pres.addSlide();
slideHeader(s, "HISTORY TAKING — PAIN ANALYSIS: SOCRATES", "Sabiston 21e, Chapter 85 | Bailey & Love 28e");
const rows = [
["S", "Site", "Where exactly? Point with one finger. Visceral (diffuse) vs parietal (localised)"],
["O", "Onset", "Sudden (perforation, rupture, torsion) vs gradual (appendicitis, cholecystitis, Crohn's)"],
["C", "Character", "Colicky (obstruction, colic) vs constant (inflammation, peritonitis)"],
["R", "Radiation", "RUQ → right shoulder (cholecystitis); epigastric → back (pancreatitis, AAA); loin → groin (ureteric colic)"],
["A", "Associations", "Fever, vomiting (time relative to pain), bowel habit, urinary sx, last menstrual period"],
["T", "Timing", "Duration; continuous vs intermittent; worsening or improving; any similar past episodes"],
["E", "Exacerbating/ Relieving", "Peritonitis: worse on movement; colic: cannot lie still; pancreatitis: worse supine, better sitting forward"],
["S", "Severity", "1-10 scale; able to walk? Change in severity over time; evolution important"],
];
rows.forEach((row, i) => {
const y = 1.05 + i * 0.555;
const bgColor = i % 2 === 0 ? STRIPE : WHITE;
s.addShape(pres.shapes.RECTANGLE, { x: 0.12, y, w: 9.76, h: 0.535, fill: { color: bgColor }, line: { color: "CCCCCC", size: 0.5 } });
s.addShape(pres.shapes.RECTANGLE, { x: 0.12, y, w: 0.4, h: 0.535, fill: { color: RED }, line: { color: RED } });
s.addText(row[0], { x: 0.12, y, w: 0.4, h: 0.535, fontSize: 15, bold: true, color: WHITE, align: "center", valign: "middle", fontFace: "Calibri", margin: 0 });
s.addText(row[1], { x: 0.58, y: y + 0.04, w: 1.35, h: 0.47, fontSize: 11.5, bold: true, color: NAVY, fontFace: "Calibri", valign: "middle", margin: 0 });
s.addText(row[2], { x: 1.98, y: y + 0.04, w: 7.85, h: 0.47, fontSize: 11, color: NAVY, fontFace: "Calibri", valign: "middle", margin: 0 });
});
addFooter(s, "Sabiston Textbook of Surgery 21e | Bailey & Love 28e");
}
// ═══════════════════════════════════════════
// SLIDE 6 — ASSOCIATED HISTORY & SYSTEMIC REVIEW
// ═══════════════════════════════════════════
{
const s = pres.addSlide();
slideHeader(s, "ASSOCIATED HISTORY & SYSTEMIC REVIEW", "Sabiston 21e Chapter 85");
const cols = [
{
heading: "GI SYMPTOMS", color: "1A6B8A",
items: [
"Vomiting: before pain → obstruction; after → appendicitis/peritonitis",
"Haematemesis → upper GI bleed; PR bleed → colonic pathology",
"Absolute constipation (flatus + faeces) → complete obstruction",
"Diarrhoea → gastroenteritis, ischaemic colitis",
"Jaundice + RUQ pain → biliary pathology",
"Last bowel movement / normal stool pattern",
]
},
{
heading: "SYSTEMIC & RELEVANT PMH", color: "7D3C98",
items: [
"Fever + rigors: infective/inflammatory; sweating: vascular event",
"Weight loss: malignancy, Crohn's, TB",
"Previous abdominal surgery: adhesions, anastomotic leak",
"Vascular disease / smoking: AAA, mesenteric ischaemia",
"Atrial fibrillation: mesenteric embolism",
"Medications: NSAIDs (PU), steroids (blunted signs), anticoagulants",
]
},
{
heading: "GYNAECOLOGICAL (IN WOMEN)", color: "C0392B",
items: [
"Last menstrual period — exclude ectopic pregnancy",
"Pregnancy test (urine/serum β-hCG) in all women of reproductive age",
"Vaginal discharge → PID",
"Dyspareunia → endometriosis/PID",
"Sudden severe pain → ovarian torsion / ruptured cyst",
"Contraception history",
]
},
];
cols.forEach((col, ci) => {
const x = 0.15 + ci * 3.28;
s.addShape(pres.shapes.RECTANGLE, { x, y: 1.05, w: 3.18, h: 0.38, fill: { color: col.color }, line: { color: col.color } });
s.addText(col.heading, { x: x + 0.05, y: 1.07, w: 3.08, h: 0.34, fontSize: 10, bold: true, color: WHITE, fontFace: "Calibri", valign: "middle", margin: 0 });
col.items.forEach((item, i) => {
s.addText(`• ${item}`, {
x: x + 0.05, y: 1.5 + i * 0.66, w: 3.08, h: 0.62,
fontSize: 10.5, color: NAVY, fontFace: "Calibri", valign: "top", margin: 0
});
});
});
addFooter(s, "Sabiston Textbook of Surgery 21e | Bailey & Love 28e");
}
// ═══════════════════════════════════════════
// SLIDE 7 — SECTION BREAK: PHYSICAL EXAMINATION
// ═══════════════════════════════════════════
{
const s = pres.addSlide();
sectionSlide(s, "02", "PHYSICAL EXAMINATION", "Systemic Assessment → Abdominal Examination");
}
// ═══════════════════════════════════════════
// SLIDE 8 — GENERAL / SYSTEMIC EXAMINATION
// ═══════════════════════════════════════════
{
const s = pres.addSlide();
slideHeader(s, "GENERAL EXAMINATION — BEFORE TOUCHING THE ABDOMEN", "Sabiston 21e | Bailey & Love 28e");
// Vital signs box
s.addShape(pres.shapes.RECTANGLE, { x: 0.15, y: 1.05, w: 4.65, h: 4.4, fill: { color: NAVY }, line: { color: NAVY } });
s.addText("VITAL SIGNS", { x: 0.25, y: 1.12, w: 4.45, h: 0.4, fontSize: 13, bold: true, color: RED, charSpacing: 2, fontFace: "Calibri", margin: 0 });
const vitals = [
["Pulse", "Tachycardia: pain, shock, sepsis, haemorrhage. Bradycardia: vagal response (ruptured ectopic)"],
["BP", "Hypotension: haemorrhagic/septic shock; Postural drop: volume depletion"],
["Temperature", "Fever (>38°C): inflammatory/infective. Hypothermia: severe sepsis"],
["Respiratory rate", "Tachypnoea: sepsis, diaphragmatic irritation, metabolic acidosis"],
["SpO2", "Hypoxaemia: aspiration, thoracic sepsis, ARDS in severe sepsis"],
["Urinary output", "Oliguria (<0.5 mL/kg/hr): poor perfusion, dehydration, sepsis"],
];
vitals.forEach((v, i) => {
s.addShape(pres.shapes.RECTANGLE, { x: 0.25, y: 1.62 + i * 0.61, w: 1.35, h: 0.52, fill: { color: RED }, line: { color: RED } });
s.addText(v[0], { x: 0.28, y: 1.64 + i * 0.61, w: 1.3, h: 0.48, fontSize: 10, bold: true, color: WHITE, fontFace: "Calibri", valign: "middle", align: "center", margin: 0 });
s.addText(v[1], { x: 1.68, y: 1.62 + i * 0.61, w: 3.0, h: 0.52, fontSize: 10.5, color: WHITE, fontFace: "Calibri", valign: "middle", margin: 0 });
});
// General look box
s.addShape(pres.shapes.RECTANGLE, { x: 4.95, y: 1.05, w: 4.9, h: 4.4, fill: { color: LGREY }, line: { color: "CCCCCC" } });
s.addShape(pres.shapes.RECTANGLE, { x: 4.95, y: 1.05, w: 4.9, h: 0.38, fill: { color: "1A6B8A" }, line: { color: "1A6B8A" } });
s.addText("GENERAL INSPECTION — BEDSIDE", { x: 5.05, y: 1.07, w: 4.7, h: 0.34, fontSize: 11, bold: true, color: WHITE, fontFace: "Calibri", valign: "middle", margin: 0 });
const general = [
"Facies: pale (shock/blood loss), flushed (fever/sepsis), toxic/distressed",
"Posture: still (peritonitis) vs. writhing (colic — cannot get comfortable)",
"Jaundice, pallor, cyanosis — examine conjunctivae and mucous membranes",
"Dehydration: dry tongue, reduced skin turgor, sunken eyes",
"Lymphadenopathy: left supraclavicular (Virchow's / Troisier sign → gastric CA)",
"Hands: clubbing (IBD, cirrhosis), leukonychia (hypoalbuminaemia), Dupuytren's (alcoholic liver disease), liver flap (hepatic encephalopathy)",
"Ask patient to walk in if possible — walking increases peritoneal pain",
"Ask patient to cough — peritonism causes catch of breath on coughing",
];
general.forEach((g, i) => {
s.addText(`• ${g}`, { x: 5.05, y: 1.5 + i * 0.51, w: 4.7, h: 0.48, fontSize: 10.5, color: NAVY, fontFace: "Calibri", valign: "top", margin: 0 });
});
addFooter(s, "Sabiston Textbook of Surgery 21e | Bailey & Love's Short Practice of Surgery 28e");
}
// ═══════════════════════════════════════════
// SLIDE 9 — ABDOMINAL EXAMINATION: INSPECTION
// ═══════════════════════════════════════════
{
const s = pres.addSlide();
slideHeader(s, "ABDOMINAL EXAMINATION — INSPECTION", "Sleisenger & Fordtran 11e | Sabiston 21e");
s.addShape(pres.shapes.RECTANGLE, { x: 0.15, y: 1.05, w: 9.7, h: 0.4, fill: { color: NAVY }, line: { color: NAVY } });
s.addText("EXPOSE: nipple line to mid-thigh | Patient supine, arms at sides | Adequate lighting", {
x: 0.25, y: 1.08, w: 9.5, h: 0.34,
fontSize: 11.5, bold: true, color: GOLD, fontFace: "Calibri", valign: "middle", margin: 0
});
const inspItems = [
{ cat: "CONTOUR & SHAPE", color: "C0392B", items: ["Distension — generalised (gas, fluid, obesity, pregnancy) or localised (hernia, mass, distended viscus)", "Scaphoid abdomen — suggests starvation or traction (high obstruction with vomiting)", "Asymmetry — may indicate organomegaly or large mass"] },
{ cat: "SKIN CHANGES", color: "1A6B8A", items: ["Cullen sign — periumbilical bruising (haemoperitoneum, acute pancreatitis)", "Grey Turner sign — flank bruising (retroperitoneal haemorrhage, pancreatitis)", "Ranshoff sign — yellow umbilical discolouration (ruptured CBD)", "Caput medusae — dilated periumbilical veins (portal hypertension)"] },
{ cat: "SCARS & HERNIAE", color: "7D3C98", items: ["All scars mapped — previous surgery, adhesion risk, organ anatomy altered", "Midline scars → risk of incisional hernia + adhesive SBO", "Stoma sites, drain sites, laparoscopic port scars", "Visible peristalsis — ladder pattern in late SBO"] },
{ cat: "MOVEMENTS", color: "1E8449", items: ["Reduced/absent abdominal movement with respiration → peritonitis", "Visible pulsation epigastrium → AAA (beware pulsatile liver)", "Ask patient to cough — cough tenderness localises peritonism before palpation"] },
];
inspItems.forEach((item, i) => {
const x = (i % 2) * 4.85 + 0.15;
const y = i < 2 ? 1.55 : 3.45;
s.addShape(pres.shapes.RECTANGLE, { x, y, w: 4.7, h: 1.85, fill: { color: LGREY }, line: { color: item.color, size: 1.5 } });
s.addShape(pres.shapes.RECTANGLE, { x, y, w: 4.7, h: 0.32, fill: { color: item.color }, line: { color: item.color } });
s.addText(item.cat, { x: x + 0.08, y: y + 0.03, w: 4.55, h: 0.26, fontSize: 9.5, bold: true, color: WHITE, fontFace: "Calibri", valign: "middle", margin: 0 });
item.items.forEach((pt, j) => {
s.addText(`• ${pt}`, { x: x + 0.08, y: y + 0.36 + j * 0.38, w: 4.55, h: 0.36, fontSize: 10, color: NAVY, fontFace: "Calibri", valign: "top", margin: 0 });
});
});
addFooter(s, "Sleisenger & Fordtran's GI and Liver Disease 11e | Sabiston Textbook of Surgery 21e");
}
// ═══════════════════════════════════════════
// SLIDE 10 — AUSCULTATION (before palpation — order matters)
// ═══════════════════════════════════════════
{
const s = pres.addSlide();
slideHeader(s, "AUSCULTATION — BEFORE PALPATION", "Sleisenger & Fordtran 11e");
s.addShape(pres.shapes.RECTANGLE, { x: 0.15, y: 1.05, w: 9.7, h: 0.42, fill: { color: NAVY }, line: { color: NAVY } });
s.addText("Listen BEFORE palpating — palpation disturbs bowel activity and can alter findings", {
x: 0.25, y: 1.07, w: 9.5, h: 0.38,
fontSize: 12, bold: true, color: GOLD, fontFace: "Calibri", valign: "middle", margin: 0
});
const auscData = [
{ label: "NORMAL", color: "1E8449", desc: "Low-pitched gurgles, 5-34/min. Variable — do not over-interpret." },
{ label: "ABSENT", color: "C0392B", desc: "Listen ≥2 min in >1 quadrant before declaring 'silent abdomen.' Suggests ileus (paralytic or from peritonitis) or late obstruction with ischaemia." },
{ label: "INCREASED / TINKLING", color: "1A6B8A", desc: "High-pitched tinkling sounds: early/mid mechanical bowel obstruction. 'Borborygmi' = loud rushing sounds of active peristalsis above obstruction." },
{ label: "SUCCUSSION SPLASH", color: "7D3C98", desc: "Audible splash on shaking the abdomen >3 hours post-meal → gastric outlet obstruction (pyloric stenosis, gastric CA) or gastroparesis." },
{ label: "VASCULAR BRUIT", color: "E8671B", desc: "Epigastric bruit → renal artery stenosis or celiac artery stenosis. Aortic bruit → AAA or aorto-iliac occlusive disease. Low sensitivity and specificity; interpret with clinical context." },
{ label: "STETHOSCOPE PALPATION", color: "4A235A", desc: "Begin palpating gently with the stethoscope head while auscultating — watch facial expression. Allows assessment of tenderness before formal palpation (Sleisenger & Fordtran)." },
];
auscData.forEach((item, i) => {
const x = i < 3 ? 0.15 : 5.1;
const y = 1.58 + (i % 3) * 1.3;
s.addShape(pres.shapes.RECTANGLE, { x, y, w: 4.85, h: 1.2, fill: { color: LGREY }, line: { color: item.color, size: 1.5 } });
s.addShape(pres.shapes.RECTANGLE, { x, y, w: 1.4, h: 1.2, fill: { color: item.color }, line: { color: item.color } });
s.addText(item.label, { x, y: y + 0.38, w: 1.4, h: 0.44, fontSize: 11, bold: true, color: WHITE, align: "center", fontFace: "Calibri", margin: 0 });
s.addText(item.desc, { x: x + 1.5, y: y + 0.12, w: 3.25, h: 0.96, fontSize: 11, color: NAVY, fontFace: "Calibri", valign: "middle", margin: 0 });
});
addFooter(s, "Sleisenger & Fordtran's GI and Liver Disease 11e");
}
// ═══════════════════════════════════════════
// SLIDE 11 — PALPATION
// ═══════════════════════════════════════════
{
const s = pres.addSlide();
slideHeader(s, "PALPATION — TECHNIQUE & FINDINGS", "Sabiston 21e | Sleisenger & Fordtran 11e");
// Technique box
s.addShape(pres.shapes.RECTANGLE, { x: 0.15, y: 1.05, w: 4.6, h: 4.4, fill: { color: LGREY }, line: { color: "CCCCCC" } });
s.addShape(pres.shapes.RECTANGLE, { x: 0.15, y: 1.05, w: 4.6, h: 0.36, fill: { color: NAVY }, line: { color: NAVY } });
s.addText("TECHNIQUE", { x: 0.25, y: 1.07, w: 4.4, h: 0.32, fontSize: 12, bold: true, color: WHITE, charSpacing: 2, fontFace: "Calibri", valign: "middle", margin: 0 });
const technique = [
"Warm hands — cold hands cause voluntary guarding",
"Start away from site of pain — always palpate the painful area LAST",
"Begin with light palpation (superficial structures, tenderness)",
"Proceed to deep palpation (organs, masses, depth of tenderness)",
"Watch the patient's face throughout — not just the abdomen",
"Ask patient to breathe through the mouth — relaxes abdominal wall",
"Palpate all 9 regions systematically: epigastric, umbilical, hypogastric, both hypochondria, both lumbar, both iliac fossae",
"Rigid abdomen = surgical emergency — do not waste time on formal exam; proceed to theatre",
];
technique.forEach((t, i) => {
s.addText(`${i+1}. ${t}`, { x: 0.25, y: 1.48 + i * 0.49, w: 4.4, h: 0.46, fontSize: 10.5, color: NAVY, fontFace: "Calibri", valign: "top", margin: 0 });
});
// Findings box
s.addShape(pres.shapes.RECTANGLE, { x: 4.9, y: 1.05, w: 4.95, h: 4.4, fill: { color: LGREY }, line: { color: "CCCCCC" } });
s.addShape(pres.shapes.RECTANGLE, { x: 4.9, y: 1.05, w: 4.95, h: 0.36, fill: { color: RED }, line: { color: RED } });
s.addText("KEY PALPATION FINDINGS", { x: 5.0, y: 1.07, w: 4.75, h: 0.32, fontSize: 12, bold: true, color: WHITE, charSpacing: 1, fontFace: "Calibri", valign: "middle", margin: 0 });
const findings = [
["Tenderness", "Localised (organ specific) vs. diffuse (generalised peritonitis)"],
["Voluntary guarding", "Patient voluntarily tenses abdomen in anticipation of pain — overcome by distraction"],
["Involuntary guarding", "Reflex muscle spasm — cannot be overcome — true peritoneal sign"],
["Rigidity", "'Board-like rigidity' — extreme involuntary guarding; classic for perforated viscus"],
["Rebound tenderness (Blumberg)", "Pain on sudden release of pressure > pain on application → parietal peritoneal inflammation"],
["Mass", "Character: site, size, shape, surface, consistency, edge, mobility, pulsatility, tenderness"],
["Organomegaly", "Tender hepatomegaly (hepatitis, CHF); Murphy's point tenderness (cholecystitis)"],
["Hyperalgesia", "Cutaneous hyperaesthesia overlying inflamed viscus (e.g., RIF in appendicitis)"],
];
findings.forEach((f, i) => {
s.addShape(pres.shapes.RECTANGLE, { x: 5.0, y: 1.48 + i * 0.49, w: 1.45, h: 0.43, fill: { color: NAVY }, line: { color: NAVY } });
s.addText(f[0], { x: 5.02, y: 1.5 + i * 0.49, w: 1.42, h: 0.4, fontSize: 10, bold: true, color: WHITE, fontFace: "Calibri", valign: "middle", align: "center", margin: 0 });
s.addText(f[1], { x: 6.52, y: 1.48 + i * 0.49, w: 3.25, h: 0.46, fontSize: 10.5, color: NAVY, fontFace: "Calibri", valign: "middle", margin: 0 });
});
addFooter(s, "Sabiston Textbook of Surgery 21e | Sleisenger & Fordtran's GI and Liver Disease 11e");
}
// ═══════════════════════════════════════════
// SLIDE 12 — PERCUSSION
// ═══════════════════════════════════════════
{
const s = pres.addSlide();
slideHeader(s, "PERCUSSION", "Bailey & Love 28e | Sabiston 21e");
const items = [
{ title: "PERCUSSION TENDERNESS", color: RED, body: "Gentle percussion over the abdomen can detect peritonism with less discomfort than deep palpation. Pain on finger-percussion replaces the traditional 'rebound' test and avoids causing unnecessary pain (Sleisenger & Fordtran — rebound may be elicited by jarring the bed or finger percussion)." },
{ title: "TYMPANY", color: "1A6B8A", body: "Generalised tympany → gaseous distension (obstruction, paralytic ileus). Tympany over normally dull areas (e.g., liver) → free gas under right diaphragm (perforation). Loss of liver dullness → pneumoperitoneum." },
{ title: "DULLNESS & SHIFTING DULLNESS", color: "7D3C98", body: "Dullness in flanks with central resonance → ascites (confirm with shifting dullness and fluid thrill). Fixed dullness → solid mass, haematoma. Balance sign: dull LUQ with shifting dullness in right flank → splenic rupture/haematoma." },
{ title: "HEPATIC & SPLENIC DULLNESS", color: "1E8449", body: "Upper border of liver dullness at 5th ICS (MCL). Percussion determines size of liver. Loss of splenic dullness (Traube's space) → splenomegaly." },
{ title: "RENAL ANGLE TENDERNESS", color: "C0392B", body: "Costovertebral angle tenderness (Murphy's punch sign) — fist percussion over the renal angles → pyelonephritis, perinephric abscess, ureteric obstruction." },
{ title: "SUPRAPUBIC DULLNESS", color: "4A235A", body: "Dullness in the suprapubic region → distended urinary bladder (retention), pelvic mass, gravid uterus. Always percuss before inserting a catheter." },
];
items.forEach((item, i) => {
const x = (i % 2) * 4.85 + 0.15;
const y = 1.05 + Math.floor(i / 2) * 1.5;
s.addShape(pres.shapes.RECTANGLE, { x, y, w: 4.7, h: 1.4, fill: { color: LGREY }, line: { color: item.color, size: 1.5 } });
s.addShape(pres.shapes.RECTANGLE, { x, y, w: 4.7, h: 0.32, fill: { color: item.color }, line: { color: item.color } });
s.addText(item.title, { x: x + 0.08, y: y + 0.04, w: 4.55, h: 0.26, fontSize: 10, bold: true, color: WHITE, fontFace: "Calibri", valign: "middle", margin: 0 });
s.addText(item.body, { x: x + 0.08, y: y + 0.36, w: 4.55, h: 1.0, fontSize: 10, color: NAVY, fontFace: "Calibri", valign: "top", margin: 0 });
});
addFooter(s, "Bailey & Love's Short Practice of Surgery 28e | Sabiston Textbook of Surgery 21e");
}
// ═══════════════════════════════════════════
// SLIDE 13 — EPONYMOUS SIGNS (TABLE)
// ═══════════════════════════════════════════
{
const s = pres.addSlide();
slideHeader(s, "EPONYMOUS SIGNS IN ACUTE ABDOMEN", "Sabiston Textbook of Surgery 21e — Table 85.4");
const rows = [
["Murphy's Sign", "Respiratory arrest on deep RUQ palpation during inspiration", "Acute cholecystitis"],
["Rovsing's Sign", "RIF pain when palpating LIF", "Acute appendicitis"],
["Psoas Sign", "Pain on extension/elevation of right leg against resistance", "Retrocaecal appendicitis"],
["Obturator Sign", "RIF pain on passive internal rotation of flexed right hip", "Pelvic/pelvic appendicitis"],
["Blumberg's Sign", "Pain on sudden release of pressure (rebound tenderness)", "Peritoneal inflammation"],
["Cullen's Sign", "Periumbilical bruising", "Haemoperitoneum, pancreatitis"],
["Grey Turner's Sign", "Flank bruising (ribs to iliac crest)", "Retroperitoneal haemorrhage, pancreatitis"],
["Balance Sign", "Dull LUQ + shifting dullness right flank", "Splenic rupture / haematoma"],
["Carnett's Sign", "Pain persists/increases when abdominal muscles tensed", "Abdominal wall source of pain"],
["Chandelier Sign", "Extreme pain on cervical motion", "Pelvic inflammatory disease"],
["Howship-Romberg", "Inner thigh pain on internal hip rotation", "Obturator hernia"],
["Ranshoff Sign", "Yellow periumbilical discolouration", "Ruptured common bile duct"],
];
s.addShape(pres.shapes.RECTANGLE, { x: 0.12, y: 1.05, w: 9.76, h: 0.38, fill: { color: NAVY }, line: { color: NAVY } });
["SIGN", "MANOEUVRE / DESCRIPTION", "CLINICAL CORRELATION"].forEach((h, hi) => {
const xs = [0.2, 2.3, 7.0];
const ws = [2.0, 4.65, 2.9];
s.addText(h, { x: xs[hi], y: 1.08, w: ws[hi], h: 0.32, fontSize: 10.5, bold: true, color: WHITE, fontFace: "Calibri", valign: "middle", margin: 0 });
});
rows.forEach((row, i) => {
const y = 1.46 + i * 0.338;
const bg = i % 2 === 0 ? STRIPE : WHITE;
s.addShape(pres.shapes.RECTANGLE, { x: 0.12, y, w: 9.76, h: 0.33, fill: { color: bg }, line: { color: "DDDDDD", size: 0.5 } });
s.addText(row[0], { x: 0.2, y: y + 0.02, w: 2.0, h: 0.29, fontSize: 10, bold: true, color: NAVY, fontFace: "Calibri", valign: "middle", margin: 0 });
s.addText(row[1], { x: 2.3, y: y + 0.02, w: 4.65, h: 0.29, fontSize: 10, color: NAVY, fontFace: "Calibri", valign: "middle", margin: 0 });
s.addShape(pres.shapes.RECTANGLE, { x: 7.0, y: y + 0.04, w: 2.8, h: 0.26, fill: { color: RED, transparency: 80 }, line: { color: RED, size: 0.5 } });
s.addText(row[2], { x: 7.02, y: y + 0.04, w: 2.78, h: 0.26, fontSize: 9.5, color: NAVY, fontFace: "Calibri", valign: "middle", align: "center", margin: 0 });
});
addFooter(s, "Sabiston Textbook of Surgery 21e — Table 85.4 (Eponymous Abdominal Examination Signs and Manoeuvres)");
}
// ═══════════════════════════════════════════
// SLIDE 14 — RECTAL, PELVIC & GENITAL EXAM
// ═══════════════════════════════════════════
{
const s = pres.addSlide();
slideHeader(s, "RECTAL, PELVIC & GENITAL EXAMINATION", "Sleisenger & Fordtran 11e | Sabiston 21e");
s.addShape(pres.shapes.RECTANGLE, { x: 0.15, y: 1.05, w: 9.7, h: 0.42, fill: { color: NAVY }, line: { color: NAVY } });
s.addText('"The pelvic organs and external genitalia should be examined in every patient with acute abdominal pain." — Sleisenger & Fordtran', {
x: 0.3, y: 1.07, w: 9.4, h: 0.38,
fontSize: 11.5, italic: true, color: GOLD, fontFace: "Calibri", valign: "middle", margin: 0
});
const examSections = [
{
heading: "DIGITAL RECTAL EXAMINATION (DRE)", color: "C0392B",
items: [
"Inspect perianal region: fissures, fistulae, haemorrhoids, skin tags",
"Sphincter tone; any masses or irregularity",
"High anterior tenderness → pelvic peritonism (pelvic appendicitis, PID, Douglas abscess)",
"Boggy tender mass anteriorly → pelvic abscess / haematoma (ruptured ectopic)",
"Bone-hard irregular prostate → carcinoma",
"Blood on glove: tumour, intussusception, ischaemic colitis",
"Empty rectum in obstruction; impacted faeces in pseudo-obstruction",
"Ballooning of rectum → rectal carcinoma or late obstruction with dilatation above",
]
},
{
heading: "PELVIC EXAMINATION (BIMANUAL — WOMEN)", color: "7D3C98",
items: [
"Cervical excitation / motion tenderness → pelvic peritonism (PID, ectopic)",
"Chandelier sign — extreme pain on cervical movement → PID",
"Adnexal tenderness/mass → ovarian torsion, ectopic pregnancy, ovarian cyst",
"Vaginal discharge → PID, STI",
"Bulging tender Douglas pouch → haemoperitoneum, pelvic abscess",
"Uterine size, shape, mobility",
"Always perform in women with acute lower abdominal pain",
"Mandatory: urine β-hCG in all women of reproductive age",
]
},
{
heading: "GENITAL EXAMINATION (MEN)", color: "1A6B8A",
items: [
"Examine scrotum — exclude testicular torsion (can present as abdominal pain)",
"Tender testis with absent cremasteric reflex → torsion (surgical emergency)",
"Scrotal swelling with cough impulse → indirect inguinal hernia",
"Hydrocoele, epididymo-orchitis",
"Examine groins bilaterally for inguinal hernia",
"Tender inguinal hernia with no cough impulse → incarcerated/strangulated",
"Urethral discharge → urethritis / STI",
"Femoral herniae — always check femoral canal (esp. elderly women)",
]
},
];
examSections.forEach((sec, i) => {
const x = 0.12 + i * 3.3;
s.addShape(pres.shapes.RECTANGLE, { x, y: 1.55, w: 3.2, h: 3.9, fill: { color: LGREY }, line: { color: sec.color, size: 1.5 } });
s.addShape(pres.shapes.RECTANGLE, { x, y: 1.55, w: 3.2, h: 0.4, fill: { color: sec.color }, line: { color: sec.color } });
s.addText(sec.heading, { x: x + 0.06, y: 1.57, w: 3.08, h: 0.36, fontSize: 9, bold: true, color: WHITE, fontFace: "Calibri", valign: "middle", margin: 0 });
sec.items.forEach((item, j) => {
s.addText(`• ${item}`, { x: x + 0.06, y: 2.0 + j * 0.46, w: 3.1, h: 0.44, fontSize: 10, color: NAVY, fontFace: "Calibri", valign: "top", margin: 0 });
});
});
addFooter(s, "Sleisenger & Fordtran's GI and Liver Disease 11e | Sabiston Textbook of Surgery 21e");
}
// ═══════════════════════════════════════════
// SLIDE 15 — INVESTIGATIONS
// ═══════════════════════════════════════════
{
const s = pres.addSlide();
slideHeader(s, "INVESTIGATIONS IN ACUTE ABDOMEN", "Sleisenger & Fordtran 11e | Sabiston 21e");
const inv = [
{
heading: "BEDSIDE", color: "1A6B8A",
items: ["Urine dipstick (UTI, haematuria, glycosuria, β-hCG)", "Blood glucose (DKA)", "ECG (inferior MI presenting as epigastric pain)", "PR bleed on glove"]
},
{
heading: "BLOODS", color: NAVY,
items: ["FBC: WBC (infection/perforation), Hb (bleeding), platelets", "CRP/ESR: inflammation, sepsis", "U&E + creatinine: renal function, fluid/electrolytes", "Amylase/lipase: pancreatitis (lipase >3x ULN = diagnostic)", "LFTs + bilirubin: biliary/hepatic pathology", "Coagulation: DIC, liver disease", "Lactate: tissue hypoperfusion, ischaemia", "Group & crossmatch if surgical intervention likely", "β-hCG: all women of reproductive age (mandatory)"]
},
{
heading: "RADIOLOGY", color: "7D3C98",
items: ["Erect CXR: free gas under diaphragm (perforated viscus) — 75% sensitivity", "Supine AXR: dilated bowel loops (obstruction), valvulae conniventes (SBO) vs haustra (LBO), air-fluid levels, calcified gallstones/AAA", "USG abdomen: first-line for gallbladder, renal, gynaecological pathology — portable, no radiation", "CECT abdomen/pelvis (GOLD STANDARD): sensitivity 94%, specificity 95% for appendicitis (Sleisenger & Fordtran); defines most causes of acute abdomen; essential before surgery in unclear cases", "MRI: preferred in pregnancy; biliary pathology (MRCP)"]
},
{
heading: "SPECIAL / INVASIVE", color: "C0392B",
items: ["Diagnostic laparoscopy: when imaging inconclusive; allows simultaneous therapy", "Diagnostic peritoneal lavage (DPL): largely superseded by CECT in blunt trauma", "Endoscopy (ERCP): CBD stones, cholangitis — simultaneous therapeutic", "Paracentesis: ascites for cytology, culture, SAAG"]
},
];
// 2×2 layout
inv.forEach((item, i) => {
const x = (i % 2) * 4.85 + 0.15;
const y = i < 2 ? 1.05 : 3.25;
const h = i < 2 ? 2.1 : 2.25;
s.addShape(pres.shapes.RECTANGLE, { x, y, w: 4.7, h, fill: { color: LGREY }, line: { color: item.color, size: 1.5 } });
s.addShape(pres.shapes.RECTANGLE, { x, y, w: 4.7, h: 0.35, fill: { color: item.color }, line: { color: item.color } });
s.addText(item.heading, { x: x + 0.08, y: y + 0.04, w: 4.55, h: 0.28, fontSize: 11, bold: true, color: WHITE, fontFace: "Calibri", valign: "middle", margin: 0 });
item.items.forEach((pt, j) => {
s.addText(`• ${pt}`, { x: x + 0.08, y: y + 0.42 + j * 0.38, w: 4.55, h: 0.36, fontSize: 10, color: NAVY, fontFace: "Calibri", valign: "top", margin: 0 });
});
});
addFooter(s, "Sleisenger & Fordtran's GI and Liver Disease 11e | Sabiston Textbook of Surgery 21e");
}
// ═══════════════════════════════════════════
// SLIDE 16 — CLINICAL DECISION MAKING ALGORITHM
// ═══════════════════════════════════════════
{
const s = pres.addSlide();
slideHeader(s, "CLINICAL DECISION-MAKING IN ACUTE ABDOMEN", "Sabiston 21e | Bailey & Love 28e");
// Algorithm boxes
const steps = [
{ label: "1 HAEMODYNAMICALLY UNSTABLE?", sub: "Shock, tachycardia, hypotension, peritonitis", color: RED, action: "→ Emergency resuscitation + urgent theatre" },
{ label: "2 PERITONITIS PRESENT?", sub: "Rigidity, involuntary guarding, rebound", color: "C0392B", action: "→ Broad-spectrum antibiotics + emergency surgery" },
{ label: "3 DIAGNOSIS APPARENT CLINICALLY?", sub: "Classic presentation (appendicitis, cholecystitis, obstruction)", color: "1A6B8A", action: "→ Confirm with focused investigations, proceed to surgery/intervention" },
{ label: "4 DIAGNOSIS UNCERTAIN?", sub: "Atypical presentation, non-specific pain, elderly/immunosuppressed", color: "7D3C98", action: "→ CECT abdomen/pelvis + specialist review + serial examinations" },
{ label: "5 CONSERVATIVE MANAGEMENT?", sub: "Non-surgical cause confirmed (gastroenteritis, UTI, PID)", color: "1E8449", action: "→ Analgesia, antibiotics, observe, reassess at 4-6 hours" },
];
steps.forEach((step, i) => {
const y = 1.1 + i * 0.87;
s.addShape(pres.shapes.RECTANGLE, { x: 0.15, y, w: 6.2, h: 0.78, fill: { color: step.color }, line: { color: step.color } });
s.addText(step.label, { x: 0.25, y: y + 0.04, w: 6.0, h: 0.36, fontSize: 12, bold: true, color: WHITE, fontFace: "Calibri", margin: 0 });
s.addText(step.sub, { x: 0.25, y: y + 0.4, w: 6.0, h: 0.3, fontSize: 10, italic: true, color: WHITE, fontFace: "Calibri", margin: 0 });
// Arrow
s.addShape(pres.shapes.RECTANGLE, { x: 6.42, y: y + 0.28, w: 0.3, h: 0.12, fill: { color: step.color }, line: { color: step.color } });
s.addShape(pres.shapes.RECTANGLE, { x: 6.75, y, w: 3.12, h: 0.78, fill: { color: LGREY }, line: { color: step.color, size: 1.5 } });
s.addText(step.action, { x: 6.82, y: y + 0.12, w: 2.98, h: 0.54, fontSize: 11, color: NAVY, fontFace: "Calibri", valign: "middle", margin: 0 });
});
s.addShape(pres.shapes.RECTANGLE, { x: 0.15, y: 5.25, w: 9.7, h: 0.28, fill: { color: NAVY }, line: { color: NAVY } });
s.addText("KEY PRINCIPLE: Never deny a patient analgesia in acute abdomen — adequate analgesia does NOT mask signs (Cochrane evidence)", {
x: 0.25, y: 5.27, w: 9.5, h: 0.24,
fontSize: 10, color: GOLD, fontFace: "Calibri", italic: true, bold: true, margin: 0
});
}
// ═══════════════════════════════════════════
// SLIDE 17 — SPECIAL SITUATIONS
// ═══════════════════════════════════════════
{
const s = pres.addSlide();
slideHeader(s, "SPECIAL SITUATIONS — MODIFIED PRESENTATIONS", "Sabiston 21e | Bailey & Love 28e");
const specials = [
{ cat: "ELDERLY PATIENTS", color: RED, points: ["Signs blunted — less peritonism despite perforation", "Atypical presentations common; high index of suspicion needed", "Polypharmacy (steroids, immunosuppressants) mask fever/WBC", "Vascular pathology (AAA, mesenteric ischaemia) more common", "Always examine for femoral hernia"] },
{ cat: "IMMUNOSUPPRESSED / STEROIDS", color: "7D3C98", points: ["Fever and peritonism may be absent even with perforation", "CMV colitis, neutropenic enterocolitis — consider in chemotherapy patients", "Lower threshold for CECT and surgical review", "WBC may be paradoxically low or high"] },
{ cat: "PREGNANCY", color: "1E8449", points: ["Appendix displaced superolaterally in 3rd trimester — pain not in RIF", "USG first-line; MRI preferred over CT", "Physiological WBC leukocytosis (up to 16,000) in normal pregnancy", "Right ovarian vein syndrome, round ligament pain", "Always test urine β-hCG (mandatory)"] },
{ cat: "POST-OPERATIVE PATIENT", color: "1A6B8A", points: ["Anastomotic leak (3-7 days post-op) — fever, tachycardia, ileus, peritonism", "Missed enterotomy", "Adhesive SBO (months-years later)", "Post-op haemorrhage — tachycardia + abdominal distension", "Wound dehiscence + evisceration"] },
];
specials.forEach((sp, i) => {
const x = (i % 2) * 4.85 + 0.15;
const y = i < 2 ? 1.05 : 3.35;
s.addShape(pres.shapes.RECTANGLE, { x, y, w: 4.7, h: 2.2, fill: { color: LGREY }, line: { color: sp.color, size: 2 } });
s.addShape(pres.shapes.RECTANGLE, { x, y, w: 4.7, h: 0.38, fill: { color: sp.color }, line: { color: sp.color } });
s.addText(sp.cat, { x: x + 0.08, y: y + 0.05, w: 4.55, h: 0.3, fontSize: 11, bold: true, color: WHITE, fontFace: "Calibri", margin: 0 });
sp.points.forEach((pt, j) => {
s.addText(`• ${pt}`, { x: x + 0.08, y: y + 0.44 + j * 0.36, w: 4.55, h: 0.34, fontSize: 10.5, color: NAVY, fontFace: "Calibri", valign: "top", margin: 0 });
});
});
addFooter(s, "Sabiston Textbook of Surgery 21e | Bailey & Love 28e");
}
// ═══════════════════════════════════════════
// SLIDE 18 — SUMMARY: STRUCTURED APPROACH
// ═══════════════════════════════════════════
{
const s = pres.addSlide();
slideHeader(s, "SUMMARY — STRUCTURED APPROACH TO ACUTE ABDOMEN", "Bailey & Love 28e | Sabiston 21e");
const steps = [
{ n: "1", title: "RESUSCITATION FIRST", desc: "Airway, Breathing, Circulation — IV access, fluids, O2 before full examination in unstable patient" },
{ n: "2", title: "HISTORY", desc: "SOCRATES for pain; associated GI, urinary, gynaecological, systemic symptoms; PMH, medications" },
{ n: "3", title: "GENERAL EXAMINATION", desc: "Vital signs, facies, posture, hands, eyes, lymphadenopathy — assess severity before touching abdomen" },
{ n: "4", title: "ABDOMINAL INSPECTION", desc: "Contour, scars, skin signs (Cullen/Grey Turner), visible peristalsis, groin, cough test" },
{ n: "5", title: "AUSCULTATE BEFORE PALPATING", desc: "Bowel sounds character; succussion splash; stethoscope palpation for tenderness" },
{ n: "6", title: "PALPATION", desc: "Light then deep; painful area last; guarding (voluntary vs. involuntary); rigidity; masses" },
{ n: "7", title: "PERCUSSION", desc: "Tenderness; liver dullness (free gas?); shifting dullness (ascites); costovertebral angle" },
{ n: "8", title: "RECTAL / PELVIC / GENITAL", desc: "Mandatory in ALL patients — pelvic peritonism, abscess, torsion, hernia" },
{ n: "9", title: "INVESTIGATIONS", desc: "Bloods (FBC, CRP, amylase, lactate, β-hCG); Erect CXR/AXR; USG; CECT (gold standard)" },
{ n: "10", title: "DECISION", desc: "Emergency surgery / urgent intervention / conservative management with serial examinations" },
];
steps.forEach((st, i) => {
const col = i < 5 ? 0 : 1;
const row = i % 5;
const x = col * 4.88 + 0.15;
const y = 1.08 + row * 0.89;
s.addShape(pres.shapes.RECTANGLE, { x, y, w: 4.73, h: 0.82, fill: { color: LGREY }, line: { color: "DDDDDD" } });
s.addShape(pres.shapes.RECTANGLE, { x, y, w: 0.42, h: 0.82, fill: { color: i < 2 ? RED : NAVY }, line: { color: i < 2 ? RED : NAVY } });
s.addText(st.n, { x, y: y + 0.24, w: 0.42, h: 0.34, fontSize: 13, bold: true, color: WHITE, align: "center", fontFace: "Calibri", margin: 0 });
s.addText(st.title, { x: x + 0.5, y: y + 0.04, w: 4.15, h: 0.32, fontSize: 10.5, bold: true, color: NAVY, fontFace: "Calibri", margin: 0 });
s.addText(st.desc, { x: x + 0.5, y: y + 0.36, w: 4.15, h: 0.44, fontSize: 9.5, color: "444444", fontFace: "Calibri", valign: "top", margin: 0 });
});
addFooter(s, "Bailey & Love's Short Practice of Surgery 28e | Sabiston Textbook of Surgery 21e | Sleisenger & Fordtran's GI and Liver Disease 11e");
}
// ═══════════════════════════════════════════
// SLIDE 19 — CLOSING SLIDE
// ═══════════════════════════════════════════
{
const s = pres.addSlide();
darkBg(s);
s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.18, fill: { color: RED }, line: { color: RED } });
s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 5.445, w: 10, h: 0.18, fill: { color: RED }, line: { color: RED } });
s.addText("KEY TAKE-HOME MESSAGES", {
x: 0.5, y: 0.45, w: 9, h: 0.5,
fontSize: 14, bold: true, color: RED, charSpacing: 3, fontFace: "Calibri", margin: 0
});
const msgs = [
"The diagnosis of acute abdomen is primarily clinical — history and physical examination are the cornerstone",
"Examination must follow a structured sequence: inspect → auscultate → palpate → percuss (IAPP)",
"Involuntary guarding and rigidity = peritonitis = surgical emergency until proven otherwise",
"Never withhold analgesia — it does not mask signs (Cochrane evidence-based)",
"DRE and pelvic/genital examination are MANDATORY in every acute abdomen",
"CECT abdomen/pelvis is the gold-standard investigation (Sens 94%, Spec 95% for appendicitis)",
"In elderly and immunosuppressed patients, classical signs are often absent — maintain high suspicion",
"Always exclude pregnancy (β-hCG) in women of reproductive age before imaging",
];
msgs.forEach((msg, i) => {
s.addShape(pres.shapes.RECTANGLE, { x: 0.4, y: 1.05 + i * 0.56, w: 0.28, h: 0.28, fill: { color: RED }, line: { color: RED } });
s.addText(msg, { x: 0.78, y: 0.98 + i * 0.56, w: 8.9, h: 0.5, fontSize: 12.5, color: "DDEEFF", fontFace: "Calibri", valign: "middle", margin: 0 });
});
s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 5.1, w: 10, h: 0.32, fill: { color: "11192E" }, line: { color: "11192E" } });
s.addText("Sources: Sabiston Textbook of Surgery 21e | Bailey & Love's Short Practice of Surgery 28e | Sleisenger & Fordtran's GI & Liver Disease 11e", {
x: 0.3, y: 5.13, w: 9.4, h: 0.26,
fontSize: 9, color: "6688AA", fontFace: "Calibri", align: "center", margin: 0
});
}
// ─── Write file ───
pres.writeFile({ fileName: "/home/daytona/workspace/acute-abdomen-pptx/Examination_Acute_Abdomen.pptx" })
.then(() => console.log("DONE"))
.catch(e => { console.error(e); process.exit(1); });
cd /home/daytona/workspace/acute-abdomen-pptx && node build.js 2>&1
ls -lh /home/daytona/workspace/acute-abdomen-pptx/
Examination Acute Abdomen
Presentation · PPTX
| Slide | Content |
|---|---|
| 1 | Title slide — deep navy + surgical red design |
| 2 | Presentation outline |
| 3 | Definition & surgical relevance (Sabiston 21e) |
| 4 | Causes & classification — 4 categories in colour-coded boxes |
| 5 | History taking — full SOCRATES table |
| 6 | Associated history & systemic review (3 columns: GI / Systemic / Gynaecological) |
| 7 | Section divider — Physical Examination |
| 8 | General examination — vital signs + bedside inspection |
| 9 | Inspection of abdomen — contour, skin signs (Cullen, Grey Turner), scars, movement |
| 10 | Auscultation — 6 categories with clinical significance |
| 11 | Palpation — technique (8 steps) + key findings |
| 12 | Percussion — 6 findings with clinical correlations |
| 13 | Eponymous signs table — 12 signs (Murphy, Rovsing, Psoas, Obturator, Cullen, Grey Turner, etc.) |
| 14 | Rectal, pelvic & genital examination |
| 15 | Investigations — bedside, bloods, radiology, special |
| 16 | Clinical decision-making algorithm (5-step flowchart) |
| 17 | Special situations — elderly, immunosuppressed, pregnancy, post-op |
| 18 | Summary — 10-step structured approach |
| 19 | Key take-home messages (closing slide) |