Example of paper presentation of Total abdominal hysterectomy

Reading File
Finding Sources
Searching the Web

total abdominal hysterectomy paper presentation operative note example format

Reading File
Reading Web Page

http://obgyntools.com/dictations/dictation-tah.html

Here is a complete example of a Paper Presentation for Total Abdominal Hysterectomy (TAH) as used in clinical/surgical settings. This format is standard for surgical case presentations in academic, residency, and hospital settings.

PAPER PRESENTATION: TOTAL ABDOMINAL HYSTERECTOMY (TAH)


PART I: PATIENT INFORMATION (Header)

FieldDetails
NameMrs. XYZ
Age45 years
IP No.XXXXXX
Date of AdmissionDD/MM/YYYY
Date of SurgeryDD/MM/YYYY
Bed No.XX
UnitObstetrics & Gynecology Unit

PART II: CHIEF COMPLAINTS

Mrs. XYZ, a 45-year-old P3L3, presented with:
  1. Heavy menstrual bleeding for 1 year
  2. Progressively increasing lower abdominal heaviness for 8 months
  3. Dysmenorrhea for 6 months

PART III: HISTORY OF PRESENT ILLNESS

The patient is a known case of uterine fibroids (leiomyomas). She presented with menorrhagia characterized by passage of clots, soaking more than 6 pads per day for 7-8 days per cycle. There was associated dysmenorrhea and pelvic pressure symptoms. Symptoms were unresponsive to medical management over the past 6 months. There was no history of intermenstrual bleeding, post-coital bleeding, or discharge per vaginum.

PART IV: PAST HISTORY

  • Menstrual History: Menarche at 13 years; cycles irregular, heavy; last menstrual period: DD/MM/YYYY
  • Obstetric History: P3L3 - All three deliveries were full-term normal vaginal deliveries; no abortions
  • Contraceptive History: Not using any contraception currently
  • Medical History: No diabetes mellitus, hypertension, or thyroid disorders
  • Surgical History: No prior abdominal surgeries
  • Drug/Allergy History: No known drug allergies
  • Family History: Not significant

PART V: GENERAL AND SYSTEMIC EXAMINATION

General Examination:
  • Conscious, cooperative, well-built female
  • Pallor: Present (mild to moderate)
  • Icterus / Cyanosis / Clubbing / Lymphadenopathy / Edema: Absent
  • Vitals: BP - 120/80 mmHg, Pulse - 88/min, Temperature - Afebrile, RR - 16/min
  • Weight: 62 kg, Height: 155 cm, BMI: 25.8 kg/m²
Systemic Examination:
  • Cardiovascular System: S1 S2 heard, no murmurs
  • Respiratory System: Bilateral equal air entry, vesicular breath sounds
  • Central Nervous System: Intact, no focal deficits
  • Per Abdomen: Soft, non-tender; lower abdomen - see below

PART VI: LOCAL EXAMINATION

Per Abdomen:
  • A firm, non-tender mass in the lower abdomen, 16-week uterine size, arising from the pelvis, smooth surface, restricted mobility
Per Speculum:
  • Cervix - nulliparous os, healthy; no erosion, polyp, or discharge
Per Vaginum (Bimanual Examination):
  • Uterus: Enlarged to 16 weeks size, firm, irregular, restricted mobility
  • Bilateral fornices: Free, non-tender
  • Parametria: Free

PART VII: INVESTIGATIONS

Hematology:
  • Hemoglobin: 8.2 g/dL
  • PCV: 26%
  • WBC: 7,800/mm³
  • Platelet count: 2.4 lakhs/mm³
  • Blood group: B+ve
Biochemistry:
  • Serum creatinine: 0.9 mg/dL, Blood urea: 22 mg/dL
  • Blood glucose (fasting): 88 mg/dL
  • LFT: Within normal limits
  • Serum electrolytes: Normal
Imaging:
  • Ultrasound (transabdominal and transvaginal): Uterus enlarged (16-week size) with multiple intramural and subserosal fibroids; largest fibroid 8 x 7 cm; both ovaries normal; no free fluid
  • Chest X-ray: NAD
  • ECG: Normal sinus rhythm
Endometrial Biopsy: Proliferative endometrium; no evidence of hyperplasia or malignancy
Pap Smear: NILM (Negative for Intraepithelial Lesion or Malignancy)

PART VIII: DIAGNOSIS

Pre-Operative Diagnosis: Multiple uterine leiomyomata (fibroid uterus - 16 weeks size) with menorrhagia and anemia
Post-Operative Diagnosis: Same (confirmed on histopathology)

PART IX: PRE-OPERATIVE MANAGEMENT

  1. Hematinics and IV iron infusion for correction of anemia; pre-operative Hb raised to 10.2 g/dL
  2. Pre-operative GnRH agonist (Inj. Leuprolide 3.75 mg IM) given 4 weeks prior to shrink fibroids
  3. Bowel preparation: Low residue diet 48 hours prior; laxative the night before
  4. Catheterization: Foley's catheter inserted pre-operatively
  5. Antibiotic prophylaxis: Inj. Cefazolin 2g IV 30 min before skin incision
  6. DVT prophylaxis: TED stockings applied; low-molecular-weight heparin considered
  7. Consent: Informed written consent obtained; procedure, alternatives, risks, and benefits explained

PART X: OPERATIVE NOTE (PAPER PRESENTATION CORE)

Patient Details

  • Date of Surgery: DD/MM/YYYY
  • Surgeon: Dr. __________ (Consultant Gynecologist)
  • Assistants: Dr. __________, Dr. __________
  • Anesthesiologist: Dr. __________
  • Type of Anesthesia: General anesthesia with endotracheal intubation / Spinal anesthesia
  • Position: Supine
  • Duration: 90 minutes
  • Estimated Blood Loss (EBL): 300 mL

Pre-Operative Findings

  • 16-week size uterus, multiple fibroids
  • Fallopian tubes and ovaries bilateral - normal in appearance

