prepare a ppt on bibrachial mnd ....how it occur in proximal nd distal.....dd for the condition with its clinical feartues nd investigations refer from architbaloor

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

ls /home/daytona/workspace/ 2>/dev/null && mkdir -p /home/daytona/workspace/bibr…

Writing File

~/bibrachial-mnd-ppt/generate.js

const pptxgen = require("pptxgenjs");

const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Bibrachial MND (Flail Arm Syndrome)";
pres.author = "Archibald / Adams & Victor Neurology";

// ─── COLOR PALETTE ───────────────────────────────────────────────
const C = {
  navy:    "0D1B3E",   // dominant dark background
  teal:    "1B8EA6",   // accent / headings
  gold:    "E8A838",   // highlight / key terms
  white:   "FFFFFF",
  offwhite:"EEF2F7",
  light:   "B8D0E0",
  red:     "C0392B",
  green:   "1A7A4A",
  gray:    "7F8C8D",
  darkgray:"2C3E50",
};

// ─── HELPERS ─────────────────────────────────────────────────────
function titleSlide(slide, title, subtitle) {
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: "100%", fill: { color: C.navy } });
  // diagonal accent bar
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 4.2, w: "100%", h: 0.06, fill: { color: C.teal } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 4.26, w: "100%", h: 0.03, fill: { color: C.gold } });

  slide.addText(title, {
    x: 0.5, y: 1.2, w: 9, h: 1.8,
    fontSize: 36, bold: true, color: C.white,
    fontFace: "Calibri", align: "center", valign: "middle",
    shadow: { type: "outer", blur: 8, offset: 3, angle: 315, color: "000000", opacity: 0.4 }
  });
  if (subtitle) {
    slide.addText(subtitle, {
      x: 0.5, y: 3.1, w: 9, h: 0.8,
      fontSize: 18, color: C.light, fontFace: "Calibri",
      align: "center", italic: true
    });
  }
  slide.addText("Reference: Adams & Victor's Principles of Neurology, 12e  |  Bradley & Daroff's Neurology in Clinical Practice  |  Goldman-Cecil Medicine", {
    x: 0.3, y: 5.1, w: 9.4, h: 0.4,
    fontSize: 9, color: C.gray, fontFace: "Calibri", align: "center"
  });
}

function sectionHeader(slide, title, subtitle) {
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: "100%", fill: { color: C.navy } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.18, h: "100%", fill: { color: C.teal } });
  slide.addShape(pres.ShapeType.rect, { x: 0.18, y: 0, w: 0.06, h: "100%", fill: { color: C.gold } });
  slide.addText(title, {
    x: 1, y: 1.8, w: 8.5, h: 1.2,
    fontSize: 38, bold: true, color: C.white, fontFace: "Calibri", align: "center"
  });
  if (subtitle) {
    slide.addText(subtitle, {
      x: 1, y: 3.2, w: 8.5, h: 0.7,
      fontSize: 18, color: C.gold, fontFace: "Calibri", align: "center", italic: true
    });
  }
}

function contentSlide(slide, heading, bullets, opts = {}) {
  // Background
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: "100%", fill: { color: C.offwhite } });
  // Top bar
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: 0.65, fill: { color: C.navy } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0.65, w: "100%", h: 0.05, fill: { color: C.teal } });
  // Heading
  slide.addText(heading, {
    x: 0.25, y: 0.06, w: 9.5, h: 0.55,
    fontSize: 20, bold: true, color: C.white, fontFace: "Calibri",
    valign: "middle", margin: 0
  });

  const textArr = bullets.map((b, i) => {
    const isSubBullet = b.startsWith("  ");
    const text = b.replace(/^  /, "");
    return [
      {
        text: text,
        options: {
          bullet: isSubBullet ? { type: "number", indent: 30 } : { type: "bullet", indent: 10 },
          fontSize: isSubBullet ? 13.5 : (opts.fontSize || 15),
          color: isSubBullet ? C.darkgray : C.navy,
          bold: b.startsWith("**"),
          breakLine: i < bullets.length - 1
        }
      }
    ];
  }).flat();

  slide.addText(textArr, {
    x: 0.35, y: 0.82, w: opts.w || 9.3, h: opts.h || 4.5,
    fontFace: "Calibri", valign: "top"
  });

  // footnote
  if (opts.ref) {
    slide.addText(opts.ref, {
      x: 0.3, y: 5.32, w: 9.4, h: 0.25,
      fontSize: 8.5, color: C.gray, fontFace: "Calibri", italic: true
    });
  }
}

