Make a ppt on Coagulation cascade from Harrisons medicine,ppt should also have a diagram of the pathway its significance its inhibitors,ppt should not be more than 6 slides

Reading File
Reading File
Reading File
Finding Sources
Reading File
Finding Sources
Finding Sources
Reading File
Finding Sources
Finding Sources
Loading Image
Finding Sources
Finding Sources
Reading File
Reading File
Reading File
Running Command

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

Running Command

mkdir -p /home/daytona/workspace/coagulation-ppt

Writing File

~/coagulation-ppt/build.js

const pptxgen = require("pptxgenjs");
const { execSync } = require("child_process");

// Fetch the Harrison's coagulation cascade diagram
const imgUrl = "https://cdn.orris.care/cdss_images/60f20223c9b13fda16865797b9603b01b3bc0801dc92d4fb35c0e29c134d0a90.png";
let diagBase64 = null;
try {
  const result = execSync(
    `node /home/daytona/skills/shared/scripts/fetch_images.js "${imgUrl}"`
  ).toString();
  const imgs = JSON.parse(result);
  if (imgs[0] && imgs[0].base64) diagBase64 = imgs[0].base64;
} catch (e) {
  console.error("Image fetch failed:", e.message);
}

const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Coagulation Cascade";
pres.author = "Harrison's Principles of Internal Medicine 22E";

// ─── THEME COLORS ───────────────────────────────────────────────────────────
const DARK_BG   = "0D1B2A";   // deep navy
const MID_BG    = "1A2E45";   // medium navy
const ACCENT    = "C8412D";   // Harrison's red
const ACCENT2   = "E8734A";   // warm orange
const GOLD      = "F0B429";   // gold highlight
const LIGHT_TXT = "FFFFFF";
const BODY_TXT  = "D6E4F0";
const MUTED     = "8BA8C2";
const CARD_BG   = "162336";
const CARD_BDR  = "2A4A6A";

// ─── HELPER: dark slide background ──────────────────────────────────────────
function darkSlide(pres) {
  const sl = pres.addSlide();
  sl.background = { color: DARK_BG };
  return sl;
}

// ─── HELPER: section pill label ─────────────────────────────────────────────
function addPill(sl, label, x, y, w = 2.5) {
  sl.addShape(pres.ShapeType.roundRect, {
    x, y, w, h: 0.32,
    fill: { color: ACCENT },
    line: { color: ACCENT, width: 0 },
    rectRadius: 0.12,
  });
  sl.addText(label.toUpperCase(), {
    x, y, w, h: 0.32,
    fontSize: 8, bold: true, color: LIGHT_TXT,
    align: "center", valign: "middle", charSpacing: 2,
  });
}

// ─── HELPER: card box ────────────────────────────────────────────────────────
function addCard(sl, x, y, w, h) {
  sl.addShape(pres.ShapeType.roundRect, {
    x, y, w, h,
    fill: { color: CARD_BG },
    line: { color: CARD_BDR, width: 1 },
    rectRadius: 0.1,
  });
}

