Prepare a seminar on Hernia in detail
"hernia repair"[MeSH Terms] AND "mesh"[MeSH Terms]
"inguinal hernia" AND "laparoscopic repair"
mkdir -p /home/daytona/workspace/hernia-seminar && cat > /home/daytona/workspace/hernia-seminar/hernia_seminar.js << 'JSEOF' const pptxgen = require("pptxgenjs"); const pres = new pptxgen(); pres.layout = 'LAYOUT_16x9'; pres.title = 'Hernia – Comprehensive Surgical Seminar'; pres.author = 'Surgical Residency Seminar'; // ─── COLOR PALETTE ───────────────────────────────────────────────── const C = { darkBlue: "0D2B55", // dominant – dark navy midBlue: "1A4A8A", // section headers accentTeal:"1E7FAB", // accents / highlights lightGray: "F2F5F8", // content backgrounds white: "FFFFFF", gold: "E8A020", // key facts / callouts red: "C0392B", // danger / complications green: "1E8449", // positive outcomes textDark: "1C1C1C", textMid: "3A3A3A", }; // ─── HELPER FUNCTIONS ─────────────────────────────────────────────── function titleSlide(title, subtitle) { const sl = pres.addSlide(); // Full navy background sl.addShape(pres.ShapeType.rect, { x:0, y:0, w:10, h:5.625, fill:{color:C.darkBlue} }); // Teal accent bar left sl.addShape(pres.ShapeType.rect, { x:0, y:0, w:0.18, h:5.625, fill:{color:C.accentTeal} }); // Gold horizontal rule sl.addShape(pres.ShapeType.rect, { x:0.4, y:2.9, w:9.2, h:0.06, fill:{color:C.gold} }); sl.addText(title, { x:0.5, y:1.1, w:9, h:1.5, fontSize:38, bold:true, color:C.white, fontFace:"Calibri", align:"center" }); if (subtitle) { sl.addText(subtitle, { x:0.5, y:3.1, w:9, h:0.7, fontSize:18, color:C.accentTeal, fontFace:"Calibri", align:"center", italic:true }); } sl.addText("Surgical Residency Seminar | July 2026", { x:0.5, y:4.8, w:9, h:0.5, fontSize:12, color:"8AADC8", fontFace:"Calibri", align:"center" }); return sl; } function sectionDivider(sectionTitle, num) { const sl = pres.addSlide(); sl.addShape(pres.ShapeType.rect, { x:0, y:0, w:10, h:5.625, fill:{color:C.midBlue} }); sl.addShape(pres.ShapeType.rect, { x:0, y:0, w:10, h:0.12, fill:{color:C.accentTeal} }); sl.addShape(pres.ShapeType.rect, { x:0, y:5.5, w:10, h:0.125, fill:{color:C.gold} }); sl.addText(`${num}`, { x:0.3, y:1.1, w:1.8, h:1.8, fontSize:72, bold:true, color:"FFFFFF20", fontFace:"Calibri", align:"center" }); sl.addText(sectionTitle, { x:0.5, y:2.1, w:9, h:1.2, fontSize:32, bold:true, color:C.white, fontFace:"Calibri", align:"center" }); return sl; } function contentSlide(title, bullets, opts = {}) { const sl = pres.addSlide(); // Light background sl.addShape(pres.ShapeType.rect, { x:0, y:0, w:10, h:5.625, fill:{color:C.lightGray} }); // Top header bar sl.addShape(pres.ShapeType.rect, { x:0, y:0, w:10, h:0.85, fill:{color:C.darkBlue} }); sl.addShape(pres.ShapeType.rect, { x:0, y:0.85, w:10, h:0.05, fill:{color:C.accentTeal} }); sl.addText(title, { x:0.3, y:0.08, w:9.4, h:0.7, fontSize:22, bold:true, color:C.white, fontFace:"Calibri", valign:"middle", margin:0 }); // Bullets const items = bullets.map((b, i) => { if (typeof b === 'string') { return { text: b, options: { bullet: { type:"bullet", characterCode:"25B8" }, color:C.textDark, fontSize: opts.fontSize||15, fontFace:"Calibri", breakLine: i < bullets.length-1, paraSpaceAfter:4 }}; } return b; }); sl.addText(items, { x:0.4, y:1.05, w:9.2, h:4.35, valign:"top" }); // Bottom accent sl.addShape(pres.ShapeType.rect, { x:0, y:5.55, w:10, h:0.075, fill:{color:C.midBlue} }); return sl; } function twoColSlide(title, leftTitle, leftItems, rightTitle, rightItems) { const sl = pres.addSlide(); sl.addShape(pres.ShapeType.rect, { x:0, y:0, w:10, h:5.625, fill:{color:C.lightGray} }); sl.addShape(pres.ShapeType.rect, { x:0, y:0, w:10, h:0.85, fill:{color:C.darkBlue} }); sl.addShape(pres.ShapeType.rect, { x:0, y:0.85, w:10, h:0.05, fill:{color:C.accentTeal} }); sl.addText(title, { x:0.3, y:0.08, w:9.4, h:0.7, fontSize:22, bold:true, color:C.white, fontFace:"Calibri", valign:"middle", margin:0 }); // Left column header sl.addShape(pres.ShapeType.rect, { x:0.3, y:1.05, w:4.45, h:0.42, fill:{color:C.midBlue}, line:{color:C.midBlue} }); sl.addText(leftTitle, { x:0.3, y:1.05, w:4.45, h:0.42, fontSize:14, bold:true, color:C.white, fontFace:"Calibri", align:"center", valign:"middle", margin:0 }); // Right column header sl.addShape(pres.ShapeType.rect, { x:5.2, y:1.05, w:4.45, h:0.42, fill:{color:C.accentTeal}, line:{color:C.accentTeal} }); sl.addText(rightTitle, { x:5.2, y:1.05, w:4.45, h:0.42, fontSize:14, bold:true, color:C.white, fontFace:"Calibri", align:"center", valign:"middle", margin:0 }); // Divider sl.addShape(pres.ShapeType.line, { x:4.95, y:1.05, w:0, h:4.4, line:{color:"CCCCCC", width:1.5} }); const mkBullets = (items) => items.map((b,i) => ({ text: b, options: { bullet:{type:"bullet", characterCode:"25B8"}, color:C.textDark, fontSize:13.5, fontFace:"Calibri", breakLine: i < items.length-1, paraSpaceAfter:5 } })); sl.addText(mkBullets(leftItems), { x:0.3, y:1.55, w:4.5, h:3.8, valign:"top" }); sl.addText(mkBullets(rightItems), { x:5.2, y:1.55, w:4.5, h:3.8, valign:"top" }); sl.addShape(pres.ShapeType.rect, { x:0, y:5.55, w:10, h:0.075, fill:{color:C.midBlue} }); return sl; } function calloutSlide(title, mainText, calloutLabel, calloutText, calloutColor) { const sl = pres.addSlide(); sl.addShape(pres.ShapeType.rect, { x:0, y:0, w:10, h:5.625, fill:{color:C.lightGray} }); sl.addShape(pres.ShapeType.rect, { x:0, y:0, w:10, h:0.85, fill:{color:C.darkBlue} }); sl.addShape(pres.ShapeType.rect, { x:0, y:0.85, w:10, h:0.05, fill:{color:C.accentTeal} }); sl.addText(title, { x:0.3, y:0.08, w:9.4, h:0.7, fontSize:22, bold:true, color:C.white, fontFace:"Calibri", valign:"middle", margin:0 }); const items = mainText.map((b,i)=>({ text:b, options:{ bullet:{type:"bullet", characterCode:"25B8"}, color:C.textDark, fontSize:14.5, fontFace:"Calibri", breakLine: i<mainText.length-1, paraSpaceAfter:5 }})); sl.addText(items, { x:0.4, y:1.05, w:6.3, h:4.35, valign:"top" }); // Callout box right sl.addShape(pres.ShapeType.rect, { x:7.0, y:1.1, w:2.7, h:4.25, fill:{color: calloutColor || C.gold}, line:{color: calloutColor || C.gold} }); sl.addText(calloutLabel, { x:7.05, y:1.18, w:2.6, h:0.45, fontSize:13, bold:true, color:C.white, fontFace:"Calibri", align:"center", margin:0 }); sl.addText(calloutText, { x:7.05, y:1.7, w:2.6, h:3.5, fontSize:12.5, color:C.white, fontFace:"Calibri", align:"left", valign:"top", margin:4 }); sl.addShape(pres.ShapeType.rect, { x:0, y:5.55, w:10, h:0.075, fill:{color:C.midBlue} }); return sl; } function tableSlide(title, headers, rows, colWidths) { const sl = pres.addSlide(); sl.addShape(pres.ShapeType.rect, { x:0, y:0, w:10, h:5.625, fill:{color:C.lightGray} }); sl.addShape(pres.ShapeType.rect, { x:0, y:0, w:10, h:0.85, fill:{color:C.darkBlue} }); sl.addShape(pres.ShapeType.rect, { x:0, y:0.85, w:10, h:0.05, fill:{color:C.accentTeal} }); sl.addText(title, { x:0.3, y:0.08, w:9.4, h:0.7, fontSize:22, bold:true, color:C.white, fontFace:"Calibri", valign:"middle", margin:0 }); const tableData = [ headers.map(h => ({ text: h, options: { bold:true, color:C.white, fill:C.midBlue, fontSize:12, fontFace:"Calibri", align:"center", valign:"middle" }})), ...rows.map((row, ri) => row.map(cell => ({ text: cell, options: { color:C.textDark, fill: ri%2===0 ? "E8EDF2" : C.white, fontSize:11.5, fontFace:"Calibri", align:"left", valign:"middle" }}))) ]; sl.addTable(tableData, { x:0.25, y:1.05, w:9.5, h:4.35, colW: colWidths || undefined, border:{pt:0.5, color:"CCCCCC"}, rowH:0.52 }); sl.addShape(pres.ShapeType.rect, { x:0, y:5.55, w:10, h:0.075, fill:{color:C.midBlue} }); return sl; } // ══════════════════════════════════════════════════════════════════ // SLIDE 1 – TITLE // ══════════════════════════════════════════════════════════════════ titleSlide("HERNIA", "A Comprehensive Surgical Seminar for Residents"); // ══════════════════════════════════════════════════════════════════ // SLIDE 2 – AGENDA // ══════════════════════════════════════════════════════════════════ { const sl = pres.addSlide(); sl.addShape(pres.ShapeType.rect, { x:0, y:0, w:10, h:5.625, fill:{color:C.darkBlue} }); sl.addShape(pres.ShapeType.rect, { x:0, y:0, w:0.18, h:5.625, fill:{color:C.gold} }); sl.addText("Seminar Agenda", { x:0.5, y:0.3, w:9, h:0.7, fontSize:28, bold:true, color:C.white, fontFace:"Calibri", align:"center" }); const agenda = [ { num:"01", topic:"Definition & Epidemiology" }, { num:"02", topic:"Classification & Anatomy" }, { num:"03", topic:"Pathophysiology & Etiology" }, { num:"04", topic:"Clinical Features & Diagnosis" }, { num:"05", topic:"Inguinal Hernia – Open & Laparoscopic Repair" }, { num:"06", topic:"Femoral Hernia" }, { num:"07", topic:"Ventral / Incisional Hernia" }, { num:"08", topic:"Special Hernias" }, { num:"09", topic:"Complications & Management" }, { num:"10", topic:"Post-op Care & Current Evidence" }, ]; const col1 = agenda.slice(0,5); const col2 = agenda.slice(5); col1.forEach((item, i) => { const y = 1.2 + i * 0.78; sl.addShape(pres.ShapeType.rect, { x:0.5, y:y, w:0.5, h:0.5, fill:{color:C.accentTeal} }); sl.addText(item.num, { x:0.5, y:y, w:0.5, h:0.5, fontSize:13, bold:true, color:C.white, align:"center", valign:"middle", margin:0 }); sl.addText(item.topic, { x:1.15, y:y+0.05, w:3.5, h:0.4, fontSize:13.5, color:C.white, fontFace:"Calibri" }); }); col2.forEach((item, i) => { const y = 1.2 + i * 0.78; sl.addShape(pres.ShapeType.rect, { x:5.3, y:y, w:0.5, h:0.5, fill:{color:C.gold} }); sl.addText(item.num, { x:5.3, y:y, w:0.5, h:0.5, fontSize:13, bold:true, color:C.white, align:"center", valign:"middle", margin:0 }); sl.addText(item.topic, { x:5.95, y:y+0.05, w:3.7, h:0.4, fontSize:13.5, color:C.white, fontFace:"Calibri" }); }); } // ══════════════════════════════════════════════════════════════════ // SECTION 1 – DEFINITION & EPIDEMIOLOGY // ══════════════════════════════════════════════════════════════════ sectionDivider("Definition & Epidemiology", "01"); contentSlide("Definition of Hernia", [ "A hernia is the protrusion of a viscus or part of a viscus through a weakness or defect in the wall of the cavity that normally contains it", "Three essential components:", " ► SAC – peritoneal lining that forms the hernia pouch", " ► COVERING – layers of tissue overlying the sac", " ► CONTENTS – bowel (small or large), omentum, bladder, ovary", "Sliding hernia: part of the sac wall is formed by an extraperitoneal organ (e.g. caecum, sigmoid, bladder)", "Richter hernia: only the antimesenteric border of bowel is incarcerated – obstruction may be partial, necrosis can occur without complete obstruction", ]); contentSlide("Epidemiology & Incidence", [ "IHR is one of the most common operations worldwide – over 20 million inguinal hernia repairs performed annually (Sabiston, 2024)", "Lifetime risk: 27–43% in males; 3–6% in females", "Inguinal hernias account for ~75% of all abdominal wall hernias", "Two-thirds of inguinal hernias are indirect; one-third are direct", "Femoral hernias: ~3% of groin hernias; female-to-male ratio ~10:1", "Incisional hernia: occurs in 2–20% of all laparotomy wounds", "Recurrence rates post-repair: 1.7–10% (higher for tissue repairs)", "Chronic post-herniorrhaphy pain: affects 10–12% of patients; severe in 1–3%", ]); // ══════════════════════════════════════════════════════════════════ // SECTION 2 – CLASSIFICATION & ANATOMY // ══════════════════════════════════════════════════════════════════ sectionDivider("Classification & Anatomy", "02"); tableSlide( "Classification of Hernias", ["Category", "Types"], [ ["By location", "Inguinal (direct / indirect), Femoral, Umbilical, Epigastric, Incisional / Ventral, Spigelian, Obturator, Lumbar, Hiatal, Diaphragmatic"], ["By aetiology", "Congenital (patent processus vaginalis) | Acquired (weakness + increased intra-abdominal pressure)"], ["By clinical status", "Reducible – contents return spontaneously or manually"], ["", "Irreducible / Incarcerated – contents cannot be reduced (risk of obstruction)"], ["", "Strangulated – vascular compromise; surgical emergency"], ["By anatomy (Nyhus)", "Type I: Indirect, normal deep ring | Type II: Indirect, enlarged deep ring"], ["", "Type III: Direct (IIIa), Indirect/large (IIIb), Femoral (IIIc)"], ["", "Type IV: Recurrent hernia"], ], [2.2, 7.3] ); contentSlide("Anatomy – Inguinal Region (Anterior View)", [ "Inguinal canal: 4 cm long tunnel running superomedially from deep (internal) ring to superficial (external) ring", "Boundaries: Anterior – external oblique aponeurosis | Posterior – transversalis fascia | Superior – internal oblique + transversus arch | Inferior – inguinal ligament (Poupart)", "Hesselbach's triangle (site of direct hernias): bounded inferiorly by inguinal ligament, laterally by inferior epigastric vessels, medially by lateral border of rectus abdominis", "Deep (internal) ring: defect in transversalis fascia, lateral to inferior epigastric vessels → indirect hernias emerge here", "Superficial (external) ring: aperture in external oblique aponeurosis, superolatetal to pubic tubercle", "Spermatic cord contents (males): vas deferens, testicular/cremasteric/vasal vessels, genital branch of genitofemoral nerve, lymphatics", "Cooper's ligament (pectineal ligament): strong fibrous band on superior pubic ramus – key landmark for McVay repair and TEP/TAPP", ]); contentSlide("Anatomy – Posterior (Laparoscopic) View", [ "Myopectineal orifice (Fruchaud): single potential herniation window in the pelvic fascia – contains all groin hernia sites", "Iliopubic tract (IPT): thickened lower margin of transversalis fascia running parallel to inguinal ligament – lateral to IPT is 'triangle of doom'", "Triangle of doom: between vas deferens medially and gonadal vessels laterally – contains external iliac vessels → avoid stapling here", "Triangle of pain (lateral): between gonadal vessels and iliopubic tract laterally – contains femoral nerve, lateral femoral cutaneous nerve, genitofemoral nerve", "Arcuate line (semicircular line of Douglas): posterior rectus sheath ends here (⅓ umbilicus to pubis); preperitoneal space accessed in TEP below this line", "Interfoveolar ligament: fascial condensation medial to arcuate line; helps define direct hernia space", ]); twoColSlide( "Direct vs. Indirect Inguinal Hernia", "Direct Inguinal Hernia", [ "Passes through posterior wall medial to inferior epigastric vessels (Hesselbach's triangle)", "Acquired – due to weakness of transversalis fascia", "Rarely enters scrotum", "Usually broad-necked → lower risk of strangulation", "Seen in older males with chronic ↑ IAP (COPD, BPH, constipation)", "Cough impulse: diffuse, central", "Controlled by pressure over deep ring? No", ], "Indirect Inguinal Hernia", [ "Passes through deep inguinal ring (lateral to inferior epigastric vessels) along spermatic cord", "Congenital – patent processus vaginalis; most common hernia in both sexes", "Can descend into scrotum", "Narrow neck → higher risk of incarceration and strangulation", "Most common hernia type in all age groups, both sexes", "Cough impulse: lateral, oblique direction", "Controlled by pressure over deep ring? Yes", ] ); // ══════════════════════════════════════════════════════════════════ // SECTION 3 – PATHOPHYSIOLOGY & ETIOLOGY // ══════════════════════════════════════════════════════════════════ sectionDivider("Pathophysiology & Etiology", "03"); contentSlide("Pathophysiology of Hernia Formation", [ "Hernia results from the interplay of: (1) structural weakness of the abdominal wall, and (2) raised intra-abdominal pressure", "Congenital: patent processus vaginalis – normally obliterates after testicular descent; failure leads to indirect inguinal hernia or hydrocele", "Collagen defect: Type I/III collagen imbalance, reduced hydroxyproline → weakened fascia (seen in smokers, connective tissue disorders)", "Acquired factors causing raised IAP: chronic cough (COPD), prostatism / bladder outlet obstruction, constipation, obesity, pregnancy, ascites, heavy lifting", "Post-incisional (iatrogenic): poor wound closure technique, infection, haematoma, dehiscence, excessive tension on repair, malnutrition", "Strangulation sequence: Hernia contents → neck compresses venous return → venous engorgement → oedema → arterial compromise → ischaemia → necrosis → perforation", "Femoral hernias: narrow femoral canal (bound by inguinal ligament anteriorly, Cooper's ligament posteriorly, femoral vein laterally, lacunar ligament medially) → very high strangulation risk", ]); contentSlide("Risk Factors for Hernia Development", [ "Non-modifiable: Male sex (inguinal hernia 27–43% lifetime), increasing age, prematurity, connective tissue disorders (Marfan, Ehlers-Danlos)", "Modifiable – chronic raised IAP: smoking (COPD, cough), obesity (BMI >30), constipation, urinary outflow obstruction", "Iatrogenic: previous abdominal surgery (open >> laparoscopic), stoma creation, CAPD catheter placement, ascites drainage", "Malnutrition & wound healing: hypoalbuminaemia, anaemia, diabetes mellitus, immunosuppression (steroids, chemotherapy)", "Family history of hernia: ~8× increased risk in first-degree relatives", "Previous hernia repair: 10–15% of recurrent hernias require re-operation; each recurrence has higher risk of further recurrence", ]); // ══════════════════════════════════════════════════════════════════ // SECTION 4 – CLINICAL FEATURES & DIAGNOSIS // ══════════════════════════════════════════════════════════════════ sectionDivider("Clinical Features & Diagnosis", "04"); contentSlide("Clinical Presentation", [ "Symptoms: painless or mildly uncomfortable lump in groin/abdomen/scrotum; increases with standing, coughing, straining; disappears on lying (reducible)", "Groin hernia: swelling above inguinal ligament (inguinal) vs. below (femoral – passes into upper medial thigh)", "Indirect: oblique inguinal swelling, can reach scrotum or labia; cough impulse lateral; control with finger over deep ring", "Direct: diffuse central bulge in Hesselbach's triangle; rarely enters scrotum", "Incarcerated hernia: irreducible, tender lump; may cause vomiting/obstruction; no bowel sounds in sac", "Strangulated hernia: tense, intensely tender, erythematous swelling; absent cough impulse; signs of bowel obstruction ± peritonitis; surgical emergency", "Femoral hernia: small, hard lump medial to femoral pulse, below inguinal ligament; frequently mistaken for lymph node; high risk of strangulation despite small size", ]); contentSlide("Clinical Examination – Key Steps", [ "1. Inspect patient standing: note site, size, shape, skin changes, visible peristalsis", "2. Ask patient to cough – observe cough impulse (inguinal vs. femoral, direct vs. indirect)", "3. Palpate: consistency, reducibility, tenderness, percussion (resonant = bowel), transillumination", "4. Locate pubic tubercle: inguinal hernia sac is superomedial; femoral is inferolateral to pubic tubercle", "5. Deep ring occlusion test (Ziemann's method): reduce hernia, place fingers over deep ring → cough; if hernia controlled = indirect; if not = direct", "6. Scrotal/labial examination: descent of indirect hernia into scrotum or labia majora", "7. Assessment of opposite side: bilateral groin examination is mandatory", "Investigations: usually clinical; USS useful for impalpable/obese; CT abdomen/pelvis for recurrent, complex, or internal hernias", ]); tableSlide( "Differential Diagnosis of Groin Swelling", ["Condition", "Key Features", "Differentiating Point"], [ ["Inguinal hernia", "Above inguinal ligament, cough impulse +ve", "Can often be reduced"], ["Femoral hernia", "Below and lateral to pubic tubercle", "Hard, rarely reduces, high strangulation risk"], ["Inguinal lymphadenopathy", "Multiple nodes, no cough impulse", "Look for lower limb/genital infection/malignancy"], ["Femoral artery aneurysm", "Pulsatile, expansile", "Duplex USS confirms"], ["Ectopic testis", "Non-palpable testis in scrotum", "USS / MRI, no cough impulse"], ["Psoas abscess", "Fluctuant, may track from spine", "Cold swelling; hip flexion → ↑ pain; CT/MRI"], ["Lipoma of cord", "Soft, non-tender, cord thickening", "No cough impulse; found at hernia surgery"], ["Hydrocele of cord", "Transilluminates, separate from testis", "Cannot get above swelling"], ], [2.8, 3.2, 3.5] ); // ══════════════════════════════════════════════════════════════════ // SECTION 5 – INGUINAL HERNIA REPAIR // ══════════════════════════════════════════════════════════════════ sectionDivider("Inguinal Hernia Repair", "05"); contentSlide("Indications for Repair & Watchful Waiting", [ "Traditionally all inguinal hernias were repaired – even asymptomatic ones – to prevent incarceration", "Contemporary evidence (O'Dwyer 2006, Fitzgibbons 2006): watchful waiting is safe for minimally symptomatic males with reducible inguinal hernias", "~25% of watchful waiting patients cross over to surgery within 2–5 years due to worsening symptoms", "Absolute indications for surgery: strangulation, incarceration, large irreducible hernia, significant symptoms affecting quality of life", "Special populations: female patients → repair recommended due to higher femoral hernia risk; children → repair promptly due to risk of incarceration; recurrent hernia → consider laparoscopic approach", "Emergency repair (strangulation): resuscitate, IV antibiotics, urgent surgery within 4–6 hours of onset", ]); contentSlide("Open Tissue (Non-Mesh) Repairs – Historical & Current Use", [ "Bassini repair (1887): sutures transversus abdominis arch to inguinal ligament; foundational technique; higher recurrence than mesh repairs", "Shouldice repair (1953): four-layer running suture repair of posterior wall; excellent results at specialized centres (recurrence <1%); preferred in young, fit patients", "McVay (Cooper's ligament) repair: approximates transversus abdominis aponeurosis to Cooper's ligament; useful for femoral hernias and strangulated cases; requires relaxing incision to reduce tension", "Halsted repair: transposes spermatic cord subcutaneously; rarely used", "Desarda repair: uses strip of external oblique aponeurosis for posterior wall reinforcement – tissue-based, no foreign material", "Current indications for tissue repair: contaminated field (bowel perforation, abscess), young patients (<30 yrs) with small indirect hernia, patient preference to avoid mesh", ]); contentSlide("Lichtenstein Tension-Free Mesh Repair (Gold Standard)", [ "Introduced 1986 – first true tension-free repair; became gold standard for open inguinal hernia repair", "Technique: under local or general anaesthesia; inguinal canal dissected through external oblique aponeurosis; sac ligated at internal ring; polypropylene mesh (10×15 cm) placed as onlay over posterior wall", "Mesh fixation: inferior edge to shelving of inguinal ligament; superomedial to conjoint tendon; mesh split to create keyhole around spermatic cord (new deep ring)", "Advantages: low recurrence (<1–2%), reduced post-op pain vs. tension repairs, day-case surgery, local anaesthesia suitable", "Complications specific to mesh: seroma, mesh infection (0.1–1%), chronic mesh pain, mesh migration (rare), mesh shrinkage", "Plug and patch (Rutkow-Robbins): mesh plug in defect + onlay patch; acceptable results but mesh plug migration reported", ]); contentSlide("Laparoscopic Inguinal Hernia Repair – Overview", [ "Two main approaches: TAPP (Transabdominal Preperitoneal) and TEP (Totally Extraperitoneal)", "Both place mesh in the preperitoneal space, covering the entire myopectineal orifice (typically 10×15 cm or 15×15 cm mesh)", "Advantages: bilateral hernia repair via same ports, faster return to work, less post-op pain, better for recurrent hernias (avoids scarred anterior field)", "Disadvantages: general anaesthesia required, longer learning curve, higher cost, risk of major vascular injury if anatomy misidentified", "Evidence (Meta-analysis, Essa 2025 – 4,000 patients): laparoscopic repair = less chronic pain, shorter hospital stay, faster recovery; open repair = lower operative time, lower cost", "Recurrence rates (laparoscopic vs. open): comparable after surgeon proficiency established; mesh fixation vs. no fixation: no significant difference in recurrence (Cordova-Nunez 2026)", "Glue vs. tacks for mesh fixation: glue associated with less acute post-op pain (Costa 2026 meta-analysis)", ]); contentSlide("TAPP – Transabdominal Preperitoneal Repair", [ "Port placement: 12mm camera port at umbilicus (≥15 cm from pubis); two 5mm working ports laterally", "Step 1: Peritoneum incised 4–6 cm above hernia defect from medial to lateral (to ASIS)", "Step 2: Preperitoneal dissection to achieve 'critical view of myopectineal orifice' – identify vas deferens, gonadal vessels, Cooper's ligament, inferior epigastric vessels", "Step 3: Hernia sac reduction – gentle traction; lipoma of cord reduced; sac inverted or transected for large indirect sacs", "Step 4: Mesh placement (≥15×10 cm) covering entire myopectineal orifice, overlapping Cooper's ligament by ≥2 cm", "Step 5: Peritoneal flap closure (tacks, suture, or glue) to exclude mesh from peritoneal cavity", "Avoid: stapling in triangle of doom (iliac vessels) and triangle of pain (nerves)", ]); contentSlide("TEP – Totally Extraperitoneal Repair", [ "Access: infraumbilical 1–2 cm incision; anterior rectus sheath incised; retrorectus space developed to pubic tubercle", "Balloon dissector or manual endoscopic dissection to develop preperitoneal space", "Hasson cannula placed for insufflation; two additional 5mm midline or lateral ports", "Advantage over TAPP: avoids peritoneal entry → less risk of bowel injury, adhesion-related complications, port-site hernias", "Disadvantage: narrower working space; more difficult to manage large scrotal/bilateral hernias; reduced visualization if peritoneum breached", "eTEP (Enhanced-View TEP, 2009): extends dissection contralaterally via retromuscular plane; improves operative field; useful for bilateral repairs and concurrent ventral hernias", "Mesh: minimum 10×15 cm; no fixation needed if adequate preperitoneal space established; tacks or fibrin glue if unstable", ]); contentSlide("Robotic Inguinal Hernia Repair", [ "Robot-assisted TAPP and TEP are increasingly adopted; allows wristed instruments and 3D visualization", "RARP eTEP: particularly valuable for complex bilateral repairs, recurrent hernias, and concurrent incisional hernia repair", "Evidence: comparable outcomes to standard laparoscopic; longer operative time, higher cost; potential benefit in ergonomics for surgeon", "Sabiston 2024: robotic IHR demonstrates non-inferiority for recurrence and complications vs. laparoscopic IHR", "Learning curve: ~30–50 cases for proficiency in robotic IHR vs. ~50–100 for laparoscopic TEP", ]); tableSlide( "Choosing the Repair Technique", ["Scenario", "Recommended Approach"], [ ["Primary unilateral inguinal hernia, fit patient", "Lichtenstein (open) OR laparoscopic TAPP/TEP – patient preference"], ["Bilateral inguinal hernia", "Laparoscopic (TAPP or TEP) preferred – both sides via same ports"], ["Recurrent hernia (after previous open repair)", "Laparoscopic (TAPP/TEP) – avoids scarred anterior field"], ["Recurrent hernia (after previous laparoscopic repair)", "Open Lichtenstein or Shouldice – avoids scared preperitoneal space"], ["Strangulated / contaminated field", "Open tissue repair (McVay or Shouldice); avoid mesh in contaminated field"], ["Female patient with groin hernia", "Always operate; explore femoral canal; TEP/TAPP preferred to address all potential defects"], ["Paediatric indirect hernia", "High ligation of sac at deep ring (open or laparoscopic); no mesh needed"], ["Elderly / high-risk patient", "Lichtenstein under local anaesthesia – safest option"], ], [4.5, 5.0] ); // ══════════════════════════════════════════════════════════════════ // SECTION 6 – FEMORAL HERNIA // ══════════════════════════════════════════════════════════════════ sectionDivider("Femoral Hernia", "06"); contentSlide("Femoral Hernia – Anatomy & Characteristics", [ "Femoral canal: most medial compartment of femoral sheath; normally contains only areolar tissue and lymphatics", "Boundaries: anteriorly – inguinal ligament; posteriorly – Cooper's ligament (pectineal ligament) and pectineus fascia; medially – lacunar ligament; laterally – femoral vein", "3% of all groin hernias but disproportionately high strangulation rate (~40%) due to rigid, narrow neck", "Female-to-male ratio ~10:1; however inguinal hernia is still the most common groin hernia in women", "Presents below and lateral to pubic tubercle (vs. inguinal hernia which is above and medial)", "Clinically: small, hard, non-tender (unless incarcerated) lump in femoral triangle; can mimic a lymph node", "Clinical tip: femoral hernias are frequently missed on clinical examination – always examine the femoral canal", ]); contentSlide("Femoral Hernia – Surgical Repair", [ "Three approaches:", " ► Lockwood (LOW approach): via femoral canal directly; easiest for small, reducible femoral hernias; good for elderly/high risk", " ► Lotheissen / McVay (HIGH inguinal approach): via inguinal canal; sutures transversus abdominis to Cooper's ligament; also repairs co-existing inguinal hernia", " ► McEvedy (HIGH extraperitoneal approach): vertical incision above inguinal ligament; best for strangulated femoral hernias – facilitates bowel resection if needed", "Laparoscopic (TEP/TAPP): increasingly preferred for elective femoral hernias; covers femoral canal with mesh", "Strangulated femoral hernia: extend Lockwood approach to McEvedy if bowel not easily reduced; resect nonviable bowel; primary anastomosis if clean; stoma if gross contamination", "Avoid prosthetic mesh in infected/contaminated field – use tissue repair (McVay)", ]); // ══════════════════════════════════════════════════════════════════ // SECTION 7 – VENTRAL / INCISIONAL HERNIA // ══════════════════════════════════════════════════════════════════ sectionDivider("Ventral & Incisional Hernia", "07"); contentSlide("Ventral Hernia – Classification & Aetiology", [ "Ventral hernias: group of hernias through the anterior abdominal wall including umbilical, epigastric, incisional, and Spigelian", "Umbilical hernia: through umbilical ring; common in infants (usually closes by age 3–4); in adults often acquired due to obesity, pregnancy, ascites, cirrhosis", "Epigastric hernia: through linea alba between xiphoid and umbilicus; contains preperitoneal fat; often small but symptomatic", "Incisional hernia: develops at site of previous abdominal incision; 2–20% incidence; highest risk with midline laparotomy, wound infection, poor closure technique", "Risk factors for incisional hernia: obesity, wound infection, wound dehiscence, malnutrition, steroid use, emergency surgery, re-operation through same incision", "Spigelian hernia: through linea semilunaris (lateral border of rectus); often interparietal; can be missed clinically (hidden by EO aponeurosis); USS or CT confirms", ]); contentSlide("Ventral Hernia – Management Principles", [ "Small/asymptomatic umbilical hernias in infants: watchful waiting until age 4–5 years (majority spontaneously close)", "Adults: mesh repair recommended for all symptomatic ventral hernias; primary suture repair has unacceptably high recurrence (>30–50%)", "EHS guidelines: mesh placement for defects >2 cm in ventral hernias; overlap ≥3–5 cm in all directions", "Mesh positions: onlay (subcutaneous), sublay/retromuscular (Rives-Stoppa), intraperitoneal onlay mesh (IPOM – laparoscopic), preperitoneal", "Rives-Stoppa retromuscular repair: gold standard for large incisional hernias; mesh placed in retromuscular plane posterior to rectus; low recurrence (<5%), minimal mesh-to-bowel contact", "Component separation: anterior (Ramirez technique) or posterior (transversus abdominis release – TAR); used for large defects requiring primary fascial closure", "Contaminated field: biological mesh (acellular dermal matrix) or biosynthetic mesh preferred; may require temporary closure/planned ventral hernia with skin grafting", ]); contentSlide("Laparoscopic & Robotic Ventral Hernia Repair", [ "Laparoscopic IPOM: ports placed laterally; adhesiolysis; intraperitoneal mesh (composite mesh with antiadhesive barrier side facing bowel); mesh secured with tacks and/or sutures", "Advantages: less wound morbidity, shorter stay, fewer SSI vs. open repair", "Disadvantages: trocar hernias, chronic tack-related pain, higher recurrence if mesh inadequately fixed", "Robotic IPOM and eTEP: improved intracorporeal suturing; allows defect closure before mesh placement – reduces seroma and recurrence", "Robotic TAR (transversus abdominis release): enables posterior component separation robotically; extends access for large defects", "Evidence: robotic ventral hernia repair shows comparable outcomes to laparoscopic with potential benefit of primary fascial closure (Sabiston 2024)", "Mesh choice in contamination: avoid permanent synthetic mesh in Grade 3–4 contamination; use biological/biosynthetic; plan for definitive repair after 6–12 months", ]); // ══════════════════════════════════════════════════════════════════ // SECTION 8 – SPECIAL HERNIAS // ══════════════════════════════════════════════════════════════════ sectionDivider("Special & Rare Hernias", "08"); tableSlide( "Special Hernias – Summary", ["Hernia Type", "Location / Definition", "Key Clinical Features", "Management"], [ ["Hiatal hernia", "Stomach herniates through oesophageal hiatus; Type I (sliding) – GEJ moves up; Type II (rolling) – fundus herniates", "Heartburn, regurgitation; Type II → volvulus risk; CXR shows retrocardiac air-fluid level", "Type I: medical (PPI); Type II/III: Nissen fundoplication + crural repair"], ["Richter hernia", "Antimesenteric wall only; occurs at femoral or inguinal; partial bowel wall involvement", "No complete obstruction; bowel can strangulate without obstructing; high mortality if missed", "Urgent surgery; assess bowel viability; bowel resection if needed"], ["Obturator hernia", "Through obturator foramen; rare; elderly thin females", "Howship-Romberg sign (medial thigh pain ↑ with hip extension/abduction); often found at laparotomy for obstruction", "Repair obturator defect (plug); laparoscopic approach preferred if not contaminated"], ["Spigelian hernia", "Through linea semilunaris at level of arcuate line", "Often impalpable; interparietal; CT/USS essential for diagnosis", "Open or laparoscopic repair with mesh"], ["Lumbar hernia", "Petit's triangle (inferior) or Grynfeltt-Lesshaft triangle (superior)", "Lateral flank bulge; CT confirms; rare", "Open or laparoscopic mesh repair"], ["Internal hernia", "Paraduodenal, pericaecal, through foramen of Winslow, mesenteric defects", "SBO without external hernia; diagnosed at laparotomy or CT", "Laparoscopy/laparotomy; reduce; close defect"], ], [2.0, 2.8, 3.0, 2.0] ); // ══════════════════════════════════════════════════════════════════ // SECTION 9 – COMPLICATIONS // ══════════════════════════════════════════════════════════════════ sectionDivider("Complications of Hernia & Repair", "09"); contentSlide("Complications of Hernia Disease (Pre-operative)", [ "Incarceration: irreducibility of hernia contents; functional bowel obstruction may develop; urinary retention if bladder is content", "Strangulation: vascular compromise → ischaemia → necrosis → gangrene and perforation; mortality 5–30% in untreated strangulated hernia", "Obstruction: hernias are second most common cause of bowel obstruction after adhesions in Western countries", "Reduction en masse (Taxis complication): forceful manual reduction returns sac (with strangulated contents) into abdomen – obstruction persists; dangerous → avoid blind forceful reduction", "Maydl hernia (W-hernia): two loops of bowel in sac with intervening intra-abdominal loop – the intra-abdominal loop strangulates without visible sac changes", "Sliding hernia: retroperitoneal organs (caecum R, sigmoid L) form part of sac wall; risk of injury during sac dissection", ]); contentSlide("Complications of Hernia Repair (Post-operative)", [ "Early (<30 days):", " ► Haematoma/seroma: most common; usually self-limiting; avoid early aspiration (infection risk)", " ► Surgical site infection: 1–5%; higher in emergency repair; requires wound opening, dressings; mesh may need explantation if infected", " ► Urinary retention: especially after spinal/epidural anaesthesia; requires catheterisation", " ► Orchitis / testicular atrophy: damage to vasal or testicular blood supply; risk higher in large scrotal hernias", " ► Vas deferens injury: risk of infertility in bilateral repairs", "Late (>30 days):", " ► Recurrence: 1.7–10% after mesh repair; highest for tissue repair (Shouldice centres excluded)", " ► Chronic groin pain (inguinodynia): 10–12% of patients; neuropathic (ilioinguinal, iliohypogastric, genitofemoral nerve) or non-neuropathic", " ► Mesh infection: can present months–years later; mesh explantation usually required", ]); calloutSlide( "Chronic Inguinodynia – Management", [ "Affects 10–12% post-IHR; severe in 1–3%", "Neuropathic: iliohypogastric (IHN), ilioinguinal (IIN), genitofemoral nerve (GFN) injury during repair", "Somatic/non-neuropathic: mesh contraction, periostitis, scar tissue", "Diagnosis: clinical + USS/CT + selective nerve blocks (diagnostic and therapeutic)", "Conservative: NSAIDs, neuromodulators (gabapentin, pregabalin), physiotherapy", "Injection therapy: USS-guided local anaesthetic + steroid to IHN/IIN/GFN", "Surgical options: neurectomy (IHN, IIN, GFN); mesh explantation if mesh-related; groin pain clinic referral", "Prevention: careful nerve identification and preservation; non-fixation laparoscopic techniques; use of glue over tacks", ], "KEY NERVES AT RISK", "► Ilioinguinal nerve\n (L1): groin, scrotum/labia\n\n► Iliohypogastric\n nerve (L1): suprapubic\n skin\n\n► Genitofemoral\n nerve (L1/L2):\n genital branch –\n inner thigh, scrotal\n sensation\n\n► Lateral femoral\n cutaneous nerve:\n triangle of pain\n (laparoscopic)\n\nAVOID tacks lateral\nto gonadal vessels", C.midBlue ); // ══════════════════════════════════════════════════════════════════ // SECTION 10 – POST-OP CARE & CURRENT EVIDENCE // ══════════════════════════════════════════════════════════════════ sectionDivider("Post-op Care & Current Evidence", "10"); contentSlide("Post-operative Care & Enhanced Recovery", [ "Same-day discharge: recommended for all elective Lichtenstein and laparoscopic IHR in fit patients", "Analgesia: multimodal – paracetamol + NSAID + local anaesthetic block (TAP block for ventral hernias); opioid-sparing approach", "Activity: no bed rest required; return to light work within 1–2 weeks; manual labour 4–6 weeks", "Mesh fixation advice: no heavy lifting >10 kg for 4–6 weeks to allow mesh incorporation", "Follow-up: review at 6 weeks; warn of haematoma/seroma self-resolution; provide emergency contact for suspected strangulation", "Paediatric hernia: day-case surgery; contralateral exploration no longer routinely recommended unless high risk", "Emergency hernia: ICU if required post-bowel resection; nutritional support; stoma reversal at 3–6 months if applicable", ]); tableSlide( "Current Evidence Summary (2023–2026)", ["Study/Source", "Finding", "Clinical Implication"], [ ["Essa et al. BMC Surg 2025 (Meta-analysis, ~4,000 pts)", "Laparoscopic IHR: less chronic pain, faster return to work vs. open; comparable recurrence", "Offer laparoscopic for bilateral/young/working patients"], ["Romano et al. BMC Surg 2025 (Systematic Review)", "Synthetic vs. biological mesh in laparoscopic IHR: comparable recurrence and infection rates in clean cases", "Biological mesh not superior to synthetic in elective clean cases"], ["Costa et al. Hernia 2026 (Meta-analysis)", "Fibrin glue vs. tacks for mesh fixation: glue associated with significantly less acute post-op pain, no difference in recurrence", "Prefer glue fixation to reduce post-op pain"], ["Cordova-Nunez et al. Hernia 2026 (Meta-analysis)", "Mesh fixation vs. no fixation in laparoscopic IHR: no statistically significant difference in recurrence", "Non-fixation is safe; reduces cost and complications"], ["Sabiston Textbook 2024", "Robotic IHR: non-inferior to laparoscopic; longer OR time; potential ergonomic benefit for surgeon", "Consider robotic platform for complex/bilateral repairs"], ["Mulholland & Greenfield 7e", "Femoral hernias: narrow canal → 40% strangulation risk; 2nd most common cause SBO (after adhesions)", "Operate all femoral hernias without delay, even if asymptomatic"], ], [3.2, 3.8, 2.5] ); // ══════════════════════════════════════════════════════════════════ // SLIDE – TAKE-HOME MESSAGES // ══════════════════════════════════════════════════════════════════ { const sl = pres.addSlide(); sl.addShape(pres.ShapeType.rect, { x:0, y:0, w:10, h:5.625, fill:{color:C.darkBlue} }); sl.addShape(pres.ShapeType.rect, { x:0, y:0, w:10, h:0.12, fill:{color:C.gold} }); sl.addShape(pres.ShapeType.rect, { x:0, y:5.5, w:10, h:0.125, fill:{color:C.accentTeal} }); sl.addText("Key Take-Home Messages", { x:0.5, y:0.2, w:9, h:0.75, fontSize:26, bold:true, color:C.white, fontFace:"Calibri", align:"center" }); const msgs = [ { icon:"01", color:C.gold, text:"Always examine BOTH sides of the groin and assess the femoral canal – femoral hernias are frequently missed and carry high strangulation risk." }, { icon:"02", color:C.accentTeal, text:"Hesselbach's triangle (inferior epigastric vessels, inguinal ligament, rectus) defines direct hernias; lateral to it = indirect hernias." }, { icon:"03", color:C.gold, text:"Lichtenstein is the gold standard for open repair; TEP/TAPP for bilateral, recurrent, or young active patients." }, { icon:"04", color:C.accentTeal, text:"Avoid 'triangle of doom' (iliac vessels) and 'triangle of pain' (lateral nerves) during laparoscopic repair – never staple laterally beyond gonadal vessels." }, { icon:"05", color:C.gold, text:"Strangulation = surgical emergency. Resect non-viable bowel. Avoid mesh in contaminated field – tissue repair (McVay/Shouldice)." }, { icon:"06", color:C.accentTeal, text:"Chronic groin pain affects 10–12% post-IHR; prevent with nerve preservation and glue fixation; manage with MDT approach including neurectomy if needed." }, ]; msgs.forEach((m, i) => { const x = i < 3 ? 0.3 : 5.15; const y = 1.05 + (i % 3) * 1.45; sl.addShape(pres.ShapeType.rect, { x:x, y:y, w:4.55, h:1.28, fill:{color:"FFFFFF10"}, line:{color:"FFFFFF30", width:0.5} }); sl.addShape(pres.ShapeType.rect, { x:x, y:y, w:0.55, h:1.28, fill:{color:m.color} }); sl.addText(m.icon, { x:x, y:y, w:0.55, h:1.28, fontSize:14, bold:true, color:C.white, align:"center", valign:"middle", margin:0 }); sl.addText(m.text, { x:x+0.62, y:y+0.08, w:3.85, h:1.12, fontSize:11, color:C.white, fontFace:"Calibri", valign:"middle" }); }); } // ══════════════════════════════════════════════════════════════════ // FINAL SLIDE – THANK YOU / QUESTIONS // ══════════════════════════════════════════════════════════════════ { const sl = pres.addSlide(); sl.addShape(pres.ShapeType.rect, { x:0, y:0, w:10, h:5.625, fill:{color:C.darkBlue} }); sl.addShape(pres.ShapeType.rect, { x:0, y:0, w:0.18, h:5.625, fill:{color:C.accentTeal} }); sl.addShape(pres.ShapeType.rect, { x:0.4, y:2.85, w:9.2, h:0.06, fill:{color:C.gold} }); sl.addText("Thank You", { x:0.5, y:1.0, w:9, h:1.2, fontSize:44, bold:true, color:C.white, fontFace:"Calibri", align:"center" }); sl.addText("Questions & Discussion", { x:0.5, y:2.2, w:9, h:0.65, fontSize:22, color:C.accentTeal, fontFace:"Calibri", align:"center", italic:true }); sl.addText("Sources: Sabiston Textbook of Surgery 21e | Mulholland & Greenfield's Surgery 7e | Fischer's Mastery of Surgery 8e | Bailey & Love 28e | PubMed Meta-analyses 2023–2026", { x:0.5, y:3.1, w:9, h:0.8, fontSize:10, color:"8AADC8", fontFace:"Calibri", align:"center", italic:true }); sl.addText("Surgical Residency Seminar | July 2026", { x:0.5, y:4.85, w:9, h:0.45, fontSize:12, color:"6699BB", fontFace:"Calibri", align:"center" }); } // ─── WRITE FILE ───────────────────────────────────────────────── pres.writeFile({ fileName: "/home/daytona/workspace/hernia-seminar/Hernia_Seminar.pptx" }) .then(() => console.log("✅ Presentation saved: Hernia_Seminar.pptx")) .catch(err => { console.error("ERROR:", err); process.exit(1); }); JSEOF echo "Script written successfully"
cd /home/daytona/workspace/hernia-seminar && node hernia_seminar.js
Hernia Seminar
Presentation · PPTX
| # | Section | Slides |
|---|---|---|
| — | Title slide + Seminar Agenda | 2 |
| 01 | Definition & Epidemiology | Definition of hernia (sac/covering/contents); global incidence, lifetime risk, Richter/Maydl definitions |
| 02 | Classification & Anatomy | Nyhus classification table; anterior anatomy (Hesselbach's triangle, inguinal canal boundaries); posterior/laparoscopic anatomy (myopectineal orifice, triangle of doom, triangle of pain); Direct vs. Indirect comparison slide |
| 03 | Pathophysiology & Etiology | Collagen defect, patent processus vaginalis, raised IAP, strangulation sequence, risk factor table |
| 04 | Clinical Features & Diagnosis | Presentation, examination steps, differential diagnosis table (8 conditions) |
| 05 | Inguinal Hernia Repair | Watchful waiting indications; open tissue repairs (Bassini, Shouldice, McVay, Desarda); Lichtenstein gold standard; laparoscopic (TAPP & TEP step-by-step); eTEP; Robotic IHR; technique selection guide table |
| 06 | Femoral Hernia | Anatomy of femoral canal; Lockwood / McVay / McEvedy approaches; strangulated femoral hernia management |
| 07 | Ventral & Incisional Hernia | Umbilical, epigastric, incisional, Spigelian hernias; mesh positions; Rives-Stoppa; component separation; robotic TAR |
| 08 | Special Hernias | Hiatal, Richter, Obturator, Spigelian, Lumbar, Internal hernias in a concise summary table |
| 09 | Complications | Pre-op (strangulation, Richter, Maydl, reduction en masse); post-op early/late; chronic inguinodynia management callout |
| 10 | Current Evidence + Post-op Care | 5 meta-analyses from 2023–2026 (Essa 2025, Romano 2025, Costa 2026, Cordova-Nunez 2026, Sabiston 2024) in evidence table; ERAS principles |
| — | 6 Key Take-Home Messages + Thank You | 2 |
5
Give ppt
Hernia Seminar
Presentation · PPTX