function twoColSlide(slide, heading, col1Title, col1Items, col2Title, col2Items, ref) {
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: "100%", fill: { color: C.offwhite } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: 0.65, fill: { color: C.navy } });
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0.65, w: "100%", h: 0.05, fill: { color: C.teal } });
  slide.addText(heading, {
    x: 0.25, y: 0.06, w: 9.5, h: 0.55,
    fontSize: 20, bold: true, color: C.white, fontFace: "Calibri", valign: "middle", margin: 0
  });

  // Col1 box
  slide.addShape(pres.ShapeType.rect, { x: 0.25, y: 0.85, w: 4.5, h: 0.42, fill: { color: C.teal }, line: { color: C.teal } });
  slide.addText(col1Title, {
    x: 0.25, y: 0.85, w: 4.5, h: 0.42,
    fontSize: 14, bold: true, color: C.white, fontFace: "Calibri", align: "center", valign: "middle", margin: 0
  });
  const c1Arr = col1Items.map((t, i) => ({
    text: t, options: { bullet: { type: "bullet" }, fontSize: 14, color: C.navy, breakLine: i < col1Items.length - 1 }
  }));
  slide.addText(c1Arr, { x: 0.3, y: 1.32, w: 4.35, h: 3.9, fontFace: "Calibri", valign: "top" });

  // Col2 box
  slide.addShape(pres.ShapeType.rect, { x: 5.15, y: 0.85, w: 4.5, h: 0.42, fill: { color: C.gold }, line: { color: C.gold } });
  slide.addText(col2Title, {
    x: 5.15, y: 0.85, w: 4.5, h: 0.42,
    fontSize: 14, bold: true, color: C.navy, fontFace: "Calibri", align: "center", valign: "middle", margin: 0
  });
  const c2Arr = col2Items.map((t, i) => ({
    text: t, options: { bullet: { type: "bullet" }, fontSize: 14, color: C.navy, breakLine: i < col2Items.length - 1 }
  }));
  slide.addText(c2Arr, { x: 5.2, y: 1.32, w: 4.35, h: 3.9, fontFace: "Calibri", valign: "top" });

  if (ref) {
    slide.addText(ref, { x: 0.3, y: 5.32, w: 9.4, h: 0.25, fontSize: 8.5, color: C.gray, fontFace: "Calibri", italic: true });
  }
}

// ═══════════════════════════════════════════════════════════════
//  SLIDE 1 — TITLE
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  titleSlide(s,
    "Bibrachial MND\n(Flail Arm Syndrome)",
    "Motor Neuron Disease — Proximal & Distal Patterns | Differential Diagnosis | Clinical Features | Investigations"
  );
}

// ═══════════════════════════════════════════════════════════════
//  SLIDE 2 — OVERVIEW / DEFINITION
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  contentSlide(s, "What is Bibrachial MND?", [
    "Bibrachial MND (Flail Arm Syndrome / Dangling Arm Syndrome) is a segmental variant of ALS",
    "Selective involvement of BOTH upper limbs with weakness, wasting and fasciculations",
    "Represents ~5-10% of all ALS cases",
    "Strongly male predominant (even stronger than typical ALS; M:F ratio ~9:1)",
    "Associated with a LONGER median survival compared to classic ALS",
    "First described as a distinct clinical entity — also called 'Man-in-a-Barrel' syndrome when due to bilateral watershed infarcts",
    "In the MND context — reflects selective degeneration of anterior horn cells at C5-T1 segments",
    "Progression to bulbar or leg involvement is typically late and slow",
  ], { ref: "Adams & Victor's Principles of Neurology, 12e, p.1389 | Goldman-Cecil Medicine, Table 387" });
}

// ═══════════════════════════════════════════════════════════════
//  SLIDE 3 — SECTION HEADER: PATHOPHYSIOLOGY
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  sectionHeader(s, "Pathophysiology &\nMechanism of Occurrence", "How does Bibrachial MND occur?");
}

