Prepare appt on bibrachial mnd ....how it occur at proxial and distal....dd for the disease with its clinical features nd investigations.....refer from archit baloor medicine book

Reading File
Finding Sources
Finding Sources
Finding Sources
Archit Baloor's book is not in the library. I'll use the best available neurology references (Adams & Victor, Bradley & Daroff, Localization in Clinical Neurology) which are the gold-standard texts these Indian medical books draw from. Let me search all relevant content now in parallel.
Finding Sources
Finding Sources
Finding Sources
Excellent results. Now let me read the key sections in parallel - Adams & Victor on bibrachial/flail arm, Goldman-Cecil on ALS clinical manifestations and DD, and Bradley & Daroff on ALS.
Reading File
Reading File
Reading File
I have excellent content. Let me now read more specific sections on DD table and investigations in parallel.
Reading File
Reading File
I now have enough rich content. Let me read the PPTX skill and compile the presentation.
Reading File
Reading File
Running Command

mkdir -p /home/daytona/workspace/bibrachial-mnd && ls /home/daytona/workspace/bibrachial-mnd

Writing File

~/bibrachial-mnd/build_pptx.js

const pptxgen = require("pptxgenjs");
const pres = new pptxgen();
pres.layout = "LAYOUT_WIDE";
pres.title = "Bibrachial MND (Flail Arm Syndrome)";

// ─── COLOUR PALETTE ──────────────────────────────────────────────────────────
const DARK    = "0D1B2A";  // deep navy – title/section slides
const MID     = "1B3A5C";  // mid navy – headers
const ACCENT  = "E8943A";  // amber – headings, bullets
const LIGHT   = "F4F7FA";  // off-white – body bg
const WHITE   = "FFFFFF";
const TEXT    = "1A1A2E";  // near-black body text
const SUB     = "5A7B9C";  // subtle secondary text

// ─── HELPER: section title card ──────────────────────────────────────────────
function sectionSlide(title, subtitle) {
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:"100%", fill: { color: DARK } });
  s.addShape(pres.ShapeType.rect, { x:0, y:4.5, w:"100%", h:0.06, fill: { color: ACCENT } });
  s.addText(title, { x:0.8, y:1.8, w:11.7, h:1.2, fontSize:38, bold:true, color:WHITE, fontFace:"Calibri" });
  if (subtitle) s.addText(subtitle, { x:0.8, y:3.2, w:11.7, h:0.8, fontSize:18, color:SUB, fontFace:"Calibri", italic:true });
  return s;
}

// ─── HELPER: content slide ───────────────────────────────────────────────────
function contentSlide(heading, col1Items, col2Items, col2Heading) {
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:0.72, fill: { color: MID } });
  s.addText(heading, { x:0.35, y:0, w:12.6, h:0.72, fontSize:20, bold:true, color:WHITE, fontFace:"Calibri", valign:"middle", margin:0 });
  s.addShape(pres.ShapeType.rect, { x:0, y:0.72, w:"100%", h:"100%", fill: { color: LIGHT } });

  // Left column
  const leftBullets = col1Items.map((item,i) => {
    const isHead = item.startsWith("##");
    const txt = isHead ? item.replace("##","").trim() : item;
    return { text: txt, options: { bullet: !isHead, bold: isHead, color: isHead ? ACCENT : TEXT, fontSize: isHead ? 14 : 13, breakLine: true, fontFace:"Calibri" } };
  });
  s.addText(leftBullets, { x:0.35, y:0.9, w: col2Items ? 5.9 : 12.3, h:4.3, fontFace:"Calibri", color:TEXT, fontSize:13 });

  if (col2Items) {
    // Divider
    s.addShape(pres.ShapeType.rect, { x:6.5, y:0.85, w:0.04, h:4.4, fill:{ color: SUB } });
    // Right column heading
    if (col2Heading) s.addText(col2Heading, { x:6.7, y:0.88, w:6.0, h:0.4, fontSize:14, bold:true, color:ACCENT, fontFace:"Calibri", margin:0 });
    const rightBullets = col2Items.map(item => {
      const isHead = item.startsWith("##");
      const txt = isHead ? item.replace("##","").trim() : item;
      return { text: txt, options: { bullet: !isHead, bold: isHead, color: isHead ? ACCENT : TEXT, fontSize: isHead ? 14 : 13, breakLine: true, fontFace:"Calibri" } };
    });
    s.addText(rightBullets, { x:6.7, y: col2Heading ? 1.35 : 0.9, w:5.9, h: col2Heading ? 3.8 : 4.3, fontFace:"Calibri", color:TEXT, fontSize:13 });
  }
  return s;
}

// ─── SLIDE 1: TITLE ──────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:"100%", fill:{ color: DARK } });
  s.addShape(pres.ShapeType.rect, { x:0, y:3.8, w:"100%", h:0.08, fill:{ color: ACCENT } });
  s.addText("BIBRACHIAL MND", { x:0.8, y:0.7, w:11.7, h:1.4, fontSize:50, bold:true, color:WHITE, fontFace:"Calibri", charSpacing:4 });
  s.addText("Flail Arm Syndrome (Brachial Amyotrophic Diplegia)", { x:0.8, y:2.1, w:11.7, h:0.9, fontSize:22, color:ACCENT, fontFace:"Calibri", italic:true });
  s.addText("Motor Neuron Disease — Pathophysiology • Clinical Features • Differential Diagnosis • Investigations", {
    x:0.8, y:3.1, w:11.7, h:0.6, fontSize:14, color:SUB, fontFace:"Calibri"
  });
  s.addText("Reference: Adams & Victor's Principles of Neurology 12e | Goldman-Cecil Medicine | Bradley & Daroff's Neurology", {
    x:0.8, y:4.8, w:11.7, h:0.4, fontSize:11, color:SUB, fontFace:"Calibri", italic:true
  });
}

// ─── SLIDE 2: DEFINITION & OVERVIEW ─────────────────────────────────────────
contentSlide(
  "Definition & Overview",
  [
    "Bibrachial MND (Flail Arm Syndrome / Brachial Amyotrophic Diplegia) is a regional variant of ALS",
    "Selective degeneration of LOWER MOTOR NEURONS supplying both upper extremities",
    "Also called 'Hanging Man Syndrome' or 'Man-in-a-Barrel Syndrome'",
    "Accounts for ~10% of all ALS cases",
    "Predominantly affects men (male:female ratio ~5–9:1)",
    "Mean age at onset: 55–65 years",
    "Longer median survival vs typical ALS (median >4 years)",
    "##Key distinction",
    "Proximal shoulder-girdle muscles affected early → distal spread",
    "Legs and bulbar muscles relatively SPARED until late",
    "UMN signs in arms may be mild or absent initially; LMN signs dominate",
  ],
  [
    "##ALS Variant Spectrum",
    "Classical ALS — UMN + LMN, limbs + bulbar",
    "Progressive Muscular Atrophy (PMA) — LMN only",
    "Progressive Bulbar Palsy (PBP) — bulbar only",
    "Primary Lateral Sclerosis (PLS) — UMN only",
    "Flail Arm Syndrome (FAS) — proximal UE predominant",
    "Flail Leg Syndrome (FLS) — LE predominant",
    "##Eponym",
    "Originally described as 'Brachial Amyotrophic Diplegia' by Vulpian (1886)",
    "Re-described as 'Man-in-a-Barrel Syndrome' — bilateral arm weakness with intact legs",
  ],
  "Variant Spectrum"
);

// ─── SLIDE 3: PATHOPHYSIOLOGY OVERVIEW ───────────────────────────────────────
sectionSlide("PATHOPHYSIOLOGY", "How does Bibrachial MND occur? — Proximal & Distal mechanisms");

// ─── SLIDE 4: PATHOPHYSIOLOGY — PROXIMAL ─────────────────────────────────────
contentSlide(
  "Pathophysiology — Proximal Pattern (Shoulder-Girdle Onset)",
  [
    "##Site of primary LMN degeneration",
    "Anterior horn cells at C5–C6 spinal segments (shoulder/arm)",
    "Motor cortex neurons projecting via corticospinal tract",
    "##Mechanism",
    "TDP-43 / FUS protein aggregation in motor neurons → toxic gain-of-function",
    "Glutamate excitotoxicity → calcium influx → mitochondrial dysfunction",
    "SOD1 mutations (20% familial) → oxidative stress → cell death",
    "C9ORF72 GGGGCC repeat expansion → most common genetic cause",
    "##Why shoulder-girdle first?",
    "Proximal C5–C6 neurons may be selectively vulnerable due to:",
    "Higher metabolic demand (large motor units innervating deltoid, biceps)",
    "Neurofilament accumulation → impaired axonal transport in long neurons",
    "Local astrocyte dysfunction: SOD1-mutant astrocytes toxic to motor neurons",
  ],
  [
    "##Gross pathology",
    "Atrophy of precentral gyrus (motor cortex)",
    "Sclerosis and pallor of corticospinal tracts",
    "Thinning of ventral nerve roots C5–C6",
    "Atrophy of deltoid, infraspinatus, biceps, supraspinatus",
    "##Microscopy",
    "50% loss of spinal motor neurons at cervical levels",
    "Diffuse astrocytic gliosis in spinal gray matter",
    "TDP-43 immunoreactive inclusions in surviving neurons",
    "Ubiquitin-positive cytoplasmic inclusions",
    "##Spared structures",
    "Onuf nucleus (sacral — pelvic floor) → bladder control intact",
    "CN III, IV, VI nuclei → eye movements intact",
    "Sensory neurons (posterior horn) → no sensory loss",
  ],
  "Pathology"
);