Operative Procedure (Step-by-Step)

  1. Patient preparation: The patient was positioned supine under general anesthesia. Foley's catheter was inserted and urinary output monitored throughout. Abdomen and perineum were painted with povidone-iodine and draped in a standard sterile fashion.
  2. Abdominal incision: A Pfannenstiel (low transverse) incision was made approximately 3 cm above the pubic symphysis. The subcutaneous tissue was divided. The rectus sheath was incised and the recti muscles separated in the midline. The peritoneum was identified, lifted with artery forceps, and opened vertically to enter the peritoneal cavity.
  3. Exploration: A thorough exploration of the peritoneal cavity was performed. The uterus was enlarged with multiple fibroids. Bowel, liver, spleen, appendix, and omentum were unremarkable. A self-retaining O'Connor-O'Sullivan retractor was placed. The bowel was packed superiorly with warm moist laparotomy packs. The table was tilted in the Trendelenburg position.
  4. Uterine elevation: The uterus was grasped with two Toothed (Lane's) tissue forceps at the fundus and elevated out of the pelvis to provide traction and counter-traction.
  5. Round ligaments: The round ligaments were clamped bilaterally with Kocher's forceps, cut, and ligated with No. 1 vicryl suture.
  6. Broad ligament dissection: The anterior and posterior leaves of the broad ligament were opened using Mayo scissors, creating a window lateral to the infundibulopelvic ligament.
  7. Utero-ovarian ligaments (ovaries conserved): Since the ovaries were conserved, the utero-ovarian ligament and fallopian tube were doubly clamped with curved Kocher's forceps close to the uterus, divided, and ligated (suture-ligated with No. 1 vicryl).
  8. Bladder flap: The uterovesical peritoneum was incised transversely, and the bladder was dissected sharply and bluntly downward away from the lower uterine segment and cervix using pledget dissection to avoid bladder injury.
  9. Uterine vessels: The uterine vessels (uterine artery and veins) were clamped bilaterally at the level of the internal os using straight Heaney's clamps, cut, and suture-ligated with No. 1 vicryl suture. The pedicles were transfixed to prevent slipping.
  10. Cardinal ligaments: The cardinal ligaments were serially clamped using curved Heaney's clamps, cut, and ligated bilaterally down to the level of the vaginal vault.
  11. Uterosacral ligaments: The uterosacral ligaments were clamped, cut, and ligated bilaterally, providing additional support to the vaginal vault.
  12. Vaginal cuff: The vagina was entered anteriorly using curved scissors (Jorgensen scissors). Curved clamps were placed across the vaginal angles on both sides. The uterus and cervix were excised completely and delivered. The specimen was placed in a kidney basin and sent for histopathological examination.
  13. Vaginal cuff closure: The vaginal cuff was closed with interrupted figure-of-8 sutures using No. 1 vicryl, incorporating the uterosacral ligaments at the angles for vault support (McCall-type culdoplasty). Hemostasis was confirmed throughout.
  14. Peritonization: The pelvic peritoneum was closed with continuous 2-0 vicryl suture to peritonealize all pedicles.
  15. Peritoneal irrigation: The peritoneal cavity was irrigated with approximately 500-700 mL warm normal saline and aspirated. The laparotomy packs were removed and counted (all 5 accounted for).
  16. Abdominal closure:
    • Peritoneum: Continuous 1-0 vicryl
    • Rectus sheath (fascia): Continuous No. 1 PDS/vicryl
    • Subcutaneous tissue: 2-0 vicryl (if fat > 2 cm)
    • Skin: Stainless steel staples or 3-0 monocryl subcuticular
  17. Dressing: Wound dressed with Telfa pad, gauze, and adhesive tape.
  18. Sponge, needle, and instrument count: Correct at opening and closure. No discrepancy.

Post-Operative Findings

  • Uterus with cervix: 16-week size, multiple intramural and subserosal fibroids
  • Specimen weight: approximately 480 g
  • Bilateral fallopian tubes and ovaries: Normal; conserved in-situ
  • No intraoperative complications

PART XI: POST-OPERATIVE MANAGEMENT

Immediate (0-24 hours):
  • Monitor vitals every 30 min for 2 hours, then every 4 hours
  • IV fluids: Ringer's lactate at 125 mL/hr; transition to oral when bowel sounds return
  • Foley's catheter: In situ; monitor urine output (target > 0.5 mL/kg/hr)
  • Analgesics: IV paracetamol 1g every 8 hours + Inj. Ketorolac 30 mg every 8 hours PRN
  • Antiemetics: Inj. Ondansetron 4 mg IV PRN
  • DVT prophylaxis: Low molecular weight heparin (Enoxaparin 40 mg SC OD from 12 hours post-op) + early ambulation
  • Antibiotic cover: Continue IV Cefazolin for 24 hours
Day 1-2:
  • Encourage early ambulation
  • Soft diet when peristalsis returns
  • Remove Foley's catheter at 24 hours post-op
  • Wound inspection
  • Transition to oral analgesics (Tab. Ibuprofen 400 mg + Tab. Paracetamol 500 mg)
Day 3-5:
  • Regular diet
  • Wound care; staple/suture removal on Day 7-10
  • Check Hb; transfuse if < 7 g/dL with symptoms
  • Discharge planning and counseling

PART XII: COMPLICATIONS (DISCUSSED WITH PATIENT)

Intraoperative:
  • Bladder injury (most common; risk 1-2%)
  • Ureteral injury
  • Bowel injury
  • Hemorrhage requiring transfusion
Post-Operative:
  • Vault hematoma or abscess
  • Deep vein thrombosis / Pulmonary embolism
  • Wound infection or dehiscence
  • Urinary tract infection
  • Vault prolapse (late)
  • Bladder/urethral dysfunction

PART XIII: HISTOPATHOLOGY REPORT (SPECIMEN)

  • Specimen: Uterus with cervix
  • Gross: Enlarged uterus (480 g), multiple well-circumscribed whorled intramural nodules
  • Microscopy: Interlacing bundles of smooth muscle cells; no atypia, necrosis, or mitoses
  • Diagnosis: Multiple leiomyomata (uterine fibroids)

PART XIV: DISCUSSION

Indications for TAH in this case:
  • Symptomatic fibroid uterus unresponsive to medical management
  • Completed family
  • Uterus > 12-week size with pressure symptoms
  • Anemia due to menorrhagia
Why TAH over other options?
  • Completed family - definitive treatment preferred
  • Large uterus (>16 weeks) - myomectomy carries high recurrence and re-operation risk
  • Laparoscopic approach not ideal due to uterus size
  • Vaginal route not feasible for large fibroid uterus
(Reference: Sabiston Textbook of Surgery, p. 2799 - "A total hysterectomy is removal of both the uterine corpus and cervix. For an open technique, also called a total abdominal hysterectomy, an abdominal incision is made that is either low transverse or vertical midline. The incision type is chosen based on the indication, body habitus, surgical history, and size of pathology.")

PART XV: PROGNOSIS

  • Excellent for benign disease
  • Symptoms (menorrhagia, pelvic pressure) resolve completely
  • If ovaries conserved (as in this case): no surgical menopause; hormonal function intact
  • Long-term follow-up: Pap smear no longer required (cervix removed); counseled on sexual health and pelvic floor exercises

Summary Table for Quick Reference

ItemDetail
ProcedureTotal Abdominal Hysterectomy (TAH)
IndicationSymptomatic multiple uterine fibroids
IncisionPfannenstiel (low transverse)
AnesthesiaGeneral / Spinal
OvariesConserved (no BSO)
EBL~300 mL
SpecimenUterus + Cervix; 480 g
ComplicationsNil intra-op
HPEMultiple leiomyomata
DischargeDay 4-5

This presentation follows the standard format used in Indian and international surgical/gynecology departments for academic, ward round, and examination purposes. You can adapt the diagnosis (e.g., replace fibroids with endometrial cancer, adenomyosis, or dysfunctional uterine bleeding) while keeping the structural framework identical.

Generate a PPT on indications and techniques for hysterectomy

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

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

Running Command

mkdir -p /home/daytona/workspace/hysterectomy-ppt && ls /home/daytona/workspace/…

Writing File

~/hysterectomy-ppt/build.js

const pptxgen = require("pptxgenjs");

const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Hysterectomy: Indications and Techniques";
pres.author = "Department of Obstetrics & Gynecology";

// ─── THEME ────────────────────────────────────────────────────────────────────
const C = {
  navy:    "0D2B45",  // dominant dark
  teal:    "1A7A7A",  // supporting
  accent:  "E8A838",  // warm gold accent
  white:   "FFFFFF",
  light:   "F0F6FA",
  gray:    "7A8B99",
  lightTeal:"C8E8E8",
  red:     "C0392B",
  green:   "1E8449",
  purple:  "6C3483",
  text:    "1C2833",
};

// ─── HELPER: section accent bar at top ───────────────────────────────────────
function addTopBar(slide, label, color) {
  slide.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.55, fill: { color: color || C.navy }, line: { type: "none" } });
  slide.addText(label, { x: 0.3, y: 0, w: 9.4, h: 0.55, fontSize: 11, bold: true, color: C.white, valign: "middle" });
}

function addFooter(slide) {
  slide.addShape(pres.shapes.RECTANGLE, { x: 0, y: 5.35, w: 10, h: 0.28, fill: { color: C.navy }, line: { type: "none" } });
  slide.addText("Dept. of Obstetrics & Gynecology  |  Hysterectomy: Indications & Techniques", {
    x: 0.3, y: 5.35, w: 9.4, h: 0.28, fontSize: 8, color: C.lightTeal, valign: "middle"
  });
}