// ═══════════════════════════════════════════════════════════════
//  SLIDE 4 — PATHOPHYSIOLOGY
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  contentSlide(s, "Pathophysiology — Mechanism of Bibrachial MND", [
    "Selective degeneration of lower motor neurons (anterior horn cells) in the CERVICAL spinal cord (C5–T1)",
    "Both UMN (corticospinal) and LMN (anterior horn) pathways are affected in ALS, but in Flail Arm Syndrome:",
    "  LMN degeneration is dominant in the cervical cord",
    "  UMN signs are subtle or minimal initially",
    "Disproportionate vulnerability of the cervical ventral horn compared to lumbar or bulbar motor neurons",
    "Neurofilament accumulation, TDP-43 proteinopathy, and SOD1 mutations contribute to selective AHC death",
    "The corticospinal tract degeneration is less prominent — explaining relative sparing of legs",
    "Axonal transport failure leads to muscle denervation → atrophy → fasciculations",
    "Progressive spread rostral/caudal is slower than classic ALS — hence better prognosis",
  ], { ref: "Adams & Victor's Principles of Neurology, 12e | Goldman-Cecil Medicine, 2 Vol Set" });
}

// ═══════════════════════════════════════════════════════════════
//  SLIDE 5 — SECTION HEADER: PROXIMAL vs DISTAL
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  sectionHeader(s, "Proximal vs Distal Patterns", "Distribution of weakness in Bibrachial MND");
}

// ═══════════════════════════════════════════════════════════════
//  SLIDE 6 — PROXIMAL vs DISTAL TWO COLUMN
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  twoColSlide(
    s,
    "Proximal vs Distal Involvement in Bibrachial MND",
    "PROXIMAL Pattern",
    [
      "Muscles: Deltoid, supraspinatus, infraspinatus, biceps, triceps, shoulder girdle",
      "Predominant in Flail Arm Syndrome — inability to raise arms above head",
      "Arms hang limply at sides ('dangling arms')",
      "Preserved grip strength initially — hands and forearms spared early",
      "Clinical sign: Man-in-a-barrel posture",
      "Suggests C5-C6 AHC predominant involvement",
      "Compared with ALS: FAS has predilection for PROXIMAL UE muscles without significant leg weakness",
      "Scapular winging may be seen",
    ],
    "DISTAL Pattern",
    [
      "Muscles: Intrinsic hand muscles, thenar, hypothenar, wrist extensors/flexors",
      "Split-hand sign: wasting of thenar + 1st dorsal interosseous with relative hypothenar sparing",
      "Suggests C8–T1 AHC involvement",
      "More typical in classic ALS presentation — distal > proximal",
      "Weakness of grip, pinch, fine finger movements",
      "Progresses to involve forearm muscles",
      "In pure LMN form (PMA): distal hand wasting may predominate",
      "EMG shows active denervation in intrinsic hand muscles earliest",
    ],
    "Adams & Victor's Principles of Neurology, 12e, p.1389 | Frameworks for Internal Medicine | Goldman-Cecil Medicine"
  );
}

// ═══════════════════════════════════════════════════════════════
//  SLIDE 7 — CLINICAL FEATURES
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  sectionHeader(s, "Clinical Features", "Signs & Symptoms of Bibrachial MND");
}

// ═══════════════════════════════════════════════════════════════
//  SLIDE 8 — CLINICAL FEATURES CONTENT
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  contentSlide(s, "Clinical Features of Flail Arm Syndrome (Bibrachial MND)", [
    "ONSET: Insidious, usually after age 45; mean age ~55-65 years; male predominance (9:1)",
    "WEAKNESS: Progressive bilateral proximal arm weakness — inability to raise arms, abduct shoulders",
    "WASTING: Prominent muscle atrophy of upper arms, shoulders, forearms and hands",
    "FASCICULATIONS: Visible spontaneous muscle twitching in affected muscles",
    "TONE: Reduced tone in upper limbs (LMN) — may have subtle hyperreflexia if UMN involved",
    "REFLEXES: Biceps and brachioradialis reflexes lost; finger jerks absent; triceps may be paradoxically brisk (UMN sign)",
    "SENSORY: COMPLETELY NORMAL — no sensory loss (purely motor syndrome)",
    "LEGS: Spared initially; subtle UMN signs may develop later (brisk knee/ankle jerks, extensor plantar)",
    "BULBAR: Usually spared early; dysarthria/dysphagia appear late if disease spreads",
    "RESPIRATORY: Diaphragm may be involved late; FVC monitoring essential",
    "No sphincter involvement; eye movements normal throughout disease course",
  ], { fontSize: 13.5, h: 4.6, ref: "Adams & Victor's Principles of Neurology, 12e | Goldman-Cecil Medicine | Frameworks for Internal Medicine" });
}