// ════════════════════════════════════════════════════════════════════════════
//  SLIDE 1 – TITLE
// ════════════════════════════════════════════════════════════════════════════
{
  const sl = pres.addSlide();
  sl.background = { color: DARK_BG };

  // Accent stripe left
  sl.addShape(pres.ShapeType.rect, {
    x: 0, y: 0, w: 0.18, h: 5.625,
    fill: { color: ACCENT }, line: { color: ACCENT, width: 0 },
  });

  // Large background circle (decorative)
  sl.addShape(pres.ShapeType.ellipse, {
    x: 7.2, y: -1.2, w: 4.5, h: 4.5,
    fill: { color: MID_BG }, line: { color: MID_BG, width: 0 },
  });

  // Source pill
  addPill(sl, "Harrison's Principles of Internal Medicine 22E", 0.35, 1.0, 5.2);

  // Main title
  sl.addText("Coagulation Cascade", {
    x: 0.35, y: 1.5, w: 8.8, h: 1.5,
    fontSize: 46, bold: true, color: LIGHT_TXT,
    fontFace: "Calibri",
  });

  // Subtitle
  sl.addText("Pathway · Significance · Inhibitors", {
    x: 0.35, y: 3.1, w: 7, h: 0.5,
    fontSize: 20, color: GOLD, italic: true, fontFace: "Calibri",
  });

  // Bottom decorative line
  sl.addShape(pres.ShapeType.rect, {
    x: 0.35, y: 3.75, w: 4.5, h: 0.04,
    fill: { color: ACCENT2 }, line: { color: ACCENT2, width: 0 },
  });

  // Quote
  sl.addText(
    '"Coagulation is the formation of fibrin by a series of linked enzymatic\nreactions in which each reaction product converts the subsequent inactive\nzymogen into an active serine protease."',
    {
      x: 0.35, y: 3.95, w: 9.3, h: 1.0,
      fontSize: 10, color: MUTED, italic: true, fontFace: "Calibri",
    }
  );
}

// ════════════════════════════════════════════════════════════════════════════
//  SLIDE 2 – OVERVIEW & SIGNIFICANCE
// ════════════════════════════════════════════════════════════════════════════
{
  const sl = darkSlide(pres);

  // Header bar
  sl.addShape(pres.ShapeType.rect, {
    x: 0, y: 0, w: 10, h: 0.7,
    fill: { color: MID_BG }, line: { color: MID_BG, width: 0 },
  });
  sl.addShape(pres.ShapeType.rect, {
    x: 0, y: 0, w: 0.18, h: 5.625,
    fill: { color: ACCENT }, line: { color: ACCENT, width: 0 },
  });
  sl.addText("OVERVIEW & CLINICAL SIGNIFICANCE", {
    x: 0.35, y: 0.08, w: 9.3, h: 0.55,
    fontSize: 18, bold: true, color: LIGHT_TXT, fontFace: "Calibri",
  });

  // Left column – overview text
  addCard(sl, 0.35, 0.85, 4.5, 2.0);
  sl.addText("What is the Coagulation Cascade?", {
    x: 0.5, y: 0.9, w: 4.2, h: 0.38,
    fontSize: 12, bold: true, color: GOLD, fontFace: "Calibri",
  });
  sl.addText([
    { text: "• ", options: { color: ACCENT2 } },
    { text: "A coordinated sequence of linked enzymatic reactions\n", options: { color: BODY_TXT } },
    { text: "• ", options: { color: ACCENT2 } },
    { text: "Each inactive zymogen is converted to an active serine protease\n", options: { color: BODY_TXT } },
    { text: "• ", options: { color: ACCENT2 } },
    { text: "Endpoint: Conversion of fibrinogen → insoluble fibrin\n", options: { color: BODY_TXT } },
    { text: "• ", options: { color: ACCENT2 } },
    { text: "Primarily initiated by vascular injury exposing Tissue Factor (TF)", options: { color: BODY_TXT } },
  ], {
    x: 0.5, y: 1.3, w: 4.2, h: 1.5,
    fontSize: 10, fontFace: "Calibri",
  });

  // Right column – significance
  addCard(sl, 5.0, 0.85, 4.65, 2.0);
  sl.addText("Key Functions", {
    x: 5.15, y: 0.9, w: 4.3, h: 0.38,
    fontSize: 12, bold: true, color: GOLD, fontFace: "Calibri",
  });
  sl.addText([
    { text: "• ", options: { color: ACCENT2 } },
    { text: "Hemostasis: ", options: { bold: true, color: LIGHT_TXT } },
    { text: "stops bleeding at sites of vascular injury\n", options: { color: BODY_TXT } },
    { text: "• ", options: { color: ACCENT2 } },
    { text: "Amplification: ", options: { bold: true, color: LIGHT_TXT } },
    { text: "small stimulus → large fibrin output\n", options: { color: BODY_TXT } },
    { text: "• ", options: { color: ACCENT2 } },
    { text: "Thrombus formation: ", options: { bold: true, color: LIGHT_TXT } },
    { text: "platelet plug stabilization\n", options: { color: BODY_TXT } },
    { text: "• ", options: { color: ACCENT2 } },
    { text: "Clot crosslinking: ", options: { bold: true, color: LIGHT_TXT } },
    { text: "FXIIIa transglutaminase covalently stabilizes fibrin", options: { color: BODY_TXT } },
  ], {
    x: 5.15, y: 1.3, w: 4.35, h: 1.5,
    fontSize: 10, fontFace: "Calibri",
  });

  // Bottom row – two more significance cards
  addCard(sl, 0.35, 2.98, 2.9, 1.6);
  sl.addText("Venous Thrombosis", {
    x: 0.5, y: 3.03, w: 2.6, h: 0.35,
    fontSize: 11, bold: true, color: ACCENT2, fontFace: "Calibri",
  });
  sl.addText(
    "Stasis or hypercoagulability triggers TF exposure, thrombin formation, and fibrin deposition – the primary mechanism behind DVT and PE.",
    {
      x: 0.5, y: 3.4, w: 2.6, h: 1.1,
      fontSize: 9.5, color: BODY_TXT, fontFace: "Calibri",
    }
  );

  addCard(sl, 3.4, 2.98, 2.9, 1.6);
  sl.addText("Arterial Thrombosis", {
    x: 3.55, y: 3.03, w: 2.6, h: 0.35,
    fontSize: 11, bold: true, color: ACCENT2, fontFace: "Calibri",
  });
  sl.addText(
    "Platelet adhesion to injured vessel wall + thrombin generation drive clot formation in arteries; overlap with venous mechanisms exists.",
    {
      x: 3.55, y: 3.4, w: 2.6, h: 1.1,
      fontSize: 9.5, color: BODY_TXT, fontFace: "Calibri",
    }
  );

  addCard(sl, 6.45, 2.98, 3.2, 1.6);
  sl.addText("Inflammation & New Research", {
    x: 6.6, y: 3.03, w: 2.9, h: 0.35,
    fontSize: 11, bold: true, color: ACCENT2, fontFace: "Calibri",
  });
  sl.addText(
    "Procoagulant microparticles, inflammatory cells, microvesicles, and fibrin structure all modulate cascade activity beyond classical factors.",
    {
      x: 6.6, y: 3.4, w: 2.9, h: 1.1,
      fontSize: 9.5, color: BODY_TXT, fontFace: "Calibri",
    }
  );
}