function sectionHeading(slide, title, subtitle) {
  addTopBar(slide, "");
  slide.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.navy }, line: { type: "none" } });
  slide.addShape(pres.shapes.RECTANGLE, { x: 0, y: 2.3, w: 0.18, h: 1.3, fill: { color: C.accent }, line: { type: "none" } });
  slide.addText(title, { x: 0.5, y: 1.8, w: 9, h: 1.0, fontSize: 36, bold: true, color: C.white, align: "left" });
  if (subtitle) {
    slide.addText(subtitle, { x: 0.5, y: 2.85, w: 9, h: 0.6, fontSize: 16, color: C.lightTeal, align: "left" });
  }
}

// ─────────────────────────────────────────────────────────────────────────────
// SLIDE 1: Title
// ─────────────────────────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  // Background gradient effect with two rectangles
  s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.navy }, line: { type: "none" } });
  s.addShape(pres.shapes.RECTANGLE, { x: 6.5, y: 0, w: 3.5, h: 5.625, fill: { color: C.teal, transparency: 80 }, line: { type: "none" } });
  // Accent bar
  s.addShape(pres.shapes.RECTANGLE, { x: 0.5, y: 1.5, w: 0.12, h: 2.5, fill: { color: C.accent }, line: { type: "none" } });
  // Title
  s.addText("HYSTERECTOMY", { x: 0.8, y: 1.2, w: 8, h: 0.85, fontSize: 44, bold: true, color: C.white, charSpacing: 4 });
  s.addText("Indications & Techniques", { x: 0.8, y: 2.1, w: 8, h: 0.6, fontSize: 22, color: C.accent, bold: true });
  s.addText("A Comprehensive Surgical Overview", { x: 0.8, y: 2.8, w: 8, h: 0.45, fontSize: 15, color: C.lightTeal });
  // Bottom info
  s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 4.85, w: 10, h: 0.78, fill: { color: C.teal, transparency: 70 }, line: { type: "none" } });
  s.addText("Department of Obstetrics & Gynecology", { x: 0.5, y: 4.88, w: 9, h: 0.38, fontSize: 12, color: C.white, bold: true });
  s.addText("Berek & Novak's Gynecology | Sabiston Textbook of Surgery", { x: 0.5, y: 5.22, w: 9, h: 0.28, fontSize: 9, color: C.lightTeal });
}

// ─────────────────────────────────────────────────────────────────────────────
// SLIDE 2: Overview / Agenda
// ─────────────────────────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.light }, line: { type: "none" } });
  addTopBar(s, "OVERVIEW");
  s.addText("What This Presentation Covers", { x: 0.4, y: 0.7, w: 9, h: 0.55, fontSize: 24, bold: true, color: C.navy });

  const topics = [
    { num: "01", title: "Definition & Classification", desc: "Types of hysterectomy by extent and route" },
    { num: "02", title: "Indications", desc: "Benign, malignant, and emergency indications" },
    { num: "03", title: "Route Selection", desc: "Abdominal vs. vaginal vs. laparoscopic decision-making" },
    { num: "04", title: "Surgical Technique: TAH", desc: "Step-by-step total abdominal hysterectomy" },
    { num: "05", title: "Minimally Invasive Techniques", desc: "Laparoscopic and robotic hysterectomy" },
    { num: "06", title: "Complications & Outcomes", desc: "Intraoperative and post-operative considerations" },
  ];

  topics.forEach((t, i) => {
    const col = i < 3 ? 0 : 1;
    const row = i % 3;
    const x = col === 0 ? 0.4 : 5.2;
    const y = 1.4 + row * 1.3;

    s.addShape(pres.shapes.RECTANGLE, { x, y, w: 4.5, h: 1.1, fill: { color: C.white }, line: { color: C.teal, pt: 1 }, shadow: { type: "outer", color: "000000", blur: 4, offset: 2, angle: 135, opacity: 0.08 } });
    s.addShape(pres.shapes.RECTANGLE, { x, y, w: 0.55, h: 1.1, fill: { color: C.teal }, line: { type: "none" } });
    s.addText(t.num, { x, y, w: 0.55, h: 1.1, fontSize: 14, bold: true, color: C.white, align: "center", valign: "middle" });
    s.addText(t.title, { x: x + 0.65, y: y + 0.08, w: 3.75, h: 0.4, fontSize: 12, bold: true, color: C.navy });
    s.addText(t.desc, { x: x + 0.65, y: y + 0.5, w: 3.75, h: 0.45, fontSize: 9.5, color: C.gray });
  });
  addFooter(s);
}

// ─────────────────────────────────────────────────────────────────────────────
// SLIDE 3: Definition & Classification
// ─────────────────────────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.light }, line: { type: "none" } });
  addTopBar(s, "01  |  DEFINITION & CLASSIFICATION", C.teal);
  s.addText("What is Hysterectomy?", { x: 0.4, y: 0.65, w: 9, h: 0.5, fontSize: 22, bold: true, color: C.navy });
  s.addText("Surgical removal of the uterus — the most commonly performed major gynecologic procedure worldwide.", {
    x: 0.4, y: 1.18, w: 9.2, h: 0.45, fontSize: 11.5, color: C.text, italic: true
  });

  // By Extent column
  s.addShape(pres.shapes.RECTANGLE, { x: 0.4, y: 1.7, w: 4.3, h: 3.35, fill: { color: C.white }, line: { type: "none" }, shadow: { type: "outer", color: "000000", blur: 5, offset: 2, angle: 135, opacity: 0.1 } });
  s.addShape(pres.shapes.RECTANGLE, { x: 0.4, y: 1.7, w: 4.3, h: 0.42, fill: { color: C.navy }, line: { type: "none" } });
  s.addText("BY EXTENT", { x: 0.4, y: 1.7, w: 4.3, h: 0.42, fontSize: 11, bold: true, color: C.white, align: "center", valign: "middle" });

  const extents = [
    ["Total (TH)", "Corpus + cervix removed"],
    ["Subtotal / Supracervical", "Corpus removed; cervix retained"],
    ["Radical (Wertheim's)", "Uterus + upper vagina + parametria + pelvic LN"],
    ["Extended Radical", "+ Pelvic wall dissection (rare)"],
  ];
  extents.forEach(([h, d], i) => {
    s.addText(h, { x: 0.6, y: 2.22 + i * 0.72, w: 3.9, h: 0.28, fontSize: 10.5, bold: true, color: C.teal });
    s.addText(d, { x: 0.6, y: 2.5 + i * 0.72, w: 3.9, h: 0.28, fontSize: 9.5, color: C.text });
  });

  // By Route column
  s.addShape(pres.shapes.RECTANGLE, { x: 5.3, y: 1.7, w: 4.3, h: 3.35, fill: { color: C.white }, line: { type: "none" }, shadow: { type: "outer", color: "000000", blur: 5, offset: 2, angle: 135, opacity: 0.1 } });
  s.addShape(pres.shapes.RECTANGLE, { x: 5.3, y: 1.7, w: 4.3, h: 0.42, fill: { color: C.accent }, line: { type: "none" } });
  s.addText("BY ROUTE", { x: 5.3, y: 1.7, w: 4.3, h: 0.42, fontSize: 11, bold: true, color: C.white, align: "center", valign: "middle" });

  const routes = [
    ["Abdominal (TAH / AH)", "Open laparotomy — Pfannenstiel or midline"],
    ["Vaginal (VH)", "Via vaginal incision; no abdominal incision"],
    ["Laparoscopic (TLH / LAVH)", "Minimally invasive; camera-assisted"],
    ["Robotic (RASH)", "Robot-assisted laparoscopic approach"],
  ];
  routes.forEach(([h, d], i) => {
    s.addText(h, { x: 5.5, y: 2.22 + i * 0.72, w: 3.9, h: 0.28, fontSize: 10.5, bold: true, color: C.accent });
    s.addText(d, { x: 5.5, y: 2.5 + i * 0.72, w: 3.9, h: 0.28, fontSize: 9.5, color: C.text });
  });
  addFooter(s);
}