// ═══════════════════════════════════════════════════════════════
//  SLIDE 9 — DIFFERENTIAL DIAGNOSIS (SECTION)
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  sectionHeader(s, "Differential Diagnosis", "Conditions mimicking Bibrachial MND / Flail Arm Syndrome");
}

// ═══════════════════════════════════════════════════════════════
//  SLIDE 10 — DD TABLE (part 1)
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  slide = s;
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: "100%", fill: { color: C.offwhite } });
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: 0.65, fill: { color: C.navy } });
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0.65, w: "100%", h: 0.05, fill: { color: C.teal } });
  s.addText("Differential Diagnosis — Part 1: Neurological Mimics", {
    x: 0.25, y: 0.06, w: 9.5, h: 0.55,
    fontSize: 18, bold: true, color: C.white, fontFace: "Calibri", valign: "middle", margin: 0
  });

  const rows = [
    [
      { text: "CONDITION", options: { bold: true, color: C.white, fill: C.navy } },
      { text: "KEY DISTINGUISHING FEATURES", options: { bold: true, color: C.white, fill: C.navy } },
      { text: "SENSORY?", options: { bold: true, color: C.white, fill: C.navy } },
    ],
    [
      { text: "Classic ALS", options: { bold: true } },
      { text: "Mixed UMN + LMN; involves ALL 4 limbs + bulbar; faster progression; distal > proximal in limbs", options: {} },
      { text: "No", options: { color: C.green } },
    ],
    [
      { text: "Progressive Muscular Atrophy (PMA)", options: {} },
      { text: "Pure LMN; no UMN signs; more distal; slower progression; 5-yr survival ~70% if onset <50 yrs", options: {} },
      { text: "No", options: { color: C.green } },
    ],
    [
      { text: "Multifocal Motor Neuropathy (MMN)", options: {} },
      { text: "Asymmetric; conduction block on NCS; anti-GM1 antibodies 50-60%; responds to IVIG", options: {} },
      { text: "No", options: { color: C.green } },
    ],
    [
      { text: "Cervical Myelopathy + Radiculopathy", options: {} },
      { text: "UMN signs in legs; sensory level; MRI shows cord compression; pain common", options: {} },
      { text: "Yes", options: { color: C.red, bold: true } },
    ],
    [
      { text: "Bilateral Watershed Infarct (Man-in-Barrel)", options: {} },
      { text: "Acute onset; bilateral ACA-MCA watershed; legs spared; sensory may be present", options: {} },
      { text: "Possible", options: { color: C.gold } },
    ],
    [
      { text: "Parsonage-Turner / Brachial Neuritis", options: {} },
      { text: "Acute severe pain precedes weakness; unilateral or bilateral; self-limiting; idiopathic/postinfectious", options: {} },
      { text: "Yes", options: { color: C.red, bold: true } },
    ],
    [
      { text: "CIDP", options: {} },
      { text: "Proximal + distal; sensory loss; elevated CSF protein; responds to steroids/IVIG/plasmapheresis", options: {} },
      { text: "Yes", options: { color: C.red, bold: true } },
    ],
  ];

  s.addTable(rows, {
    x: 0.2, y: 0.8, w: 9.6, h: 4.55,
    colW: [2.2, 5.8, 1.5],
    border: { pt: 1, color: C.light },
    fill: C.white,
    fontFace: "Calibri",
    fontSize: 11,
    color: C.darkgray,
    align: "left",
    valign: "middle",
    rowH: 0.52,
  });
  s.addText("DD Sources: Bradley & Daroff's Neurology | Goldman-Cecil Medicine Table 387-3 | Adams & Victor, 12e", {
    x: 0.3, y: 5.35, w: 9.4, h: 0.22, fontSize: 8.5, color: C.gray, fontFace: "Calibri", italic: true
  });
}