// ─── SLIDE 5: PATHOPHYSIOLOGY — DISTAL SPREAD ────────────────────────────────
contentSlide(
  "Pathophysiology — Distal Spread & Rostro-Caudal Pattern",
  [
    "##Distal arm involvement (C7–T1 segment)",
    "After shoulder-girdle atrophy: spread to forearm flexors/extensors, intrinsics",
    "Wrist drop, finger weakness, thenar/hypothenar wasting follow",
    "Fasciculations appear distally as motor units become unstable",
    "##Why 'flail arm'?",
    "Combined proximal (C5-C6) + distal (C7-T1) LMN loss",
    "Arms hang limp, adducted, internally rotated — 'dangling arms'",
    "Patient cannot lift, abduct, or flex elbow against gravity",
    "##Temporal sequence",
    "1. Proximal weakness (shoulder abduction, elbow flexion) → months",
    "2. Distal weakness (wrist/fingers) → months to 1–2 years later",
    "3. Contralateral arm involved (hence 'bilateral')",
    "4. Legs involved much later (>18–24 months after onset)",
    "5. Bulbar involvement last (dysphagia, dysarthria)",
  ],
  [
    "##UMN component in distal pattern",
    "Corticospinal neurons to cervical cord degenerate in parallel",
    "Initially: LMN signs dominate (atrophy + hyporeflexia)",
    "Later: UMN signs may emerge (brisk knee jerks, Babinski)",
    "Reflex dissociation: absent biceps jerk (C5/C6 LMN) but preserved knee jerk",
    "##Molecular basis of spread",
    "Prion-like propagation of misfolded TDP-43 / SOD1 aggregates",
    "Anterograde/retrograde axonal spread via neuromuscular synapses",
    "Corticomotoneuronal hyperexcitability drives LMN degeneration",
    "##Why legs spared longer?",
    "Lumbar anterior horn cells less vulnerable initially",
    "Possible 'dying-back' upper motor neuron pattern from cervical to lumbar",
    "FAS shows preferential cervical neuronal vulnerability vs. typical ALS",
  ],
  "UMN Component & Spread"
);

// ─── SLIDE 6: CLINICAL FEATURES ──────────────────────────────────────────────
sectionSlide("CLINICAL FEATURES", "Signs, Symptoms & Disease Course");

// ─── SLIDE 7: CLINICAL FEATURES — SYMPTOMS ───────────────────────────────────
contentSlide(
  "Clinical Features — Presenting Symptoms",
  [
    "##Cardinal Presenting Complaint",
    "Bilateral proximal arm weakness — cannot raise arms above head",
    "Initially UNILATERAL, then spreads to contralateral arm (weeks–months)",
    "Difficulty combing hair, reaching shelves, lifting objects",
    "Shoulder-girdle wasting noticed in mirror",
    "##Early phase (months 1–12)",
    "Arm hangs limply at side — adducted, internally rotated",
    "Progressive weight loss in arm musculature",
    "Coarse fasciculations visible in deltoid, biceps, triceps, forearm",
    "Cramps common especially at night",
    "NO sensory symptoms (paraesthesia, numbness) — key negative",
    "NO sphincter disturbance",
  ],
  [
    "##Late phase",
    "Bilateral flail arms — completely dependent arms",
    "Distal weakness: wrist drop, grip weakness, claw hand",
    "Respiratory embarrassment: paradoxical breathing if diaphragm involved",
    "Mild dysarthria / dysphagia may appear late",
    "##Negative features (help confirm diagnosis)",
    "No bladder/bowel dysfunction",
    "No sensory loss",
    "No eye movement disorder (CN III/IV/VI spared)",
    "Cognitive function usually intact (rare FTD-ALS overlap)",
    "No pain in early stages",
    "##Progression",
    "Median survival: 4–5 years (better than classic ALS 2–3 years)",
    "Death usually from respiratory failure or aspiration pneumonia",
  ],
  "Late & Negative Features"
);

// ─── SLIDE 8: CLINICAL FEATURES — SIGNS ──────────────────────────────────────
contentSlide(
  "Clinical Features — Neurological Signs",
  [
    "##LMN signs (dominant, bilateral arms)",
    "Wasting and atrophy — deltoid, biceps, brachioradialis, intrinsics",
    "Fasciculations — coarse, visible; deltoid, biceps, forearm",
    "Hypotonia of upper limbs",
    "Absent / diminished biceps (C5/C6) and brachioradialis (C5/C6) reflexes",
    "Absent triceps jerk (C7) as disease progresses distally",
    "##Reflex dissociation (pathognomonic clue)",
    "Absent biceps + brachioradialis jerk (LMN arm)",
    "PRESERVED / brisk knee jerk (UMN leg)",
    "Absent jaw jerk or brisk jaw jerk depending on bulbar involvement",
    "Extensor plantar response (Babinski) may appear with leg UMN involvement",
  ],
  [
    "##UMN signs",
    "Spasticity in legs (if involved late)",
    "Brisk knee and ankle jerks",
    "Bilateral Babinski signs",
    "Hoffman's sign may be present or absent in arms",
    "##Bulbar signs (late)",
    "Tongue fasciculations and wasting",
    "Dysarthria (spastic + flaccid — 'hot potato' voice)",
    "Dysphagia (solids first, then liquids)",
    "Drooling / excessive salivation",
    "Emotional lability (pseudobulbar affect)",
    "##Respiratory signs",
    "Paradoxical diaphragmatic movement",
    "Orthopnoea / exertional dyspnoea",
    "Use of accessory muscles of respiration",
  ],
  "UMN / Bulbar / Respiratory"
);

// ─── SLIDE 9: DIFFERENTIAL DIAGNOSIS ─────────────────────────────────────────
sectionSlide("DIFFERENTIAL DIAGNOSIS", "Conditions that mimic Bibrachial MND");

// ─── SLIDE 10: DD TABLE ───────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:0.72, fill:{ color: MID } });
  s.addText("Differential Diagnosis of Bibrachial MND / Flail Arm Syndrome", { x:0.35, y:0, w:12.6, h:0.72, fontSize:18, bold:true, color:WHITE, fontFace:"Calibri", valign:"middle", margin:0 });
  s.addShape(pres.ShapeType.rect, { x:0, y:0.72, w:"100%", h:"100%", fill:{ color: LIGHT } });

  const rows = [
    [{ text:"CONDITION", options:{bold:true,color:WHITE,fill:{color:MID},fontSize:11} }, { text:"KEY DIFFERENTIATING FEATURES", options:{bold:true,color:WHITE,fill:{color:MID},fontSize:11} }, { text:"CLUE TO EXCLUDE", options:{bold:true,color:WHITE,fill:{color:MID},fontSize:11} }],
    [{ text:"Kennedy Disease (SBMA)", options:{bold:true,color:TEXT,fontSize:11} }, { text:"X-linked; gynecomastia; perioral fasciculations; sensory features; androgen receptor CAG repeat expansion", options:{color:TEXT,fontSize:11} }, { text:"AR gene testing; slow progression; sensory NCS abnormal", options:{color:TEXT,fontSize:11} }],
    [{ text:"Cervical Myelopathy + Radiculopathy", options:{bold:true,color:TEXT,fontSize:11} }, { text:"Pain; sensory symptoms; UMN signs caudal to LMN; bladder symptoms; precipitated by neck movement", options:{color:TEXT,fontSize:11} }, { text:"MRI cervical spine; nerve conduction studies", options:{color:TEXT,fontSize:11} }],
    [{ text:"Brachial Neuritis (Parsonage-Turner)", options:{bold:true,color:TEXT,fontSize:11} }, { text:"Acute onset severe shoulder pain followed by weakness; patchy unilateral; usually monophasic", options:{color:TEXT,fontSize:11} }, { text:"Spontaneous partial recovery; EMG/NCS; MRI brachial plexus", options:{color:TEXT,fontSize:11} }],
    [{ text:"Multifocal Motor Neuropathy (MMN)", options:{bold:true,color:TEXT,fontSize:11} }, { text:"Pure LMN; asymmetric; conduction block on NCS; anti-GM1 antibodies raised; responds to IVIG", options:{color:TEXT,fontSize:11} }, { text:"NCS: conduction block; anti-GM1 Ab; IVIG response", options:{color:TEXT,fontSize:11} }],
    [{ text:"Inclusion Body Myositis (IBM)", options:{bold:true,color:TEXT,fontSize:11} }, { text:"Finger flexor + quadriceps weakness pattern; CK moderately raised; muscle biopsy diagnostic", options:{color:TEXT,fontSize:11} }, { text:"EMG: myopathic; biopsy: rimmed vacuoles, IBM deposits", options:{color:TEXT,fontSize:11} }],
    [{ text:"Hirayama Disease (Monomelic Amyotrophy)", options:{bold:true,color:TEXT,fontSize:11} }, { text:"Young males; unilateral or asymmetric distal upper limb; self-limiting; cervical flexion MRI shows dural shift", options:{color:TEXT,fontSize:11} }, { text:"Flexion MRI cervical; arrested progression", options:{color:TEXT,fontSize:11} }],
    [{ text:"Progressive Muscular Atrophy (PMA)", options:{bold:true,color:TEXT,fontSize:11} }, { text:"Pure LMN variant of ALS; symmetric; generalized; no regional predilection; no UMN signs", options:{color:TEXT,fontSize:11} }, { text:"Generalized vs. arm-predominant distribution; EMG", options:{color:TEXT,fontSize:11} }],
    [{ text:"Syringomyelia", options:{bold:true,color:TEXT,fontSize:11} }, { text:"Cape-like dissociated sensory loss; pain; scoliosis; Chiari association; MRI diagnostic", options:{color:TEXT,fontSize:11} }, { text:"MRI spine: syrinx cavity; sensory dissociation present", options:{color:TEXT,fontSize:11} }],
    [{ text:"Radiation Myelopathy", options:{bold:true,color:TEXT,fontSize:11} }, { text:"History of prior neck/thorax radiotherapy (e.g., Hodgkin lymphoma); onset years after treatment", options:{color:TEXT,fontSize:11} }, { text:"Radiation history; MRI cord changes in radiation field", options:{color:TEXT,fontSize:11} }],
  ];

  s.addTable(rows, {
    x: 0.3, y: 0.85, w: 12.7, h: 4.5,
    colW: [2.3, 5.7, 4.7],
    border: { pt:0.5, color:"BEC8D4" },
    align: "left",
    fontFace: "Calibri",
  });
}