// ─────────────────────────────────────────────────────────────────────────────
// SLIDE 4: Indications - Benign
// ─────────────────────────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.light }, line: { type: "none" } });
  addTopBar(s, "02  |  INDICATIONS — BENIGN CONDITIONS", C.green);
  s.addText("Benign Indications for Hysterectomy", { x: 0.4, y: 0.65, w: 9, h: 0.5, fontSize: 22, bold: true, color: C.navy });

  const benign = [
    { icon: "●", cond: "Uterine Leiomyomata (Fibroids)", detail: "Most common indication (~30%). Symptomatic fibroids — menorrhagia, bulk, pressure, failed medical Rx; uterus >12 weeks size" },
    { icon: "●", cond: "Abnormal Uterine Bleeding (AUB)", detail: "Dysfunctional uterine bleeding refractory to hormonal therapy, endometrial ablation, or other medical management" },
    { icon: "●", cond: "Adenomyosis", detail: "Diffuse or focal adenomyosis causing intractable dysmenorrhea and menorrhagia unresponsive to medical treatment" },
    { icon: "●", cond: "Uterovaginal Prolapse", detail: "POP-Q Stage III–IV uterine prolapse; hysterectomy combined with pelvic floor reconstruction" },
    { icon: "●", cond: "Endometriosis", detail: "Severe endometriosis with adenomyosis, pain refractory to medical/conservative surgical therapy; completed family" },
    { icon: "●", cond: "Chronic Pelvic Pain", detail: "ACOG criteria: ≥6 months pain, no correctable pathology; central pain with dysmenorrhea, dyspareunia, uterine tenderness" },
    { icon: "●", cond: "Pelvic Inflammatory Disease (PID)", detail: "Severe/recurrent PID, tubo-ovarian abscess unresponsive to antibiotics, with completed family" },
    { icon: "●", cond: "Obstetric Emergencies", detail: "Postpartum hemorrhage uncontrolled by conservative measures (PPH > Bakri balloon, B-Lynch); uterine rupture; placenta accreta spectrum" },
  ];

  const col1 = benign.slice(0, 4);
  const col2 = benign.slice(4);

  col1.forEach((item, i) => {
    s.addShape(pres.shapes.RECTANGLE, { x: 0.3, y: 1.22 + i * 1.0, w: 4.4, h: 0.9, fill: { color: C.white }, line: { color: "D5E8D4", pt: 1 } });
    s.addShape(pres.shapes.RECTANGLE, { x: 0.3, y: 1.22 + i * 1.0, w: 0.1, h: 0.9, fill: { color: C.green }, line: { type: "none" } });
    s.addText(item.cond, { x: 0.5, y: 1.24 + i * 1.0, w: 4.1, h: 0.3, fontSize: 10.5, bold: true, color: C.green });
    s.addText(item.detail, { x: 0.5, y: 1.54 + i * 1.0, w: 4.1, h: 0.5, fontSize: 8.5, color: C.text });
  });
  col2.forEach((item, i) => {
    s.addShape(pres.shapes.RECTANGLE, { x: 5.2, y: 1.22 + i * 1.0, w: 4.4, h: 0.9, fill: { color: C.white }, line: { color: "D5E8D4", pt: 1 } });
    s.addShape(pres.shapes.RECTANGLE, { x: 5.2, y: 1.22 + i * 1.0, w: 0.1, h: 0.9, fill: { color: C.green }, line: { type: "none" } });
    s.addText(item.cond, { x: 5.4, y: 1.24 + i * 1.0, w: 4.1, h: 0.3, fontSize: 10.5, bold: true, color: C.green });
    s.addText(item.detail, { x: 5.4, y: 1.54 + i * 1.0, w: 4.1, h: 0.5, fontSize: 8.5, color: C.text });
  });
  addFooter(s);
}

// ─────────────────────────────────────────────────────────────────────────────
// SLIDE 5: Indications - Malignant / Pre-malignant
// ─────────────────────────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.light }, line: { type: "none" } });
  addTopBar(s, "02  |  INDICATIONS — MALIGNANT & PRE-MALIGNANT CONDITIONS", C.red);
  s.addText("Oncologic Indications for Hysterectomy", { x: 0.4, y: 0.65, w: 9, h: 0.5, fontSize: 22, bold: true, color: C.navy });

  const malig = [
    {
      title: "Endometrial Carcinoma",
      type: "Total / Radical",
      detail: "Standard treatment: Total hysterectomy + bilateral salpingo-oophorectomy (BSO) + pelvic lymph node dissection for endometrioid carcinoma (Stage I–IV)",
      color: C.red,
    },
    {
      title: "Cervical Carcinoma",
      type: "Radical (Wertheim's)",
      detail: "Stage IB–IIA: Radical hysterectomy + bilateral pelvic lymphadenectomy. Includes upper vagina (1–2 cm) and parametrial resection",
      color: C.red,
    },
    {
      title: "Ovarian / Tubal Carcinoma",
      type: "Cytoreductive (Debulking)",
      detail: "Part of optimal cytoreductive surgery: TAH + BSO + omentectomy + peritoneal staging; goal < 1 cm residual disease",
      color: "#A93226",
    },
    {
      title: "Uterine Sarcoma",
      type: "Total Hysterectomy + BSO",
      detail: "Leiomyosarcoma, endometrial stromal sarcoma, carcinosarcoma: TAH + BSO ± lymphadenectomy based on stage",
      color: "#A93226",
    },
    {
      title: "CIN (Cervical Intraepithelial Neoplasia)",
      type: "Last Resort",
      detail: "Hysterectomy for CIN only when: microinvasion confirmed, histologically confirmed recurrent high-grade CIN, or concurrent gynecologic pathology (Berek & Novak's)",
      color: C.purple,
    },
    {
      title: "Gestational Trophoblastic Disease",
      type: "Selected Cases",
      detail: "Choriocarcinoma / molar pregnancy with hemorrhage or failure of chemotherapy in patients with completed family",
      color: C.purple,
    },
  ];

  malig.forEach((item, i) => {
    const col = i % 2;
    const row = Math.floor(i / 2);
    const x = col === 0 ? 0.3 : 5.2;
    const y = 1.22 + row * 1.3;

    s.addShape(pres.shapes.RECTANGLE, { x, y, w: 4.5, h: 1.18, fill: { color: C.white }, line: { color: "FADBD8", pt: 1 } });
    s.addShape(pres.shapes.RECTANGLE, { x, y, w: 0.1, h: 1.18, fill: { color: item.color }, line: { type: "none" } });
    s.addText(item.title, { x: x + 0.2, y: y + 0.08, w: 4.1, h: 0.32, fontSize: 10.5, bold: true, color: item.color });
    s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: x + 0.2, y: y + 0.42, w: 1.6, h: 0.22, fill: { color: item.color }, line: { type: "none" }, rectRadius: 0.05 });
    s.addText(item.type, { x: x + 0.2, y: y + 0.42, w: 1.6, h: 0.22, fontSize: 7.5, bold: true, color: C.white, align: "center", valign: "middle" });
    s.addText(item.detail, { x: x + 0.2, y: y + 0.68, w: 4.1, h: 0.44, fontSize: 8, color: C.text });
  });
  addFooter(s);
}