// ═══════════════════════════════════════════════════════════════
//  SLIDE 11 — DD TABLE (part 2)
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: "100%", fill: { color: C.offwhite } });
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: 0.65, fill: { color: C.navy } });
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0.65, w: "100%", h: 0.05, fill: { color: C.teal } });
  s.addText("Differential Diagnosis — Part 2: Myopathic & Systemic Mimics", {
    x: 0.25, y: 0.06, w: 9.5, h: 0.55,
    fontSize: 18, bold: true, color: C.white, fontFace: "Calibri", valign: "middle", margin: 0
  });

  const rows2 = [
    [
      { text: "CONDITION", options: { bold: true, color: C.white, fill: C.teal } },
      { text: "KEY DISTINGUISHING FEATURES", options: { bold: true, color: C.white, fill: C.teal } },
      { text: "SENSORY?", options: { bold: true, color: C.white, fill: C.teal } },
    ],
    [
      { text: "Inclusion Body Myositis (IBM)", options: {} },
      { text: "Finger flexor + quadriceps wasting; CK elevated; muscle biopsy shows rimmed vacuoles; no fasciculations", options: {} },
      { text: "No", options: { color: C.green } },
    ],
    [
      { text: "Facioscapulohumeral Dystrophy", options: {} },
      { text: "Face + shoulder girdle weakness; family history; CK mildly elevated; gene deletion chromosome 4q35", options: {} },
      { text: "No", options: { color: C.green } },
    ],
    [
      { text: "Kennedy Disease (SBMA)", options: {} },
      { text: "X-linked; gynecomastia; perioral fasciculations; sensory involvement on NCS; CAG repeat (AR gene)", options: {} },
      { text: "Yes (NCS)", options: { color: C.red } },
    ],
    [
      { text: "Polymyositis", options: {} },
      { text: "Proximal weakness; elevated CK; muscle tenderness; responds to steroids; EMG myopathic pattern", options: {} },
      { text: "No", options: { color: C.green } },
    ],
    [
      { text: "Paraneoplastic Motor Neuropathy", options: {} },
      { text: "Underlying malignancy; may have sensory component; anti-neuronal antibodies (anti-Hu, etc.)", options: {} },
      { text: "Possible", options: { color: C.gold } },
    ],
    [
      { text: "Amyloid Neuropathy", options: {} },
      { text: "Systemic features; sensory + autonomic dysfunction; monoclonal protein; nerve biopsy", options: {} },
      { text: "Yes", options: { color: C.red, bold: true } },
    ],
    [
      { text: "Post-Polio Syndrome", options: {} },
      { text: "History of childhood polio; late-onset fatigue + new weakness; no active denervation on EMG", options: {} },
      { text: "No", options: { color: C.green } },
    ],
  ];

  s.addTable(rows2, {
    x: 0.2, y: 0.8, w: 9.6, h: 4.55,
    colW: [2.2, 5.8, 1.5],
    border: { pt: 1, color: C.light },
    fill: C.white,
    fontFace: "Calibri",
    fontSize: 11,
    color: C.darkgray,
    align: "left",
    valign: "middle",
    rowH: 0.52,
  });
  s.addText("DD Sources: Bradley & Daroff's Neurology | Goldman-Cecil Medicine Table 387-3 | Adams & Victor, 12e", {
    x: 0.3, y: 5.35, w: 9.4, h: 0.22, fontSize: 8.5, color: C.gray, fontFace: "Calibri", italic: true
  });
}

// ═══════════════════════════════════════════════════════════════
//  SLIDE 12 — INVESTIGATIONS (SECTION)
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  sectionHeader(s, "Investigations", "Diagnostic Workup for Bibrachial MND");
}