// ─── SLIDE 11: MORE DD ────────────────────────────────────────────────────────
contentSlide(
  "Differential Diagnosis — Additional Conditions",
  [
    "##Neuromuscular Junction disorders",
    "Myasthenia Gravis — fatigable weakness; ptosis; diplopia; positive Tensilon test; AChR antibodies",
    "Lambert-Eaton Syndrome — proximal LL > UL; autonomic features; anti-VGCC Ab; incremental NCS",
    "##Hereditary Motor Neuropathies (CMT)",
    "Family history; distal wasting; foot deformity; slow progressive; abnormal NCS",
    "##Spinal Muscular Atrophy (Adult SMA type 3/4)",
    "Symmetric proximal weakness; SMN1 gene deletion; purely LMN; slow progression",
    "##Post-Polio Syndrome",
    "History of acute poliomyelitis decades earlier; fatigue + new weakness; no active denervation on EMG",
    "##Lead / Heavy Metal Neuropathy",
    "Exposure history; wrist drop; pure motor; blood lead level elevated; basophilic stippling on smear",
  ],
  [
    "##Paraneoplastic Motor Neuron Syndrome",
    "Underlying malignancy (lymphoma, lung, breast); anti-amphiphysin / anti-Hu antibodies",
    "##Bilateral Brachial Plexopathy",
    "Trauma / infiltration / radiation; imaging shows plexus lesion; sensory abnormalities usually present",
    "##Cervical Cord Infarction (Bibrachial Pattern)",
    "Acute onset; bilateral arm weakness + sensory level; anterior spinal artery territory",
    "MRI spine: diffuse cord T2 signal; 'owl-eye' or 'snake-eye' sign",
    "##Sjogren Syndrome Motor Neuropathy",
    "Non-motor features (dry eyes, dry mouth, parotid enlargement); anti-Ro/La antibodies",
    "##Thyrotoxicosis with Myopathy",
    "Systemic features of hyperthyroidism; proximal weakness; TFTs abnormal; CK mild rise",
  ],
  "NMJ & Hereditary"
);

// ─── SLIDE 12: INVESTIGATIONS ────────────────────────────────────────────────
sectionSlide("INVESTIGATIONS", "Diagnosis & Work-up of Flail Arm Syndrome");

// ─── SLIDE 13: INVESTIGATIONS ────────────────────────────────────────────────
contentSlide(
  "Investigations — Electrophysiology & Blood Tests",
  [
    "##EMG (most important test)",
    "Active denervation: fibrillations + positive sharp waves in multiple cervical myotomes",
    "Fasciculation potentials in affected muscles (deltoid, biceps, first dorsal interosseous)",
    "Large-amplitude, long-duration, polyphasic motor unit potentials (chronic denervation)",
    "Reduced recruitment pattern bilaterally in upper limb muscles",
    "EMG must show changes in ≥2 of 4 body regions (Awaji-Shima / El Escorial criteria)",
    "##Nerve Conduction Studies (NCS)",
    "Motor NCS: normal conduction velocity (axonal loss only, no demyelination)",
    "CMAP amplitude reduced in median, ulnar, radial nerves (axonal loss)",
    "Sensory NCS: NORMAL — distinguishes from sensory neuropathies",
    "NO conduction block — distinguishes from Multifocal Motor Neuropathy (MMN)",
  ],
  [
    "##Blood Tests",
    "FBC, ESR, CRP — usually normal; rule out inflammatory/infective causes",
    "Serum CK — mildly elevated (2–4× normal) due to denervation atrophy",
    "TFTs — exclude thyrotoxic myopathy",
    "Serum electrolytes — hypokalaemia (periodic paralysis)",
    "Vitamin B12, folate — exclude deficiency neuropathy",
    "Anti-GM1 antibodies — if raised, suggests MMN (treatable!)",
    "Anti-Hu, Anti-amphiphysin — paraneoplastic screen",
    "Androgen receptor (AR) CAG repeat — if Kennedy disease suspected",
    "Heavy metal screen (lead, mercury) — if exposure history",
    "HIV serology — HIV-associated brachial amyotrophic diplegia described",
    "SMN1 gene analysis — rule out adult SMA",
  ],
  "Blood Tests"
);

// ─── SLIDE 14: IMAGING & CRITERIA ────────────────────────────────────────────
contentSlide(
  "Investigations — Neuroimaging & Diagnostic Criteria",
  [
    "##MRI Brain",
    "Bilateral T2 hypointensity along corticospinal tracts (iron deposition)",
    "Atrophy of precentral gyrus bilaterally in established disease",
    "T1 cortical thinning in motor strip",
    "Important to EXCLUDE mimics: brainstem tumours, cortical lesions",
    "##MRI Cervical Spine",
    "Essential to exclude structural causes (disc herniation, osteophytes, tumour)",
    "May show mild cord atrophy at C5–C6 in FAS",
    "Cervical flexion MRI: anterior dural shift in Hirayama — differentiates",
    "##MRI Brachial Plexus",
    "When unilateral, asymmetric, or pain is present — exclude plexopathy",
    "T2 STIR: increased signal in affected roots in CIDP or Parsonage-Turner",
  ],
  [
    "##Diagnostic Criteria (El Escorial / Awaji-Shima)",
    "Definite ALS: UMN + LMN signs in 3 regions",
    "Probable ALS: UMN + LMN in 2 regions; UMN signs rostral to LMN",
    "Possible ALS: UMN + LMN in 1 region",
    "FAS often enters as 'possible' or 'probable' ALS early on",
    "##Pulmonary Function Tests",
    "Forced Vital Capacity (FVC) <50% predicted — trigger for NIV",
    "Sniff Nasal Inspiratory Pressure (SNIP) — diaphragm assessment",
    "Nocturnal oximetry — detect nocturnal hypoventilation",
    "##CSF Analysis",
    "Usually NORMAL — helps exclude inflammatory/infective causes",
    "May show mildly elevated protein (non-specific)",
    "##Muscle Biopsy",
    "If IBM or inflammatory myopathy suspected — shows denervation features in MND",
    "Grouped atrophy, type I and II fibre grouping, angular fibres",
  ],
  "Criteria & PFTs"
);

// ─── SLIDE 15: MANAGEMENT OVERVIEW ───────────────────────────────────────────
contentSlide(
  "Management Overview",
  [
    "##Disease-Modifying",
    "Riluzole 50 mg BD — anti-glutamatergic; modest survival benefit (+3–6 months)",
    "Edaravone (IV) — anti-oxidant; slows functional decline in selected patients",
    "##Respiratory Support",
    "Non-invasive ventilation (NIV/BiPAP) when FVC <50%",
    "Tracheostomy ventilation in selected patients for prolonged survival",
    "Cough assist devices / manually assisted cough",
    "##Nutritional Support",
    "PEG insertion early (when FVC >50%) — prophylactic feeding",
    "High-calorie diet — weight maintenance improves prognosis",
    "##Communication",
    "AAC devices — speech generating devices as dysarthria worsens",
    "Eye-tracking technology for late-stage communication",
  ],
  [
    "##Physiotherapy & OT",
    "Upper limb orthoses — arm slings, balanced forearm orthosis",
    "Shoulder subluxation prevention strapping",
    "Passive ROM exercises to prevent contractures",
    "Wrist/finger splints for functional positioning",
    "##Symptom Management",
    "Sialorrhoea: Glycopyrronium, hyoscine, amitriptyline, Botulinum toxin",
    "Muscle cramps: Quinine, magnesium, mexiletine",
    "Spasticity: Baclofen, tizanidine, botulinum toxin",
    "Pain: Regular paracetamol, NSAIDs, opioids in late stage",
    "Emotional lability: Dextromethorphan/quinidine (Nuedexta), SSRIs",
    "##Prognosis",
    "Median survival FAS: 4–5 years (vs 2–3 years classic ALS)",
    "Better prognosis: younger age, limb onset, longer diagnostic delay",
    "Death from respiratory failure / aspiration pneumonia",
  ],
  "Physiotherapy & Prognosis"
);

// ─── SLIDE 16: SUMMARY ───────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:"100%", fill:{ color: DARK } });
  s.addShape(pres.ShapeType.rect, { x:0, y:0.65, w:"100%", h:0.06, fill:{ color: ACCENT } });
  s.addText("Key Takeaways", { x:0.8, y:0, w:11.7, h:0.65, fontSize:28, bold:true, color:WHITE, fontFace:"Calibri", valign:"middle", margin:0 });

  const bullets = [
    { text:"Bibrachial MND = Flail Arm Syndrome = Brachial Amyotrophic Diplegia — a regional ALS variant", options:{ bullet:true, color:WHITE, fontSize:14, fontFace:"Calibri", breakLine:true } },
    { text:"LMN degeneration at C5–T1 anterior horn cells → proximal (C5–C6) followed by distal (C7–T1) arm weakness", options:{ bullet:true, color:WHITE, fontSize:14, fontFace:"Calibri", breakLine:true } },
    { text:"Prion-like TDP-43 / SOD1 spread, excitotoxicity, and oxidative stress underlie pathogenesis", options:{ bullet:true, color:WHITE, fontSize:14, fontFace:"Calibri", breakLine:true } },
    { text:"Bilateral flail arms, fasciculations, wasting — NO sensory loss, NO bladder symptoms", options:{ bullet:true, color:ACCENT, fontSize:14, fontFace:"Calibri", breakLine:true, bold:true } },
    { text:"Reflex dissociation: absent biceps jerk (LMN) + brisk knee jerk (UMN) is a diagnostic clue", options:{ bullet:true, color:WHITE, fontSize:14, fontFace:"Calibri", breakLine:true } },
    { text:"DD: Kennedy disease, MMN, IBM, Hirayama, brachial plexopathy, cervical myelopathy", options:{ bullet:true, color:WHITE, fontSize:14, fontFace:"Calibri", breakLine:true } },
    { text:"Investigations: EMG (active denervation, no conduction block), normal sensory NCS, MRI brain + cervical spine", options:{ bullet:true, color:WHITE, fontSize:14, fontFace:"Calibri", breakLine:true } },
    { text:"Median survival 4–5 years; better than classic ALS; death from respiratory failure", options:{ bullet:true, color:ACCENT, fontSize:14, fontFace:"Calibri", breakLine:true, bold:true } },
  ];
  s.addText(bullets, { x:0.8, y:0.85, w:11.7, h:4.5, fontFace:"Calibri" });
}