// ─────────────────────────────────────────────────────────────────────────────
// SLIDE 6: Route Selection
// ─────────────────────────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.light }, line: { type: "none" } });
  addTopBar(s, "03  |  ROUTE SELECTION", C.navy);
  s.addText("Choosing the Surgical Approach", { x: 0.4, y: 0.65, w: 9, h: 0.5, fontSize: 22, bold: true, color: C.navy });

  // Preference order banner
  s.addShape(pres.shapes.RECTANGLE, { x: 0.3, y: 1.2, w: 9.4, h: 0.38, fill: { color: C.navy }, line: { type: "none" } });
  s.addText("Preferred Order (ACOG/AAGL): Vaginal  >  Laparoscopic  >  Abdominal", {
    x: 0.3, y: 1.2, w: 9.4, h: 0.38, fontSize: 11, bold: true, color: C.accent, align: "center", valign: "middle"
  });

  const routes = [
    {
      name: "Vaginal Hysterectomy (VH)",
      color: C.teal,
      ideal: "Mobile uterus ≤12 weeks, uterine prolapse, good vaginal access, no prior pelvic surgery",
      advantages: "No abdominal incision, shorter hospital stay, fastest recovery, lower cost",
      limit: "Limited access for large/adherent uterus, prior surgeries, poor vaginal access",
    },
    {
      name: "Laparoscopic (TLH / LAVH)",
      color: C.accent,
      ideal: "Endometriosis, adhesions, adnexal pathology, failed or inadequate vaginal access",
      advantages: "Less pain, faster recovery vs. open, direct visualization, earlier discharge",
      limit: "Longer operative time, higher cost, requires training; avoid if malignancy with morcellation risk",
    },
    {
      name: "Abdominal (TAH)",
      color: C.navy,
      ideal: "Large uterus (>16 wks), known/suspected malignancy, extensive adhesions, poor laparoscopic access",
      advantages: "Maximum access, familiar technique, no CO₂ requirement, suitable for all body habitus",
      limit: "Longer hospital stay, more pain, higher wound complication rate than MIS routes",
    },
  ];

  routes.forEach((r, i) => {
    const y = 1.68 + i * 1.28;
    s.addShape(pres.shapes.RECTANGLE, { x: 0.3, y, w: 9.4, h: 1.15, fill: { color: C.white }, line: { color: r.color, pt: 1.5 } });
    s.addShape(pres.shapes.RECTANGLE, { x: 0.3, y, w: 2.1, h: 1.15, fill: { color: r.color, transparency: 88 }, line: { type: "none" } });
    s.addText(r.name, { x: 0.45, y: y + 0.08, w: 1.9, h: 0.38, fontSize: 10, bold: true, color: r.color === C.navy ? C.navy : r.color });
    s.addText("Ideal for:", { x: 0.45, y: y + 0.5, w: 1.9, h: 0.2, fontSize: 8, bold: true, color: C.gray });
    s.addText(r.ideal, { x: 0.45, y: y + 0.7, w: 1.9, h: 0.38, fontSize: 7.5, color: C.text });

    s.addText("✓ Advantages", { x: 2.55, y: y + 0.05, w: 3.3, h: 0.25, fontSize: 9, bold: true, color: C.green });
    s.addText(r.advantages, { x: 2.55, y: y + 0.3, w: 3.3, h: 0.76, fontSize: 8.5, color: C.text });

    s.addText("⚠ Limitations", { x: 6.1, y: y + 0.05, w: 3.4, h: 0.25, fontSize: 9, bold: true, color: C.red });
    s.addText(r.limit, { x: 6.1, y: y + 0.3, w: 3.4, h: 0.76, fontSize: 8.5, color: C.text });
  });
  addFooter(s);
}

// ─────────────────────────────────────────────────────────────────────────────
// SLIDE 7: Surgical Technique TAH - Pre-op
// ─────────────────────────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.light }, line: { type: "none" } });
  addTopBar(s, "04  |  SURGICAL TECHNIQUE — TAH: PRE-OPERATIVE PREPARATION", C.navy);
  s.addText("Total Abdominal Hysterectomy: Setup & Incision", { x: 0.4, y: 0.65, w: 9, h: 0.5, fontSize: 22, bold: true, color: C.navy });

  const steps = [
    { num: "1", title: "Anesthesia & Positioning", body: "General anesthesia (ET tube) or spinal. Supine position with Foley catheter in situ. Arms on padded armboards at <90°." },
    { num: "2", title: "Prep & Drape", body: "Abdomen and perineum painted with povidone-iodine. Sterile draping. Antibiotic prophylaxis: Cefazolin 2g IV 30 min prior." },
    { num: "3", title: "Abdominal Incision", body: "Pfannenstiel (low transverse, 3 cm above pubic symphysis) for benign/limited access. Midline vertical if large uterus, malignancy, or reoperative field." },
    { num: "4", title: "Entry & Exploration", body: "Rectus sheath incised → recti separated. Peritoneum identified and opened vertically. Thorough exploration for unexpected pathology." },
    { num: "5", title: "Exposure", body: "Trendelenburg position. O'Connor-O'Sullivan self-retaining retractor placed. Bowel packed superiorly with warm, moist laparotomy sponges (count: 5)." },
    { num: "6", title: "Uterine Elevation", body: "Uterus grasped with two Lane's tissue forceps at fundus and elevated out of pelvis to provide traction and counter-traction." },
  ];

  steps.forEach((step, i) => {
    const col = i < 3 ? 0 : 1;
    const row = i % 3;
    const x = col === 0 ? 0.3 : 5.2;
    const y = 1.22 + row * 1.35;

    s.addShape(pres.shapes.RECTANGLE, { x, y, w: 4.5, h: 1.2, fill: { color: C.white }, line: { type: "none" }, shadow: { type: "outer", color: "000000", blur: 4, offset: 2, angle: 135, opacity: 0.08 } });
    s.addShape(pres.shapes.RECTANGLE, { x, y, w: 0.5, h: 1.2, fill: { color: C.navy }, line: { type: "none" } });
    s.addText(step.num, { x, y, w: 0.5, h: 1.2, fontSize: 16, bold: true, color: C.white, align: "center", valign: "middle" });
    s.addText(step.title, { x: x + 0.6, y: y + 0.08, w: 3.75, h: 0.32, fontSize: 10.5, bold: true, color: C.navy });
    s.addText(step.body, { x: x + 0.6, y: y + 0.42, w: 3.75, h: 0.7, fontSize: 8.8, color: C.text });
  });
  addFooter(s);
}

// ─────────────────────────────────────────────────────────────────────────────
// SLIDE 8: TAH Operative Steps
// ─────────────────────────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.light }, line: { type: "none" } });
  addTopBar(s, "04  |  SURGICAL TECHNIQUE — TAH: OPERATIVE STEPS", C.navy);
  s.addText("Step-by-Step Dissection", { x: 0.4, y: 0.65, w: 9, h: 0.5, fontSize: 22, bold: true, color: C.navy });

  // Timeline-style steps
  const steps = [
    { n: "7", t: "Round Ligaments", b: "Clamped bilaterally with Kocher's forceps → cut → ligated (No.1 Vicryl). Opens broad ligament." },
    { n: "8", t: "Broad Ligament & Infundibulopelvic", b: "Ant. & post. broad lig. leaves opened. If BSO: IP ligament doubly clamped, cut, ligated. If ovaries retained: utero-ovarian ligament + tube divided near uterus." },
    { n: "9", t: "Bladder Flap", b: "Uterovesical peritoneum incised transversely. Bladder dissected bluntly/sharply downward off lower uterine segment and cervix (pledget dissection)." },
    { n: "10", t: "Uterine Vessels", b: "At level of internal os: uterine artery & veins clamped (straight Heaney), cut, suture-transfixed with No.1 Vicryl bilaterally." },
    { n: "11", t: "Cardinal & Uterosacral Ligaments", b: "Serial clamping (curved Heaney) down to vaginal vault. Uterosacral ligaments ligated for apical support." },
    { n: "12", t: "Colpotomy & Specimen Removal", b: "Vagina entered anteriorly with curved scissors. Uterus + cervix excised. Specimen sent for HPE." },
    { n: "13", t: "Vaginal Cuff Closure", b: "Figure-of-8 interrupted Vicryl sutures. Uterosacral ligaments incorporated at angles (McCall culdoplasty)." },
    { n: "14", t: "Peritonization & Closure", b: "Pelvic peritoneum closed with 2-0 Vicryl. Irrigate 500-700 mL NS. Close fascia (PDS), skin (staples/subcuticular). Counts correct." },
  ];

  steps.forEach((step, i) => {
    const col = i < 4 ? 0 : 1;
    const row = i % 4;
    const x = col === 0 ? 0.25 : 5.15;
    const y = 1.2 + row * 1.05;

    s.addShape(pres.shapes.RECTANGLE, { x, y, w: 0.45, h: 0.45, fill: { color: C.teal }, line: { type: "none" } });
    s.addText(step.n, { x, y, w: 0.45, h: 0.45, fontSize: 12, bold: true, color: C.white, align: "center", valign: "middle" });
    s.addText(step.t, { x: x + 0.55, y: y + 0.02, w: 4.15, h: 0.25, fontSize: 10, bold: true, color: C.navy });
    s.addText(step.b, { x: x + 0.55, y: y + 0.28, w: 4.15, h: 0.68, fontSize: 8, color: C.text });
    // connector line (except last in each column)
    if (row < 3) {
      s.addShape(pres.shapes.RECTANGLE, { x: x + 0.19, y: y + 0.45, w: 0.06, h: 0.6, fill: { color: C.teal, transparency: 50 }, line: { type: "none" } });
    }
  });
  addFooter(s);
}