// ═══════════════════════════════════════════════════════════════
//  SLIDE 13 — INVESTIGATIONS CONTENT
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  contentSlide(s, "Investigations in Bibrachial MND / Flail Arm Syndrome", [
    "ELECTROMYOGRAPHY (EMG) — CORNERSTONE OF DIAGNOSIS:",
    "  Active denervation: fibrillation potentials, positive sharp waves in cervical myotomes",
    "  Fasciculation potentials — pathological in context of weakness",
    "  Chronic reinnervation: large amplitude, long duration, polyphasic motor units",
    "  Awaji-Shima criteria: LMN signs in ≥2 muscles (different roots/nerves) in cervical region",
    "NERVE CONDUCTION STUDIES (NCS):",
    "  Motor conduction velocities — usually normal (axonal loss pattern)",
    "  Sensory nerve action potentials (SNAPs) — NORMAL (key to distinguish from MMN/CIDP)",
    "  No conduction block (rules out MMN)",
    "MRI BRAIN & CERVICAL SPINE:",
    "  Rule out structural causes (disc disease, cord compression, syrinx)",
    "  MRI brain: may show T2 hyperintensity of corticospinal tract in ALS",
  ], { fontSize: 13.5, ref: "Goldman-Cecil Medicine | Adams & Victor, 12e | Awaji-Shima Criteria" });
}

// ═══════════════════════════════════════════════════════════════
//  SLIDE 14 — INVESTIGATIONS (BLOOD TESTS)
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  twoColSlide(
    s,
    "Investigations — Blood Tests & Ancillary Studies",
    "BLOOD TESTS",
    [
      "FBC, serum electrolytes, calcium",
      "Thyroid function (TFTs) — rule out thyrotoxic myopathy",
      "CK level: mildly elevated in MND (but not as high as myopathy)",
      "Serum protein electrophoresis (paraprotein?)",
      "Anti-GM1 ganglioside antibodies — exclude MMN",
      "Anti-MAG antibodies — paraprotein neuropathy",
      "ESR, CRP — inflammatory causes",
      "Acetylcholine receptor Abs — rule out MG",
      "Hexosaminidase A/B — adult Tay-Sachs",
      "HIV serology",
      "Heavy metal screen (lead), urinary porphyrins",
      "Genetic testing: SOD1, C9ORF72 if familial",
    ],
    "ANCILLARY INVESTIGATIONS",
    [
      "CSF analysis: protein (elevated in CIDP, normal in ALS)",
      "Pulmonary Function Tests (FVC): baseline respiratory assessment — vital for management",
      "Muscle biopsy: only if diagnostic uncertainty; shows neurogenic atrophy in ALS",
      "Nerve biopsy: not routinely needed; consider if amyloid/vasculitis suspected",
      "Kennedy disease: CAG repeat expansion in androgen receptor gene (if gynecomastia, XL family hx)",
      "PET/CT or body CT: rule out paraneoplastic syndrome if anti-neuronal Abs positive",
      "Neurofilament light chain (NfL): elevated in ALS — promising biomarker (CSF and plasma)",
    ],
    "Goldman-Cecil Medicine | Adams & Victor, 12e | Bradley & Daroff's Neurology in Clinical Practice"
  );
}

// ═══════════════════════════════════════════════════════════════
//  SLIDE 15 — DIAGNOSTIC CRITERIA
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  contentSlide(s, "Diagnostic Criteria — Awaji-Shima Consensus (Revised El Escorial)", [
    "DIAGNOSIS OF ALS REQUIRES (all 3):",
    "  1. Evidence of LOWER MOTOR NEURON (LMN) degeneration — clinical or electrophysiologic",
    "  2. Evidence of UPPER MOTOR NEURON (UMN) degeneration — clinical examination",
    "  3. Progressive spread of symptoms/signs within or across body regions",
    "REGIONS: Bulbar | Cervical | Thoracic | Lumbosacral",
    "CLINICALLY DEFINITE ALS: LMN + UMN signs in bulbar + ≥2 spinal regions, OR LMN + UMN in ≥3 spinal regions",
    "CLINICALLY PROBABLE ALS: LMN + UMN in ≥2 regions, with UMN signs rostral to LMN",
    "CLINICALLY POSSIBLE ALS: UMN + LMN signs in only 1 region, or UMN signs alone in ≥2 regions",
    "IN FLAIL ARM SYNDROME: LMN signs predominant in cervical region; UMN signs subtle/absent early",
    "KEY EXCLUSIONS: Sensory loss, sphincter dysfunction, autonomic failure, visual impairment, cognitive decline (early)",
  ], { fontSize: 13.5, ref: "Awaji-Shima Consensus Criteria | Goldman-Cecil Medicine Table 387-2 | Adams & Victor, 12e" });
}

