Post natal delivery patient intubated in view of post cpr and on nor adr and vasopressin. following delivery a few days ago developed distress on 2nd day and on 3 rd day while intubating developed Brady and a systole for which she was intubated and cpr done revived and now in icu. Chest has white out lung with query pneumothorax and echo shows rv and lv dilation. What’s next

Reading File
Finding Sources
Finding Sources
Finding Sources
Searching PubMed

amniotic fluid embolism management ICU

Finding Sources
Finding Sources
Finding Sources
Reading File
Reading File
Reading File
Finding Sources
Finding Sources
I now have sufficient data for a thorough, structured response. Let me synthesize:

Critical ICU Management: Post-Partum Cardiac Arrest with Biventricular Failure, White-Out Chest, and ?Pneumothorax

Working Diagnosis

The clinical picture is almost textbook Amniotic Fluid Embolism (AFE) - also called "anaphylactoid syndrome of pregnancy." The diagnostic triad is satisfied:
CriterionThis Patient
Sudden cardiopulmonary arrestAsystole/Brady during intubation on Day 3
Respiratory compromiseWhite-out bilateral opacities, on ventilator
Onset during labor or within 30 min of deliveryPost-natal within days
DIC (often present)Needs to be checked
AFE causes a biphasic hemodynamic collapse: initial pulmonary hypertension (obstructing RV outflow) followed by LV failure, explaining the biventricular dilation on echo. Bilateral opacities represent high-permeability pulmonary edema (not cardiogenic primarily).
  • Murray & Nadel's Textbook of Respiratory Medicine, p. 2259
  • Fishman's Pulmonary Diseases, p. 2129

Immediate Priorities (Systematic Order)

1. RULE OUT TENSION PNEUMOTHORAX - Do This NOW

The "query pneumothorax" on chest X-ray in a ventilated patient is a life-threatening emergency that must be acted on before anything else:
  • Bilateral white-out + hemodynamic instability on a ventilated patient: high suspicion for bilateral pneumothorax (can occur from barotrauma during aggressive bag-mask ventilation or during CPR with rib fractures)
  • Bedside ultrasound (POCUS): absent lung sliding = pneumothorax; M-mode "barcode sign"
  • Do NOT wait for CT - if clinically suspected (absent breath sounds, high peak airway pressures, worsening hemodynamics), place bilateral chest drains (28-32F) empirically
  • If unstable and no time for USS: needle decompression (2nd ICS mid-clavicular line) as a bridge
This must be excluded before attributing everything to AFE/cardiomyopathy - a missed tension pneumothorax is immediately fatal.

2. Ventilator - Lung-Protective Strategy

Once pneumothorax is drained or excluded:
  • TV 4-6 ml/kg IBW (avoid over-distension in biventricular failure)
  • PEEP 8-12 cmH2O (balance oxygenation vs. RV preload reduction) - avoid excessive PEEP as it increases RV afterload
  • FiO2 1.0 initially, wean to keep SpO2 >92%
  • Prone positioning if P/F ratio <150 despite optimization (evidence-based in ARDS)
  • Target plateau pressure <30 cmH2O; driving pressure <15 cmH2O
  • Permissive hypercapnia acceptable (PaCO2 50-60) to avoid high pressures; avoid hypercapnia however as it worsens pulmonary hypertension and RV failure

3. Hemodynamic Management - Vasopressors and Biventricular Failure

She is already on noradrenaline + adrenaline + vasopressin (triple vasopressor support). This is correct for AFE:
For RV failure with pulmonary hypertension:
  • Vasopressin (already on) - ideal: maintains systemic BP without worsening pulmonary vascular resistance (unlike noradrenaline at high doses)
  • Add inhaled pulmonary vasodilators: inhaled nitric oxide (iNO) 20-40 ppm OR inhaled prostacyclin (iloprost) to reduce RV afterload - this is a key intervention not yet mentioned
  • Consider sildenafil if iNO not available (PDE5 inhibitor, reduces PVR)
  • Avoid fluid overload - RV dilation worsens with excess filling; consider gentle diuresis once perfusion secured