// ─── WRITE ────────────────────────────────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/bibrachial-mnd/Bibrachial_MND_Flail_Arm_Syndrome.pptx" })
  .then(() => console.log("PPTX written successfully"))
  .catch(e => { console.error(e); process.exit(1); });
Running Command

cd /home/daytona/workspace/bibrachial-mnd && node build_pptx.js 2>&1

Running Command

ls -lh /home/daytona/workspace/bibrachial-mnd/Bibrachial_MND_Flail_Arm_Syndrome.pptx

Your presentation is ready. Download it here:

Bibrachial MND Flail Arm Syndrome

Presentation · PPTX


What's inside — 16 slides, fully designed

Note: Archit Baloor's book was not found in the library catalogue, so this presentation is referenced from the three best available neurology texts: Adams & Victor's Principles of Neurology 12e, Goldman-Cecil Medicine, and Bradley & Daroff's Neurology in Clinical Practice — the standard sources all Indian medicine books (including Baloor) draw their MND content from.

Slide-by-slide breakdown

#SlideContent
1TitleBibrachial MND / Flail Arm Syndrome / Brachial Amyotrophic Diplegia
2Definition & OverviewEpidemiology, variant spectrum, eponym, 10% of ALS
3Pathophysiology — Section Card--
4Proximal PathophysiologyC5–C6 AHC degeneration; TDP-43/FUS/SOD1/C9ORF72; why shoulder-girdle first; gross + microscopic pathology
5Distal SpreadC7–T1 involvement; why "flail arm"; temporal sequence; prion-like spread; why legs spared
6Clinical Features — Section Card--
7SymptomsProximal arm weakness → distal; no sensory symptoms; disease course; negative features
8SignsLMN signs; reflex dissociation (absent biceps + brisk knee jerk); UMN signs; bulbar; respiratory
9DD — Section Card--
10DD Table9-condition table: Kennedy disease, cervical myelopathy, Parsonage-Turner, MMN, IBM, Hirayama, PMA, syringomyelia, radiation myelopathy — with clinical clues
11More DDMyasthenia, Lambert-Eaton, hereditary motor neuropathies, post-polio, lead poisoning, paraneoplastic, cervical cord infarction
12Investigations — Section Card--
13EMG, NCS, Blood TestsActive denervation EMG; normal sensory NCS; no conduction block; anti-GM1, CK, AR gene testing
14Imaging & CriteriaMRI brain/spine/brachial plexus; El Escorial criteria; PFTs; CSF; muscle biopsy
15Management OverviewRiluzole, edaravone, NIV, PEG, AAC, OT, symptom management, prognosis
16Key Takeaways8 dark-slide summary bullets

Quick clinical recall

  • Bibrachial MND = bilateral flail arms + LMN signs + NO sensory loss + NO bladder symptoms
  • Proximal first (C5–C6: deltoid, biceps atrophy) → distal later (C7–T1: wrist drop, intrinsic wasting)
  • Reflex dissociation = absent biceps + brachioradialis jerk (LMN) with preserved/brisk knee jerk (UMN) is the diagnostic hallmark
  • Must-exclude DD: MMN (treatable - check anti-GM1 + conduction block), Kennedy disease (AR gene), Hirayama (flexion MRI), cervical myelopathy (MRI spine)
  • Key investigation: EMG showing active denervation in C5–T1 myotomes bilaterally with NORMAL sensory NCS and NO conduction block

Prepare a ppt on topic treatment of myasthenia gravis....and about sah creatias used and about management nd triple h therapy

Reading File
The user wants a PPT covering:
  1. Treatment of Myasthenia Gravis
  2. SAH (Subarachnoid Hemorrhage) - criteria used (likely Hunt & Hess, WFNS, Fisher grade)
  3. Management of SAH
  4. Triple H therapy (for SAH vasospasm)
Let me search all these topics in parallel.
Finding Sources
Finding Sources
Finding Sources
Excellent finds. Now read the key sections in parallel.
Reading File
Reading File
Reading File
Excellent. Now get more MG treatment detail and SAH grading criteria.
Reading File
Finding Sources
Reading File
Reading File
I have comprehensive content. Let me get the Fisher grade table and MG crisis details, then build the PPTX.
Finding Sources
Finding Sources
Reading File
Reading File
I now have all the content needed. Let me build the comprehensive PPTX.
Writing File

~/bibrachial-mnd/mg_sah_pptx.js

const pptxgen = require("pptxgenjs");
const pres = new pptxgen();
pres.layout = "LAYOUT_WIDE";
pres.title = "MG Treatment & SAH Management";

// ─── PALETTE ─────────────────────────────────────────────────────────────────
const DARK   = "0A1628";   // deep indigo-navy
const MID    = "163052";   // mid navy
const ACCENT = "E05A2B";   // burnt orange
const ACCENT2= "27AE8F";   // teal – second accent
const LIGHT  = "F2F5F9";   // near-white bg
const WHITE  = "FFFFFF";
const TEXT   = "1C1C2E";
const SUB    = "607D9B";

// ─── HELPERS ─────────────────────────────────────────────────────────────────
function titleSlide(title, subtitle, accentColor) {
  const ac = accentColor || ACCENT;
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:"100%", fill:{ color: DARK } });
  s.addShape(pres.ShapeType.rect, { x:0, y:4.2, w:"100%", h:0.08, fill:{ color: ac } });
  s.addText(title, { x:0.8, y:0.7, w:11.7, h:2.0, fontSize:44, bold:true, color:WHITE, fontFace:"Calibri" });
  if (subtitle) s.addText(subtitle, { x:0.8, y:2.8, w:11.7, h:0.9, fontSize:19, color:ac, fontFace:"Calibri", italic:true });
  return s;
}

function sectionCard(title, subtitle, accentColor) {
  const ac = accentColor || ACCENT;
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:"100%", fill:{ color: MID } });
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:0.18, h:"100%", fill:{ color: ac } });
  s.addText(title, { x:0.5, y:1.5, w:12.3, h:1.5, fontSize:36, bold:true, color:WHITE, fontFace:"Calibri" });
  if (subtitle) s.addText(subtitle, { x:0.5, y:3.1, w:12.3, h:0.8, fontSize:17, color:WHITE, fontFace:"Calibri", italic:true, alpha:80 });
  return s;
}

function contentSlide(heading, leftItems, rightItems, rightHeading, accentColor) {
  const ac = accentColor || ACCENT;
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:0.7, fill:{ color: MID } });
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:0.12, h:0.7, fill:{ color: ac } });
  s.addText(heading, { x:0.28, y:0, w:13.0, h:0.7, fontSize:19, bold:true, color:WHITE, fontFace:"Calibri", valign:"middle", margin:0 });
  s.addShape(pres.ShapeType.rect, { x:0, y:0.7, w:"100%", h:"100%", fill:{ color: LIGHT } });

  function makeBullets(items) {
    return items.map(item => {
      const isHead = item.startsWith("##");
      const txt = isHead ? item.replace("##","").trim() : item;
      return { text: txt, options: { bullet: !isHead, bold: isHead, color: isHead ? ac : TEXT, fontSize: isHead ? 13 : 12.5, breakLine: true, fontFace:"Calibri", paraSpaceBefore: isHead ? 4 : 0 } };
    });
  }

  const lw = rightItems ? 5.9 : 12.4;
  s.addText(makeBullets(leftItems), { x:0.3, y:0.85, w:lw, h:4.3, fontFace:"Calibri" });

  if (rightItems) {
    s.addShape(pres.ShapeType.rect, { x:6.45, y:0.82, w:0.05, h:4.35, fill:{ color: SUB } });
    if (rightHeading) s.addText(rightHeading, { x:6.65, y:0.85, w:6.0, h:0.38, fontSize:13, bold:true, color:ac, fontFace:"Calibri", margin:0 });
    const yo = rightHeading ? 1.28 : 0.85;
    const hh = rightHeading ? 3.87 : 4.3;
    s.addText(makeBullets(rightItems), { x:6.65, y:yo, w:6.0, h:hh, fontFace:"Calibri" });
  }
  return s;
}

// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 1: MASTER TITLE
// ═══════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:"100%", fill:{ color: DARK } });
  s.addShape(pres.ShapeType.rect, { x:0, y:3.9, w:6.65, h:0.1, fill:{ color: ACCENT } });
  s.addShape(pres.ShapeType.rect, { x:6.65, y:3.9, w:6.65, h:0.1, fill:{ color: ACCENT2 } });
  s.addText("TREATMENT OF MYASTHENIA GRAVIS", { x:0.8, y:0.5, w:11.7, h:1.2, fontSize:34, bold:true, color:WHITE, fontFace:"Calibri", charSpacing:2 });
  s.addText("&", { x:0.8, y:1.7, w:11.7, h:0.7, fontSize:28, bold:true, color:SUB, fontFace:"Calibri" });
  s.addText("SUBARACHNOID HEMORRHAGE — Grading Criteria, Management & Triple-H Therapy", { x:0.8, y:2.4, w:11.7, h:1.2, fontSize:22, bold:true, color:WHITE, fontFace:"Calibri" });
  s.addText("Reference: Bradley & Daroff's Neurology  |  Goldman-Cecil Medicine  |  Barash Clinical Anesthesia  |  Tintinalli Emergency Medicine", {
    x:0.8, y:4.5, w:11.7, h:0.5, fontSize:11, color:SUB, fontFace:"Calibri", italic:true
  });
}