// ════════════════════════════════════════════════════════════════════════════
//  SLIDE 3 – COAGULATION CASCADE DIAGRAM (Harrison's Fig. 122-2)
// ════════════════════════════════════════════════════════════════════════════
{
  const sl = darkSlide(pres);

  // Header
  sl.addShape(pres.ShapeType.rect, {
    x: 0, y: 0, w: 10, h: 0.7,
    fill: { color: MID_BG }, line: { color: MID_BG, width: 0 },
  });
  sl.addShape(pres.ShapeType.rect, {
    x: 0, y: 0, w: 0.18, h: 5.625,
    fill: { color: ACCENT }, line: { color: ACCENT, width: 0 },
  });
  sl.addText("COAGULATION CASCADE DIAGRAM", {
    x: 0.35, y: 0.08, w: 9.3, h: 0.55,
    fontSize: 18, bold: true, color: LIGHT_TXT, fontFace: "Calibri",
  });
  sl.addText("Harrison's Principles of Internal Medicine 22E • Fig. 122-2", {
    x: 0.35, y: 0.62, w: 9.3, h: 0.3,
    fontSize: 8.5, color: MUTED, fontFace: "Calibri", italic: true,
  });

  // Diagram image
  if (diagBase64) {
    sl.addImage({
      data: diagBase64,
      x: 0.5, y: 0.95, w: 6.0, h: 4.4,
    });
  }

  // Caption / legend panel on the right
  addCard(sl, 6.7, 0.95, 3.1, 4.4);
  sl.addText("Key Steps", {
    x: 6.85, y: 1.0, w: 2.8, h: 0.35,
    fontSize: 11, bold: true, color: GOLD, fontFace: "Calibri",
  });

  const steps = [
    ["Extrinsic", "VII + TF → VIIa/TF → FXa"],
    ["Intrinsic", "XII→XIa→IXa + VIIIa → FXa"],
    ["Common", "FXa + FVa → Thrombin"],
    ["Final", "Thrombin → Fibrin (+ FXIIIa crosslinks)"],
    ["Amplification", "Thrombin activates V, VIII, XI, XIII"],
    ["Platelets", "Thrombin activates & aggregates platelets"],
  ];
  let yy = 1.42;
  steps.forEach(([lbl, desc]) => {
    sl.addShape(pres.ShapeType.rect, {
      x: 6.85, y: yy, w: 0.06, h: 0.42,
      fill: { color: ACCENT }, line: { color: ACCENT, width: 0 },
    });
    sl.addText(lbl, {
      x: 6.97, y: yy, w: 2.7, h: 0.22,
      fontSize: 9, bold: true, color: ACCENT2, fontFace: "Calibri",
    });
    sl.addText(desc, {
      x: 6.97, y: yy + 0.21, w: 2.7, h: 0.22,
      fontSize: 8.5, color: BODY_TXT, fontFace: "Calibri",
    });
    yy += 0.52;
  });

  // Abbreviations
  sl.addText("TF: Tissue Factor  |  PL: Phospholipid  |  PK: Prekallikrein  |  HK: High-mol-wt Kininogen", {
    x: 0.5, y: 5.28, w: 9.0, h: 0.2,
    fontSize: 7.5, color: MUTED, fontFace: "Calibri",
  });
}