For LV failure/cardiogenic shock:
  • Adrenaline is appropriate as inotrope + vasopressor
  • Consider adding dobutamine if predominantly inotropic support needed, but be cautious with tachycardia
  • Echo-guided fluid management: avoid preload augmentation if RV is dilated
Target MAP >65 mmHg, ideally >70 in post-partum uterus to prevent further hemorrhage.

4. ECMO - Strongly Consider Now

This is the most important escalation decision. The textbooks are explicit:
"Consider extracorporeal membrane oxygenation (ECMO) after prolonged arrest or severe ventricular dysfunction unresponsive to medical management." - Creasy & Resnik's Maternal-Fetal Medicine, p. 6144
"VA-ECMO for cardiogenic shock associated with respiratory failure, and RV failure" - Miller's Anesthesia, 10e
Indications met in this patient:
  • Post-cardiac arrest (prolonged CPR)
  • Biventricular dilation / failure
  • Refractory shock on triple vasopressors
  • Bilateral ARDS white-out (respiratory failure)
VA-ECMO (veno-arterial) is preferred because it provides both cardiac and respiratory support simultaneously. Contact ECMO team / consider transfer to ECMO center if not available. VA-ECMO in post-partum AFE has demonstrated survival in case series.

5. Coagulopathy / DIC - Check and Treat

AFE causes consumptive coagulopathy (DIC) from thromboplastic activity of amniotic fluid. This is often the cause of ongoing hemodynamic instability:
  • Urgent labs: PT/APTT, fibrinogen, D-dimer, platelet count, blood film
  • Consider TEG/ROTEM (point-of-care) for real-time coagulopathy guidance
  • Massive transfusion protocol if DIC confirmed: pRBC:FFP:Platelets in 1:1:1 ratio
  • Cryoprecipitate if fibrinogen <1.5 g/L (AFE causes profound hypofibrinogenemia)
  • Avoid recombinant Factor VIIa - a systematic review found worse outcomes (major organ thrombosis) in AFE patients - Creasy & Resnik's, p. 6146
  • Tranexamic acid: may be considered for hemorrhage but use cautiously given risk of paradoxical thrombosis in DIC

6. Investigations Required Urgently

InvestigationPurpose
Repeat CXR post-drainsConfirm pneumothorax drained / lung re-expansion
Bedside echo (TTE/TEE)RV pressure, TAPSE, LV EF, pericardial effusion, IVC
ABGpH, PaO2/FiO2 ratio (severity of ARDS), PaCO2
Full coagulation screen + TEGDIC profile
CBC, urea, creatinine, LFTsMulti-organ involvement
Troponin, BNP/NT-proBNPDegree of myocardial injury
Blood cultures x2Exclude septic shock as co-trigger
LactatePerfusion adequacy
CT Pulmonary AngiographyIf stable enough - to exclude massive PE (important differential)

7. Differential Diagnoses to Keep in Mind

While AFE is most likely, actively exclude:
  • Massive Pulmonary Embolism (PE) - also causes biventricular strain, can present post-partum; CTA-PA or echo RV strain pattern
  • Peripartum Cardiomyopathy (PPCM) - more gradual, LV dominant, less dramatic acute presentation; echo shows dilated LV with low EF
  • Septic shock with ARDS - fever, source (uterine/wound), blood cultures
  • Aspiration pneumonitis/pneumonia - unilateral or bilateral infiltrates, history of vomiting

Summary Action Plan (Next 1-4 Hours)

