attachment
attachment

Detailed answer according to the weightage from standard textbooks

Reading File
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Reading File
Reading File
Reading File
Reading File
Reading File
Finding Sources
Finding Sources
Reading File
Here is a complete set of detailed, exam-oriented answers for all the questions in your notes, organized by topic:

SECTION A: NUTRITION


Q1. Fluid Therapy in Burns (2014)

Pathophysiology of Fluid Loss

In burns, massive capillary leak occurs from release of histamine, prostaglandins, and oxygen free radicals. Plasma proteins escape into the interstitium, causing protein-rich exudate, hypovolaemic shock, haemoconcentration, and acute tubular necrosis if untreated.

Estimation of Burn Area

Rule of Nines (Wallace):
  • Head & neck: 9%; each upper limb: 9%; anterior trunk: 18%; posterior trunk: 18%; each lower limb: 18%; perineum: 1%
  • For children: Lund and Browder chart (head proportionally larger)

Fluid Resuscitation Formulas

Parkland (Baxter) Formula - most widely used:
4 mL x weight (kg) x % TBSA burned = total fluid in 24 hours (Ringer's Lactate)
  • Half given in first 8 hours from time of injury
  • Remaining half over next 16 hours
Muir and Barclay (Mount Vernon) Formula:
0.5 mL x weight (kg) x % TBSA - given in 6 time periods (4h, 4h, 4h, 6h, 6h, 12h)
Modified Brooke: 2 mL x kg x % TBSA

Fluid of Choice

  • Ringer's Lactate - first 24 hours (crystalloid preferred)
  • After 24 hours: colloids (albumin, FFP) + 5% dextrose added once capillary integrity partially restored
  • Early colloid is controversial (leaky membrane in first 8-12h may worsen oedema)

Monitoring

  • Urine output: 0.5-1 mL/kg/hr adults; 1 mL/kg/hr children
  • CVP, BP, pulse, haematocrit, serum electrolytes

Q2 & Q3. Parenteral Nutrition / TPN (2018, 2020)

Definition

IV administration of all nutritional requirements - bypassing the GI tract entirely.

Indications (Pye's Surgical Handicraft, Table 3.2)

ProblemExample
Gut shortVolvulus with infarction, short bowel syndrome
Gut blockedAnastomotic oedema, obstruction
Gut unable to copeRadiation enteritis, severe Crohn's
Gut fistulatedProximal GI fistula
Also: major trauma/burns with hypermetabolism, preoperative nutritional repletion, prolonged ileus.

Composition of TPN (Pye's Surgical Handicraft)

  • 8.5% amino acids as nitrogen source
  • 40 kcal/kg/day calories as:
    • 50% from 20% lipid (Intralipid)
    • 50% from 50% dextrose
  • Additives: Na, K, Mg, Zn, Cl, phosphate, acetate, trace metals, vitamins

Routes of Administration

  • Central venous catheter (CVC) - preferred; tip in SVC; allows hypertonic solutions (>900 mOsm/L)
  • PICC line
  • Peripheral TPN - only with isotonic solutions, short-term (<2 weeks)

Daily Requirements

NutrientRequirement
Calories25-30 kcal/kg/day (normal); 35-45 (hypermetabolic)
Protein1-1.5 g/kg/day; up to 2 g/kg/day in burns/trauma
Glucose4-5 g/kg/day
Na, K70-100 mmol/day each

Complications of TPN (Bailey & Love 28th Ed., Schwartz 11th Ed.)

Catheter-related: Pneumothorax, air embolism, CRBSI (most common serious complication), SVC thrombosis
Metabolic:
  • Hyperglycaemia (most common metabolic complication)
  • Refeeding syndrome (hypophosphataemia, hypokalaemia, hypomagnesaemia)
  • Electrolyte imbalances
GI/Hepatic:
  • TPN-associated liver disease (cholestasis, fatty change, cirrhosis long-term)
  • Gut mucosal atrophy and bacterial translocation
  • Acalculous cholecystitis (bile stasis)

Monitoring

  • Blood glucose q4-6h; daily electrolytes/urea/creatinine; twice weekly LFTs, albumin, TG, FBC

Q4. Enteral Nutrition (10 marks, 2019)

Definition

Delivery of nutrients into the GI tract via a tube when oral intake is inadequate but gut is functional.

Advantages over TPN

  • Maintains gut mucosal integrity; prevents atrophy and bacterial translocation
  • Stimulates intestinal motility; preserves GALT immune function
  • Cheaper and safer; prevents acalculous cholecystitis

Routes (Pye's Surgical Handicraft)

  1. Nasogastric tube (NGT) - fine-bore silicone rubber No. 7 gauge; most common
  2. Nasojejunal tube - bypasses stomach; useful in gastroparesis
  3. PEG (Percutaneous Endoscopic Gastrostomy) - long-term; placed endoscopically
  4. Needle Catheter Jejunostomy (NCJ) - placed at laparotomy; 10 cm submucosal tunnel 30 cm from DJ flexure; for proximal obstruction/fistula/fragile anastomosis

Administration Tips (Pye's)

  • Start at 1/4 to 1/2 strength to prevent cramps/diarrhoea
  • Deliver via infusion pump (smoother delivery, fewer blockages)
  • Confirm NGT position by X-ray before starting
  • Correct severe hypoalbuminaemia first (100-200 mL 25% albumin parenterally) - hypoalbuminaemia impairs gastric emptying
  • Weigh daily; monitor electrolytes and albumin twice weekly

Complications

  • Aspiration pneumonia (most serious)
  • Diarrhoea, abdominal distension, tube blockage/displacement
  • Refeeding syndrome

Q5. Post-op Fluid Balance in NBM Patient

Daily Baseline Requirements

  • Water: 30-35 mL/kg/day (~2-2.5 L/day)
  • Sodium: 70-100 mmol/day; Potassium: 70-100 mmol/day
  • Glucose: minimum 50-100 g/day (prevent ketosis and protein catabolism)

Standard IV Regimen (Holliday-Segar / "2+1")

  • 1L 0.9% NaCl + 20 mmol KCl over 8h
  • 1L 5% Dextrose + 20 mmol KCl over 8h
  • 1L 5% Dextrose + 20 mmol KCl over 8h

Additional Considerations

  • Fever: +200-400 mL per °C above 37°C
  • Drain/NGT/fistula losses replaced volume-for-volume (NG aspirate with NaCl; small bowel loss with Ringer's Lactate)
  • Third-space losses in major abdominal surgery: 2-4 mL/kg/hr

Monitoring

  • Fluid balance chart, hourly urine output (target 0.5 mL/kg/hr)
  • Daily weight (most reliable), clinical examination, twice-daily electrolytes

Q6. Physiology of Nutrition, Nutritional Assessment & Nutritional Support

Physiology of Nutrition

Macronutrients:
  • Carbohydrates: 4 kcal/g; glucose is obligatory fuel for brain/RBCs; glycogen stores last only 24h
  • Proteins: structural, enzymatic, immune roles; nitrogen balance = N intake - N output
  • Fats: 9 kcal/g; essential fatty acids (linoleic, linolenic) cannot be synthesised
Metabolic Response to Injury:
  • Ebb phase (hours): decreased metabolic rate, conservation
  • Flow phase (days-weeks): hypermetabolism, catabolism, gluconeogenesis, lipolysis
  • Mediators: cortisol, glucagon, catecholamines, IL-1, IL-6, TNF-alpha

Nutritional Assessment

Biochemical markers:
MarkerHalf-lifeUse
Albumin21 daysChronic nutritional status; <35 g/L mild, <28 g/L severe
Pre-albumin (transthyretin)2 daysMost sensitive acute marker
Transferrin9 daysIntermediate status
Lymphocyte count--<1500/mm³ = malnutrition
Anthropometric: BMI, mid-arm muscle circumference (MAMC), triceps skinfold thickness (TSF)
Functional: Hand grip strength (dynamometry), respiratory muscle strength
Subjective Global Assessment (SGA): Weight change, dietary intake, GI symptoms, functional capacity, physical exam

Techniques of Nutritional Support

  1. Oral supplementation (first choice)
  2. Enteral nutrition (when oral impossible - always preferred over parenteral)
  3. Parenteral nutrition (when gut cannot be used)

Q7. Electrolyte Disturbances in Surgical Conditions & Correction

Hyponatraemia (Na+ <135 mmol/L)

Causes: SIADH post-surgery, excess hypotonic fluid, prolonged NG losses replaced with water Correction: Fluid restriction (mild); hypertonic 3% NaCl for severe/symptomatic - raise Na by no more than 8-10 mmol/L per 24h (risk of central pontine myelinolysis if too rapid)
Na deficit = 0.6 x weight x (target Na - actual Na)

Hypokalaemia (K+ <3.5 mmol/L)

Causes: Prolonged vomiting/NG drainage (alkalosis shifts K intracellularly), diarrhoea, diuretics, post-op adrenal response Correction: Oral KCl if mild; IV KCl maximum 10-20 mmol/hr with cardiac monitoring; correct hypomagnesaemia concurrently

Hyperkalaemia (K+ >5.5 mmol/L)

Causes: Renal failure, massive transfusion, rhabdomyolysis, Addison's ECG: Peaked T waves → wide QRS → sine wave → VF Stepwise Correction:
  1. Calcium gluconate 10 mL 10% IV - membrane stabilisation (immediate)
  2. Insulin + Dextrose - 10U insulin in 50 mL 50% dextrose (onset 30 min)
  3. Sodium bicarbonate - alkalosis shifts K intracellularly
  4. Salbutamol 10-20 mg nebulised
  5. Calcium resonium - removes K from body
  6. Haemodialysis - definitive for renal failure

Metabolic Alkalosis (Prolonged vomiting / pyloric obstruction)

Loss of H+ and Cl- → hypochloraemia, hypokalaemia, paradoxical aciduria Correction: Normal saline + KCl; treat underlying cause

Metabolic Acidosis (Renal failure, fistulas, diarrhoea, sepsis)

Correction: Treat underlying cause; sodium bicarbonate if pH <7.1

Hypophosphataemia (Refeeding Syndrome)

Correction: IV sodium/potassium phosphate; phosphate supplements orally; introduce nutrition slowly


SECTION B: LAPAROSCOPY


Ergonomics in Laparoscopic Surgery (2024, 2025) - 20 marks

(Schwartz 11th Ed.)
Monitor: In direct line of sight; at or below eye level; 50-150 cm from surgeon
Surgeon Posture:
  • Elbows at 90°, shoulders relaxed, feet shoulder-width apart
  • Table height adjusted so elbows are at 90° and shoulders at 120°
  • Surgeon stands behind the telescope (optimal ergonomic orientation)
Diamond Principle of Trocar Placement:
  • Left and right hand trocars at least 10 cm apart
  • Telescope between the two trocars, slightly posterior
  • Target organ, left hand trocar, right hand trocar, and telescope form a diamond shape
  • This creates equilateral triangles for optimal triangulation
Pneumoperitoneum: 12-15 mmHg; avoid >15 mmHg (cardiovascular strain)

Q1 & Q10. SELS / SILS - Definition, Indications, CIE, Advantages, Disadvantages, Methods, Difficulties, Instruments

(Schwartz 11th Ed., Chapter 14)

Definition

Single Incision Laparoscopic Surgery (SILS/SELS) performs an entire operation through a single umbilical incision (1.5-3 cm) using a specialised multi-channel port or multiple trocars through one fascial opening.

Indications

Cholecystectomy, appendicectomy, splenectomy, sleeve gastrectomy, right hemicolectomy, sigmoidectomy, nephrectomy, adrenalectomy, diagnostic laparoscopy, hysterectomy

Contraindications (CIE)

  • Morbid obesity; extensive previous abdominal surgery; peritonitis; large tumours; surgeon inexperienced in SILS

Methods of Access (Schwartz)

  1. Multiple separate trocars through single umbilical skin incision - uses conventional instruments; disadvantage: extraction difficulty
  2. Specialised multilumen port (TriPort, SILS Port, GelPOINT) through umbilical ring - faster access, better seal, instrument triangulation via port design; disadvantage: cost

Advantages

  1. Best cosmesis - scar hidden in umbilicus
  2. Less post-operative pain
  3. Faster recovery and return to work
  4. Fewer wound complications
  5. Natural extraction site

Disadvantages

  1. Crowded port - no triangulation; crossed-hands technique
  2. Camera axis in-line with instruments - poor visualisation
  3. Instrument clashing (extracorporeal and intracorporeal)
  4. Limited retraction
  5. Very steep learning curve
  6. Higher cost (specialised ports + articulating instruments)
  7. Conversion rate: 0-24% (cholecystectomy), 0-41% (appendicectomy), 0-33% (nephrectomy)

Instruments (Schwartz Table 14-4)

InstrumentBenefit
Slimline/low-profile instrumentsReduces clashing
Varied-length instrumentsReduces extracorporeal clashing
Longer instrumentsBetter reach
Articulating/pre-bent instrumentsRestores triangulation
Small-diameter angled scopeMore space, reduces clashing
HD cameraHigh-quality visualisation
Deflectable tip laparoscopeOvercomes in-line axis problem

Difficulties

  • Crossed-instrument technique; solid organ retraction (spleen); specimen extraction; obesity/tall patients limiting reach

Q3. Advantages and Drawbacks of Laparoscopic Surgery

Advantages

  1. Smaller incisions - better cosmesis
  2. Less post-op pain, reduced analgesics
  3. Earlier mobilisation - lower DVT/PE risk
  4. Shorter hospital stay, faster return to work
  5. Fewer wound complications (infection, hernia)
  6. Reduced adhesion formation
  7. Less blood loss
  8. Magnified view - better visualisation of structures
  9. Reduced post-op ileus
  10. Preserved immune function vs open surgery

Disadvantages / Drawbacks

Technical:
  • No haptic (tactile) feedback
  • 2D visualisation (standard)
  • Restricted range of motion (fulcrum effect)
  • Longer operative time on learning curve
  • Expensive equipment and instruments
Pneumoperitoneum Effects:
  • Raised intra-abdominal pressure → decreased venous return and cardiac output
  • CO2 absorption → hypercarbia, respiratory acidosis → requires capnography
  • Phrenic nerve irritation → shoulder tip pain post-op
  • Trendelenburg position → decreased FRC, aspiration risk
Contraindications: Uncorrected coagulopathy, haemodynamic instability, grossly distended bowel, severe cardiorespiratory disease

Q4. Minilaparoscopy

  • Uses 2-3 mm instruments (vs standard 5-10 mm)
  • Also called needlescopic surgery
  • Advantages: even less pain, better cosmesis, possible under local anaesthesia
  • Disadvantages: fragile instruments, limited force transmission, fewer instrument types available
  • Applications: diagnostic laparoscopy, microlaparoscopic cholecystectomy, gynaecology

Q5. 3D Laparoscopy

Standard 2D uses single-lens CCD - flat image with no depth perception. 3D laparoscopy uses dual-lens/dual-CCD cameras with polarised or shutter glasses.

Advantages

  1. Restored depth perception and binocular vision
  2. Faster performance of complex tasks (suturing, anastomosis)
  3. Fewer errors during learning curve
  4. Better for teaching trainees

Disadvantages

  1. Higher cost; bulkier camera head
  2. Headaches/nausea from glasses (some surgeons)
  3. Advantage diminishes with surgical experience (experienced surgeons compensate via monocular cues)

Q6. Diagnostic Laparoscopy

Indications by Category

Staging of Cancer (as noted in your notebook):
  • Gastric, pancreatic, hepatobiliary cancer - detect peritoneal/liver surface metastases invisible on CT
  • Biopsy suspicious lesions; assess resectability before planned curative surgery
Vanishing Tests / Second-look Laparoscopy:
  • Assess response to chemotherapy
  • Detect recurrence post-curative resection
Tuberculosis (TB):
  • Biopsy peritoneal nodules; culture ascites
  • Diagnose TB peritonitis (caseous nodules, "violin string" adhesions, "putty" omentum)
  • Distinguish TB from malignancy
Other:
  • Acute abdomen of uncertain cause
  • Chronic pelvic pain; suspected appendicitis
  • Ascites of unknown origin; trauma assessment

Technique

  • GA; 10-12 mmHg CO2 pneumoperitoneum
  • 30° telescope for systematic survey: liver surface, stomach, duodenum, small bowel, colon, pelvis, para-aortic nodes
  • Biopsy via 5 mm port

Q7. Establishment of a Fully Equipped Laparoscopy & Endoscopy Unit (10 marks, 2013)

Laparoscopy Equipment

  • HD/4K camera system + CCD sensor; xenon/LED light source
  • CO2 insufflator with pressure monitoring
  • Recording/image capture system; multiple monitors
  • Veress needle; trocars (5, 10, 12 mm); 0° and 30° telescopes
  • Dissectors, graspers, scissors; monopolar + bipolar electrosurgery
  • Clip applicators; endoscopic linear staplers; irrigation/suction; specimen bags
  • SILS ports (for single-incision procedures)

Endoscopy Equipment

  • Flexible gastroscope and colonoscope; ERCP duodenoscope
  • Biopsy forceps, snares, injection needles
  • Argon Plasma Coagulator (APC)
  • Capsule endoscopy workstation/reader
  • Sterile processing unit (high-level disinfection for scopes - glutaraldehyde or OPA)

Staff & Infrastructure

  • Trained surgeon + endoscopist; dedicated scrub nurse; biomedical engineer
  • Proper ventilation (CO2 scavenging); emergency laparotomy set available
  • Crash trolley and anaesthesia support

Q8. Therapeutic Upper GI Endoscopy

Haemostasis

  • Injection therapy (adrenaline 1:10,000)
  • Thermal coagulation (BICAP, heater probe)
  • Haemoclipping; APC
  • Variceal band ligation; sclerotherapy

Luminal Procedures

  • Balloon dilation (oesophageal strictures)
  • SEMS (self-expanding metal stents) for obstruction
  • EMR (Endoscopic Mucosal Resection) and ESD (Endoscopic Submucosal Dissection)

Biliary (ERCP)

  • Sphincterotomy; CBD stone extraction (Dormia basket); biliary stenting

Others

  • PEG placement; polypectomy; foreign body removal; POEM for achalasia

Q9. Capsule Endoscopy (2017)

Principle

Patient swallows a wireless capsule (~11 x 26 mm) containing camera, LED light, battery, and RF transmitter. Transmits images to sensor array worn on abdomen. Downloaded and reviewed on workstation.

Specifications

  • Battery: 8-12 hours; 2-6 frames/second; 140° field of view

Indications

  1. Obscure GI bleeding (most common) - after negative upper and lower endoscopy
  2. Suspected Crohn's disease (small bowel)
  3. Small bowel tumours/polyps
  4. NSAID enteropathy; coeliac disease monitoring
  5. FAP/Lynch syndrome small bowel surveillance

Advantages

  • Non-invasive (no sedation, anaesthesia, insufflation)
  • Complete small bowel visualisation
  • Outpatient; comfortable for patient

Disadvantages

  1. No biopsy or therapeutic capability
  2. Retention risk in strictures (use patency capsule first)
  3. Incomplete study if battery dies before caecum
  4. Cannot control/reposition capsule
  5. Cost; requires expert review (up to 50,000 images)

Contraindications

  • Known/suspected stricture or obstruction; cardiac pacemaker (relative); severe dysphagia; pregnancy (relative)

Sources: Schwartz's Principles of Surgery 11th Ed. | Bailey & Love's Short Practice of Surgery 28th Ed. | Pye's Surgical Handicraft 22nd Ed. | Mulholland & Greenfield's Surgery 7th Ed.

Make me a presentation for pg clinics for general surgery on Examination of acute abdomen

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

ls /home/daytona/workspace/ 2>/dev/null && mkdir -p /home/daytona/workspace/acute-abdomen-pptx

Writing File

~/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); });
Running Command

cd /home/daytona/workspace/acute-abdomen-pptx && node build.js 2>&1

Running Command

ls -lh /home/daytona/workspace/acute-abdomen-pptx/

Your presentation is ready:

Examination Acute Abdomen

Presentation · PPTX


What's inside — 19 slides:
SlideContent
1Title slide — deep navy + surgical red design
2Presentation outline
3Definition & surgical relevance (Sabiston 21e)
4Causes & classification — 4 categories in colour-coded boxes
5History taking — full SOCRATES table
6Associated history & systemic review (3 columns: GI / Systemic / Gynaecological)
7Section divider — Physical Examination
8General examination — vital signs + bedside inspection
9Inspection of abdomen — contour, skin signs (Cullen, Grey Turner), scars, movement
10Auscultation — 6 categories with clinical significance
11Palpation — technique (8 steps) + key findings
12Percussion — 6 findings with clinical correlations
13Eponymous signs table — 12 signs (Murphy, Rovsing, Psoas, Obturator, Cullen, Grey Turner, etc.)
14Rectal, pelvic & genital examination
15Investigations — bedside, bloods, radiology, special
16Clinical decision-making algorithm (5-step flowchart)
17Special situations — elderly, immunosuppressed, pregnancy, post-op
18Summary — 10-step structured approach
19Key take-home messages (closing slide)
Design: Deep navy background on title/section slides, clean white content slides with navy headers and surgical red accents throughout. All content sourced from Sabiston 21e, Bailey & Love 28e, and Sleisenger & Fordtran 11e.
This is a shared conversation. Sign in to Orris to start your own chat.