// ═══════════════════════════════════════════════════════════════════════════
// PART 1 — MYASTHENIA GRAVIS
// ═══════════════════════════════════════════════════════════════════════════
sectionCard("PART 1: MYASTHENIA GRAVIS", "Treatment — Symptomatic, Immunotherapy, Thymectomy, Crisis Management", ACCENT);

// SLIDE 3: Overview of MG treatment
contentSlide(
  "Treatment Overview — Goals & Framework",
  [
    "##Goal of treatment (MGFA 2016 Task Force)",
    "No symptoms or functional limitations from MG",
    "No more than mild side effects requiring no intervention",
    "Treatment must be individualised: ocular vs. generalized, mild vs. severe",
    "##3 Pillars of MG Treatment",
    "1. Symptomatic — Cholinesterase Inhibitors (ChEIs)",
    "2. Immunotherapy — Corticosteroids + Steroid-sparing agents",
    "3. Surgical — Thymectomy",
    "##Rapid therapy for crisis / acute worsening",
    "Plasmapheresis (plasma exchange) — fastest acting",
    "Intravenous Immunoglobulin (IVIG)",
    "Intubation + mechanical ventilation if respiratory failure",
  ],
  [
    "##Clinical stratification guides therapy",
    "Ocular MG (ptosis, diplopia only) → ChEI ± low-dose steroids",
    "Mild generalised → ChEI + immunosuppression",
    "Moderate–severe generalised → aggressive immunotherapy",
    "Myasthenic crisis → ICU + plasmapheresis/IVIG",
    "##Predictors of response",
    "AChR antibody positive: responds well to thymectomy + steroids",
    "MuSK antibody positive: may worsen with ChEIs; use rituximab",
    "LRP4 antibody positive: rare; treatment similar to AChR+",
    "Seronegative MG: treat empirically as AChR+",
    "##Goal remission rates",
    "85% ocular MG achieve remission/minimal manifestations",
    "47% thymoma-associated MG achieve remission",
  ],
  "Stratification"
);

// SLIDE 4: ChEIs
contentSlide(
  "Symptomatic Treatment — Cholinesterase Inhibitors (ChEIs)",
  [
    "##Pyridostigmine (Mestinon) — First-line symptomatic",
    "Mechanism: inhibits acetylcholinesterase → ↑ ACh at NMJ",
    "Dose: 30–60 mg PO every 4–8 hours (adults)",
    "Paediatric dose: 1 mg/kg PO",
    "Syrup formulation (60 mg/5 mL) for children or NG tube",
    "Timed-release tablet 180 mg at bedtime (erratic absorption)",
    "Adjust dose for best effect in most disabled muscle group",
    "Patients with oropharyngeal weakness: time dose to meals",
    "##Side effects (muscarinic excess)",
    "GI: nausea, vomiting, abdominal cramps, diarrhoea",
    "Increased bronchial/oral secretions (dangerous if bulbar weakness)",
    "Bradycardia, miosis, urinary urgency",
    "##Management of GI side effects",
    "Glycopyrrolate, hyoscyamine sulfate, propantheline bromide",
    "Diphenoxylate + atropine, loperamide",
    "⚠ MuSK MG may WORSEN with ChEIs — avoid or use cautiously",
  ],
  [
    "##Amifampridine (3,4-DAP)",
    "Voltage-gated K+ channel blocker → ↑ ACh release",
    "Small studies show improvement in acquired MG",
    "Adjunct to pyridostigmine in selected patients",
    "##Tensilon (Edrophonium) Test",
    "Short-acting ChEI — used diagnostically",
    "2 mg IV test dose; if no reaction → 8 mg IV",
    "Positive: transient improvement in weakness within 60 sec",
    "Also distinguishes myasthenic from cholinergic crisis",
    "Have atropine ready (1 mg IV) for cholinergic overshoot",
    "##When ChEIs are insufficient",
    "Pyridostigmine dose reduction/discontinuation signals remission",
    "Addition of immunotherapy required for generalized disease",
    "If symptoms persist after optimal ChEI dose → escalate to IS therapy",
    "##Key monitoring",
    "Target: definite improvement within 30–45 minutes of dose",
    "Medication wearing off before next dose = under-dosing",
    "Increasing weakness after dose increase = over-dosing (cholinergic crisis)",
  ],
  "Amifampridine & Tensilon"
);

// SLIDE 5: Corticosteroids + IS
contentSlide(
  "Immunotherapy — Corticosteroids & Steroid-Sparing Agents",
  [
    "##Corticosteroids — First-line immunotherapy",
    "Prednisone: most widely used; 85% response rate",
    "Start LOW, titrate UP to avoid initial steroid exacerbation",
    "Low-start: 15–20 mg/day, increase by 5 mg every 1–2 weeks",
    "Target: 1 mg/kg/day (max 60–80 mg/day) until remission",
    "Then taper slowly over months to minimum effective dose",
    "⚠ Rapid high-dose initiation → paradoxical worsening in 1st week",
    "##Azathioprine (AZA) — First-choice steroid-sparing agent",
    "Dose: 2–3 mg/kg/day PO; onset of effect 6–18 months",
    "Check TPMT enzyme activity before starting",
    "Monitor CBC + LFTs regularly",
    "Allows prednisone dose reduction over time",
    "##Mycophenolate Mofetil (MMF)",
    "Dose: 1000–1500 mg BD; alternative to AZA",
    "Better tolerated GI side effect profile",
    "Second-choice steroid-sparing agent if AZA fails/intolerant",
  ],
  [
    "##Ciclosporin A (CYA)",
    "Dose: 2–2.5 mg/kg BD; onset 1–2 months (faster than AZA)",
    "Monitor renal function, BP, drug levels",
    "Second-choice if AZA/MMF inadequate",
    "##Tacrolimus",
    "Calcineurin inhibitor; used in refractory MG",
    "May be particularly effective in MuSK+ MG",
    "##Rituximab",
    "Anti-CD20 monoclonal antibody; depletes B cells",
    "Especially effective in MuSK antibody-positive MG",
    "Used in refractory or corticosteroid-dependent MG",
    "##Eculizumab (Soliris) — FDA approved 2017",
    "Anti-C5 complement inhibitor — blocks MAC formation",
    "For generalised AChR antibody-positive MG",
    "##Efgartigimod (Vyvgart) — anti-FcRn",
    "Reduces IgG (including AChR Ab) levels",
    "IV formulation; approved for generalised AChR+ MG",
    "##Key principle",
    "Avoid abrupt IS withdrawal → risk of crisis",
    "Maintain minimum effective dose indefinitely",
  ],
  "Novel Biologics"
);

// SLIDE 6: Thymectomy
contentSlide(
  "Thymectomy — Surgical Immunotherapy",
  [
    "##Indication",
    "Thymoma present: ALWAYS thymectomy (mandatory)",
    "Non-thymomatous generalised AChR+ MG: strongly recommended",
    "Age <65 years, early in disease course: best outcomes",
    "##Evidence base",
    "MGTX RCT (Wolfe et al 2016/2019): thymectomy + prednisone",
    "→ Lower QMG scores at 3 and 5 years vs prednisone alone",
    "→ Less prednisone required long-term",
    "Response gradual — continues months to years post-surgery",
    "##Timing",
    "Always elective — operate when patient is stable",
    "Ensure respiratory function optimised pre-op",
    "May need pre-op plasmapheresis/IVIG if poorly controlled",
    "##Not recommended for",
    "Ocular MG (generally) — unless refractory to drugs",
    "MuSK antibody-positive MG — less clear benefit",
    "Age >65 years or significant comorbidities (relative)",
  ],
  [
    "##Surgical approaches",
    "Trans-sternal (classic): widest mediastinal exploration",
    "Transcervical: less morbidity, good for small thymus",
    "VATS (Video-Assisted Thoracoscopic): minimally invasive",
    "Robot-assisted VATS: best cosmesis, similar outcomes to open",
    "##Pre-operative preparation",
    "Optimise MG control (ChEIs + immunotherapy)",
    "Pre-op plasmapheresis/IVIG if generalized, severe or unstable",
    "Monitor FVC and NIF — target FVC >1.5 L before elective surgery",
    "##Post-operative",
    "May require ICU monitoring for respiratory decompensation",
    "Continue ChEIs post-operatively",
    "Gradual tapering of immunosuppression months after surgery",
    "##Outcome",
    "Remission rates highest in young women, AChR+, early disease",
    "Improvement can occur even after many years of symptoms",
    "Thymoma MG: more difficult; 5-year survival depends on stage",
  ],
  "Approaches & Outcomes"
);