1. POCUS bilateral lung → drain pneumothorax if present (bilateral ICC)
2. Lung-protective ventilation (TV 6ml/kg, PEEP 10, prone if P/F <150)
3. Inhaled NO or iloprost (RV afterload reduction)
4. Urgent echo (TEE preferred) to reassess RV/LV function
5. DIC screen + 1:1:1 MTP if coagulopathy confirmed
6. ECMO team activation - VA-ECMO indication is already present
7. ICU monitoring: arterial line, CVC/PA catheter, urinary catheter
8. Consider CTA-PA when hemodynamically stable enough
This patient has an extremely high mortality - multiple organ failure post-AFE/cardiac arrest with ARDS and biventricular failure. The only interventions that change outcome are early ECMO and aggressive treatment of DIC. Even with optimal care, AFE mortality is 20-43% in modern series; post-cardiac arrest adds further risk.
Sources: Murray & Nadel's Textbook of Respiratory Medicine; Fishman's Pulmonary Diseases and Disorders; Creasy & Resnik's Maternal-Fetal Medicine, pp. 6144-6146; Miller's Anesthesia, 10e

Create a one-page AFE/biventricular failure ICU checklist with medication algorithms

Reading File
Reading File
Running Command

ls -la /home/daytona/workspace/ 2>/dev/null || echo "workspace not found"

Running Command

mkdir -p /home/daytona/workspace/afe-checklist

Writing File

~/afe-checklist/generate.js

const pptxgen = require("pptxgenjs");

const pres = new pptxgen();
pres.layout = "LAYOUT_WIDE"; // 13.3 x 7.5 inches — gives max real estate for a one-pager

// ─── Colour palette ───────────────────────────────────────────────────────────
const C = {
  bg:        "0D1B2A",   // deep navy
  header:    "C0392B",   // emergency red
  col1:      "1A2E42",   // dark blue panel
  col2:      "162638",   // slightly darker panel
  col3:      "1C3A52",   // teal-ish panel
  col4:      "0F2233",   // deepest panel
  accent:    "E74C3C",   // red accent
  warn:      "F39C12",   // amber warning
  ok:        "27AE60",   // green tick
  white:     "FFFFFF",
  lt:        "D6EAF8",   // light blue text
  muted:     "85929E",   // grey
  gold:      "F1C40F",   // yellow highlight
  border:    "2E4057",
};

const slide = pres.addSlide();

// ─── Full background ──────────────────────────────────────────────────────────
slide.addShape(pres.ShapeType.rect, { x:0, y:0, w:13.3, h:7.5, fill:{color:C.bg}, line:{color:C.bg} });

// ─── TOP HEADER BAND ─────────────────────────────────────────────────────────
slide.addShape(pres.ShapeType.rect, { x:0, y:0, w:13.3, h:0.58, fill:{color:C.header}, line:{color:C.header} });

slide.addText("AFE / BIVENTRICULAR FAILURE — ICU EMERGENCY CHECKLIST", {
  x:0.18, y:0.02, w:9.5, h:0.52,
  fontSize:15, bold:true, color:C.white, fontFace:"Arial",
  align:"left", valign:"middle", margin:0,
});

// Date label top-right
slide.addText("Post-Partum Critical Care  |  Immediate Actions", {
  x:9.7, y:0.04, w:3.4, h:0.5,
  fontSize:8, color:"FDEBD0", fontFace:"Arial",
  align:"right", valign:"middle", margin:0,
});

// ─── COLUMN LAYOUT ────────────────────────────────────────────────────────────
// 5 columns: [0] Pneumothorax  [1] Ventilator  [2] Vasopressors  [3] Coags/DIC  [4] ECMO/Escalate
const colW = 2.56;
const colY = 0.63;
const colH = 6.6;
const gap  = 0.065;
const cols = [0.05, 0.05+colW+gap, 0.05+2*(colW+gap), 0.05+3*(colW+gap), 0.05+4*(colW+gap)];

const panelColors = [C.accent+"22", "1A2E42", "162638", "1C3A52", "0F2233"];
const borderColors = [C.accent, "2980B9", "27AE60", C.warn, "8E44AD"];
const headerBg     = [C.accent, "2980B9", "27AE60", C.warn, "8E44AD"];