// ════════════════════════════════════════════════════════════════════════════
//  SLIDE 4 – STEP-BY-STEP PATHWAY
// ════════════════════════════════════════════════════════════════════════════
{
  const sl = darkSlide(pres);

  sl.addShape(pres.ShapeType.rect, {
    x: 0, y: 0, w: 10, h: 0.7,
    fill: { color: MID_BG }, line: { color: MID_BG, width: 0 },
  });
  sl.addShape(pres.ShapeType.rect, {
    x: 0, y: 0, w: 0.18, h: 5.625,
    fill: { color: ACCENT }, line: { color: ACCENT, width: 0 },
  });
  sl.addText("STEP-BY-STEP PATHWAY", {
    x: 0.35, y: 0.08, w: 9.3, h: 0.55,
    fontSize: 18, bold: true, color: LIGHT_TXT, fontFace: "Calibri",
  });

  // Three pathway columns
  const cols = [
    {
      title: "Extrinsic Pathway",
      color: ACCENT,
      x: 0.35,
      steps: [
        "Vascular injury exposes Tissue Factor (TF)",
        "Plasma FVII binds TF → activated FVIIa",
        "VIIa/TF complex converts FX → FXa",
        "VIIa/TF also converts FIX → FIXa",
      ],
    },
    {
      title: "Intrinsic Pathway",
      color: GOLD,
      x: 3.6,
      steps: [
        "Contact activation: FXII, prekallikrein, HK",
        "XII → XIIa → XI → XIa",
        "Thrombin activates FXI → FXIa",
        "FIXa + FVIIIa (tenase complex) → FXa",
      ],
    },
    {
      title: "Common Pathway",
      color: ACCENT2,
      x: 6.85,
      steps: [
        "FXa + FVa (prothrombinase complex)",
        "Prothrombin → Thrombin",
        "Thrombin converts Fibrinogen → Fibrin",
        "FXIIIa crosslinks & stabilizes fibrin clot",
      ],
    },
  ];

  cols.forEach((col) => {
    // Column header
    sl.addShape(pres.ShapeType.roundRect, {
      x: col.x, y: 0.78, w: 3.1, h: 0.42,
      fill: { color: col.color }, line: { color: col.color, width: 0 },
      rectRadius: 0.08,
    });
    sl.addText(col.title, {
      x: col.x, y: 0.78, w: 3.1, h: 0.42,
      fontSize: 11, bold: true, color: DARK_BG, align: "center", valign: "middle",
      fontFace: "Calibri",
    });

    col.steps.forEach((step, i) => {
      const sy = 1.3 + i * 0.98;
      addCard(sl, col.x, sy, 3.1, 0.88);
      // Step number badge
      sl.addShape(pres.ShapeType.ellipse, {
        x: col.x + 0.08, y: sy + 0.2, w: 0.38, h: 0.38,
        fill: { color: col.color }, line: { color: col.color, width: 0 },
      });
      sl.addText(String(i + 1), {
        x: col.x + 0.08, y: sy + 0.2, w: 0.38, h: 0.38,
        fontSize: 10, bold: true, color: DARK_BG, align: "center", valign: "middle",
        fontFace: "Calibri",
      });
      sl.addText(step, {
        x: col.x + 0.54, y: sy + 0.1, w: 2.48, h: 0.7,
        fontSize: 9.5, color: BODY_TXT, fontFace: "Calibri", valign: "middle",
      });
    });
  });
}