// SLIDE 7: Myasthenic vs Cholinergic Crisis
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:0.7, fill:{ color: MID } });
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:0.12, h:0.7, fill:{ color: ACCENT } });
  s.addText("Myasthenic Crisis vs Cholinergic Crisis", { x:0.28, y:0, w:13.0, h:0.7, fontSize:19, bold:true, color:WHITE, fontFace:"Calibri", valign:"middle", margin:0 });
  s.addShape(pres.ShapeType.rect, { x:0, y:0.7, w:"100%", h:"100%", fill:{ color: LIGHT } });

  const rows = [
    [
      { text:"FEATURE", options:{bold:true,color:WHITE,fill:{color:MID},fontSize:12,fontFace:"Calibri"} },
      { text:"MYASTHENIC CRISIS", options:{bold:true,color:WHITE,fill:{color:ACCENT},fontSize:12,fontFace:"Calibri"} },
      { text:"CHOLINERGIC CRISIS", options:{bold:true,color:WHITE,fill:{color:"1E6B52"},fontSize:12,fontFace:"Calibri"} },
    ],
    [{ text:"Cause", options:{bold:true,color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"Under-medication / disease exacerbation", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"Over-medication (ChEI excess)", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }],
    [{ text:"Weakness", options:{bold:true,color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"Profound generalised weakness; respiratory failure", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"Weakness (nicotinic overdose)", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }],
    [{ text:"HR / BP", options:{bold:true,color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"↑ Heart rate, ↑ Blood pressure", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"↓ Heart rate, ↓ Blood pressure (bradycardia)", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }],
    [{ text:"Pupils", options:{bold:true,color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"Mydriasis (dilated)", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"Miosis (constricted)", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }],
    [{ text:"Secretions", options:{bold:true,color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"Normal secretions", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"↑ Secretions (salivation, lacrimation, bronchorrhoea)", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }],
    [{ text:"GI symptoms", options:{bold:true,color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"Minimal abdominal symptoms", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"Nausea, vomiting, diarrhoea, abdominal cramps", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }],
    [{ text:"Fasciculations", options:{bold:true,color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"Absent", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"Present (nicotinic overactivation)", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }],
    [{ text:"Tensilon test", options:{bold:true,color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"IMPROVEMENT (positive test)", options:{bold:true,color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"WORSENING (negative/paradox test)", options:{bold:true,color:TEXT,fontSize:11,fontFace:"Calibri"} }],
    [{ text:"TREATMENT", options:{bold:true,color:TEXT,fontSize:12,fontFace:"Calibri"} }, { text:"Cholinergic agent: edrophonium / increase pyridostigmine; Plasmapheresis / IVIG; Intubation if needed", options:{bold:true,color:ACCENT,fontSize:11,fontFace:"Calibri"} }, { text:"STOP all ChEIs; Atropine IV 1–2 mg; Pralidoxime; Supportive care; Intubation if needed", options:{bold:true,color:"1E6B52",fontSize:11,fontFace:"Calibri"} }],
  ];

  s.addTable(rows, {
    x:0.3, y:0.82, w:12.7, h:4.4,
    colW:[2.0, 5.3, 5.4],
    border:{ pt:0.5, color:"C9D4E0" },
    fontFace:"Calibri",
    align:"left",
  });
}

// SLIDE 8: Crisis Management
contentSlide(
  "Management of Myasthenic Crisis",
  [
    "##Triggers of myasthenic crisis",
    "Infections (esp. respiratory): most common trigger",
    "Rapid tapering of immunosuppression",
    "Medications (aminoglycosides, fluoroquinolones, β-blockers, Mg²⁺, neuromuscular blockers)",
    "Surgery, trauma, emotional stress",
    "Aspiration pneumonia",
    "##Immediate management",
    "ADMIT to ICU if FVC <1 L or NIF < −20 cmH₂O",
    "Monitor FVC/NIF every 4–6 hours (20-30-40 rule)",
    "FVC <20 mL/kg OR NIF < −30 cmH₂O OR PaO₂ <70 → intubate",
    "Intubate EARLY — do NOT wait for respiratory arrest",
    "##Rapid therapy",
    "PLASMAPHERESIS: 5 exchanges over 1–2 weeks; fastest response",
    "IVIG: 2 g/kg over 2–5 days; equivalent efficacy to PE",
    "Start/continue corticosteroids (carefully to avoid initial exacerbation)",
  ],
  [
    "##Plasmapheresis",
    "Removes circulating AChR antibodies from plasma",
    "Response in 3–5 days; duration 4–6 weeks",
    "Indicated: crisis, pre-thymectomy, refractory MG",
    "Complications: hypotension, citrate toxicity, infection",
    "##IVIG",
    "Mechanism: blocks Fc receptors, reduces Ab production",
    "Dose: 2 g/kg over 2–5 days",
    "Response: similar to PE, onset in 3–5 days",
    "Safer than PE for cardiovascular instability",
    "Complications: headache, fluid overload, IgA anaphylaxis",
    "##20-30-40 Intubation rule",
    "FVC <20 mL/kg → intubate",
    "NIF < −30 cmH₂O → intubate",
    "PaO₂ <40 mmHg → intubate",
    "##Post-crisis",
    "Identify and treat precipitating cause",
    "Optimise long-term immunosuppression",
    "Early pulmonary rehabilitation",
  ],
  "Plasmapheresis & IVIG"
);

// ═══════════════════════════════════════════════════════════════════════════
// PART 2 — SAH
// ═══════════════════════════════════════════════════════════════════════════
sectionCard("PART 2: SUBARACHNOID HEMORRHAGE", "Grading Criteria — Management — Triple-H Therapy", ACCENT2);

// SLIDE 10: SAH Overview
contentSlide(
  "Subarachnoid Hemorrhage — Overview",
  [
    "##Definition",
    "Bleeding into the subarachnoid space between arachnoid and pia mater",
    "Most common cause: rupture of intracranial saccular (berry) aneurysm (80%)",
    "Other causes: AVM, trauma, cocaine use, idiopathic",
    "##Epidemiology",
    "Incidence: 6–8 per 100,000 per year",
    "Peak age: 40–60 years; female > male (3:2)",
    "Overall mortality: 40–50%",
    "~10% die before reaching hospital; another 10% before evaluation",
    "##Classic presentation",
    "'Thunderclap headache' — worst headache of life (sentinel headache)",
    "Sudden onset at peak intensity; may occur during exertion",
    "Nausea, vomiting, neck stiffness (meningism), photophobia",
    "Loss of consciousness (brief or prolonged)",
    "Focal neurological deficit, cranial nerve palsy (CN III)",
  ],
  [
    "##Aneurysm size classification",
    "Small: <10 mm diameter",
    "Large: 10–24 mm",
    "Giant: >24 mm",
    "Rupture risk: significantly increases for >6 mm → requires treatment",
    "##Key complications to anticipate",
    "Rebleeding — highest risk in first 2–12 hours",
    "Vasospasm / Delayed Cerebral Ischemia (DCI) — days 4–14",
    "Hydrocephalus — 25% of survivors",
    "Seizures — 13% of cases",
    "Hyponatremia — 10–34% (SIADH or cerebral salt wasting)",
    "Neurogenic pulmonary edema",
    "Cardiac dysfunction, arrhythmias (massive sympathetic discharge)",
    "##Initial investigation",
    "Non-contrast CT brain (97% sensitive within 6 hours)",
    "LP if CT negative but high clinical suspicion (xanthochromia)",
    "CT angiography for aneurysm localisation",
    "DSA (Digital Subtraction Angiography) — gold standard",
  ],
  "Complications & Investigations", ACCENT2
);

// SLIDE 11: Grading criteria — Hunt & Hess + WFNS
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:0.7, fill:{ color: MID } });
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:0.12, h:0.7, fill:{ color: ACCENT2 } });
  s.addText("SAH Grading Criteria — Hunt & Hess and WFNS Scale", { x:0.28, y:0, w:13.0, h:0.7, fontSize:19, bold:true, color:WHITE, fontFace:"Calibri", valign:"middle", margin:0 });
  s.addShape(pres.ShapeType.rect, { x:0, y:0.7, w:"100%", h:"100%", fill:{ color: LIGHT } });

  // Hunt & Hess
  s.addText("HUNT & HESS GRADING SCALE (Clinical — based on symptoms)", { x:0.3, y:0.82, w:6.1, h:0.38, fontSize:12.5, bold:true, color:ACCENT2, fontFace:"Calibri", margin:0 });
  const hh = [
    [{ text:"Grade", options:{bold:true,color:WHITE,fill:{color:MID},fontSize:11,fontFace:"Calibri"} }, { text:"Clinical Symptoms", options:{bold:true,color:WHITE,fill:{color:MID},fontSize:11,fontFace:"Calibri"} }, { text:"Mortality", options:{bold:true,color:WHITE,fill:{color:MID},fontSize:11,fontFace:"Calibri"} }],
    [{ text:"0", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"Unruptured aneurysm — asymptomatic", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"—", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }],
    [{ text:"1", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"Minimal headache, slight nuchal rigidity", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"~5%", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }],
    [{ text:"2", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"Moderate–severe headache, nuchal rigidity ± CN palsy", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"~10%", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }],
    [{ text:"3", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"Mildly obtunded, confused, mild focal deficit", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"~37%", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }],
    [{ text:"4", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"Stuporous, hemiparesis, early decerebrate posturing", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"~71%", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }],
    [{ text:"5", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"Deep coma, decerebrate posturing, moribund", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"~100%", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }],
  ];
  s.addTable(hh, { x:0.3, y:1.22, w:6.1, h:3.5, colW:[0.65,4.25,1.2], border:{pt:0.5,color:"BEC8D4"}, fontFace:"Calibri", align:"left" });

  // WFNS
  s.addText("WFNS GRADING SCALE (Based on GCS + Motor Deficit)", { x:6.65, y:0.82, w:6.0, h:0.38, fontSize:12.5, bold:true, color:ACCENT2, fontFace:"Calibri", margin:0 });
  const wfns = [
    [{ text:"Grade", options:{bold:true,color:WHITE,fill:{color:MID},fontSize:11,fontFace:"Calibri"} }, { text:"GCS Score", options:{bold:true,color:WHITE,fill:{color:MID},fontSize:11,fontFace:"Calibri"} }, { text:"Motor Deficit", options:{bold:true,color:WHITE,fill:{color:MID},fontSize:11,fontFace:"Calibri"} }],
    [{ text:"I", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"15", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"Absent", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }],
    [{ text:"II", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"13–14", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"Absent", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }],
    [{ text:"III", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"13–14", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"Present", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }],
    [{ text:"IV", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"7–12", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"Present or absent", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }],
    [{ text:"V", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"3–6", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }, { text:"Present or absent", options:{color:TEXT,fontSize:11,fontFace:"Calibri"} }],
  ];
  s.addTable(wfns, { x:6.65, y:1.22, w:6.0, h:2.8, colW:[0.8,1.8,3.4], border:{pt:0.5,color:"BEC8D4"}, fontFace:"Calibri", align:"left" });

  s.addText("Higher grade = higher likelihood of poor outcome. Two-thirds of hospital-admitted patients present WFNS Grade III or better.", {
    x:6.65, y:4.15, w:6.0, h:0.6, fontSize:11, color:SUB, fontFace:"Calibri", italic:true
  });
}

// SLIDE 12: Fisher Grade
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:0.7, fill:{ color: MID } });
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:0.12, h:0.7, fill:{ color: ACCENT2 } });
  s.addText("Modified Fisher CT Rating Scale — Prediction of Vasospasm", { x:0.28, y:0, w:13.0, h:0.7, fontSize:19, bold:true, color:WHITE, fontFace:"Calibri", valign:"middle", margin:0 });
  s.addShape(pres.ShapeType.rect, { x:0, y:0.7, w:"100%", h:"100%", fill:{ color: LIGHT } });

  s.addText("Based on CT brain findings — predicts risk of delayed cerebral ischemia (DCI) from vasospasm", {
    x:0.3, y:0.82, w:12.7, h:0.4, fontSize:12, color:SUB, fontFace:"Calibri", italic:true
  });

  const fisher = [
    [
      { text:"Grade", options:{bold:true,color:WHITE,fill:{color:MID},fontSize:12,fontFace:"Calibri"} },
      { text:"CT Criteria", options:{bold:true,color:WHITE,fill:{color:MID},fontSize:12,fontFace:"Calibri"} },
      { text:"Frequency", options:{bold:true,color:WHITE,fill:{color:MID},fontSize:12,fontFace:"Calibri"} },
      { text:"Delayed Cerebral Ischemia", options:{bold:true,color:WHITE,fill:{color:MID},fontSize:12,fontFace:"Calibri"} },
      { text:"Infarction", options:{bold:true,color:WHITE,fill:{color:MID},fontSize:12,fontFace:"Calibri"} },
    ],
    [{ text:"0", options:{color:TEXT,fontSize:12,fontFace:"Calibri"} }, { text:"No SAH, no IVH", options:{color:TEXT,fontSize:12,fontFace:"Calibri"} }, { text:"5%", options:{color:TEXT,fontSize:12,fontFace:"Calibri"} }, { text:"0%", options:{bold:true,color:"1E6B52",fontSize:12,fontFace:"Calibri"} }, { text:"0%", options:{color:TEXT,fontSize:12,fontFace:"Calibri"} }],
    [{ text:"1", options:{color:TEXT,fontSize:12,fontFace:"Calibri"} }, { text:"Minimal/thin SAH, NO biventricular IVH", options:{color:TEXT,fontSize:12,fontFace:"Calibri"} }, { text:"30%", options:{color:TEXT,fontSize:12,fontFace:"Calibri"} }, { text:"12%", options:{color:TEXT,fontSize:12,fontFace:"Calibri"} }, { text:"6%", options:{color:TEXT,fontSize:12,fontFace:"Calibri"} }],
    [{ text:"2", options:{color:TEXT,fontSize:12,fontFace:"Calibri"} }, { text:"Minimal/thin SAH, WITH biventricular IVH", options:{color:TEXT,fontSize:12,fontFace:"Calibri"} }, { text:"5%", options:{color:TEXT,fontSize:12,fontFace:"Calibri"} }, { text:"21%", options:{color:TEXT,fontSize:12,fontFace:"Calibri"} }, { text:"14%", options:{color:TEXT,fontSize:12,fontFace:"Calibri"} }],
    [{ text:"3", options:{color:TEXT,fontSize:12,fontFace:"Calibri"} }, { text:"Thick SAH (filling ≥1 cistern/fissure), NO biventricular IVH", options:{color:TEXT,fontSize:12,fontFace:"Calibri"} }, { text:"43%", options:{color:TEXT,fontSize:12,fontFace:"Calibri"} }, { text:"19%", options:{color:TEXT,fontSize:12,fontFace:"Calibri"} }, { text:"12%", options:{color:TEXT,fontSize:12,fontFace:"Calibri"} }],
    [{ text:"4", options:{bold:true,color:ACCENT,fontSize:12,fontFace:"Calibri"} }, { text:"Thick SAH, WITH biventricular IVH", options:{bold:true,color:ACCENT,fontSize:12,fontFace:"Calibri"} }, { text:"17%", options:{color:TEXT,fontSize:12,fontFace:"Calibri"} }, { text:"40%", options:{bold:true,color:ACCENT,fontSize:12,fontFace:"Calibri"} }, { text:"28%", options:{bold:true,color:ACCENT,fontSize:12,fontFace:"Calibri"} }],
  ];

  s.addTable(fisher, {
    x:0.3, y:1.28, w:12.7, h:3.2,
    colW:[0.8, 4.3, 1.5, 3.2, 1.4],
    border:{ pt:0.5, color:"BEC8D4" },
    fontFace:"Calibri", align:"left",
  });

  s.addText("IVH = Intraventricular Hemorrhage  |  Thick SAH = completely filling at least one cistern or fissure  |  Grade 4 has highest risk of DCI (40%) and infarction (28%)", {
    x:0.3, y:4.6, w:12.7, h:0.55, fontSize:11, color:SUB, fontFace:"Calibri", italic:true
  });
}