// Draw column panels
for (let i = 0; i < 5; i++) {
  slide.addShape(pres.ShapeType.rect, {
    x: cols[i], y: colY, w: colW, h: colH,
    fill: { color: "162433" },
    line: { color: borderColors[i], pt: 1.5 },
  });
  // Header block
  slide.addShape(pres.ShapeType.rect, {
    x: cols[i], y: colY, w: colW, h: 0.42,
    fill: { color: headerBg[i] },
    line: { color: headerBg[i] },
  });
}

// ─── COLUMN HEADERS ───────────────────────────────────────────────────────────
const headers = [
  "① PNEUMOTHORAX",
  "② VENTILATOR",
  "③ VASOPRESSORS",
  "④ DIC / COAGS",
  "⑤ ECMO / ESCALATE",
];
for (let i=0; i<5; i++) {
  slide.addText(headers[i], {
    x: cols[i]+0.05, y: colY+0.04, w: colW-0.1, h: 0.35,
    fontSize: 8.5, bold: true, color: C.white, fontFace: "Arial",
    align:"center", valign:"middle", margin:0,
  });
}

// ─── HELPER: add a section label ─────────────────────────────────────────────
function sectionLabel(col, y, text, color) {
  slide.addShape(pres.ShapeType.rect, {
    x: cols[col]+0.06, y: y, w: colW-0.12, h: 0.22,
    fill: { color: color+"44" },
    line: { color: color, pt:0.5 },
  });
  slide.addText(text, {
    x: cols[col]+0.07, y: y, w: colW-0.14, h: 0.22,
    fontSize: 6.8, bold: true, color: color, fontFace:"Arial",
    align:"left", valign:"middle", margin:0,
  });
}

// ─── HELPER: add bullet lines ─────────────────────────────────────────────────
function bullets(col, y, items, opts={}) {
  const lines = items.map((item, idx) => ({
    text: item.text,
    options: {
      bullet: { code: item.urgent ? "25B6" : "25CF", color: item.urgent ? C.accent : (item.ok ? C.ok : C.lt) },
      color: item.urgent ? "FFB3B3" : (item.ok ? "A9DFBF" : (item.warn ? "FAD7A0" : C.lt)),
      fontSize: opts.size || 6.5,
      bold: item.bold || false,
      breakLine: idx < items.length-1,
    }
  }));
  slide.addText(lines, {
    x: cols[col]+0.08, y, w: colW-0.16, h: opts.h || 1.0,
    fontFace:"Arial", valign:"top", margin:0,
  });
}

// ─── HELPER: add a drug box ───────────────────────────────────────────────────
function drugBox(col, y, name, dose, color) {
  slide.addShape(pres.ShapeType.rect, {
    x: cols[col]+0.06, y, w: colW-0.12, h: 0.46,
    fill: { color: color+"33" },
    line: { color: color, pt: 0.8 },
  });
  slide.addText(name, {
    x: cols[col]+0.1, y: y+0.01, w: colW-0.2, h: 0.18,
    fontSize:7, bold:true, color:color, fontFace:"Arial",
    align:"left", valign:"middle", margin:0,
  });
  slide.addText(dose, {
    x: cols[col]+0.1, y: y+0.19, w: colW-0.2, h: 0.24,
    fontSize:6.2, color:C.white, fontFace:"Arial",
    align:"left", valign:"top", margin:0,
  });
}

// ═══════════════════════════════════════════════════════════════════════════════
// COLUMN 0: PNEUMOTHORAX
// ═══════════════════════════════════════════════════════════════════════════════
let y0 = colY + 0.47;

sectionLabel(0, y0, "▶  RULE OUT FIRST — DO NOT DELAY", C.accent);
y0 += 0.26;

bullets(0, y0, [
  { text:"POCUS both lungs: absent sliding = PTX", urgent:true },
  { text:"Barcode sign on M-mode", urgent:true },
  { text:"Check peak airway pressure (↑ = obstruction)", urgent:true },
], { h:0.66 });
y0 += 0.68;