// ═══════════════════════════════════════════════════════════════
//  SLIDE 16 — PROGNOSIS & MANAGEMENT
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  contentSlide(s, "Prognosis & Management Overview", [
    "PROGNOSIS (Flail Arm Syndrome vs Classic ALS):",
    "  FAS: Longer median survival than typical ALS (median ~4-5 years vs ~2-3 years)",
    "  Slower progression; late spread to legs or bulbar region",
    "  FAS males even more male-predominant than classic ALS",
    "DISEASE-MODIFYING THERAPY:",
    "  Riluzole: modestly extends survival; inhibits glutamate excitotoxicity — standard therapy",
    "  Edaravone: anti-oxidant; approved for early-stage ALS",
    "MULTIDISCIPLINARY CARE (ALS specialist centres):",
    "  Neurologist, respiratory therapist, physiotherapist, OT, speech-language therapist, dietitian",
    "  PEG (gastrostomy) for dysphagia when weight loss >10% or swallowing unsafe",
    "  Non-invasive ventilation (NIV/BiPAP): when FVC <50%, or symptoms of nocturnal hypoventilation",
    "  Communication aids, orthotics (wrist splints, arm supports)",
    "Palliative care planning early in the course",
  ], { fontSize: 13, ref: "Goldman-Cecil Medicine | Adams & Victor, 12e | Bradley & Daroff Neurology in Clinical Practice" });
}

// ═══════════════════════════════════════════════════════════════
//  SLIDE 17 — SUMMARY
// ═══════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: "100%", fill: { color: C.navy } });
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: "100%", h: 0.7, fill: { color: C.teal } });
  s.addText("Summary: Bibrachial MND (Flail Arm Syndrome)", {
    x: 0.25, y: 0.08, w: 9.5, h: 0.55,
    fontSize: 20, bold: true, color: C.white, fontFace: "Calibri", valign: "middle", margin: 0
  });

  const bullets = [
    { text: "DEFINITION: Segmental ALS variant — bilateral upper limb LMN > UMN involvement; male-predominant; better prognosis than classic ALS", options: { bullet: true, color: C.white, fontSize: 14, breakLine: true } },
    { text: "PROXIMAL: Deltoid/shoulder girdle weakness — arms dangle ('man-in-barrel'); suggests C5-C6 AHC", options: { bullet: true, color: C.gold, fontSize: 14, breakLine: true } },
    { text: "DISTAL: Intrinsic hand/thenar wasting — split-hand sign; suggests C8-T1 AHC; typical in classic ALS", options: { bullet: true, color: C.gold, fontSize: 14, breakLine: true } },
    { text: "CLINICAL CLUE: Bilateral arm weakness + fasciculations + NORMAL SENSATION = think bibrachial MND", options: { bullet: true, color: C.light, fontSize: 14, breakLine: true } },
    { text: "KEY DD: MMN (conduction block, GM1 Ab), CIDP (sensory, elevated CSF protein), Cervical myelopathy (sensory level, MRI), Kennedy disease (gynecomastia, CAG repeat)", options: { bullet: true, color: C.white, fontSize: 13.5, breakLine: true } },
    { text: "INVESTIGATIONS: EMG (denervation + reinnervation) + NCS (normal SNAPs, no conduction block) + MRI spine + Blood screen", options: { bullet: true, color: C.light, fontSize: 14, breakLine: true } },
    { text: "CRITERIA: Awaji-Shima / Revised El Escorial for ALS diagnosis", options: { bullet: true, color: C.white, fontSize: 14, breakLine: true } },
    { text: "MANAGEMENT: Riluzole, MDT, NIV, PEG, palliative care", options: { bullet: true, color: C.gold, fontSize: 14, breakLine: false } },
  ];
  s.addText(bullets, { x: 0.4, y: 0.82, w: 9.2, h: 4.55, fontFace: "Calibri", valign: "top" });

  s.addText("References: Adams & Victor's Principles of Neurology 12e | Bradley & Daroff's Neurology in Clinical Practice | Goldman-Cecil Medicine | Frameworks for Internal Medicine", {
    x: 0.3, y: 5.32, w: 9.4, h: 0.25, fontSize: 8, color: C.gray, fontFace: "Calibri", italic: true
  });
}