// SLIDE 13: SAH Management
contentSlide(
  "SAH Management — Acute Phase",
  [
    "##Immediate stabilisation",
    "Monitored critical care / ICU admission",
    "Reassess GCS and pupils regularly (GCS drop of 1 = complication)",
    "##Blood pressure control (to prevent rebleeding)",
    "Target SBP 120–160 mmHg (before aneurysm secured)",
    "Titratable IV antihypertensive: labetalol or nicardipine preferred",
    "AVOID: nitroprusside, nitroglycerin (↑ ICP)",
    "##Aneurysm occlusion — WITHIN 48 hours",
    "Endovascular coiling: first-line for most aneurysms (less invasive)",
    "Surgical clipping: best for wide-neck, MCA aneurysms",
    "Goal: secure aneurysm before vasospasm onset (day 4–14)",
    "##Rebleeding prevention",
    "Early aneurysm occlusion is primary prevention",
    "Short-term antifibrinolytics (tranexamic acid / aminocaproic acid):",
    "Only if unavoidable delay in treatment (consult neurosurgery)",
    "Risk of increased cerebral ischemia with prolonged use",
  ],
  [
    "##Vasospasm prevention — Nimodipine",
    "Oral nimodipine 60 mg every 4 hours × 21 days: STANDARD OF CARE",
    "Mechanism: cytoprotective (↓ intracellular Ca²⁺); improves microvascular flow",
    "Reduces cerebral infarction and poor outcome; does NOT reduce angiographic vasospasm",
    "⚠ Stop if causes hypotension",
    "##Hydrocephalus (25% of survivors)",
    "Blood in ventricles obstructs CSF drainage",
    "External ventricular drain (EVD) if symptomatic",
    "Minority require permanent VP shunt",
    "##Seizure prophylaxis",
    "Prophylactic anticonvulsants: short-term in immediate post-haemorrhage period",
    "Long-term use NOT supported by evidence",
    "##Hyponatremia management",
    "SIADH (euvolemia/hypervolemia) vs Cerebral Salt Wasting (hypovolemia)",
    "Fluid restriction CONTRAINDICATED in SAH (risk of vasospasm)",
    "Fludrocortisone 0.05 mg/day to prevent natriuresis",
    "Hypertonic saline (250–500 mL) if needed; correct slowly",
  ],
  "Nimodipine & Complications", ACCENT2
);

// SLIDE 14: TRIPLE-H THERAPY
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:0.7, fill:{ color: MID } });
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:0.12, h:0.7, fill:{ color: ACCENT2 } });
  s.addText("Triple-H Therapy — Hypervolemia, Hypertension, Hemodilution", { x:0.28, y:0, w:13.0, h:0.7, fontSize:18, bold:true, color:WHITE, fontFace:"Calibri", valign:"middle", margin:0 });
  s.addShape(pres.ShapeType.rect, { x:0, y:0.7, w:"100%", h:"100%", fill:{ color: LIGHT } });

  // 3 boxes
  const boxes = [
    { label:"HYPER-\nVOLEMIA", desc:"Volume expansion\nto ↑ cerebral blood flow\nIV crystalloids / colloids\nTarget CVP 8–12 mmHg", x:0.3, col:ACCENT2 },
    { label:"HYPER-\nTENSION", desc:"Induced hypertension\nto overcome vasospasm\nNoradrenaline / phenylephrine\nTarget SBP 160–200 mmHg\n(post-occlusion)", x:4.85, col:ACCENT },
    { label:"HEMO-\nDILUTION", desc:"Reduce blood viscosity\nto ↑ microvascular flow\nTarget Hct 30–35%\n⚠ Hct <30% — NOT beneficial\n(O₂ delivery impaired)", x:9.4, col:"7B3FA0" },
  ];
  boxes.forEach(b => {
    s.addShape(pres.ShapeType.rect, { x:b.x, y:0.85, w:4.15, h:1.3, fill:{color:b.col}, line:{color:b.col} });
    s.addText(b.label, { x:b.x, y:0.85, w:4.15, h:1.3, fontSize:22, bold:true, color:WHITE, fontFace:"Calibri", align:"center", valign:"middle" });
    s.addShape(pres.ShapeType.rect, { x:b.x, y:2.2, w:4.15, h:2.1, fill:{color:WHITE}, line:{color:b.col, pt:1.5} });
    s.addText(b.desc, { x:b.x, y:2.2, w:4.15, h:2.1, fontSize:12, color:TEXT, fontFace:"Calibri", align:"center", valign:"middle" });
  });

  s.addText("CURRENT EVIDENCE & UPDATED RECOMMENDATIONS (Barash Clinical Anesthesia, 9e)", {
    x:0.3, y:4.4, w:12.7, h:0.3, fontSize:12, bold:true, color:ACCENT, fontFace:"Calibri"
  });
  const bullets = [
    { text:"Historical use: Triple-H was a mainstay for prevention & treatment of DCI from SAH vasospasm", options:{bullet:true,color:TEXT,fontSize:12,fontFace:"Calibri",breakLine:true} },
    { text:"Rationale: hypovolemia associated with poor outcome; anemia improves CBF rheology; hypertension overcomes vasospastic resistance", options:{bullet:true,color:TEXT,fontSize:12,fontFace:"Calibri",breakLine:true} },
    { text:"Current guidelines (Neurocritical Care Society): Triple-H in its classic form is NO LONGER recommended for prophylaxis", options:{bullet:true,bold:true,color:ACCENT,fontSize:12,fontFace:"Calibri",breakLine:true} },
    { text:"UPDATED approach: Maintain EUVOLEMIA + controlled stepwise blood pressure augmentation only in CONFIRMED DCI", options:{bullet:true,bold:true,color:ACCENT2,fontSize:12,fontFace:"Calibri",breakLine:true} },
    { text:"Intentional hemodilution AVOIDED — hematocrit <30% reduces O₂ delivery and is harmful", options:{bullet:true,color:TEXT,fontSize:12,fontFace:"Calibri"} },
  ];
  s.addText(bullets, { x:0.3, y:4.72, w:12.7, h:0.9, fontFace:"Calibri" });
}