sectionLabel(0, y0, "IF UNSTABLE — ACT IMMEDIATELY", C.accent);
y0 += 0.26;

bullets(0, y0, [
  { text:"Needle decomp: 2nd ICS MCL bilaterally", urgent:true, bold:true },
  { text:"Then bilateral ICC 28-32F (safe side)", urgent:true },
  { text:"Do NOT wait for CT if hemodynamically unstable", urgent:true },
], { h:0.72 });
y0 += 0.74;

sectionLabel(0, y0, "POST-DRAIN CHECKS", "2980B9");
y0 += 0.26;
bullets(0, y0, [
  { text:"Repeat CXR — confirm re-expansion" },
  { text:"Water seal drain — watch for air leak" },
  { text:"Peak Paw should fall if PTX drained" },
  { text:"Repeat POCUS after drain insertion" },
], { h:0.76 });
y0 += 0.78;

sectionLabel(0, y0, "MONITORING TARGETS", "27AE60");
y0 += 0.26;
bullets(0, y0, [
  { text:"MAP ≥ 65 mmHg (aim 70 post-partum)", ok:true },
  { text:"SpO2 ≥ 92% / PaO2 > 60 mmHg", ok:true },
  { text:"Peak Paw < 35 cmH2O", ok:true },
  { text:"Plateau P < 30 / Driving P < 15", ok:true },
], { h:0.76 });

// ═══════════════════════════════════════════════════════════════════════════════
// COLUMN 1: VENTILATOR
// ═══════════════════════════════════════════════════════════════════════════════
let y1 = colY + 0.47;

sectionLabel(1, y1, "LUNG-PROTECTIVE SETTINGS (ARDSnet)", "2980B9");
y1 += 0.26;
bullets(1, y1, [
  { text:"Tidal volume: 4–6 ml/kg IBW (NOT actual BW)" },
  { text:"PEEP: 8–12 cmH2O (avoid >14 → worsens RV)" },
  { text:"FiO2: 1.0 initially, wean guided by SpO2/ABG" },
  { text:"Mode: Volume AC or Pressure AC" },
  { text:"RR: 18–22/min; adjust for PaCO2" },
], { h:0.9 });
y1 += 0.92;

sectionLabel(1, y1, "CAUTION IN BIVENTRICULAR FAILURE", C.warn);
y1 += 0.26;
bullets(1, y1, [
  { text:"High PEEP → ↑ RV afterload → avoid", warn:true },
  { text:"Hypercapnia → ↑ PVR → worsen RV → keep PaCO2 35–45", warn:true },
  { text:"Permissive hypercapnia only if driving P high", warn:true },
], { h:0.68 });
y1 += 0.7;

sectionLabel(1, y1, "PRONING — Consider if P/F < 150", "8E44AD");
y1 += 0.26;
bullets(1, y1, [
  { text:"Prone for ≥ 16 hrs/session (PROSEVA protocol)" },
  { text:"Improves V/Q mismatch in white-out ARDS" },
  { text:"Re-assess echo post-proning (RV preload shifts)" },
], { h:0.65 });
y1 += 0.67;

sectionLabel(1, y1, "BRONCHOSCOPY / AIRWAY", "2980B9");
y1 += 0.26;
bullets(1, y1, [
  { text:"Consider bronchoscopy if unilateral worsening" },
  { text:"Exclude mucus plugging / main bronchus intubation" },
  { text:"Lavage for cytology (squamous cells → AFE)" },
  { text:"Suction secretions, avoid prolonged disconnection" },
], { h:0.76 });
y1 += 0.78;

sectionLabel(1, y1, "ABG TARGETS", "27AE60");
y1 += 0.26;
bullets(1, y1, [
  { text:"pH 7.30–7.45", ok:true },
  { text:"PaO2 60–80 mmHg (FiO2 weaning when >80)", ok:true },
  { text:"PaCO2 35–45 (strict in RV failure)", ok:true },
], { h:0.62 });