// ════════════════════════════════════════════════════════════════════════════
//  SLIDE 5 – INHIBITORS OF COAGULATION
// ════════════════════════════════════════════════════════════════════════════
{
  const sl = darkSlide(pres);

  sl.addShape(pres.ShapeType.rect, {
    x: 0, y: 0, w: 10, h: 0.7,
    fill: { color: MID_BG }, line: { color: MID_BG, width: 0 },
  });
  sl.addShape(pres.ShapeType.rect, {
    x: 0, y: 0, w: 0.18, h: 5.625,
    fill: { color: ACCENT }, line: { color: ACCENT, width: 0 },
  });
  sl.addText("NATURAL INHIBITORS OF COAGULATION", {
    x: 0.35, y: 0.08, w: 9.3, h: 0.55,
    fontSize: 18, bold: true, color: LIGHT_TXT, fontFace: "Calibri",
  });

  const inhibitors = [
    {
      name: "Antithrombin (AT)",
      color: "1E5F8C",
      target: "Inhibits thrombin, FXa, FIXa, FXIa",
      detail: "Serine protease inhibitor; activity markedly enhanced by heparin. Deficiency → 20× thrombosis risk.",
    },
    {
      name: "Tissue Factor Pathway Inhibitor (TFPI)",
      color: "1B6B4A",
      target: "Inhibits FXa and VIIa/TF complex",
      detail: "Shuts down the extrinsic pathway after initial activation; low TFPI levels → increased VTE risk.",
    },
    {
      name: "Protein C / Protein S",
      color: "6B3A1B",
      target: "Inactivates FVa and FVIIIa",
      detail: "Activated Protein C (with Protein S cofactor) proteolytically degrades FVa & FVIIIa. Deficiency or Factor V Leiden mutation → thrombophilia.",
    },
    {
      name: "Heparin Cofactor II",
      color: "4A1B6B",
      target: "Inhibits thrombin (dermatan sulfate–dependent)",
      detail: "Secondary inhibitor of thrombin; requires dermatan sulfate or heparin as cofactor.",
    },
    {
      name: "Thrombomodulin / Thrombin",
      color: "6B5A1B",
      target: "Thrombomodulin binds thrombin → activates Protein C",
      detail: "Endothelial surface receptor; converts thrombin from procoagulant to anticoagulant by activating Protein C.",
    },
    {
      name: "TAFI (Thrombin-Activatable Fibrinolysis Inhibitor)",
      color: "1B3A6B",
      target: "Limits fibrinolysis",
      detail: "Carboxypeptidase that regulates clot dissolution. Elevated TAFI → ↑ risk of DVT & cardiovascular disease.",
    },
  ];

  const cols2 = [inhibitors.slice(0, 3), inhibitors.slice(3, 6)];
  cols2.forEach((group, ci) => {
    const cx = ci === 0 ? 0.35 : 5.2;
    group.forEach((inh, ri) => {
      const ry = 0.82 + ri * 1.55;
      addCard(sl, cx, ry, 4.7, 1.42);
      // Colored left bar
      sl.addShape(pres.ShapeType.rect, {
        x: cx + 0.04, y: ry + 0.04, w: 0.12, h: 1.3,
        fill: { color: inh.color }, line: { color: inh.color, width: 0 },
      });
      sl.addText(inh.name, {
        x: cx + 0.22, y: ry + 0.07, w: 4.38, h: 0.3,
        fontSize: 10.5, bold: true, color: GOLD, fontFace: "Calibri",
      });
      sl.addText("Target: " + inh.target, {
        x: cx + 0.22, y: ry + 0.38, w: 4.38, h: 0.28,
        fontSize: 9, color: ACCENT2, fontFace: "Calibri", italic: true,
      });
      sl.addText(inh.detail, {
        x: cx + 0.22, y: ry + 0.68, w: 4.38, h: 0.65,
        fontSize: 9, color: BODY_TXT, fontFace: "Calibri",
      });
    });
  });
}