// ─────────────────────────────────────────────────────────────────────────────
// SLIDE 9: Vaginal Hysterectomy
// ─────────────────────────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.light }, line: { type: "none" } });
  addTopBar(s, "05  |  MINIMALLY INVASIVE — VAGINAL HYSTERECTOMY (VH)", C.teal);
  s.addText("Vaginal Hysterectomy: Technique Overview", { x: 0.4, y: 0.65, w: 9, h: 0.5, fontSize: 22, bold: true, color: C.navy });

  s.addText("Ideal Candidate: Mobile uterus ≤12 weeks, uterine prolapse, adequate vaginal access, parous patient.", {
    x: 0.4, y: 1.18, w: 9.2, h: 0.38, fontSize: 10.5, color: C.teal, italic: true
  });

  const steps = [
    ["1. Patient Setup", "Lithotomy position. Foley catheter. Weighted posterior retractor + right angle retractor inserted vaginally. Cervix grasped with tenaculum."],
    ["2. Circumferential Incision", "Circumferential incision around cervix at the cervicovaginal junction. Anterior and posterior cul-de-sac entered with scissors."],
    ["3. Uterosacral/Cardinal Ligaments", "Uterosacral and cardinal ligaments clamped, cut, ligated bilaterally with progressive ascent. McCall culdoplasty for vault support."],
    ["4. Uterine Vessels", "Uterine vessels identified and ligated bilaterally. Uterus delivered — fundus brought through vaginal incision."],
    ["5. Adnexae", "If salpingectomy/oophorectomy needed: delivered through vaginal incision using Babcock clamps after adequate mobility achieved."],
    ["6. Closure", "Vaginal cuff closed with interrupted or continuous absorbable sutures. Peritoneum closed (optional). Vault haemostasis confirmed."],
  ];

  steps.forEach((step, i) => {
    const col = i < 3 ? 0 : 1;
    const row = i % 3;
    const x = col === 0 ? 0.3 : 5.2;
    const y = 1.65 + row * 1.25;

    s.addShape(pres.shapes.RECTANGLE, { x, y, w: 4.5, h: 1.1, fill: { color: C.white }, line: { color: C.lightTeal, pt: 1 } });
    s.addShape(pres.shapes.RECTANGLE, { x, y, w: 4.5, h: 0.3, fill: { color: C.teal, transparency: 85 }, line: { type: "none" } });
    s.addText(step[0], { x: x + 0.15, y: y + 0.03, w: 4.1, h: 0.26, fontSize: 10, bold: true, color: C.teal });
    s.addText(step[1], { x: x + 0.15, y: y + 0.34, w: 4.2, h: 0.68, fontSize: 8.5, color: C.text });
  });
  addFooter(s);
}

// ─────────────────────────────────────────────────────────────────────────────
// SLIDE 10: Laparoscopic & Robotic Hysterectomy
// ─────────────────────────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.light }, line: { type: "none" } });
  addTopBar(s, "05  |  MINIMALLY INVASIVE — LAPAROSCOPIC & ROBOTIC HYSTERECTOMY", C.teal);
  s.addText("Laparoscopic / Robotic Hysterectomy", { x: 0.4, y: 0.65, w: 9, h: 0.5, fontSize: 22, bold: true, color: C.navy });

  // Left: Types
  s.addShape(pres.shapes.RECTANGLE, { x: 0.3, y: 1.22, w: 4.4, h: 1.5, fill: { color: C.white }, line: { color: C.teal, pt: 1 } });
  s.addShape(pres.shapes.RECTANGLE, { x: 0.3, y: 1.22, w: 4.4, h: 0.32, fill: { color: C.teal }, line: { type: "none" } });
  s.addText("TYPES OF LAPAROSCOPIC HYSTERECTOMY", { x: 0.4, y: 1.22, w: 4.2, h: 0.32, fontSize: 9, bold: true, color: C.white, valign: "middle" });
  const types = [
    "LAVH — Laparoscopically Assisted Vaginal Hysterectomy",
    "TLH — Total Laparoscopic Hysterectomy",
    "LSH — Laparoscopic Supracervical Hysterectomy",
    "RASH — Robot-Assisted (da Vinci) Hysterectomy",
  ];
  types.forEach((t, i) => {
    s.addText("▸  " + t, { x: 0.5, y: 1.6 + i * 0.28, w: 4.0, h: 0.26, fontSize: 8.5, color: C.text });
  });

  // Right: Steps
  s.addShape(pres.shapes.RECTANGLE, { x: 5.2, y: 1.22, w: 4.5, h: 1.5, fill: { color: C.white }, line: { color: C.teal, pt: 1 } });
  s.addShape(pres.shapes.RECTANGLE, { x: 5.2, y: 1.22, w: 4.5, h: 0.32, fill: { color: C.teal }, line: { type: "none" } });
  s.addText("PORT PLACEMENT", { x: 5.3, y: 1.22, w: 4.2, h: 0.32, fontSize: 9, bold: true, color: C.white, valign: "middle" });
  const ports = [
    "Umbilical: camera (10–12mm trocar); 0° or 30° scope",
    "Bilateral lower quadrant: 5mm working ports",
    "Suprapubic: 5mm assistant port",
    "Uterine manipulator (Valchev/RUMI/V-Care) inserted vaginally",
  ];
  ports.forEach((p, i) => {
    s.addText("▸  " + p, { x: 5.35, y: 1.6 + i * 0.28, w: 4.2, h: 0.26, fontSize: 8.5, color: C.text });
  });

  // Advantages table
  s.addShape(pres.shapes.RECTANGLE, { x: 0.3, y: 2.84, w: 9.4, h: 0.32, fill: { color: C.navy }, line: { type: "none" } });
  s.addText("ADVANTAGES OF LAPAROSCOPIC vs. ABDOMINAL HYSTERECTOMY (Evidence-Based)", { x: 0.4, y: 2.84, w: 9.2, h: 0.32, fontSize: 9.5, bold: true, color: C.white, valign: "middle" });

  const advs = [
    ["Less Postoperative Pain", "Significantly lower pain scores at 6 weeks and 12 months vs. laparotomy"],
    ["Faster Recovery", "Return to work/family earlier; hospital stay ≤24 hours for LH vs. 3–5 days for AH"],
    ["Lower Readmission", "Lower hospital readmission rates than AH, VH, and robotic approaches (ACOG evidence)"],
    ["Better QoL", "Improved sexual function, physical & mental functioning at 6 and 12 months post-op"],
    ["Cost-Effective", "Higher upfront procedural cost offset by shorter stay; further reduced with reusable instruments"],
  ];
  advs.forEach((a, i) => {
    s.addShape(pres.shapes.RECTANGLE, { x: 0.3 + i * 1.88, y: 3.22, w: 1.78, h: 2.0, fill: { color: C.white }, line: { color: C.lightTeal, pt: 1 } });
    s.addShape(pres.shapes.RECTANGLE, { x: 0.3 + i * 1.88, y: 3.22, w: 1.78, h: 0.6, fill: { color: C.teal, transparency: 80 }, line: { type: "none" } });
    s.addText(a[0], { x: 0.4 + i * 1.88, y: 3.24, w: 1.6, h: 0.56, fontSize: 8.5, bold: true, color: C.teal, align: "center", valign: "middle" });
    s.addText(a[1], { x: 0.4 + i * 1.88, y: 3.88, w: 1.6, h: 1.25, fontSize: 7.5, color: C.text, align: "center" });
  });
  addFooter(s);
}