// ═══════════════════════════════════════════════════════════════════════════════
// COLUMN 2: VASOPRESSORS
// ═══════════════════════════════════════════════════════════════════════════════
let y2 = colY + 0.47;

sectionLabel(2, y2, "CURRENT: NorAdr + Adr + Vasopressin", "27AE60");
y2 += 0.26;

drugBox(2, y2, "NORADRENALINE (1st line vasopressor)", "0.05–1.0 mcg/kg/min\nTarget MAP ≥65; caution: ↑PVR at high doses", "2980B9");
y2 += 0.5;

drugBox(2, y2, "ADRENALINE (inotrope + vasopressor)", "0.05–0.5 mcg/kg/min\nFor biventricular failure; watch tachyarrhythmia", "E74C3C");
y2 += 0.5;

drugBox(2, y2, "VASOPRESSIN (RV-sparing vasopressor)", "0.03–0.04 units/min (fixed dose)\nDoes NOT ↑PVR — preferred in RV failure", "27AE60");
y2 += 0.5;

sectionLabel(2, y2, "ADD NOW: PULMONARY VASODILATORS", C.warn);
y2 += 0.26;

drugBox(2, y2, "INHALED NITRIC OXIDE (iNO) — PRIORITY", "20–40 ppm via ventilator circuit\nSelective ↓PVR, improves RV unloading", C.warn);
y2 += 0.5;

drugBox(2, y2, "INHALED ILOPROST (if iNO unavailable)", "2.5–5 mcg nebulised q2h via circuit\nProstacyclin analogue, ↓PVR", "9B59B6");
y2 += 0.5;

drugBox(2, y2, "SILDENAFIL (oral/NG — if above unavailable)", "25 mg q6h via NG tube\nPDE5 inhibitor, ↓PVR — monitor systemic BP", "1ABC9C");
y2 += 0.5;

sectionLabel(2, y2, "AVOID", C.accent);
y2 += 0.26;
bullets(2, y2, [
  { text:"High-dose noradrenaline alone → worsens RV", urgent:true },
  { text:"Aggressive fluid boluses → dilates RV further", urgent:true },
  { text:"rFVIIa in AFE-DIC → organ thrombosis risk", urgent:true },
], { h:0.62 });

// ═══════════════════════════════════════════════════════════════════════════════
// COLUMN 3: DIC / COAGULATION
// ═══════════════════════════════════════════════════════════════════════════════
let y3 = colY + 0.47;

sectionLabel(3, y3, "URGENT LABS — SEND NOW", C.warn);
y3 += 0.26;
bullets(3, y3, [
  { text:"PT, APTT, fibrinogen, D-dimer", warn:true },
  { text:"CBC with platelet count + blood film", warn:true },
  { text:"TEG or ROTEM (bedside, results in 10 min)", warn:true },
  { text:"Group & crossmatch; activate MTP", warn:true },
  { text:"Troponin, BNP, LFTs, creatinine, lactate", warn:true },
  { text:"Blood cultures ×2 before antibiotics", warn:true },
], { h:1.0 });
y3 += 1.02;

sectionLabel(3, y3, "MASSIVE TRANSFUSION PROTOCOL (MTP)", "E74C3C");
y3 += 0.26;
bullets(3, y3, [
  { text:"pRBC : FFP : Platelets = 1:1:1 ratio", bold:true },
  { text:"Cryoprecipitate if fibrinogen < 1.5 g/L (AFE depletes fibrinogen profoundly)" },
  { text:"Platelet transfusion if count < 50 × 10⁹/L" },
  { text:"Calcium gluconate 10ml 10% per 4 units pRBC" },
], { h:0.9 });
y3 += 0.92;

sectionLabel(3, y3, "TEG/ROTEM GUIDED TARGETS", "27AE60");
y3 += 0.26;
bullets(3, y3, [
  { text:"Fibrinogen (Clauss) > 2.0 g/L", ok:true },
  { text:"Platelet count > 50 × 10⁹/L", ok:true },
  { text:"PT ratio < 1.5", ok:true },
  { text:"APTT < 45 sec", ok:true },
], { h:0.72 });
y3 += 0.74;