// ════════════════════════════════════════════════════════════════════════════
//  SLIDE 6 – CLINICAL PEARLS & SUMMARY
// ════════════════════════════════════════════════════════════════════════════
{
  const sl = darkSlide(pres);

  sl.addShape(pres.ShapeType.rect, {
    x: 0, y: 0, w: 10, h: 0.7,
    fill: { color: MID_BG }, line: { color: MID_BG, width: 0 },
  });
  sl.addShape(pres.ShapeType.rect, {
    x: 0, y: 0, w: 0.18, h: 5.625,
    fill: { color: ACCENT }, line: { color: ACCENT, width: 0 },
  });
  sl.addText("CLINICAL PEARLS & SUMMARY", {
    x: 0.35, y: 0.08, w: 9.3, h: 0.55,
    fontSize: 18, bold: true, color: LIGHT_TXT, fontFace: "Calibri",
  });

  // Left column: clinical pearls
  addCard(sl, 0.35, 0.82, 4.65, 4.55);
  sl.addText("Clinical Pearls", {
    x: 0.55, y: 0.9, w: 4.25, h: 0.38,
    fontSize: 13, bold: true, color: GOLD, fontFace: "Calibri",
  });

  const pearls = [
    ["Factor V Leiden", "Mutant FV resistant to Protein C degradation → most common hereditary thrombophilia"],
    ["PT / aPTT", "PT tests extrinsic + common pathway; aPTT tests intrinsic + common pathway"],
    ["Vitamin K", "Required for γ-carboxylation of FII, FVII, FIX, FX, Protein C & S"],
    ["Warfarin", "Inhibits Vitamin K recycling → ↓ FII, VII, IX, X, Protein C & S"],
    ["Heparin", "Potentiates antithrombin → rapidly inactivates thrombin & FXa"],
    ["DOACs", "Direct oral inhibitors of FXa (rivaroxaban) or thrombin (dabigatran)"],
    ["DIC", "Uncontrolled activation of cascade → consumption of clotting factors & platelets"],
  ];

  let py = 1.32;
  pearls.forEach(([bold, desc]) => {
    sl.addText([
      { text: "▸ " + bold + ": ", options: { bold: true, color: ACCENT2 } },
      { text: desc, options: { color: BODY_TXT } },
    ], {
      x: 0.55, y: py, w: 4.25, h: 0.46,
      fontSize: 9.5, fontFace: "Calibri",
    });
    py += 0.49;
  });

  // Right column: summary flow
  addCard(sl, 5.2, 0.82, 4.45, 4.55);
  sl.addText("Cascade at a Glance", {
    x: 5.4, y: 0.9, w: 4.0, h: 0.38,
    fontSize: 13, bold: true, color: GOLD, fontFace: "Calibri",
  });

  const flow = [
    { label: "Vascular Injury", color: ACCENT },
    { label: "Tissue Factor Exposure", color: ACCENT },
    { label: "FVIIa/TF Complex", color: ACCENT2 },
    { label: "FIXa (+ FVIIIa) & FXa", color: ACCENT2 },
    { label: "Prothrombinase → Thrombin", color: GOLD },
    { label: "Fibrinogen → Fibrin Clot", color: GOLD },
    { label: "FXIIIa Crosslinks Fibrin", color: "5BC8A8" },
  ];

  let fy = 1.38;
  flow.forEach((f, i) => {
    // Box
    sl.addShape(pres.ShapeType.roundRect, {
      x: 5.65, y: fy, w: 3.75, h: 0.38,
      fill: { color: f.color + "33" },
      line: { color: f.color, width: 1 },
      rectRadius: 0.06,
    });
    sl.addText(f.label, {
      x: 5.65, y: fy, w: 3.75, h: 0.38,
      fontSize: 9.5, bold: true, color: LIGHT_TXT, align: "center", valign: "middle",
      fontFace: "Calibri",
    });
    // Arrow (except last)
    if (i < flow.length - 1) {
      sl.addText("▼", {
        x: 7.3, y: fy + 0.35, w: 0.4, h: 0.2,
        fontSize: 9, color: MUTED, align: "center",
      });
    }
    fy += 0.57;
  });

  // Inhibitors summary bar at bottom right
  sl.addText("Natural Brakes: Antithrombin · TFPI · Protein C/S · Heparin Cofactor II · TAFI", {
    x: 5.2, y: 5.2, w: 4.45, h: 0.25,
    fontSize: 8, color: MUTED, fontFace: "Calibri", italic: true, align: "center",
  });

  // Source footer
  sl.addText("Source: Harrison's Principles of Internal Medicine, 22nd Edition (2025) — Chapter 122", {
    x: 0.35, y: 5.35, w: 9.3, h: 0.2,
    fontSize: 7.5, color: MUTED, fontFace: "Calibri", align: "right",
  });
}

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

