Laparoscopic Surgery – Anaesthetic Considerations (MD Anaesthesiology) Definition Laparoscopic surgery is a minimally invasive surgical technique in which CO₂ pneumoperitoneum is created to separate the abdominal wall from the abdominal viscera, allowing visualization and surgery. * Coined by Hans Christian Jacobaeus (1910). ⸻ Why CO₂ is used? Advantages * Non-combustible * Highly soluble in blood * Rapid elimination through lungs * Does not support combustion (safe with electrocautery) * Non-irritant to peritoneum * Low risk of gas embolism compared with air Disadvantages * Hypercarbia * Respiratory acidosis * Sympathetic stimulation * Increased intracranial pressure (ICP) * Increased intraocular pressure (IOP) * Requires increased minute ventilation ⸻ Benefits of Laparoscopic Surgery * Smaller incision * Less postoperative pain * Less opioid requirement * Reduced blood loss * Lower wound infection rate * Early ambulation * Earlier bowel function * Shorter hospital stay * Better cosmetic outcome * Reduced stress response * Lower postoperative morbidity ⸻ Risks of Laparoscopic Surgery * Visceral injury * Major vascular injury * CO₂ embolism * Pneumothorax * Pneumomediastinum * Pneumopericardium * Subcutaneous emphysema * Acute kidney injury * Deep vein thrombosis * Well-leg compartment syndrome * Position-related nerve injuries ⸻ Pneumoperitoneum Normal Intra-abdominal Pressure (IAP) * Normal: 5–7 mmHg * Safe operating pressure: * Adults: 10–15 mmHg * Children: 8–12 mmHg (Older notes mentioning 0.5 mmHg are incorrect.) ⸻ Physiological Effects of Pneumoperitoneum Cardiovascular Initially * Increased vagal tone * Bradycardia * Occasionally asystole (during rapid insufflation) Later * Increased SVR * Increased MAP * Decreased venous return * Decreased preload * Decreased cardiac output (especially in hypovolemia) * Increased pulmonary vascular resistance * Arrhythmias Mechanism: * Inferior vena cava compression * Neurohumoral activation * Catecholamine release * Vasopressin release Management * Slow insufflation * Adequate preload * Atropine for vagal bradycardia * Vasodilators (nitroglycerin) if severe hypertension ⸻ Respiratory Effects * Diaphragm pushed cephalad * Decreased FRC * Decreased lung compliance * Increased airway pressure * Basal atelectasis * V/Q mismatch * Hypoxemia * Hypercarbia * Increased PaCO₂ * Increased ETCO₂ * Increased work of ventilation Management * Increase minute ventilation by 10–25% * Increase respiratory rate rather than tidal volume * Lung protective ventilation * TV: 6–8 mL/kg ideal body weight * PEEP: 5–10 cm H₂O * Recruitment manoeuvres when indicated ⸻ Renal Effects * Decreased renal blood flow * Decreased GFR * Oliguria * Increased ADH * Increased renin secretion * Sodium and water retention Usually reversible after desufflation. ⸻ Hepatic Effects * Reduced hepatic blood flow * Reduced portal venous flow * Transient elevation of liver enzymes ⸻ CNS Effects * Increased ICP * Increased cerebral blood flow due to hypercarbia ⸻ Ocular Effects * Increased IOP * Greater increase in steep Trendelenburg position ⸻ Hypercarbia Causes * CO₂ absorption * Prolonged surgery * Subcutaneous emphysema * Reduced ventilation Management * Increase minute ventilation by 10–25% * Correct tube position * Reduce insufflation pressure if necessary ⸻ Causes of Increased ETCO₂ * CO₂ absorption * Subcutaneous emphysema * Capnothorax * Endobronchial intubation (early phase) ⸻ Causes of Sudden Decreased ETCO₂ * CO₂ embolism * Massive pulmonary embolism * Pneumothorax causing reduced cardiac output * Cardiac arrest ⸻ Complications of Laparoscopy Cardiovascular * Bradycardia * Tachycardia * Arrhythmias * Hypotension * Hypertension * Myocardial ischemia * Cardiac arrest * Gas embolism ⸻ Respiratory * Hypercarbia * Respiratory acidosis * Pneumothorax * Capnothorax * Pneumomediastinum * Atelectasis * Endobronchial intubation * Pulmonary edema ⸻ Others * Shoulder pain * PONV * Corneal abrasion * Oliguria * Acute kidney injury * Hypothermia * DVT * Retinal ischemia (rare) * Bowel ischemia * Position injuries ⸻ Subcutaneous Emphysema Risk factors * Surgery >200 minutes * More than 5–6 ports * Age >65 years * High insufflation pressure * Fundoplication surgery Features * Crepitus * Neck swelling * Raised ETCO₂ Management * Reduce insufflation pressure * Hyperventilate * Confirm airway position * Evaluate for capnothorax * Check airway edema before extubation ⸻ Capnothorax Features * Hypoxia * Increased airway pressure * Decreased breath sounds * Hypercarbia Treatment Stable patient * Reduce insufflation pressure * Hyperventilation * PEEP (if appropriate) Unstable patient * Needle decompression * Chest tube ⸻ Endobronchial Intubation Cause * Cephalad movement of carina Features * Desaturation * Increased airway pressure * Unilateral breath sounds Management * Withdraw ETT under auscultation/fiberoptic guidance ⸻ CO₂ Gas Embolism Cause * Veress needle entering vessel * Open venous injury Clinical Features * Sudden hypotension * Sudden fall in ETCO₂ * Hypoxemia * Pulmonary hypertension * Arrhythmias * Cardiac arrest Diagnosis Gold standard * TEE Other monitors * Precordial Doppler * ETCO₂ * TTE Treatment 1. Stop insufflation 2. Release pneumoperitoneum 3. 100% oxygen 4. Left lateral decubitus + head down (Durant manoeuvre) 5. Aspirate gas via central venous catheter if present 6. CPR if required 7. Vasopressors 8. Hyperbaric oxygen (arterial embolism) ⸻ Well-Leg Compartment Syndrome Risk factors * Long surgery * Lithotomy * Steep Trendelenburg * Obesity Features * Severe calf pain * Swelling * Compartment syndrome * Rhabdomyolysis * Renal failure Prevention * Intermittent pneumatic compression * Padding * Periodic leg repositioning * Avoid prolonged lithotomy ⸻ Anaesthetic Management Preoperative * Optimize cardiopulmonary status * Correct hypovolemia * Aspiration prophylaxis * DVT prophylaxis ⸻ Induction * General anaesthesia with cuffed ETT is preferred * Gastric decompression using OG/NG tube * Smooth intubation * Adequate muscle relaxation ⸻ Airway Preferred * Cuffed ETT Alternative * Second-generation supraglottic airway for selected short procedures ⸻ Maintenance * Oxygen + air * Volatile agent or TIVA * Lung protective ventilation * Maintain ETCO₂ 35–40 mmHg * Maintain normothermia ⸻ Fluid Therapy Goal-directed fluid therapy preferred Dynamic parameters * Stroke volume variation (SVV) * Pulse pressure variation (PPV) * Stroke volume optimization ⸻ PONV Prophylaxis High-risk surgery * Dexamethasone 4–8 mg after induction * Ondansetron 4 mg before extubation Consider multimodal prophylaxis. ⸻ Postoperative Analgesia * Intraperitoneal local anaesthetic * TAP block * NSAIDs * Paracetamol * Low-dose opioids * Epidural analgesia for major procedures ⸻ Recent Guideline Updates (Important Viva Points) * Maintain low-pressure pneumoperitoneum (8–12 mmHg) whenever surgical exposure permits to reduce postoperative pain and cardiopulmonary effects. * Use lung-protective ventilation with low tidal volume and moderate PEEP. * Prefer goal-directed fluid therapy over liberal fluid administration. * Neuromuscular monitoring with complete reversal before extubation is recommended. * Use multimodal analgesia and multimodal PONV prophylaxis for enhanced recovery (ERAS). * Employ risk-based VTE prophylaxis (mechanical ± pharmacologic) according to patient risk. These additions make the topic suitable for MD Anaesthesiology theory, viva, and practical examinations. Proper alignment
ls -la /home/daytona/workspace/ 2>/dev/null && mkdir -p /home/daytona/workspace/…
~/laparoscopic-anaesthesia/build.js
const pptxgen = require("pptxgenjs");
const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Laparoscopic Surgery – Anaesthetic Considerations";
pres.author = "MD Anaesthesiology";
// ─── COLOUR PALETTE ────────────────────────────────────────────────────────────
const C = {
navy: "0A1628", // dominant dark background
teal: "0E7C7B", // accent / section headers
tealLight: "14B5B3", // lighter teal highlight
gold: "F4A335", // key accent / callout
white: "FFFFFF",
offWhite: "EFF4F8",
textDark: "1A2744",
textGrey: "5A7184",
red: "D94F3D", // danger / warning
green: "2ECC71", // benefit / safe
cardBg: "132240", // card background on dark slides
divider: "1E3A5F",
};
// ─── HELPERS ──────────────────────────────────────────────────────────────────
function titleBar(slide, title, subtitle) {
// Full-width teal accent bar at top
slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.85, fill: { color: C.teal } });
slide.addText(title.toUpperCase(), {
x: 0.35, y: 0.08, w: 9.3, h: 0.65,
fontSize: 18, bold: true, color: C.white, fontFace: "Calibri", margin: 0
});
if (subtitle) {
slide.addText(subtitle, {
x: 0.35, y: 0.88, w: 9.3, h: 0.28,
fontSize: 10, color: C.gold, fontFace: "Calibri", italic: true, margin: 0
});
}
}
function footerLine(slide, text) {
slide.addShape(pres.ShapeType.rect, { x: 0, y: 5.45, w: 10, h: 0.175, fill: { color: C.navy } });
slide.addText(text || "MD Anaesthesiology | Laparoscopic Surgery – Anaesthetic Considerations", {
x: 0.2, y: 5.45, w: 9.6, h: 0.175,
fontSize: 7.5, color: C.tealLight, fontFace: "Calibri", margin: 0
});
}
function buildBullets(items, opts = {}) {
return items.map((t, i) => ({
text: t,
options: {
bullet: { type: "bullet", code: "2022" },
fontSize: opts.fontSize || 13,
color: opts.color || C.textDark,
fontFace: "Calibri",
bold: opts.bold || false,
breakLine: true,
paraSpaceBefore: opts.spacing || 4,
}
}));
}
function card(slide, x, y, w, h, color) {
slide.addShape(pres.ShapeType.roundRect, {
x, y, w, h,
fill: { color: color || C.offWhite },
line: { color: C.teal, width: 1.2 },
rectRadius: 0.1
});
}
function sectionDivider(slide, number, label) {
// Full dark background
slide.background = { color: C.navy };
// Large faded number watermark
slide.addText(String(number).padStart(2, "0"), {
x: 6.5, y: 0.6, w: 3.2, h: 4.5,
fontSize: 160, bold: true, color: "1A3355", fontFace: "Calibri", margin: 0, transparency: 0
});
// Teal vertical accent bar
slide.addShape(pres.ShapeType.rect, { x: 0.5, y: 1.2, w: 0.12, h: 3.2, fill: { color: C.gold } });
slide.addText("SECTION", {
x: 0.75, y: 1.3, w: 5, h: 0.35,
fontSize: 11, color: C.tealLight, fontFace: "Calibri", bold: true, charSpacing: 4, margin: 0
});
slide.addText(label, {
x: 0.75, y: 1.65, w: 6.5, h: 2.5,
fontSize: 28, bold: true, color: C.white, fontFace: "Calibri", margin: 0
});
footerLine(slide);
}
// ══════════════════════════════════════════════════════════════════════════════
// SLIDE 1 – TITLE SLIDE
// ══════════════════════════════════════════════════════════════════════════════
{
const s = pres.addSlide();
s.background = { color: C.navy };
// Decorative diagonal band
s.addShape(pres.ShapeType.rect, { x: -1, y: 3.8, w: 14, h: 0.18, fill: { color: C.teal }, rotate: -5 });
// Gold accent line
s.addShape(pres.ShapeType.rect, { x: 0.6, y: 1.45, w: 8.8, h: 0.07, fill: { color: C.gold } });
s.addText("LAPAROSCOPIC SURGERY", {
x: 0.6, y: 0.55, w: 8.8, h: 0.8,
fontSize: 30, bold: true, color: C.white, fontFace: "Calibri", margin: 0
});
s.addText("Anaesthetic Considerations", {
x: 0.6, y: 1.55, w: 8.8, h: 0.65,
fontSize: 22, bold: false, color: C.tealLight, fontFace: "Calibri", margin: 0
});
s.addText("MD Anaesthesiology | Theory · Viva · Practical", {
x: 0.6, y: 2.25, w: 8.8, h: 0.38,
fontSize: 12, color: C.gold, fontFace: "Calibri", italic: true, margin: 0
});
// Sub-topics box
const topics = [
"Physiology of Pneumoperitoneum",
"Cardiovascular & Respiratory Effects",
"Complications & Management",
"Anaesthetic Management & ERAS",
];
topics.forEach((t, i) => {
s.addShape(pres.ShapeType.roundRect, {
x: 0.6, y: 2.85 + i * 0.55, w: 5.5, h: 0.43,
fill: { color: C.cardBg }, line: { color: C.teal, width: 1 }, rectRadius: 0.08
});
s.addText("▸ " + t, {
x: 0.65, y: 2.87 + i * 0.55, w: 5.4, h: 0.38,
fontSize: 12, color: C.offWhite, fontFace: "Calibri", margin: 0
});
});
// Right-side accent circles
s.addShape(pres.ShapeType.ellipse, { x: 7.8, y: 0.3, w: 2.5, h: 2.5, fill: { color: "0D2B4A" }, line: { color: C.teal, width: 1.5 } });
s.addText("CO₂", { x: 7.9, y: 0.9, w: 2.2, h: 0.9, fontSize: 32, bold: true, color: C.tealLight, fontFace: "Calibri", align: "center", margin: 0 });
s.addText("Pneumoperitoneum", { x: 7.9, y: 1.75, w: 2.2, h: 0.4, fontSize: 9, color: C.gold, fontFace: "Calibri", align: "center", italic: true, margin: 0 });
footerLine(s);
}
// ══════════════════════════════════════════════════════════════════════════════
// SLIDE 2 – DEFINITION & HISTORY
// ══════════════════════════════════════════════════════════════════════════════
{
const s = pres.addSlide();
s.background = { color: C.offWhite };
titleBar(s, "Definition & Overview");
card(s, 0.3, 1.15, 9.4, 1.35, C.white);
s.addText("DEFINITION", {
x: 0.6, y: 1.22, w: 3, h: 0.3, fontSize: 9, bold: true, color: C.teal, fontFace: "Calibri", charSpacing: 2, margin: 0
});
s.addText(
"A minimally invasive surgical technique in which CO₂ pneumoperitoneum is created to separate the abdominal wall from the abdominal viscera, allowing visualization and surgery.",
{
x: 0.6, y: 1.52, w: 8.9, h: 0.8,
fontSize: 13, color: C.textDark, fontFace: "Calibri", margin: 0
}
);
// History tag
s.addShape(pres.ShapeType.rect, { x: 0.3, y: 2.65, w: 0.08, h: 0.38, fill: { color: C.gold } });
s.addText("Coined by Hans Christian Jacobaeus (1910)", {
x: 0.52, y: 2.65, w: 6, h: 0.38,
fontSize: 12, color: C.teal, bold: true, fontFace: "Calibri", margin: 0
});
// Benefits vs Risks two-column
const benefits = [
"Smaller incision / less pain",
"Less opioid requirement",
"Reduced blood loss",
"Lower wound infection rate",
"Early ambulation & bowel function",
"Shorter hospital stay",
"Better cosmetic outcome",
"Reduced stress response",
];
const risks = [
"Visceral / major vascular injury",
"CO₂ embolism",
"Pneumothorax / Pneumomediastinum",
"Subcutaneous emphysema",
"DVT / Compartment syndrome",
"Acute kidney injury",
"Position-related nerve injuries",
];
// Benefits card
card(s, 0.3, 3.12, 4.6, 2.1, "#E8F8F0");
s.addShape(pres.ShapeType.rect, { x: 0.3, y: 3.12, w: 4.6, h: 0.32, fill: { color: C.green } });
s.addText("✓ BENEFITS", { x: 0.35, y: 3.12, w: 4.5, h: 0.3, fontSize: 10, bold: true, color: C.white, fontFace: "Calibri", margin: 0 });
s.addText(buildBullets(benefits, { fontSize: 10, color: C.textDark, spacing: 2 }),
{ x: 0.4, y: 3.48, w: 4.4, h: 1.7, margin: 0 });
// Risks card
card(s, 5.1, 3.12, 4.6, 2.1, "#FEF0EE");
s.addShape(pres.ShapeType.rect, { x: 5.1, y: 3.12, w: 4.6, h: 0.32, fill: { color: C.red } });
s.addText("⚠ RISKS", { x: 5.15, y: 3.12, w: 4.5, h: 0.3, fontSize: 10, bold: true, color: C.white, fontFace: "Calibri", margin: 0 });
s.addText(buildBullets(risks, { fontSize: 10, color: C.textDark, spacing: 2 }),
{ x: 5.2, y: 3.48, w: 4.4, h: 1.7, margin: 0 });
footerLine(s);
}
// ══════════════════════════════════════════════════════════════════════════════
// SLIDE 3 – WHY CO₂?
// ══════════════════════════════════════════════════════════════════════════════
{
const s = pres.addSlide();
s.background = { color: C.offWhite };
titleBar(s, "Why CO₂ for Pneumoperitoneum?");
const adv = [
"Non-combustible – safe with electrocautery",
"Highly soluble in blood",
"Rapid elimination through lungs",
"Non-irritant to peritoneum",
"Low risk of gas embolism vs. air / N₂",
];
const disadv = [
"Hypercarbia & respiratory acidosis",
"Sympathetic stimulation",
"Increased ICP",
"Increased IOP",
"Requires increased minute ventilation",
];
// CO₂ molecule graphic – big watermark text
s.addText("CO₂", {
x: 3.5, y: 1.1, w: 3, h: 2.5,
fontSize: 96, bold: true, color: "D9ECF2", fontFace: "Calibri", align: "center", margin: 0
});
// Advantages card
card(s, 0.3, 1.05, 4.4, 3.2, "#E8F8F0");
s.addShape(pres.ShapeType.rect, { x: 0.3, y: 1.05, w: 4.4, h: 0.38, fill: { color: C.green } });
s.addText("ADVANTAGES", { x: 0.35, y: 1.07, w: 4.3, h: 0.32, fontSize: 11, bold: true, color: C.white, fontFace: "Calibri", margin: 0 });
s.addText(buildBullets(adv, { fontSize: 12.5, color: C.textDark, spacing: 8 }),
{ x: 0.4, y: 1.5, w: 4.2, h: 2.7, margin: 0 });
// Disadvantages card
card(s, 5.3, 1.05, 4.4, 3.2, "#FEF0EE");
s.addShape(pres.ShapeType.rect, { x: 5.3, y: 1.05, w: 4.4, h: 0.38, fill: { color: C.red } });
s.addText("DISADVANTAGES", { x: 5.35, y: 1.07, w: 4.3, h: 0.32, fontSize: 11, bold: true, color: C.white, fontFace: "Calibri", margin: 0 });
s.addText(buildBullets(disadv, { fontSize: 12.5, color: C.textDark, spacing: 8 }),
{ x: 5.38, y: 1.5, w: 4.2, h: 2.7, margin: 0 });
// Pressure callout
s.addShape(pres.ShapeType.roundRect, { x: 1.5, y: 4.42, w: 7, h: 0.75, fill: { color: C.navy }, rectRadius: 0.1 });
s.addText("Normal IAP: 5–7 mmHg | Adults: 10–15 mmHg | Children: 8–12 mmHg", {
x: 1.5, y: 4.42, w: 7, h: 0.75,
fontSize: 12, bold: true, color: C.gold, fontFace: "Calibri", align: "center", margin: 0
});
footerLine(s);
}
// ══════════════════════════════════════════════════════════════════════════════
// SLIDE 4 – SECTION DIVIDER: PHYSIOLOGICAL EFFECTS
// ══════════════════════════════════════════════════════════════════════════════
{
const s = pres.addSlide();
sectionDivider(s, 1, "Physiological Effects\nof Pneumoperitoneum");
}
// ══════════════════════════════════════════════════════════════════════════════
// SLIDE 5 – CARDIOVASCULAR EFFECTS
// ══════════════════════════════════════════════════════════════════════════════
{
const s = pres.addSlide();
s.background = { color: C.offWhite };
titleBar(s, "Cardiovascular Effects of Pneumoperitoneum");
// Phase indicators
["INITIAL PHASE", "SUSTAINED PHASE"].forEach((ph, pi) => {
const col = pi === 0 ? C.teal : C.red;
const bx = 0.3 + pi * 4.85;
card(s, bx, 1.18, 4.55, 2.65, pi === 0 ? "#EAF6F6" : "#FEF0EE");
s.addShape(pres.ShapeType.rect, { x: bx, y: 1.18, w: 4.55, h: 0.35, fill: { color: col } });
s.addText(ph, { x: bx + 0.05, y: 1.2, w: 4.4, h: 0.3, fontSize: 10, bold: true, color: C.white, fontFace: "Calibri", margin: 0 });
});
const initialItems = [
"↑ Vagal tone → Bradycardia",
"Occasionally asystole (rapid insufflation)",
"↓ Venous return",
];
const sustainedItems = [
"↑ SVR & ↑ MAP",
"↓ Cardiac output",
"↑ Pulmonary vascular resistance",
"Arrhythmias",
"↓ Preload (IVC compression)",
];
s.addText(buildBullets(initialItems, { fontSize: 12, color: C.textDark, spacing: 7 }),
{ x: 0.4, y: 1.57, w: 4.3, h: 1.8, margin: 0 });
s.addText(buildBullets(sustainedItems, { fontSize: 12, color: C.textDark, spacing: 7 }),
{ x: 5.22, y: 1.57, w: 4.3, h: 1.8, margin: 0 });
// Mechanism box
card(s, 0.3, 3.95, 4.55, 1.22, C.white);
s.addText("MECHANISM", { x: 0.38, y: 3.98, w: 4.3, h: 0.28, fontSize: 9, bold: true, color: C.teal, charSpacing: 2, fontFace: "Calibri", margin: 0 });
const mech = ["IVC compression", "Neurohumoral activation", "Catecholamine & vasopressin release"];
s.addText(buildBullets(mech, { fontSize: 11, color: C.textDark, spacing: 3 }),
{ x: 0.38, y: 4.28, w: 4.3, h: 0.88, margin: 0 });
// Management box
card(s, 5.15, 3.95, 4.55, 1.22, C.white);
s.addText("MANAGEMENT", { x: 5.23, y: 3.98, w: 4.3, h: 0.28, fontSize: 9, bold: true, color: C.teal, charSpacing: 2, fontFace: "Calibri", margin: 0 });
const mgmt = ["Slow insufflation", "Adequate preload", "Atropine for vagal bradycardia", "Vasodilators (GTN) for severe HTN"];
s.addText(buildBullets(mgmt, { fontSize: 11, color: C.textDark, spacing: 3 }),
{ x: 5.23, y: 4.28, w: 4.3, h: 0.88, margin: 0 });
footerLine(s);
}
// ══════════════════════════════════════════════════════════════════════════════
// SLIDE 6 – RESPIRATORY EFFECTS
// ══════════════════════════════════════════════════════════════════════════════
{
const s = pres.addSlide();
s.background = { color: C.offWhite };
titleBar(s, "Respiratory Effects of Pneumoperitoneum");
const effects = [
"Diaphragm pushed cephalad",
"↓ FRC & ↓ Lung compliance",
"↑ Airway pressure",
"Basal atelectasis",
"V/Q mismatch → Hypoxemia",
"↑ PaCO₂ & ↑ ETCO₂",
"↑ Work of ventilation",
"Hypercarbia",
];
card(s, 0.3, 1.12, 4.4, 3.95, C.white);
s.addText("EFFECTS", { x: 0.4, y: 1.18, w: 4.1, h: 0.28, fontSize: 9, bold: true, color: C.red, charSpacing: 2, fontFace: "Calibri", margin: 0 });
s.addText(buildBullets(effects, { fontSize: 12.5, color: C.textDark, spacing: 6 }),
{ x: 0.4, y: 1.48, w: 4.2, h: 3.55, margin: 0 });
// Management panel
card(s, 4.9, 1.12, 4.8, 3.95, "#EAF6F6");
s.addShape(pres.ShapeType.rect, { x: 4.9, y: 1.12, w: 4.8, h: 0.35, fill: { color: C.teal } });
s.addText("VENTILATION STRATEGY", { x: 4.95, y: 1.14, w: 4.65, h: 0.28, fontSize: 10, bold: true, color: C.white, fontFace: "Calibri", margin: 0 });
const ventItems = [
{ label: "↑ MV", detail: "by 10–25% (rate preferred over TV)" },
{ label: "TV", detail: "6–8 mL/kg ideal body weight" },
{ label: "PEEP", detail: "5–10 cm H₂O" },
{ label: "Target ETCO₂", detail: "35–40 mmHg" },
{ label: "Recruitment manoeuvres", detail: "when indicated" },
];
ventItems.forEach((item, i) => {
const vy = 1.58 + i * 0.65;
s.addShape(pres.ShapeType.roundRect, { x: 5.05, y: vy, w: 4.5, h: 0.52, fill: { color: C.white }, line: { color: C.teal, width: 0.8 }, rectRadius: 0.07 });
s.addText([
{ text: item.label + " ", options: { bold: true, color: C.teal, fontSize: 12, fontFace: "Calibri" } },
{ text: item.detail, options: { bold: false, color: C.textDark, fontSize: 11, fontFace: "Calibri" } },
], { x: 5.1, y: vy + 0.04, w: 4.35, h: 0.44, margin: 0 });
});
footerLine(s);
}
// ══════════════════════════════════════════════════════════════════════════════
// SLIDE 7 – RENAL, HEPATIC, CNS & OCULAR EFFECTS
// ══════════════════════════════════════════════════════════════════════════════
{
const s = pres.addSlide();
s.background = { color: C.offWhite };
titleBar(s, "Renal, Hepatic, CNS & Ocular Effects");
const systems = [
{
title: "RENAL", color: C.teal, bg: "#EAF6F6",
items: ["↓ Renal blood flow & GFR", "Oliguria", "↑ ADH & renin", "Na⁺ & H₂O retention", "Usually reversible after desufflation"]
},
{
title: "HEPATIC", color: "#7B5EA7", bg: "#F3EEF9",
items: ["↓ Hepatic blood flow", "↓ Portal venous flow", "Transient ↑ liver enzymes"]
},
{
title: "CNS", color: C.red, bg: "#FEF0EE",
items: ["↑ ICP (hypercarbia)", "↑ Cerebral blood flow", "Caution in head injury / intracranial HTN"]
},
{
title: "OCULAR", color: C.gold, bg: "#FEF7E8",
items: ["↑ IOP", "Greater in steep Trendelenburg", "Caution in glaucoma"]
},
];
systems.forEach((sys, i) => {
const col = i % 2;
const row = Math.floor(i / 2);
const bx = 0.3 + col * 4.85;
const by = 1.15 + row * 2.2;
card(s, bx, by, 4.55, 2.05, sys.bg);
s.addShape(pres.ShapeType.rect, { x: bx, y: by, w: 4.55, h: 0.33, fill: { color: sys.color } });
s.addText(sys.title, { x: bx + 0.05, y: by + 0.02, w: 4.4, h: 0.28, fontSize: 10, bold: true, color: C.white, fontFace: "Calibri", margin: 0 });
s.addText(buildBullets(sys.items, { fontSize: 11.5, color: C.textDark, spacing: 5 }),
{ x: bx + 0.1, y: by + 0.38, w: 4.3, h: 1.62, margin: 0 });
});
footerLine(s);
}
// ══════════════════════════════════════════════════════════════════════════════
// SLIDE 8 – HYPERCARBIA & ETCO₂ CHANGES
// ══════════════════════════════════════════════════════════════════════════════
{
const s = pres.addSlide();
s.background = { color: C.offWhite };
titleBar(s, "Hypercarbia & ETCO₂ Changes");
// Hypercarbia causes
card(s, 0.3, 1.12, 3, 2.2, "#FEF0EE");
s.addShape(pres.ShapeType.rect, { x: 0.3, y: 1.12, w: 3, h: 0.33, fill: { color: C.red } });
s.addText("CAUSES – HYPERCARBIA", { x: 0.35, y: 1.14, w: 2.9, h: 0.28, fontSize: 9.5, bold: true, color: C.white, fontFace: "Calibri", margin: 0 });
s.addText(buildBullets(["CO₂ absorption", "Prolonged surgery", "Subcutaneous emphysema", "Reduced ventilation"], { fontSize: 12, color: C.textDark, spacing: 7 }),
{ x: 0.38, y: 1.5, w: 2.8, h: 1.75, margin: 0 });
// Management
card(s, 3.5, 1.12, 3, 2.2, "#EAF6F6");
s.addShape(pres.ShapeType.rect, { x: 3.5, y: 1.12, w: 3, h: 0.33, fill: { color: C.teal } });
s.addText("MANAGEMENT", { x: 3.55, y: 1.14, w: 2.9, h: 0.28, fontSize: 9.5, bold: true, color: C.white, fontFace: "Calibri", margin: 0 });
s.addText(buildBullets(["↑ MV by 10–25%", "Correct tube position", "↓ Insufflation pressure if needed", "Exclude capnothorax"], { fontSize: 12, color: C.textDark, spacing: 7 }),
{ x: 3.58, y: 1.5, w: 2.8, h: 1.75, margin: 0 });
// ETCO₂ changes table
card(s, 6.7, 1.12, 3, 4.0, C.white);
s.addShape(pres.ShapeType.rect, { x: 6.7, y: 1.12, w: 3, h: 0.33, fill: { color: C.navy } });
s.addText("ETCO₂ QUICK GUIDE", { x: 6.75, y: 1.14, w: 2.9, h: 0.28, fontSize: 9.5, bold: true, color: C.gold, fontFace: "Calibri", margin: 0 });
const etco2Rows = [
{ change: "↑ ETCO₂", cause: "CO₂ absorption, SubQ emphysema, Capnothorax, Endobronchial intubation (early)", col: C.red },
{ change: "↓ ETCO₂", cause: "CO₂ embolism, PE, Pneumothorax (↓CO), Cardiac arrest", col: "#2980B9" },
];
etco2Rows.forEach((r, i) => {
const ey = 1.55 + i * 1.7;
s.addShape(pres.ShapeType.roundRect, { x: 6.8, y: ey, w: 2.8, h: 1.55, fill: { color: i === 0 ? "#FFF5F4" : "#EDF5FF" }, line: { color: r.col, width: 1.2 }, rectRadius: 0.08 });
s.addText(r.change, { x: 6.85, y: ey + 0.05, w: 2.65, h: 0.35, fontSize: 15, bold: true, color: r.col, fontFace: "Calibri", margin: 0 });
s.addText(r.cause, { x: 6.85, y: ey + 0.42, w: 2.65, h: 1.05, fontSize: 10, color: C.textDark, fontFace: "Calibri", margin: 0 });
});
// Increased ETCO₂ causes below
card(s, 0.3, 3.45, 6.2, 1.72, C.white);
s.addText("KEY MNEMONIC – Causes of ↑ ETCO₂", { x: 0.4, y: 3.52, w: 5.8, h: 0.28, fontSize: 9.5, bold: true, color: C.teal, charSpacing: 1, fontFace: "Calibri", margin: 0 });
s.addText(buildBullets(["CO₂ absorption from peritoneum", "Subcutaneous emphysema (↑↑ in neck, crepitus)", "Capnothorax", "Endobronchial intubation (initial)"], { fontSize: 11.5, color: C.textDark, spacing: 4 }),
{ x: 0.4, y: 3.82, w: 5.9, h: 1.3, margin: 0 });
footerLine(s);
}
// ══════════════════════════════════════════════════════════════════════════════
// SLIDE 9 – SECTION DIVIDER: COMPLICATIONS
// ══════════════════════════════════════════════════════════════════════════════
{
const s = pres.addSlide();
sectionDivider(s, 2, "Complications of\nLaparoscopic Surgery");
}
// ══════════════════════════════════════════════════════════════════════════════
// SLIDE 10 – COMPLICATIONS OVERVIEW
// ══════════════════════════════════════════════════════════════════════════════
{
const s = pres.addSlide();
s.background = { color: C.offWhite };
titleBar(s, "Complications – Overview");
const columns = [
{
title: "CARDIOVASCULAR", color: C.red, bg: "#FEF0EE",
items: ["Bradycardia / Asystole", "Tachycardia", "Arrhythmias", "Hypotension", "Hypertension", "Myocardial ischemia", "Cardiac arrest", "Gas embolism"]
},
{
title: "RESPIRATORY", color: "#2980B9", bg: "#EDF5FF",
items: ["Hypercarbia / Acidosis", "Pneumothorax", "Capnothorax", "Pneumomediastinum", "Atelectasis", "Endobronchial intubation", "Pulmonary edema"]
},
{
title: "OTHERS", color: "#7B5EA7", bg: "#F3EEF9",
items: ["Shoulder pain", "PONV", "Oliguria / AKI", "Hypothermia", "DVT", "Corneal abrasion", "Retinal ischemia", "Bowel ischemia", "Position injuries"]
},
];
columns.forEach((col, i) => {
const bx = 0.22 + i * 3.25;
card(s, bx, 1.12, 3.1, 4.0, col.bg);
s.addShape(pres.ShapeType.rect, { x: bx, y: 1.12, w: 3.1, h: 0.33, fill: { color: col.color } });
s.addText(col.title, { x: bx + 0.05, y: 1.14, w: 3, h: 0.28, fontSize: 10, bold: true, color: C.white, fontFace: "Calibri", margin: 0 });
s.addText(buildBullets(col.items, { fontSize: 11.5, color: C.textDark, spacing: 5 }),
{ x: bx + 0.1, y: 1.5, w: 2.9, h: 3.57, margin: 0 });
});
footerLine(s);
}
// ══════════════════════════════════════════════════════════════════════════════
// SLIDE 11 – SUBCUTANEOUS EMPHYSEMA & CAPNOTHORAX
// ══════════════════════════════════════════════════════════════════════════════
{
const s = pres.addSlide();
s.background = { color: C.offWhite };
titleBar(s, "Subcutaneous Emphysema & Capnothorax");
// Sub-Q emphysema
const sqData = [
{ head: "RISK FACTORS", col: C.teal, items: ["Surgery > 200 min", "> 5–6 trocars / ports", "Age > 65 years", "High insufflation pressure", "Fundoplication"] },
{ head: "FEATURES", col: "#2980B9", items: ["Crepitus (neck / chest wall)", "Neck swelling", "↑↑ ETCO₂"] },
{ head: "MANAGEMENT", col: C.gold, items: ["↓ Insufflation pressure", "Hyperventilate", "Confirm ETT position", "Evaluate for capnothorax", "Check airway edema before extubation"] },
];
sqData.forEach((d, i) => {
card(s, 0.3 + i * 3.2, 1.12, 3.05, 2.35, C.white);
s.addShape(pres.ShapeType.rect, { x: 0.3 + i * 3.2, y: 1.12, w: 3.05, h: 0.3, fill: { color: d.col } });
s.addText(d.head, { x: 0.35 + i * 3.2, y: 1.14, w: 2.9, h: 0.24, fontSize: 9.5, bold: true, color: C.white, fontFace: "Calibri", margin: 0 });
s.addText(buildBullets(d.items, { fontSize: 11, color: C.textDark, spacing: 5 }),
{ x: 0.38 + i * 3.2, y: 1.46, w: 2.85, h: 1.96, margin: 0 });
});
// Capnothorax divider label
s.addShape(pres.ShapeType.rect, { x: 0, y: 3.55, w: 10, h: 0.3, fill: { color: C.teal } });
s.addText("CAPNOTHORAX", { x: 0.3, y: 3.56, w: 9.4, h: 0.26, fontSize: 11, bold: true, color: C.white, fontFace: "Calibri", charSpacing: 3, margin: 0 });
const capoData = [
{ head: "FEATURES", col: "#2980B9", items: ["Hypoxia", "↑ Airway pressure", "↓ Breath sounds (unilateral)", "Hypercarbia"] },
{ head: "STABLE – Rx", col: C.green, items: ["↓ Insufflation pressure", "Hyperventilate", "PEEP (if appropriate)"] },
{ head: "UNSTABLE – Rx", col: C.red, items: ["Needle decompression", "Chest tube insertion"] },
];
capoData.forEach((d, i) => {
card(s, 0.3 + i * 3.2, 3.9, 3.05, 1.62, C.white);
s.addShape(pres.ShapeType.rect, { x: 0.3 + i * 3.2, y: 3.9, w: 3.05, h: 0.28, fill: { color: d.col } });
s.addText(d.head, { x: 0.35 + i * 3.2, y: 3.91, w: 2.9, h: 0.24, fontSize: 9.5, bold: true, color: C.white, fontFace: "Calibri", margin: 0 });
s.addText(buildBullets(d.items, { fontSize: 11, color: C.textDark, spacing: 5 }),
{ x: 0.38 + i * 3.2, y: 4.22, w: 2.85, h: 1.27, margin: 0 });
});
footerLine(s);
}
// ══════════════════════════════════════════════════════════════════════════════
// SLIDE 12 – ENDOBRONCHIAL INTUBATION & CO₂ EMBOLISM
// ══════════════════════════════════════════════════════════════════════════════
{
const s = pres.addSlide();
s.background = { color: C.offWhite };
titleBar(s, "Endobronchial Intubation & CO₂ Gas Embolism");
// Endobronchial intubation section
card(s, 0.3, 1.12, 4.4, 3.55, C.white);
s.addShape(pres.ShapeType.rect, { x: 0.3, y: 1.12, w: 4.4, h: 0.33, fill: { color: "#2980B9" } });
s.addText("ENDOBRONCHIAL INTUBATION", { x: 0.35, y: 1.14, w: 4.3, h: 0.28, fontSize: 10, bold: true, color: C.white, fontFace: "Calibri", margin: 0 });
const ebiData = [
{ sub: "CAUSE", items: ["Cephalad movement of carina during pneumoperitoneum"] },
{ sub: "FEATURES", items: ["Desaturation", "↑ Airway pressure", "Unilateral breath sounds"] },
{ sub: "MANAGEMENT", items: ["Withdraw ETT under auscultation", "Fiberoptic guidance if needed"] },
];
let ey = 1.52;
ebiData.forEach(d => {
s.addText(d.sub, { x: 0.4, y: ey, w: 4.1, h: 0.24, fontSize: 9, bold: true, color: C.teal, charSpacing: 1, fontFace: "Calibri", margin: 0 });
ey += 0.26;
s.addText(buildBullets(d.items, { fontSize: 11.5, color: C.textDark, spacing: 3 }),
{ x: 0.4, y: ey, w: 4.1, h: 0.5 * d.items.length, margin: 0 });
ey += 0.5 * d.items.length + 0.08;
});
// CO₂ Embolism section
card(s, 4.9, 1.12, 4.8, 3.55, "#FEF0EE");
s.addShape(pres.ShapeType.rect, { x: 4.9, y: 1.12, w: 4.8, h: 0.33, fill: { color: C.red } });
s.addText("CO₂ GAS EMBOLISM", { x: 4.95, y: 1.14, w: 4.65, h: 0.28, fontSize: 10, bold: true, color: C.white, fontFace: "Calibri", margin: 0 });
const embData = [
{ sub: "CAUSE", items: ["Veress needle entering vessel", "Open venous injury during trocar insertion"] },
{ sub: "FEATURES", items: ["Sudden hypotension", "Sudden ↓ ETCO₂", "Hypoxemia", "Pulmonary HTN", "Arrhythmias / Cardiac arrest"] },
{ sub: "GOLD STANDARD Dx", items: ["TEE (Transesophageal Echo)"] },
];
let cy = 1.52;
embData.forEach(d => {
s.addText(d.sub, { x: 5.0, y: cy, w: 4.55, h: 0.24, fontSize: 9, bold: true, color: C.red, charSpacing: 1, fontFace: "Calibri", margin: 0 });
cy += 0.26;
s.addText(buildBullets(d.items, { fontSize: 11.5, color: C.textDark, spacing: 3 }),
{ x: 5.0, y: cy, w: 4.55, h: 0.5 * d.items.length, margin: 0 });
cy += 0.5 * d.items.length + 0.08;
});
// Treatment steps for embolism
const txSteps = ["1. Stop insufflation", "2. Release pneumoperitoneum", "3. 100% oxygen", "4. Left lateral decubitus + head down (Durant's)", "5. Aspirate gas via CVP catheter", "6. CPR if required", "7. Vasopressors", "8. Hyperbaric O₂ (arterial embolism)"];
s.addShape(pres.ShapeType.roundRect, { x: 0.3, y: 4.72, w: 9.4, h: 0.52, fill: { color: C.navy }, rectRadius: 0.08 });
s.addText("TREATMENT: " + txSteps.join(" → "), {
x: 0.4, y: 4.74, w: 9.2, h: 0.46,
fontSize: 9.5, color: C.gold, fontFace: "Calibri", bold: false, margin: 0
});
footerLine(s);
}
// ══════════════════════════════════════════════════════════════════════════════
// SLIDE 13 – WELL-LEG COMPARTMENT SYNDROME
// ══════════════════════════════════════════════════════════════════════════════
{
const s = pres.addSlide();
s.background = { color: C.offWhite };
titleBar(s, "Well-Leg Compartment Syndrome");
const panels = [
{
title: "RISK FACTORS", color: C.red,
items: ["Prolonged surgery (lithotomy > 4–5 hrs)", "Steep Trendelenburg position", "Obesity", "Peripheral vascular disease", "Excessive padding pressure"]
},
{
title: "FEATURES", color: "#2980B9",
items: ["Severe calf / leg pain on awakening", "Tense, swollen calf", "Compartment pressures > 30 mmHg", "Rhabdomyolysis", "Myoglobinuria → Renal failure"]
},
{
title: "PREVENTION & MANAGEMENT", color: C.green,
items: ["Intermittent pneumatic compression stockings", "Adequate padding of pressure points", "Periodic repositioning of legs (if feasible)", "Avoid prolonged lithotomy", "Fasciotomy if compartment syndrome confirmed"]
},
];
panels.forEach((p, i) => {
card(s, 0.22 + i * 3.25, 1.15, 3.05, 3.85, C.white);
s.addShape(pres.ShapeType.rect, { x: 0.22 + i * 3.25, y: 1.15, w: 3.05, h: 0.33, fill: { color: p.color } });
s.addText(p.title, { x: 0.27 + i * 3.25, y: 1.17, w: 2.9, h: 0.28, fontSize: 9.5, bold: true, color: C.white, fontFace: "Calibri", margin: 0 });
s.addText(buildBullets(p.items, { fontSize: 12, color: C.textDark, spacing: 7 }),
{ x: 0.3 + i * 3.25, y: 1.52, w: 2.9, h: 3.4, margin: 0 });
});
// Alert callout
s.addShape(pres.ShapeType.roundRect, { x: 0.3, y: 5.1, w: 9.4, h: 0.22, fill: { color: C.gold }, rectRadius: 0.05 });
s.addText("⚠ Can occur POSTOPERATIVELY — remain vigilant for leg pain / swelling in recovery room", {
x: 0.4, y: 5.1, w: 9.2, h: 0.22,
fontSize: 9.5, bold: true, color: C.navy, fontFace: "Calibri", margin: 0
});
footerLine(s);
}
// ══════════════════════════════════════════════════════════════════════════════
// SLIDE 14 – SECTION DIVIDER: ANAESTHETIC MANAGEMENT
// ══════════════════════════════════════════════════════════════════════════════
{
const s = pres.addSlide();
sectionDivider(s, 3, "Anaesthetic\nManagement");
}
// ══════════════════════════════════════════════════════════════════════════════
// SLIDE 15 – PREOP & INDUCTION
// ══════════════════════════════════════════════════════════════════════════════
{
const s = pres.addSlide();
s.background = { color: C.offWhite };
titleBar(s, "Preoperative Assessment & Induction");
const preop = [
"Optimize cardiopulmonary status",
"Correct hypovolemia before induction",
"Aspiration prophylaxis (antacids, H₂ blockers)",
"DVT prophylaxis – TED stockings / LMWH",
"Counsel patient on position-related risks",
];
const induction = [
"General anaesthesia preferred",
"Cuffed ETT – mandatory for airway protection",
"Smooth intubation – avoid coughing / bucking",
"Adequate muscle relaxation",
"Gastric decompression – OG / NG tube",
"Verify ETT position before insufflation",
];
card(s, 0.3, 1.12, 4.4, 3.65, C.white);
s.addShape(pres.ShapeType.rect, { x: 0.3, y: 1.12, w: 4.4, h: 0.33, fill: { color: C.teal } });
s.addText("PREOPERATIVE", { x: 0.35, y: 1.14, w: 4.3, h: 0.28, fontSize: 10, bold: true, color: C.white, fontFace: "Calibri", margin: 0 });
s.addText(buildBullets(preop, { fontSize: 12.5, color: C.textDark, spacing: 8 }),
{ x: 0.4, y: 1.5, w: 4.2, h: 3.2, margin: 0 });
card(s, 4.9, 1.12, 4.8, 3.65, "#EAF6F6");
s.addShape(pres.ShapeType.rect, { x: 4.9, y: 1.12, w: 4.8, h: 0.33, fill: { color: C.navy } });
s.addText("INDUCTION", { x: 4.95, y: 1.14, w: 4.65, h: 0.28, fontSize: 10, bold: true, color: C.gold, fontFace: "Calibri", margin: 0 });
s.addText(buildBullets(induction, { fontSize: 12.5, color: C.textDark, spacing: 8 }),
{ x: 5.0, y: 1.5, w: 4.55, h: 3.2, margin: 0 });
// Airway note
s.addShape(pres.ShapeType.roundRect, { x: 0.3, y: 4.9, w: 9.4, h: 0.32, fill: { color: C.tealLight }, rectRadius: 0.06 });
s.addText("AIRWAY: Cuffed ETT (preferred) | 2nd-gen supraglottic airway acceptable for short, selected procedures in experienced hands", {
x: 0.4, y: 4.9, w: 9.2, h: 0.3,
fontSize: 9.5, color: C.navy, fontFace: "Calibri", bold: false, margin: 0
});
footerLine(s);
}
// ══════════════════════════════════════════════════════════════════════════════
// SLIDE 16 – MAINTENANCE & FLUID THERAPY
// ══════════════════════════════════════════════════════════════════════════════
{
const s = pres.addSlide();
s.background = { color: C.offWhite };
titleBar(s, "Maintenance & Fluid Therapy");
// Maintenance
card(s, 0.3, 1.12, 4.5, 2.95, C.white);
s.addShape(pres.ShapeType.rect, { x: 0.3, y: 1.12, w: 4.5, h: 0.33, fill: { color: C.teal } });
s.addText("MAINTENANCE", { x: 0.35, y: 1.14, w: 4.4, h: 0.28, fontSize: 10, bold: true, color: C.white, fontFace: "Calibri", margin: 0 });
const maint = ["O₂ + air (avoid N₂O – risk of bowel distension)", "Volatile agent or TIVA (propofol infusion)", "Lung protective ventilation", "Maintain ETCO₂: 35–40 mmHg", "Maintain normothermia (forced-air warming)", "Neuromuscular monitoring – ensure full reversal"];
s.addText(buildBullets(maint, { fontSize: 12, color: C.textDark, spacing: 6 }),
{ x: 0.4, y: 1.5, w: 4.3, h: 2.5, margin: 0 });
// Fluid therapy
card(s, 5.0, 1.12, 4.65, 2.95, "#EAF6F6");
s.addShape(pres.ShapeType.rect, { x: 5.0, y: 1.12, w: 4.65, h: 0.33, fill: { color: C.navy } });
s.addText("GOAL-DIRECTED FLUID THERAPY", { x: 5.05, y: 1.14, w: 4.5, h: 0.28, fontSize: 10, bold: true, color: C.gold, fontFace: "Calibri", margin: 0 });
const fluidItems = [
{ label: "SVV", detail: "Stroke Volume Variation" },
{ label: "PPV", detail: "Pulse Pressure Variation" },
{ label: "SVO", detail: "Stroke Volume Optimization" },
];
s.addText("Dynamic Parameters:", { x: 5.08, y: 1.52, w: 4.4, h: 0.28, fontSize: 11, bold: true, color: C.teal, fontFace: "Calibri", margin: 0 });
fluidItems.forEach((item, i) => {
const fy = 1.84 + i * 0.52;
s.addShape(pres.ShapeType.roundRect, { x: 5.08, y: fy, w: 4.44, h: 0.44, fill: { color: C.white }, line: { color: C.teal, width: 0.8 }, rectRadius: 0.07 });
s.addText([
{ text: item.label + " ", options: { bold: true, color: C.navy, fontSize: 13, fontFace: "Calibri" } },
{ text: item.detail, options: { bold: false, color: C.textGrey, fontSize: 11, fontFace: "Calibri" } },
], { x: 5.14, y: fy + 0.04, w: 4.3, h: 0.36, margin: 0 });
});
// PONV prophylaxis
card(s, 0.3, 4.18, 4.5, 1.02, "#FEF7E8");
s.addShape(pres.ShapeType.rect, { x: 0.3, y: 4.18, w: 4.5, h: 0.28, fill: { color: C.gold } });
s.addText("PONV PROPHYLAXIS", { x: 0.35, y: 4.19, w: 4.4, h: 0.24, fontSize: 9.5, bold: true, color: C.navy, fontFace: "Calibri", margin: 0 });
s.addText(buildBullets(["Dexamethasone 4–8 mg after induction", "Ondansetron 4 mg before extubation", "Consider multimodal prophylaxis"], { fontSize: 11, color: C.textDark, spacing: 2 }),
{ x: 0.4, y: 4.48, w: 4.3, h: 0.68, margin: 0 });
// Analgesia
card(s, 5.0, 4.18, 4.65, 1.02, "#F3EEF9");
s.addShape(pres.ShapeType.rect, { x: 5.0, y: 4.18, w: 4.65, h: 0.28, fill: { color: "#7B5EA7" } });
s.addText("POSTOPERATIVE ANALGESIA", { x: 5.05, y: 4.19, w: 4.55, h: 0.24, fontSize: 9.5, bold: true, color: C.white, fontFace: "Calibri", margin: 0 });
s.addText(buildBullets(["Intraperitoneal LA", "TAP block", "NSAIDs + Paracetamol + Low-dose opioids", "Epidural for major procedures"], { fontSize: 11, color: C.textDark, spacing: 2 }),
{ x: 5.08, y: 4.48, w: 4.48, h: 0.68, margin: 0 });
footerLine(s);
}
// ══════════════════════════════════════════════════════════════════════════════
// SLIDE 17 – RECENT GUIDELINE UPDATES / VIVA POINTS
// ══════════════════════════════════════════════════════════════════════════════
{
const s = pres.addSlide();
s.background = { color: C.navy };
// Gold title bar
s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.85, fill: { color: C.gold } });
s.addText("RECENT GUIDELINE UPDATES – VIVA POINTS", {
x: 0.35, y: 0.1, w: 9.3, h: 0.65,
fontSize: 16, bold: true, color: C.navy, fontFace: "Calibri", margin: 0
});
const vivaPoints = [
{ num: "01", point: "LOW-PRESSURE PNEUMOPERITONEUM", detail: "8–12 mmHg whenever surgical exposure permits. Reduces pain and cardiopulmonary effects." },
{ num: "02", point: "LUNG-PROTECTIVE VENTILATION", detail: "TV 6–8 mL/kg IBW + PEEP 5–10 cmH₂O. Reduces atelectasis and barotrauma." },
{ num: "03", point: "GOAL-DIRECTED FLUID THERAPY", detail: "Prefer dynamic parameters (SVV, PPV). Avoids both hypovolemia and fluid overload." },
{ num: "04", point: "NEUROMUSCULAR MONITORING", detail: "Quantitative TOF monitoring. Complete reversal (TOF ratio ≥ 0.9) before extubation." },
{ num: "05", point: "MULTIMODAL ANALGESIA (ERAS)", detail: "Intraperitoneal LA + TAP block + NSAIDs + paracetamol ± low-dose opioids." },
{ num: "06", point: "VTE PROPHYLAXIS", detail: "Risk-based: mechanical (IPC) ± pharmacological (LMWH) as per patient risk score." },
];
vivaPoints.forEach((v, i) => {
const row = Math.floor(i / 2);
const col = i % 2;
const bx = 0.25 + col * 5.0;
const by = 1.0 + row * 1.52;
s.addShape(pres.ShapeType.roundRect, { x: bx, y: by, w: 4.7, h: 1.38, fill: { color: C.cardBg }, line: { color: C.teal, width: 1 }, rectRadius: 0.1 });
s.addText(v.num, { x: bx + 0.1, y: by + 0.08, w: 0.5, h: 0.5, fontSize: 18, bold: true, color: C.teal, fontFace: "Calibri", margin: 0 });
s.addText(v.point, { x: bx + 0.65, y: by + 0.08, w: 3.9, h: 0.38, fontSize: 11, bold: true, color: C.gold, fontFace: "Calibri", margin: 0 });
s.addText(v.detail, { x: bx + 0.65, y: by + 0.5, w: 3.9, h: 0.8, fontSize: 10.5, color: C.offWhite, fontFace: "Calibri", margin: 0 });
});
footerLine(s, "MD Anaesthesiology | Guideline-Based Viva Points | Laparoscopic Anaesthesia");
}
// ══════════════════════════════════════════════════════════════════════════════
// SLIDE 18 – SUMMARY & KEY TAKE-AWAYS
// ══════════════════════════════════════════════════════════════════════════════
{
const s = pres.addSlide();
s.background = { color: C.navy };
s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.85, fill: { color: C.teal } });
s.addText("SUMMARY – KEY TAKE-AWAYS", {
x: 0.35, y: 0.1, w: 9.3, h: 0.65,
fontSize: 18, bold: true, color: C.white, fontFace: "Calibri", margin: 0
});
const takes = [
"CO₂ pneumoperitoneum causes multisystem physiological changes – cardiovascular, respiratory, renal, CNS & ocular.",
"Always monitor ETCO₂: ↑ suggests absorption/emphysema/capnothorax; sudden ↓ suggests embolism or cardiac arrest.",
"Ventilate lung-protectively (TV 6–8 mL/kg, PEEP 5–10) and increase MV by 10–25% to offset CO₂ load.",
"CO₂ embolism: stop gas, 100% O₂, Durant's manoeuvre, CVP aspiration, TEE for diagnosis.",
"Subcutaneous emphysema → ↑ ETCO₂ + crepitus – reduce pressure, hyperventilate, evaluate airway before extubation.",
"Goal-directed fluid therapy, NM monitoring, and multimodal PONV/analgesia are standard-of-care (ERAS).",
"Watch for position-related complications: well-leg compartment syndrome, nerve injuries, retinal ischemia.",
];
takes.forEach((t, i) => {
const by = 0.98 + i * 0.64;
s.addShape(pres.ShapeType.roundRect, { x: 0.3, y: by, w: 9.4, h: 0.56, fill: { color: C.cardBg }, line: { color: C.teal, width: 0.8 }, rectRadius: 0.08 });
s.addText([
{ text: String(i + 1).padStart(2, "0") + " ", options: { bold: true, color: C.gold, fontSize: 12, fontFace: "Calibri" } },
{ text: t, options: { bold: false, color: C.offWhite, fontSize: 10.5, fontFace: "Calibri" } },
], { x: 0.4, y: by + 0.05, w: 9.2, h: 0.46, margin: 0 });
});
footerLine(s, "MD Anaesthesiology | Laparoscopic Surgery – Anaesthetic Considerations | Summary");
}
// ══════════════════════════════════════════════════════════════════════════════
// WRITE FILE
// ══════════════════════════════════════════════════════════════════════════════
const outputPath = "/home/daytona/workspace/laparoscopic-anaesthesia/Laparoscopic_Anaesthesia_MDAnaesthesiology.pptx";
pres.writeFile({ fileName: outputPath }).then(() => {
console.log("DONE: " + outputPath);
}).catch(err => {
console.error("ERROR:", err);
process.exit(1);
});
cd /home/daytona/workspace/laparoscopic-anaesthesia && node build.js 2>&1
ls -lh /home/daytona/workspace/laparoscopic-anaesthesia/Laparoscopic_Anaesthesia…
Laparoscopic Anaesthesia MDAnaesthesiology
Presentation · PPTX
| # | Slide |
|---|---|
| 1 | Title slide – dark navy with CO₂ accent and topic preview |
| 2 | Definition, History, Benefits vs Risks (two-column colour-coded cards) |
| 3 | Why CO₂? – Advantages vs Disadvantages + IAP pressure callout |
| 4 | Section divider – Physiological Effects |
| 5 | Cardiovascular Effects – Initial vs Sustained phases + Mechanism + Management |
| 6 | Respiratory Effects – Effects column + Ventilation Strategy (TV / PEEP / MV targets) |
| 7 | Renal, Hepatic, CNS & Ocular Effects – four-quadrant layout |
| 8 | Hypercarbia & ETCO₂ Changes – causes, management, ↑ vs ↓ ETCO₂ quick guide |
| 9 | Section divider – Complications |
| 10 | Complications Overview – Cardiovascular / Respiratory / Others (three columns) |
| 11 | Subcutaneous Emphysema + Capnothorax – risk factors, features, stable/unstable Rx |
| 12 | Endobronchial Intubation + CO₂ Gas Embolism (Durant's manoeuvre, TEE gold standard) |
| 13 | Well-Leg Compartment Syndrome – risk factors, features, prevention, alert callout |
| 14 | Section divider – Anaesthetic Management |
| 15 | Preoperative Assessment & Induction |
| 16 | Maintenance, Fluid Therapy (GDFT), PONV Prophylaxis, Postoperative Analgesia |
| 17 | Recent Guideline Updates / Viva Points (dark gold theme – 6 numbered cards) |
| 18 | Summary – 7 key take-away statements (dark theme) |
libreoffice --headless --convert-to pdf --outdir /home/daytona/workspace/laparos…
mkdir -p /home/daytona/workspace/laparoscopic-anaesthesia/output && libreoffice …
cp /home/daytona/workspace/laparoscopic-anaesthesia/Laparoscopic_Anaesthesia_MDA…
cp /tmp/lap.pdf /home/daytona/workspace/laparoscopic-anaesthesia/Laparoscopic_An…
Laparoscopic Anaesthesia MDAnaesthesiology
PDF Document · PDF