sectionLabel(3, y3, "SPECIFIC AGENTS", "9B59B6");
y3 += 0.26;

drugBox(3, y3, "TRANEXAMIC ACID (TXA)", "1g IV over 10 min, then 1g over 8h\nFor hemorrhage; caution if thrombosis signs", "9B59B6");
y3 += 0.5;

sectionLabel(3, y3, "⚠ DO NOT USE rFVIIa in AFE", C.accent);
y3 += 0.26;
bullets(3, y3, [
  { text:"Systematic review: ↑ organ thrombosis + death in AFE-DIC", urgent:true, bold:true },
], { h:0.32 });
y3 += 0.34;

sectionLabel(3, y3, "UTERINE HEMORRHAGE CONTROL", C.warn);
y3 += 0.26;
bullets(3, y3, [
  { text:"Oxytocin 40 units in 500ml NS @125ml/h" },
  { text:"Ergometrine 0.25mg IM (if no hypertension)" },
  { text:"Carboprost (15-methyl PGF2α) 0.25mg IM q15min" },
  { text:"Uterine balloon tamponade if bleeding continues" },
], { h:0.76 });

// ═══════════════════════════════════════════════════════════════════════════════
// COLUMN 4: ECMO / ESCALATE
// ═══════════════════════════════════════════════════════════════════════════════
let y4 = colY + 0.47;

sectionLabel(4, y4, "ECMO INDICATIONS — MET IN THIS PATIENT", "8E44AD");
y4 += 0.26;
bullets(4, y4, [
  { text:"Post-cardiac arrest (prolonged CPR)", bold:true },
  { text:"Biventricular dilation/failure on echo" },
  { text:"Refractory shock on ≥ 3 vasopressors" },
  { text:"Bilateral ARDS (bilateral white-out, P/F < 150)" },
  { text:"AFE with severe ventricular dysfunction" },
], { h:0.88 });
y4 += 0.9;

// VA-ECMO box
slide.addShape(pres.ShapeType.rect, {
  x: cols[4]+0.06, y: y4, w: colW-0.12, h: 0.62,
  fill: { color: "8E44AD"+"44" },
  line: { color: "8E44AD", pt: 2 },
});
slide.addText([
  { text: "▶ VA-ECMO PREFERRED", options: { bold:true, color:"CE9BF5", fontSize:8.5, breakLine:true } },
  { text: "Provides BOTH cardiac + respiratory support\nPeripheral cannulation: Femoral A (15-19F) + Femoral V (19-25F)\nActivate ECMO team NOW — do not delay", options: { color:C.white, fontSize:6.5 } },
], {
  x: cols[4]+0.1, y: y4+0.04, w: colW-0.18, h: 0.55,
  fontFace:"Arial", valign:"top", margin:0,
});
y4 += 0.66;

sectionLabel(4, y4, "ECHO ASSESSMENT (TEE/TTE)", "2980B9");
y4 += 0.26;
bullets(4, y4, [
  { text:"RV:LV ratio > 0.9 → severe RV dilation" },
  { text:"TAPSE < 17mm → RV dysfunction" },
  { text:"IVS D-sign → septal shift, RV pressure overload" },
  { text:"LV EF → if <35% biventricular failure confirmed" },
  { text:"Pericardial effusion → rule out tamponade" },
  { text:"IVC collapsibility → volume status guide" },
], { h:1.0 });
y4 += 1.02;

sectionLabel(4, y4, "INVESTIGATIONS CHECKLIST", C.warn);
y4 += 0.26;
bullets(4, y4, [
  { text:"CXR post-drains (lung re-expansion)", warn:true },
  { text:"Repeat ABG at 30 min" },
  { text:"CT-PA when stable (exclude PE)", warn:true },
  { text:"Repeat TEE/TTE every 4–6 hrs" },
  { text:"Serum troponin + BNP serial" },
], { h:0.84 });
y4 += 0.86;