cd /home/daytona/workspace/coagulation-ppt && node build.js 2>&1

Editing File

~/coagulation-ppt/build.js

Successfully replaced 1 instance(s) of the string in '/home/daytona/workspace/coagulation-ppt/build.js'
Running Command

cd /home/daytona/workspace/coagulation-ppt && node build.js 2>&1

Clean build with no warnings. Your presentation is ready!

Coagulation Cascade Harrisons

Presentation · PPTX


Here's what's in each of the 6 slides:
#SlideContent
1TitleDeep navy design with Harrison's 22E attribution and a defining quote on the cascade
2Overview & Clinical SignificanceWhat the cascade is, amplification principle, roles in hemostasis, VTE, arterial thrombosis, and the emerging role of microparticles/inflammation
3Cascade DiagramThe actual Harrison's Fig. 122-2 embedded, showing TF-initiated extrinsic, intrinsic contact pathways, and the common pathway ending at fibrin + activated platelets. Legend panel explains each key step
4Step-by-Step PathwayThree-column layout - Extrinsic (VII/TF), Intrinsic (XII→XI→IX), and Common (Xa→Thrombin→Fibrin) pathways with numbered steps
5Natural InhibitorsSix inhibitor cards: Antithrombin, TFPI, Protein C/S, Heparin Cofactor II, Thrombomodulin, and TAFI - each with target and clinical relevance from Harrison's
6Clinical Pearls & SummaryFactor V Leiden, PT/aPTT interpretation, Vitamin K, Warfarin, Heparin, DOACs, DIC - plus a visual cascade flow summary
All content is sourced directly from Harrison's Principles of Internal Medicine, 22nd Edition (2025), Chapter 122.

Make the same ppt but it should have white background and black text which should have big font and pointwise and add another diagram of the coagulation cascade

Finding Sources
Searching the Web

coagulation cascade diagram pathway image free

Your credits are exhausted. Your daily credits reset tomorrow, or you can purchase a top-up for more.
This is a shared conversation. Sign in to Orris to start your own chat.