// ─────────────────────────────────────────────────────────────────────────────
// SLIDE 11: Supracervical Hysterectomy
// ─────────────────────────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.light }, line: { type: "none" } });
  addTopBar(s, "04  |  SUBTYPES — SUPRACERVICAL & RADICAL HYSTERECTOMY", C.navy);
  s.addText("Special Types of Hysterectomy", { x: 0.4, y: 0.65, w: 9, h: 0.5, fontSize: 22, bold: true, color: C.navy });

  // Supracervical
  s.addShape(pres.shapes.RECTANGLE, { x: 0.3, y: 1.2, w: 4.4, h: 4.0, fill: { color: C.white }, line: { type: "none" }, shadow: { type: "outer", color: "000000", blur: 5, offset: 2, angle: 135, opacity: 0.1 } });
  s.addShape(pres.shapes.RECTANGLE, { x: 0.3, y: 1.2, w: 4.4, h: 0.44, fill: { color: C.teal }, line: { type: "none" } });
  s.addText("SUPRACERVICAL (SUBTOTAL) HYSTERECTOMY", { x: 0.4, y: 1.2, w: 4.2, h: 0.44, fontSize: 9.5, bold: true, color: C.white, valign: "middle" });
  const supra = [
    ["Definition", "Removal of uterine corpus; cervix is left in situ"],
    ["Technique", "Same as TAH up to level of isthmus; uterus amputated at isthmus; morcellation (laparoscopic) or hand-detachment (open)"],
    ["Indications", "Dense bladder/uterine adhesions; hemodynamically unstable patient; patient preference (controversial)"],
    ["Advantages", "Shorter operative time, possible preservation of pelvic floor support"],
    ["Disadvantages", "Continued Pap smears required; 1–2% risk of cyclic bleeding from residual cervical stump; cervical stump cancer risk"],
    ["Note (Sabiston)", "Least preferred route; reserved for specific anatomical or patient-driven scenarios"],
  ];
  supra.forEach(([label, text], i) => {
    s.addText(label + ":", { x: 0.5, y: 1.74 + i * 0.56, w: 1.1, h: 0.28, fontSize: 8.5, bold: true, color: C.teal });
    s.addText(text, { x: 1.62, y: 1.74 + i * 0.56, w: 2.95, h: 0.44, fontSize: 8, color: C.text });
  });

  // Radical (Wertheim's)
  s.addShape(pres.shapes.RECTANGLE, { x: 5.2, y: 1.2, w: 4.5, h: 4.0, fill: { color: C.white }, line: { type: "none" }, shadow: { type: "outer", color: "000000", blur: 5, offset: 2, angle: 135, opacity: 0.1 } });
  s.addShape(pres.shapes.RECTANGLE, { x: 5.2, y: 1.2, w: 4.5, h: 0.44, fill: { color: C.red }, line: { type: "none" } });
  s.addText("RADICAL HYSTERECTOMY (WERTHEIM'S)", { x: 5.3, y: 1.2, w: 4.3, h: 0.44, fontSize: 9.5, bold: true, color: C.white, valign: "middle" });
  const radical = [
    ["Indication", "Cervical carcinoma Stage IA2–IIA; occasionally endometrial cancer"],
    ["Structures Removed", "Uterus + cervix + upper 1–2 cm vagina + parametria bilaterally + pelvic lymph nodes"],
    ["Classification (Querleu-Morrow)", "Type A (minimal), B (modified radical), C (classic radical), D (extended)"],
    ["Key Steps", "Ureteral dissection & mobilization critical; identify ureter throughout parametrial resection"],
    ["Complications", "Bladder dysfunction (10–15%), ureteral injury, lymphedema, bladder/bowel fistula"],
    ["Advantage vs. RT", "Preserves ovarian function in young patients; avoids late radiation effects"],
  ];
  radical.forEach(([label, text], i) => {
    s.addText(label + ":", { x: 5.38, y: 1.74 + i * 0.56, w: 1.4, h: 0.28, fontSize: 8.5, bold: true, color: C.red });
    s.addText(text, { x: 6.82, y: 1.74 + i * 0.56, w: 2.72, h: 0.44, fontSize: 8, color: C.text });
  });
  addFooter(s);
}

// ─────────────────────────────────────────────────────────────────────────────
// SLIDE 12: Complications
// ─────────────────────────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.light }, line: { type: "none" } });
  addTopBar(s, "06  |  COMPLICATIONS & OUTCOMES", C.red);
  s.addText("Complications of Hysterectomy", { x: 0.4, y: 0.65, w: 9, h: 0.5, fontSize: 22, bold: true, color: C.navy });

  const intra = [
    ["Bladder Injury", "Most common organ injury (1–2%); especially at bladder flap dissection; cystoscopy recommended"],
    ["Ureteral Injury", "0.1–1%; most occur near cardinal ligament/uterine artery; stenting or re-implantation"],
    ["Bowel Injury", "Rare; risk in adhesive disease, endometriosis; primary repair or ostomy"],
    ["Hemorrhage", "EBL >500 mL; major vessel injury; transfusion; may require packing or return to OR"],
  ];
  const post = [
    ["Vault Hematoma/Abscess", "2–4%; treated with drainage/antibiotics; fever, pelvic pain post-op"],
    ["DVT / Pulmonary Embolism", "0.2–1.5%; higher with AH, malignancy; prophylaxis with LMWH + TED stockings"],
    ["Wound Infection / Dehiscence", "1–5%; more with AH, obesity, DM; daily wound care, VAC if needed"],
    ["Urinary Tract Infection", "Common post-catheterization; treated with antibiotics"],
    ["Vault Prolapse", "Long-term; incorporate uterosacral ligaments at closure (McCall culdoplasty)"],
    ["Bladder Dysfunction", "Urgency, frequency; especially post-radical; usually resolves in weeks"],
  ];

  // Intraoperative
  s.addShape(pres.shapes.RECTANGLE, { x: 0.3, y: 1.2, w: 4.4, h: 0.32, fill: { color: C.red }, line: { type: "none" } });
  s.addText("INTRAOPERATIVE COMPLICATIONS", { x: 0.4, y: 1.2, w: 4.2, h: 0.32, fontSize: 9, bold: true, color: C.white, valign: "middle" });
  intra.forEach(([title, body], i) => {
    s.addShape(pres.shapes.RECTANGLE, { x: 0.3, y: 1.55 + i * 0.97, w: 4.4, h: 0.88, fill: { color: C.white }, line: { color: "FADBD8", pt: 1 } });
    s.addText(title, { x: 0.5, y: 1.58 + i * 0.97, w: 4.0, h: 0.28, fontSize: 9.5, bold: true, color: C.red });
    s.addText(body, { x: 0.5, y: 1.86 + i * 0.97, w: 4.0, h: 0.5, fontSize: 8, color: C.text });
  });

  // Post-operative
  s.addShape(pres.shapes.RECTANGLE, { x: 5.2, y: 1.2, w: 4.5, h: 0.32, fill: { color: C.purple }, line: { type: "none" } });
  s.addText("POST-OPERATIVE COMPLICATIONS", { x: 5.3, y: 1.2, w: 4.3, h: 0.32, fontSize: 9, bold: true, color: C.white, valign: "middle" });
  post.forEach(([title, body], i) => {
    s.addShape(pres.shapes.RECTANGLE, { x: 5.2, y: 1.55 + i * 0.65, w: 4.5, h: 0.6, fill: { color: C.white }, line: { color: "D7BDE2", pt: 1 } });
    s.addText(title, { x: 5.4, y: 1.57 + i * 0.65, w: 4.1, h: 0.24, fontSize: 9.5, bold: true, color: C.purple });
    s.addText(body, { x: 5.4, y: 1.81 + i * 0.65, w: 4.1, h: 0.3, fontSize: 7.8, color: C.text });
  });
  addFooter(s);
}