sectionLabel(4, y4, "WHEN TO CALL FOR HELP", C.accent);
y4 += 0.26;
bullets(4, y4, [
  { text:"ECMO team if not available on-site", urgent:true },
  { text:"Maternal-fetal medicine / obstetric HDU" },
  { text:"Cardiothoracic surgery if ECMO needed" },
  { text:"Haematology for refractory DIC" },
], { h:0.72 });

// ─── FOOTER ──────────────────────────────────────────────────────────────────
slide.addShape(pres.ShapeType.rect, { x:0, y:7.3, w:13.3, h:0.2, fill:{color:"0A1520"}, line:{color:"0A1520"} });
slide.addText(
  "AFE Diagnosis Criteria: Cardiopulmonary arrest/hypotension + Respiratory compromise + DIC + Onset during/within 30 min of delivery + Afebrile  |  Evidence: Creasy & Resnik MFM · Murray & Nadel Respiratory Medicine · Fishman's Pulmonary Diseases · Miller's Anesthesia 10e",
  {
    x:0.1, y:7.3, w:11.0, h:0.2,
    fontSize:5, color:C.muted, fontFace:"Arial",
    align:"left", valign:"middle", margin:0,
  }
);
slide.addText("For ICU Use — Emergency Reference Only", {
  x:11.1, y:7.3, w:2.1, h:0.2,
  fontSize:5, color:C.accent, fontFace:"Arial",
  align:"right", valign:"middle", margin:0,
});

// ─── WRITE ────────────────────────────────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/afe-checklist/AFE_ICU_Checklist.pptx" })
  .then(() => console.log("DONE: /home/daytona/workspace/afe-checklist/AFE_ICU_Checklist.pptx"))
  .catch(e => { console.error(e); process.exit(1); });
Running Command

cd /home/daytona/workspace/afe-checklist && node generate.js 2>&1

Editing File

~/afe-checklist/generate.js

Successfully replaced 1 instance(s) of the string in '/home/daytona/workspace/afe-checklist/generate.js'
Editing File

~/afe-checklist/generate.js

Successfully replaced 1 instance(s) of the string in '/home/daytona/workspace/afe-checklist/generate.js'
Editing File

~/afe-checklist/generate.js

Successfully replaced 1 instance(s) of the string in '/home/daytona/workspace/afe-checklist/generate.js'
Editing File

~/afe-checklist/generate.js

Successfully replaced 1 instance(s) of the string in '/home/daytona/workspace/afe-checklist/generate.js'
Running Command

cd /home/daytona/workspace/afe-checklist && node generate.js 2>&1

Clean build - no errors. The checklist is ready.

Here is your one-page ICU checklist:

AFE ICU Checklist

Presentation · PPTX


What's inside (5-column layout on a single wide slide):
ColumnContent
① PneumothoraxPOCUS protocol, needle decompression, bilateral ICC criteria, post-drain checks, monitoring targets
② VentilatorARDSnet settings (TV/PEEP/FiO2), RV-safe PEEP caution, proning trigger (P/F <150), bronchoscopy, ABG targets
③ VasopressorsDrug boxes for NorAdr + Adr + Vasopressin with doses, then iNO / inhaled iloprost / sildenafil algorithms for RV afterload reduction, AVOID list
④ DIC/CoagsUrgent labs, 1:1:1 MTP protocol, TEG/ROTEM targets, TXA dosing, uterine hemorrhage drugs, explicit rFVIIa warning
⑤ ECMO/EscalateVA-ECMO indications (all met in this patient), cannulation specs, echo parameters (TAPSE/D-sign/RV:LV), investigation checklist, escalation contacts
Color coding: Red = immediate action / danger, Amber = caution/warning, Green = targets/OK, Purple = ECMO, Blue = ventilator. Designed for A3 print or full-screen ICU display.
This is a shared conversation. Sign in to Orris to start your own chat.