// ─── WRITE FILE ─────────────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/bibrachial-mnd-ppt/Bibrachial_MND_Flail_Arm_Syndrome.pptx" })
  .then(() => console.log("SUCCESS: PPT created"))
  .catch(e => { console.error("ERROR:", e); process.exit(1); });
Running Command

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

Running Command

ls -lh /home/daytona/workspace/bibrachial-mnd-ppt/

Your presentation is ready! Download it here:

Bibrachial MND Flail Arm Syndrome

Presentation · PPTX


What's inside the PPT (17 slides)

The presentation uses a professional navy/teal/gold color scheme. Here is a breakdown of each section:
Slide 1 - Title Slide Bibrachial MND / Flail Arm Syndrome with source attribution (Adams & Victor, Bradley & Daroff, Goldman-Cecil)
Slides 2 - Definition
  • ALS segmental variant, ~5-10% of ALS cases
  • Strong male predominance (M:F ~9:1)
  • Better prognosis than classic ALS
  • Selective C5-T1 anterior horn cell degeneration
Slides 3-4 - Pathophysiology
  • Selective LMN degeneration in cervical cord (C5-T1)
  • TDP-43 proteinopathy, SOD1 mutations, neurofilament accumulation
  • Why legs and bulbar are relatively spared
  • Why prognosis is better than classic ALS
Slides 5-6 - Proximal vs Distal Patterns (two-column)
  • PROXIMAL: Deltoid/shoulder girdle - C5-C6 AHC - "dangling arms" - man-in-barrel posture - hands preserved early
  • DISTAL: Intrinsic hand muscles - C8-T1 AHC - split-hand sign - grip weakness - more typical of classic ALS
Slides 7-8 - Clinical Features
  • Onset, weakness, wasting, fasciculations
  • Reflexes: biceps/brachioradialis lost; paradoxically brisk triceps (UMN)
  • Normal sensation throughout - key differentiating point
  • Respiratory monitoring (FVC)
Slides 9-11 - Differential Diagnosis (two DD tables)
  • Neurological: Classic ALS, PMA, MMN, Cervical myelopathy, Watershed infarct, Brachial neuritis, CIDP
  • Myopathic/Systemic: IBM, FSHD, Kennedy disease, Polymyositis, Paraneoplastic, Amyloid, Post-polio
Slides 12-14 - Investigations
  • EMG (cornerstone): denervation + reinnervation in cervical myotomes
  • NCS: normal SNAPs, no conduction block
  • MRI brain + cervical spine
  • Blood tests: CK, GM1 Ab, anti-MAG, thyroid, serum protein electrophoresis, HIV, genetic testing
  • CSF, PFTs, NfL (emerging biomarker)
Slide 15 - Awaji-Shima Diagnostic Criteria
  • Definite / Probable / Possible ALS classification
Slide 16 - Prognosis & Management
  • Riluzole, edaravone, MDT care, NIV, PEG, palliative care
Slide 17 - Summary Slide (dark background, all key take-home points)

All content is referenced from Adams & Victor's Principles of Neurology 12e, Bradley & Daroff's Neurology in Clinical Practice, and Goldman-Cecil Medicine - the closest available to Archibald's clinical neurology framework in the library.

notable to download ppt

Running Command

ls -lh /home/daytona/workspace/bibrachial-mnd-ppt/ && file /home/daytona/workspa…

Running Command

cp /home/daytona/workspace/bibrachial-mnd-ppt/Bibrachial_MND_Flail_Arm_Syndrome.…

The file is confirmed valid (296 KB, proper ZIP/PPTX format). Try these two direct links — one or the other should work depending on your browser/device:
Option 1:

BibrachialMND

Presentation · PPTX

Option 2:

Bibrachial MND Flail Arm Syndrome

Presentation · PPTX


If the links still don't work, try these steps:
  1. Right-click the link and select "Save link as..." or "Download linked file"
  2. On mobile - tap and hold the link, then choose download
  3. Check your browser - some browsers block downloads from sandboxed environments; try Chrome or Firefox
  4. Pop-up blocker - disable it temporarily and retry the link
If none of the above works, let me know and I can:
  • Convert it to a PDF instead (usually easier to download)
  • Export it as a ZIP file
  • Share the slide content as a formatted document
This is a shared conversation. Sign in to Orris to start your own chat.