// SLIDE 15: Triple-H — Mechanism and Practice
contentSlide(
  "Triple-H Therapy — Mechanism, Protocol & Complications",
  [
    "##Pathophysiology of vasospasm",
    "Onset: day 4–14 post-SAH (peak day 7–10)",
    "Blood products (oxyhemoglobin) → endothelium → ↓ NO, ↑ ET-1",
    "Smooth muscle contraction → arterial narrowing → DCI",
    "Symptoms: new neurological deficit, confusion, drowsiness",
    "Diagnosis: TCD monitoring (MCA velocity >120 cm/s = suspicious)",
    "Confirm: CT perfusion or DSA",
    "##When to initiate vasospasm therapy",
    "New focal deficit OR TCD showing elevated velocities",
    "Maintain euvolemia with IV isotonic saline",
    "Step 1: Ensure euvolemia → check volume status",
    "Step 2: BP augmentation → vasopressors if needed",
    "Target MAP: augment by 20–40 mmHg above baseline",
    "Balloon angioplasty: if medical therapy fails; done early",
  ],
  [
    "##Blood pressure augmentation protocol",
    "Only after aneurysm has been secured (clipped/coiled)",
    "Pre-occlusion: hypertension CONTRAINDICATED (↑ rebleeding risk)",
    "Post-occlusion: SBP target 160–200 mmHg for DCI",
    "Agents: noradrenaline, phenylephrine, dopamine (vasopressors)",
    "Discontinue nimodipine if it causes significant hypotension",
    "##Complications of Triple-H (reason guideline changed)",
    "Hyponatremia: dilutional (from aggressive hypervolemia)",
    "Pulmonary oedema: fluid overload (neurogenic + iatrogenic)",
    "Cerebral oedema: fluid overload",
    "Myocardial infarction: aggressive hypertension",
    "Cardiogenic shock (rare) — intra-aortic balloon pump needed",
    "Catheter-related infections (CVP lines for monitoring)",
    "##Interventional rescue",
    "Balloon angioplasty: reverses vasospasm mechanically (observational benefit)",
    "Intra-arterial vasodilators: papaverine, verapamil, nicardipine",
    "Used if stepwise medical augmentation fails",
  ],
  "BP Augmentation & Complications", ACCENT2
);

// SLIDE 16: Summary
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:"100%", h:"100%", fill:{ color: DARK } });
  s.addShape(pres.ShapeType.rect, { x:0, y:0.62, w:6.65, h:0.07, fill:{ color: ACCENT } });
  s.addShape(pres.ShapeType.rect, { x:6.65, y:0.62, w:6.65, h:0.07, fill:{ color: ACCENT2 } });
  s.addText("KEY TAKEAWAYS", { x:0.8, y:0.0, w:11.7, h:0.62, fontSize:26, bold:true, color:WHITE, fontFace:"Calibri", valign:"middle", charSpacing:3, margin:0 });

  const left = [
    { text:"MYASTHENIA GRAVIS", options:{bold:true,color:ACCENT,fontSize:14,fontFace:"Calibri",breakLine:true,bullet:false} },
    { text:"ChEI (pyridostigmine): first-line symptomatic; dose to effect", options:{bullet:true,color:WHITE,fontSize:12,fontFace:"Calibri",breakLine:true} },
    { text:"Immunotherapy: prednisone + AZA/MMF; rituximab for MuSK+; eculizumab/efgartigimod for refractory", options:{bullet:true,color:WHITE,fontSize:12,fontFace:"Calibri",breakLine:true} },
    { text:"Thymectomy: mandatory for thymoma; beneficial for generalised AChR+ MG", options:{bullet:true,color:WHITE,fontSize:12,fontFace:"Calibri",breakLine:true} },
    { text:"Myasthenic crisis: intubate early (20-30-40 rule); plasmapheresis / IVIG are fastest acting", options:{bullet:true,color:ACCENT,fontSize:12,fontFace:"Calibri",bold:true,breakLine:true} },
    { text:"Cholinergic crisis: STOP ChEIs; give atropine — key distinction via Tensilon test", options:{bullet:true,color:WHITE,fontSize:12,fontFace:"Calibri",breakLine:true} },
  ];
  s.addText(left, { x:0.4, y:0.78, w:6.1, h:4.4, fontFace:"Calibri" });

  s.addShape(pres.ShapeType.rect, { x:6.6, y:0.75, w:0.07, h:4.45, fill:{ color: SUB } });

  const right = [
    { text:"SAH — GRADING & MANAGEMENT", options:{bold:true,color:ACCENT2,fontSize:14,fontFace:"Calibri",breakLine:true,bullet:false} },
    { text:"Hunt & Hess: clinical grading 1–5; higher grade = worse prognosis", options:{bullet:true,color:WHITE,fontSize:12,fontFace:"Calibri",breakLine:true} },
    { text:"WFNS: GCS-based grading; Fisher scale: CT-based vasospasm risk (Grade 4 = 40% DCI)", options:{bullet:true,color:WHITE,fontSize:12,fontFace:"Calibri",breakLine:true} },
    { text:"Nimodipine 60 mg q4h × 21 days: ONLY drug proven to improve outcome", options:{bullet:true,color:ACCENT2,fontSize:12,fontFace:"Calibri",bold:true,breakLine:true} },
    { text:"Aneurysm occlusion within 48 hours (coiling or clipping) — prevents rebleeding", options:{bullet:true,color:WHITE,fontSize:12,fontFace:"Calibri",breakLine:true} },
    { text:"Triple-H: now replaced by euvolemia + stepwise BP augmentation only for confirmed DCI", options:{bullet:true,color:ACCENT,fontSize:12,fontFace:"Calibri",bold:true,breakLine:true} },
    { text:"Hemodilution + prophylactic hypervolemia NO LONGER recommended", options:{bullet:true,color:WHITE,fontSize:12,fontFace:"Calibri"} },
  ];
  s.addText(right, { x:6.75, y:0.78, w:6.0, h:4.4, fontFace:"Calibri" });
}

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

cd /home/daytona/workspace/bibrachial-mnd && node mg_sah_pptx.js 2>&1

Running Command

ls -lh /home/daytona/workspace/bibrachial-mnd/MG_SAH_Treatment.pptx

Your presentation is ready! Download here:

MG SAH Treatment

Presentation · PPTX


What's inside — 16 slides, dual-topic, fully designed

Referenced from: Bradley & Daroff's Neurology in Clinical Practice | Goldman-Cecil Medicine | Barash Clinical Anesthesia 9e | Tintinalli Emergency Medicine | Rosen's Emergency Medicine

PART 1 — Myasthenia Gravis (Slides 2–8)

#Slide
2Section card
3Treatment framework, MGFA goals, clinical stratification (AChR / MuSK / LRP4)
4ChEIs — Pyridostigmine dose, side effects, glycopyrrolate for GI SE, Tensilon test, amifampridine
5Immunotherapy — Prednisone, Azathioprine, MMF, Ciclosporin, Tacrolimus, Rituximab, Eculizumab, Efgartigimod
6Thymectomy — MGTX RCT evidence, indications, approaches (VATS/robotic/transsternal), pre-op prep
7Myasthenic vs Cholinergic Crisis comparison table (cause, HR/BP, pupils, secretions, Tensilon, treatment)
8Crisis Management — 20-30-40 intubation rule, plasmapheresis, IVIG, triggers

PART 2 — Subarachnoid Hemorrhage (Slides 9–16)

#Slide
9Section card
10SAH overview — epidemiology, presentation, aneurysm sizing, complications
11Grading criteria table — Hunt & Hess (grades 0–5 with mortality %) + WFNS scale (GCS + motor deficit)
12Modified Fisher CT Scale — full table with frequency, DCI%, infarction% for each grade
13Acute management — BP targets, coiling vs clipping, nimodipine, hydrocephalus, hyponatremia
14Triple-H Therapy — visual 3-box design (Hypervolemia / Hypertension / Hemodilution) + updated guideline warning
15Triple-H mechanism, vasospasm protocol, complications, balloon angioplasty
16Key takeaways summary (dark slide)

Critical clinical points highlighted

  • Triple-H is NO LONGER recommended prophylactically - current guidelines say: euvolemia + stepwise BP augmentation only for confirmed DCI
  • Nimodipine 60 mg q4h × 21 days is the only proven drug to improve SAH outcome
  • Myasthenic crisis intubation: use the 20-30-40 rule (FVC <20 mL/kg, NIF < -30, PaO₂ <40)
  • Cholinergic vs myasthenic crisis: pupils (mydriasis vs miosis) + secretions + Tensilon test = key distinguishers
  • Fisher Grade 4 (thick SAH + biventricular IVH) carries 40% risk of DCI
This is a shared conversation. Sign in to Orris to start your own chat.