// ─────────────────────────────────────────────────────────────────────────────
// SLIDE 13: Key Comparison Table
// ─────────────────────────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.light }, line: { type: "none" } });
  addTopBar(s, "SUMMARY  |  COMPARISON OF HYSTERECTOMY APPROACHES", C.navy);
  s.addText("Approach Comparison at a Glance", { x: 0.4, y: 0.65, w: 9, h: 0.5, fontSize: 22, bold: true, color: C.navy });

  // Table header
  const cols = ["Parameter", "Abdominal (TAH)", "Vaginal (VH)", "Laparoscopic (TLH)", "Robotic (RASH)"];
  const colW = [2.2, 1.8, 1.8, 2.0, 2.0];
  let xOff = 0.25;
  cols.forEach((c, i) => {
    s.addShape(pres.shapes.RECTANGLE, { x: xOff, y: 1.22, w: colW[i], h: 0.38, fill: { color: C.navy }, line: { type: "none" } });
    s.addText(c, { x: xOff, y: 1.22, w: colW[i], h: 0.38, fontSize: i === 0 ? 9 : 8.5, bold: true, color: C.white, align: "center", valign: "middle" });
    xOff += colW[i];
  });

  const rows = [
    ["Incision", "Pfannenstiel/midline", "None (vaginal)", "3–4 small ports", "3–5 ports"],
    ["Hospital Stay", "3–5 days", "1–2 days", "≤24 hours", "≤24 hours"],
    ["Recovery", "4–6 weeks", "2–3 weeks", "1–2 weeks", "1–2 weeks"],
    ["Pain Score", "Highest", "Low", "Low", "Low"],
    ["Cost", "Lowest", "Low", "Moderate", "Highest"],
    ["Uterus Size", "Any", "≤12 weeks", "Any (morcellation risk)", "Any"],
    ["Learning Curve", "Short", "Moderate", "Long", "Long"],
    ["ACOG Preference", "Last resort (benign)", "1st choice", "2nd choice", "No added benefit"],
  ];

  const rowColors = ["FFFFFF", "F2F3F4"];
  rows.forEach((row, ri) => {
    let xo = 0.25;
    row.forEach((cell, ci) => {
      s.addShape(pres.shapes.RECTANGLE, { x: xo, y: 1.62 + ri * 0.48, w: colW[ci], h: 0.47, fill: { color: ri % 2 === 0 ? "FFFFFF" : "F0F6FA" }, line: { color: "DEE4E7", pt: 0.5 } });
      s.addText(cell, {
        x: xo + 0.05, y: 1.62 + ri * 0.48, w: colW[ci] - 0.1, h: 0.47,
        fontSize: ci === 0 ? 8.5 : 8, bold: ci === 0,
        color: ci === 0 ? C.navy : C.text, align: ci === 0 ? "left" : "center", valign: "middle"
      });
      xo += colW[ci];
    });
  });
  addFooter(s);
}

// ─────────────────────────────────────────────────────────────────────────────
// SLIDE 14: Conclusion
// ─────────────────────────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.navy }, line: { type: "none" } });
  s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 3.9, w: 10, h: 1.73, fill: { color: C.teal, transparency: 85 }, line: { type: "none" } });
  s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 0.18, h: 5.625, fill: { color: C.accent }, line: { type: "none" } });

  s.addText("Key Takeaways", { x: 0.5, y: 0.3, w: 9, h: 0.55, fontSize: 28, bold: true, color: C.white });

  const points = [
    "Hysterectomy is indicated for a wide range of benign (fibroids, AUB, prolapse, endometriosis) and malignant (endometrial, cervical, ovarian cancer) conditions.",
    "Route selection should follow ACOG guidance: Vaginal > Laparoscopic > Abdominal for benign indications.",
    "Abdominal hysterectomy (TAH) remains the standard for large uteri, malignancy, and complex cases where MIS is contraindicated.",
    "Laparoscopic hysterectomy offers equivalent outcomes to VH with less pain, faster recovery, and earlier discharge vs. laparotomy.",
    "The ideal approach is individualized based on uterine size, pathology, anatomy, surgical expertise, and patient preference.",
    "Complications, particularly bladder/ureteral injury, must be anticipated and prevented through meticulous technique.",
  ];

  points.forEach((pt, i) => {
    s.addShape(pres.shapes.RECTANGLE, { x: 0.5, y: 1.05 + i * 0.7, w: 0.28, h: 0.28, fill: { color: C.accent }, line: { type: "none" } });
    s.addText(pt, { x: 0.95, y: 1.05 + i * 0.7, w: 8.8, h: 0.6, fontSize: 9.5, color: C.white });
  });

  s.addText("References: Berek & Novak's Gynecology (17th ed.) | Sabiston Textbook of Surgery (21st ed.) | ACOG Practice Bulletins", {
    x: 0.5, y: 5.2, w: 9, h: 0.3, fontSize: 7.5, color: C.lightTeal, italic: true
  });
}

// ─────────────────────────────────────────────────────────────────────────────
// OUTPUT
// ─────────────────────────────────────────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/hysterectomy-ppt/Hysterectomy_Indications_Techniques.pptx" })
  .then(() => console.log("✅ PPT written successfully."))
  .catch(e => { console.error("❌ Error:", e); process.exit(1); });
Running Command

cd /home/daytona/workspace/hysterectomy-ppt && node build.js 2>&1

Running Command

ls -lh /home/daytona/workspace/hysterectomy-ppt/Hysterectomy_Indications_Techniq…

Your presentation is ready:

Hysterectomy Indications Techniques

Presentation · PPTX


What's inside (14 slides):

SlideContent
1Title slide - navy/teal professional design
2Overview / Agenda (6-topic card layout)
3Definition & Classification - by extent (Total, Subtotal, Radical) and by route (Abdominal, Vaginal, Laparoscopic, Robotic)
4Benign Indications - 8 cards: Fibroids, AUB, Adenomyosis, Prolapse, Endometriosis, Chronic Pelvic Pain, PID, Obstetric Emergencies
5Malignant Indications - Endometrial, Cervical, Ovarian, Sarcoma, CIN, GTD with type badges
6Route Selection - Vaginal vs. Laparoscopic vs. Abdominal with ideal candidates, advantages, and limitations
7TAH Pre-operative Steps (Steps 1-6): Anesthesia, prep, incision, entry, exposure, uterine elevation
8TAH Operative Steps (Steps 7-14): Round ligament to abdominal closure with timeline layout
9Vaginal Hysterectomy technique (6-step layout)
10Laparoscopic & Robotic Hysterectomy - types, port placement, 5-column evidence-based advantages
11Special types: Supracervical vs. Radical (Wertheim's) - side-by-side detail
12Complications - Intraoperative (4) and Post-operative (6) side by side
13Comparison Table - 8-parameter comparison across all 4 approaches
14Conclusion / Key Takeaways with references (Berek & Novak's, Sabiston)
The design uses a navy/teal/gold color palette with color-coded sections (green for benign, red for malignant, teal for MIS) sourced from Berek & Novak's Gynecology and Sabiston Textbook of Surgery.
This is a shared conversation. Sign in to Orris to start your own chat.