Make presentation on topic small for gestational age vs fetal growth restriction in detailed manner from standard text book of obstretics and Gynaecology make around 20 slides

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

mkdir -p /home/daytona/workspace/sga-fgr-presentation && ls /home/daytona/workspace/sga-fgr-presentation/

Writing File

~/sga-fgr-presentation/build.js

const pptxgen = require("pptxgenjs");

const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "SGA vs FGR";
pres.author = "Creasy & Resnik's Maternal-Fetal Medicine";

// ─── PALETTE ────────────────────────────────────────────────────────────────
const DARK_BG    = "0D2B4E";   // deep navy (dominant)
const MID_BG     = "103A66";   // slightly lighter navy for content slides
const ACCENT     = "2BBFB3";   // teal accent
const LIGHT_TEAL = "56D9D0";   // lighter teal for sub-bullets / data
const WHITE      = "FFFFFF";
const YELLOW     = "F4C542";   // highlight yellow
const GRAY_CARD  = "163D60";   // card background
const BORDER_ACC = "2BBFB3";

// ─── HELPERS ────────────────────────────────────────────────────────────────
function titleSlide(title, subtitle) {
  const sl = pres.addSlide();
  // Full dark background
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: DARK_BG } });
  // Accent bar on left
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.18, h: 5.625, fill: { color: ACCENT } });
  // Decorative circle top-right
  sl.addShape(pres.ShapeType.ellipse, { x: 8.2, y: -0.8, w: 2.8, h: 2.8, fill: { color: ACCENT }, line: { color: ACCENT } });
  sl.addShape(pres.ShapeType.ellipse, { x: 8.5, y: -0.5, w: 2.2, h: 2.2, fill: { color: MID_BG }, line: { color: MID_BG } });
  // Title
  sl.addText(title, {
    x: 0.5, y: 1.5, w: 9, h: 1.6,
    fontSize: 36, fontFace: "Calibri", bold: true, color: WHITE,
    align: "center", valign: "middle", charSpacing: 1
  });
  // Accent divider
  sl.addShape(pres.ShapeType.rect, { x: 3.5, y: 3.25, w: 3, h: 0.06, fill: { color: ACCENT } });
  // Subtitle
  if (subtitle) {
    sl.addText(subtitle, {
      x: 0.5, y: 3.4, w: 9, h: 0.9,
      fontSize: 16, fontFace: "Calibri", color: ACCENT,
      align: "center", italic: true
    });
  }
  // Bottom bar
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 5.25, w: 10, h: 0.375, fill: { color: ACCENT } });
  sl.addText("Source: Creasy & Resnik's Maternal-Fetal Medicine, 9th Ed.", {
    x: 0.2, y: 5.26, w: 9.6, h: 0.35,
    fontSize: 9, fontFace: "Calibri", color: DARK_BG, align: "right", bold: true
  });
}

function sectionBanner(heading) {
  const sl = pres.addSlide();
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: ACCENT } });
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 2.4, fill: { color: DARK_BG } });
  sl.addText(heading, {
    x: 0.5, y: 0.8, w: 9, h: 1.6,
    fontSize: 34, fontFace: "Calibri", bold: true, color: WHITE,
    align: "center", valign: "middle"
  });
  sl.addShape(pres.ShapeType.rect, { x: 2, y: 2.45, w: 6, h: 0.08, fill: { color: WHITE } });
  sl.addText("Creasy & Resnik's Maternal-Fetal Medicine", {
    x: 0.5, y: 2.65, w: 9, h: 0.6,
    fontSize: 14, fontFace: "Calibri", color: DARK_BG, align: "center", italic: true
  });
}

function contentSlide(title, bullets, opts = {}) {
  // opts: { twoCol: bool, colA: [...], colB: [...], tableData: [...] }
  const sl = pres.addSlide();
  // Background
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: MID_BG } });
  // Top accent bar
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.08, fill: { color: ACCENT } });
  // Title background strip
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 0.08, w: 10, h: 0.82, fill: { color: DARK_BG } });
  // Accent left border for title
  sl.addShape(pres.ShapeType.rect, { x: 0, y: 0.08, w: 0.18, h: 0.82, fill: { color: ACCENT } });
  // Title text
  sl.addText(title, {
    x: 0.3, y: 0.1, w: 9.5, h: 0.75,
    fontSize: 22, fontFace: "Calibri", bold: true, color: WHITE,
    valign: "middle", margin: 0
  });

  if (opts.twoCol && opts.colA && opts.colB) {
    // Two column layout with cards
    // Left card
    sl.addShape(pres.ShapeType.rect, { x: 0.15, y: 1.05, w: 4.65, h: 4.35, fill: { color: GRAY_CARD }, line: { color: ACCENT, pt: 1 } });
    if (opts.colAHead) {
      sl.addShape(pres.ShapeType.rect, { x: 0.15, y: 1.05, w: 4.65, h: 0.45, fill: { color: ACCENT } });
      sl.addText(opts.colAHead, { x: 0.2, y: 1.07, w: 4.55, h: 0.4, fontSize: 12, fontFace: "Calibri", bold: true, color: DARK_BG, valign: "middle", margin: 0 });
    }
    const colAItems = opts.colA.map((t, i) => ({
      text: t, options: { bullet: { type: "bullet", indent: 15 }, color: i === 0 && opts.colAHighlight ? YELLOW : WHITE, fontSize: 11, fontFace: "Calibri", breakLine: i < opts.colA.length - 1, paraSpaceAfter: 4 }
    }));
    sl.addText(colAItems, { x: 0.2, y: opts.colAHead ? 1.6 : 1.15, w: 4.55, h: opts.colAHead ? 3.7 : 4.2 });

    // Right card
    sl.addShape(pres.ShapeType.rect, { x: 5.2, y: 1.05, w: 4.65, h: 4.35, fill: { color: GRAY_CARD }, line: { color: YELLOW, pt: 1 } });
    if (opts.colBHead) {
      sl.addShape(pres.ShapeType.rect, { x: 5.2, y: 1.05, w: 4.65, h: 0.45, fill: { color: YELLOW } });
      sl.addText(opts.colBHead, { x: 5.25, y: 1.07, w: 4.55, h: 0.4, fontSize: 12, fontFace: "Calibri", bold: true, color: DARK_BG, valign: "middle", margin: 0 });
    }
    const colBItems = opts.colB.map((t, i) => ({
      text: t, options: { bullet: { type: "bullet", indent: 15 }, color: WHITE, fontSize: 11, fontFace: "Calibri", breakLine: i < opts.colB.length - 1, paraSpaceAfter: 4 }
    }));
    sl.addText(colBItems, { x: 5.25, y: opts.colBHead ? 1.6 : 1.15, w: 4.55, h: opts.colBHead ? 3.7 : 4.2 });

  } else if (opts.tableData) {
    // Table
    const tableRows = opts.tableData;
    sl.addTable(tableRows, {
      x: 0.25, y: 1.05, w: 9.5, h: 4.4,
      colW: opts.colW || undefined,
      border: { pt: 1, color: ACCENT },
      fontFace: "Calibri",
      fontSize: 11,
    });
  } else {
    // Normal bullet list
    const bulletItems = bullets.map((b, i) => {
      if (typeof b === "object" && b.sub) {
        return { text: b.text, options: { bullet: { type: "bullet", indent: 30 }, color: LIGHT_TEAL, fontSize: 11, fontFace: "Calibri", italic: b.italic || false, breakLine: true, paraSpaceAfter: 2 } };
      }
      return { text: b, options: { bullet: { type: "bullet", indent: 15 }, color: b.startsWith("->") ? LIGHT_TEAL : WHITE, fontSize: b.length > 120 ? 11 : 13, fontFace: "Calibri", breakLine: i < bullets.length - 1, paraSpaceAfter: 6 } };
    });
    sl.addText(bulletItems, { x: 0.25, y: 1.05, w: 9.5, h: 4.35 });
  }

  // Source tag bottom-right
  sl.addText("Creasy & Resnik, 9th Ed.", {
    x: 7, y: 5.35, w: 2.9, h: 0.25,
    fontSize: 8, fontFace: "Calibri", color: ACCENT, align: "right"
  });
}

// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 1 — Title
titleSlide(
  "Small for Gestational Age (SGA)\nvs\nFetal Growth Restriction (FGR)",
  "A Comprehensive Clinical Overview | Obstetrics & Gynaecology"
);

// ─── SLIDE 2 — Overview / Agenda ────────────────────────────────────────────
contentSlide("Overview: What We Will Cover", [
  "1.  Definitions — SGA & FGR",
  "2.  Historical perspective & terminology evolution",
  "3.  Normal fetal growth physiology",
  "4.  Classification of FGR (Symmetric vs Asymmetric; Early vs Late)",
  "5.  Etiology — Maternal, Fetal, Placental, Environmental",
  "6.  Risk factors & screening",
  "7.  Diagnosis — Ultrasound biometry & customized growth curves",
  "8.  Doppler ultrasound surveillance",
  "9.  Biophysical profile & other surveillance tools",
  "10. Management — Remote from term vs near term",
  "11. Timing of delivery",
  "12. Perinatal outcomes & long-term complications",
  "13. Key differences: SGA vs FGR",
  "14. Summary & take-home points",
]);

// ─── SLIDE 3 — Definitions ──────────────────────────────────────────────────
contentSlide("Definitions: SGA & FGR", [
  "Small for Gestational Age (SGA): Birth weight < 10th percentile for gestational age on population-based growth curves",
  "Fetal Growth Restriction (FGR): A fetus that does NOT achieve its growth potential — the biologically optimal weight for that individual fetus",
  "Key distinction: Not all SGA infants are growth-restricted; some are constitutionally small but healthy",
  "Conversely, adverse perinatal outcome may be increased even in fetuses with weights between the 10th–90th percentile who have not achieved growth potential",
  "FGR is NOT a homogeneous entity — different phenotypes behave differently (e.g., FGR in preeclampsia vs idiopathic FGR)",
  "No universally accepted international definition exists for FGR; definition varies by region and institution",
]);

// ─── SLIDE 4 — Historical Perspective ──────────────────────────────────────
contentSlide("Historical Perspective & Terminology Evolution", [
  "Early 20th century: ALL small newborns were classified as 'premature'",
  "Mid 20th century: Concept of the 'undernourished neonate' arose",
  "WHO definition: Newborns weighing < 2500 g classified as 'low-birth-weight (LBW) infants'",
  "1960s: Lubchenco et al. published landmark graphs of birth weight vs gestational age (the first growth curves)",
  "Three categories defined: SGA (< 10th %ile), AGA (10th–90th %ile), LGA (> 90th %ile)",
  "Lubchenco curves: Limitations — do NOT reflect modern birth weight changes, ethnic variability, or altitude differences",
  "Modern approach (1998–2006, n > 391,000): New sex-specific, ethnically diverse US growth standards developed",
  "Trend now: Move from population-based SGA toward customized FGR diagnosis",
]);

// ─── SLIDE 5 — Normal Fetal Growth ──────────────────────────────────────────
contentSlide("Normal Fetal Growth: Three Phases", [
  "PHASE 1 — Cellular Hyperplasia (first half of pregnancy): Growth driven by rapid cell division; small absolute weight gain",
  "PHASE 2 — Hyperplasia + Hypertrophy (mid-pregnancy): Both cell number and cell size increase; weight gain accelerates",
  "PHASE 3 — Hypertrophic Growth (last 6–8 weeks): Cell enlargement dominates; maximum absolute weight gain",
  "Growth rate: 5 g/day at 14–15 wks  →  10 g/day at 20 wks  →  30–35 g/day at 32–34 wks",
  "Peak weekly gain: 230–285 g at 32–34 weeks, then declines — may reach zero at 41–42 weeks",
  "If expressed as % increase per week: Maximum in 1st trimester, decreases steadily thereafter",
  "Placental weight increases throughout normal gestation; in FGR, plateaus after 36 wks; trimmed placenta < 350 g",
]);

// ─── SLIDE 6 — Classification: Symmetric vs Asymmetric ─────────────────────
contentSlide("Classification of FGR", [],
  {
    twoCol: true,
    colAHead: "SYMMETRIC FGR (~20-30%)",
    colBHead: "ASYMMETRIC FGR (~70-80%)",
    colA: [
      "Proportionate reduction in ALL measurements: weight, length, head circumference",
      "Caused by factors acting early in pregnancy (hyperplastic phase)",
      "Common causes: Aneuploidy (e.g., trisomies), structural malformations, fetal infections (TORCH), teratogens",
      "Smaller but 'normally proportioned' fetus",
      "Long-standing placental disorders may also cause symmetric pattern",
      "Generally worse prognosis when associated with genetic/structural anomalies",
    ],
    colB: [
      "Normal skeletal dimensions & head circumference BUT reduced abdominal circumference and subcutaneous tissue",
      "Brain-sparing effect: Blood preferentially directed to brain, adrenals, heart",
      "Caused by placental dysfunction — aberrant implantation, inadequate placental tissue, placental destruction",
      "Typically manifests in late 2nd or 3rd trimester",
      "Asymmetric pattern may evolve into symmetric appearance if prolonged",
      "Better prognosis if underlying cause (placental) is treated/managed",
    ],
  }
);

// ─── SLIDE 7 — Early vs Late FGR ────────────────────────────────────────────
contentSlide("Early vs Late FGR: Two Clinical Phenotypes", [], {
  twoCol: true,
  colAHead: "EARLY FGR (< 32 weeks)",
  colBHead: "LATE FGR (≥ 32 weeks)",
  colA: [
    "Less common (~20–30% of FGR cases)",
    "More severe placental dysfunction",
    "Strong association with preeclampsia and other hypertensive disorders",
    "More pronounced Doppler abnormalities (absent/reversed EDF in UA)",
    "Higher perinatal mortality and morbidity",
    "Management: Expectant with intensive surveillance; balance prematurity vs fetal compromise",
    "BOX 44.1: Periviable < 25 wks; Very early 25–28 wks; Early > 28 to < 32 wks",
  ],
  colB: [
    "More common (~70–80% of FGR cases)",
    "Milder placental dysfunction",
    "Less commonly associated with preeclampsia",
    "Subtle Doppler changes: MCA PI reduction (cerebral redistribution), mildly elevated UA PI",
    "Absent/reversed EDF is rare in late FGR",
    "Higher risk of stillbirth due to delayed diagnosis",
    "Management: Delivery planning near term; often induced at 37–40 weeks",
  ],
});

// ─── SLIDE 8 — Etiology: Maternal Factors ───────────────────────────────────
contentSlide("Etiology of FGR: Maternal Factors", [
  "VASCULAR / HYPERTENSIVE: Chronic hypertension, preeclampsia, renal disease — impaired uteroplacental perfusion",
  "CARDIORESPIRATORY: Cyanotic congenital heart disease, severe asthma, high-altitude residence — reduced O2 delivery",
  "HEMATOLOGICAL: Antiphospholipid syndrome, thrombophilias, sickle cell disease — placental thrombosis/infarction",
  "METABOLIC: Poorly controlled diabetes mellitus (paradox: usually LGA but severe vascular disease → SGA)",
  "NUTRITIONAL: Severe malnutrition, very low pre-pregnancy BMI; inadequate gestational weight gain",
  "IMMUNOLOGICAL: Autoimmune diseases (SLE, RA), collagen vascular disorders",
  "UTERINE ANOMALIES: Uterine fibroids, bicornuate uterus — reduced uterine capacity",
  "PREVIOUS OBSTETRIC HISTORY: Previous FGR, stillbirth, preterm delivery — recurrence risk 25–50%",
]);

// ─── SLIDE 9 — Etiology: Fetal & Placental Factors ──────────────────────────
contentSlide("Etiology of FGR: Fetal, Placental & Environmental Factors", [], {
  twoCol: true,
  colAHead: "FETAL FACTORS",
  colBHead: "PLACENTAL + ENVIRONMENTAL FACTORS",
  colA: [
    "Chromosomal anomalies: Trisomy 13, 18, 21; Triploidy; Turner syndrome (45X)",
    "Structural malformations: Cardiac defects, gastroschisis, renal agenesis",
    "Congenital infections: CMV, Rubella, Toxoplasma, Syphilis, Varicella (TORCH)",
    "Multiple gestation: Twin-to-twin transfusion syndrome (TTTS), growth discordance > 18%",
    "Metabolic disorders: Inborn errors of metabolism",
    "Single umbilical artery (controversy in absence of aneuploidy)",
  ],
  colB: [
    "Placental insufficiency: Shallow trophoblast invasion → failure of spiral artery remodeling",
    "Chromosomally normal FGR: Placenta 24% smaller for gestational age",
    "Abnormal cord insertions: Velamentous insertion (SGA in 17% vs 10.2% controls)",
    "Placental hemangiomas, abruption, previa",
    "Smoking: -135 to -300 g birth weight; dose-response relationship for head circumference reduction",
    "Alcohol: Even 1–2 drinks/day reduces birth weight",
    "Cocaine: Reduces birth weight + head circumference",
    "Drugs: Carbamazepine, phenytoin, atenolol, heroin, antineoplastics",
  ],
});

// ─── SLIDE 10 — Placental Pathophysiology ───────────────────────────────────
contentSlide("Placental Pathophysiology of FGR", [
  "Normal: Cytotrophoblasts invade decidua and remodel uterine spiral arteries → low-resistance, high-flow uteroplacental circulation",
  "In FGR (especially early FGR): Shallow cytotrophoblast invasion → spiral arteries retain muscular walls → high resistance, low flow",
  "Consequence 1: Reduced umbilical blood flow per kg fetal weight → elevated umbilical artery pulsatility index (PI)",
  "Consequence 2: Decreased vasosyncytial membranes → greater fraction of O2 diffuses across thick oxygen-consuming barrier → LOW placental O2 permeability",
  "Consequence 3: Reduced transplacental glucose diffusion → fetal hypoglycemia and growth slowing",
  "Fetal O2 compensation: Low PO2 enlarges the transplacental PO2 gradient (draws more O2 in) AND reduces fetal growth demand",
  "Advanced disease: UA absent end-diastolic velocity → reversed EDF → fetal acidemia, multi-organ dysfunction",
  "Placental weight < 350 g (trimmed) is a pathological finding in FGR",
]);

// ─── SLIDE 11 — Screening & Risk Stratification ─────────────────────────────
contentSlide("Screening, Risk Factors & Prevention", [
  "FIRST-TRIMESTER SCREENING: Low PAPP-A, elevated free beta-hCG, low inhibin A → higher risk of FGR",
  "UTERINE ARTERY DOPPLER (11–13 wks): Bilateral notching + elevated PI → impaired trophoblast invasion; pooled sensitivity ~40%, specificity ~93% for early-onset FGR",
  "CUSTOMIZED GROWTH CURVES: Adjust for maternal race, height, weight, parity → identify true FGR among SGA; reduces false positives",
  "HIGH-RISK GROUPS: Previous FGR (recurrence 25–50%), preeclampsia, APS, renal disease, heavy smokers, multiple gestation",
  "LOW-DOSE ASPIRIN (75–150 mg/day from < 16 wks): Reduces risk of FGR by 20% in high-risk women (Cochrane meta-analysis); also reduces preeclampsia",
  "SMOKING CESSATION before 3rd trimester: Reduces adverse effect on birth weight",
  "UTERINE ARTERY PI > 95th %ile at 20–24 wks: Strong predictor for subsequent placental FGR",
]);

// ─── SLIDE 12 — Diagnosis: Ultrasound ───────────────────────────────────────
contentSlide("Diagnosis: Ultrasound Biometry & Growth Assessment", [
  "PRIMARY TOOL: Ultrasound estimation of fetal weight (EFW) using Hadlock formula — HC, AC, BPD, FL",
  "SGA diagnosis: EFW or AC < 10th percentile on population-based or customized growth curves",
  "ABDOMINAL CIRCUMFERENCE (AC): Most sensitive single biometric parameter for detecting FGR; reduces as liver glycogen is depleted",
  "GROWTH VELOCITY: Serial ultrasound every 2–4 weeks; a plateau or decline in growth velocity is more significant than a single low EFW",
  "AMNIOTIC FLUID VOLUME (AFV): Oligohydramnios (AFI < 5 cm or MVP < 2 cm) indicates severe FGR; reflects fetal renal hypoperfusion",
  "Constitutionally small fetus: Normal growth velocity + normal Doppler + normal AFV + no maternal risk factors",
  "First critical clinical challenge: Distinguishing a constitutionally small normal fetus from a true FGR fetus",
  "PORTO study: Small fetuses with NORMAL UA Doppler — adverse outcome only 1.3% vs 11.5% with abnormal Doppler",
]);

// ─── SLIDE 13 — Doppler Surveillance ────────────────────────────────────────
contentSlide("Doppler Ultrasound Surveillance in FGR", [
  "UMBILICAL ARTERY (UA) DOPPLER: PRIMARY surveillance tool in FGR; reflects placental vascular resistance",
  "  - Normal end-diastolic velocity: Usually indicates constitutionally small, well-compensated fetus",
  "  - Elevated PI (> 95th %ile): Increased placental resistance; step up surveillance",
  "  - Absent end-diastolic velocity (AEDV): Associated with terminal villous maldevelopment; significant neonatal morbidity",
  "  - Reversed end-diastolic velocity (REDV): Extreme placental resistance; high risk of fetal acidemia, mortality",
  "MIDDLE CEREBRAL ARTERY (MCA) DOPPLER: Reduced PI = cerebral vasodilation = 'brain-sparing'; useful in late FGR",
  "CEREBROPLACENTAL RATIO (CPR = MCA PI / UA PI): Ratio < 1.0 indicates redistribution; adverse outcome predictor in late FGR",
  "DUCTUS VENOSUS (DV): Absent or reversed a-wave = venous hypertension, pre-terminal; SMFM does not recommend routine use",
  "Cochrane review (19 RCTs): UA Doppler use → fewer perinatal deaths (RR 0.71), fewer IOL (RR 0.89), fewer CS (RR 0.90)",
]);

// ─── SLIDE 14 — Biophysical Profile & CTG ───────────────────────────────────
contentSlide("Fetal Surveillance: BPP, NST & Cardiotocography", [
  "BIOPHYSICAL PROFILE (BPP): Assesses 5 parameters (NST, fetal breathing movements, fetal tone, gross body movement, AFV) — each scored 0 or 2",
  "  Score 8–10: Reassuring; Score 6: Equivocal (repeat in 24 hrs or deliver if term); Score 0–4: Deliver",
  "NON-STRESS TEST (NST): Baseline variability and reactivity; loss of variability is an ominous late sign in FGR",
  "CARDIOTOCOGRAPHY (CTG): Used in conjunction with Doppler and BPP; computerized CTG (cCTG) preferred for objective short-term variability",
  "INTEGRATED SURVEILLANCE PROTOCOL (Creasy & Resnik recommendation):",
  "  - Serial ultrasound biometry (every 2–4 wks) + UA Doppler + AFV assessment",
  "  - Abnormal UA Doppler → add MCA, DV assessment, and twice-weekly CTG/BPP",
  "  - Surveillance frequency determined by severity of growth restriction",
  "PORTO STUDY conclusion: Integrated monitoring with ultrasound biometry, Doppler and CTG optimizes timing of delivery",
]);

// ─── SLIDE 15 — Management: Remote from Term ────────────────────────────────
contentSlide("Management: Remote from Term (< 34 Weeks)", [
  "Goals: Maximize fetal maturity while avoiding fetal compromise; balance prematurity vs in-utero deterioration",
  "INPATIENT vs OUTPATIENT: Individualized based on severity; AEDV/REDV warrant hospitalization",
  "ANTENATAL CORTICOSTEROIDS: Betamethasone 12 mg IM × 2 doses (24 hrs apart) if delivery anticipated at 24–34 weeks — accelerates lung maturity",
  "MAGNESIUM SULFATE: Neuroprotection if delivery < 32 weeks — reduces risk of cerebral palsy",
  "MATERNAL BED REST: Not proven to improve outcomes; may reduce oxygen consumption marginally",
  "AVOID/TREAT: Underlying maternal conditions (hypertension, infections, drugs); optimize nutrition",
  "SURVEILLANCE ESCALATION based on UA Doppler:",
  "  Normal UA: Biometry q 2–4 wks, AFV weekly",
  "  Elevated PI: Biometry q 2 wks, UA + AFV twice weekly",
  "  AEDV: Hospitalize; daily/twice daily CTG + BPP; consider delivery at 34 wks",
  "  REDV: Deliver after corticosteroids if ≥ 26 wks; individualize at periviable gestation",
]);

// ─── SLIDE 16 — Management: Timing of Delivery ──────────────────────────────
contentSlide("Timing of Delivery in FGR", [], {
  tableData: [
    [
      { text: "Clinical Scenario", options: { bold: true, color: DARK_BG, fill: ACCENT, fontSize: 12, fontFace: "Calibri" } },
      { text: "Recommended Timing", options: { bold: true, color: DARK_BG, fill: ACCENT, fontSize: 12, fontFace: "Calibri" } },
      { text: "Key Consideration", options: { bold: true, color: DARK_BG, fill: ACCENT, fontSize: 12, fontFace: "Calibri" } },
    ],
    [
      { text: "SGA with normal Doppler + normal growth velocity", options: { color: WHITE, fill: MID_BG, fontSize: 10, fontFace: "Calibri" } },
      { text: "37–40 weeks", options: { color: WHITE, fill: MID_BG, fontSize: 10, fontFace: "Calibri" } },
      { text: "May be constitutionally small; expectant management", options: { color: WHITE, fill: MID_BG, fontSize: 10, fontFace: "Calibri" } },
    ],
    [
      { text: "FGR with elevated UA PI, normal EDF, reassuring BPP", options: { color: WHITE, fill: GRAY_CARD, fontSize: 10, fontFace: "Calibri" } },
      { text: "37 weeks", options: { color: WHITE, fill: GRAY_CARD, fontSize: 10, fontFace: "Calibri" } },
      { text: "Intensify surveillance; deliver if deterioration", options: { color: WHITE, fill: GRAY_CARD, fontSize: 10, fontFace: "Calibri" } },
    ],
    [
      { text: "FGR with AEDV (absent end-diastolic velocity)", options: { color: WHITE, fill: MID_BG, fontSize: 10, fontFace: "Calibri" } },
      { text: "34 weeks (consider 32–34 wks)", options: { color: WHITE, fill: MID_BG, fontSize: 10, fontFace: "Calibri" } },
      { text: "Corticosteroids; daily surveillance; MgSO4 if < 32 wks", options: { color: WHITE, fill: MID_BG, fontSize: 10, fontFace: "Calibri" } },
    ],
    [
      { text: "FGR with REDV (reversed end-diastolic velocity)", options: { color: YELLOW, fill: GRAY_CARD, fontSize: 10, fontFace: "Calibri", bold: true } },
      { text: "After corticosteroids, ≥ 26 wks; individualize < 26 wks", options: { color: YELLOW, fill: GRAY_CARD, fontSize: 10, fontFace: "Calibri" } },
      { text: "High mortality; periviable counseling required", options: { color: YELLOW, fill: GRAY_CARD, fontSize: 10, fontFace: "Calibri" } },
    ],
    [
      { text: "Abnormal DV (absent/reversed a-wave) or BPP < 4", options: { color: YELLOW, fill: MID_BG, fontSize: 10, fontFace: "Calibri", bold: true } },
      { text: "Immediate delivery (at any viable gestation)", options: { color: YELLOW, fill: MID_BG, fontSize: 10, fontFace: "Calibri" } },
      { text: "Pre-terminal; emergency CS likely required", options: { color: YELLOW, fill: MID_BG, fontSize: 10, fontFace: "Calibri" } },
    ],
    [
      { text: "Near-term FGR (≥ 37 wks) with any Doppler abnormality", options: { color: WHITE, fill: GRAY_CARD, fontSize: 10, fontFace: "Calibri" } },
      { text: "Deliver at 37–38 weeks", options: { color: WHITE, fill: GRAY_CARD, fontSize: 10, fontFace: "Calibri" } },
      { text: "Risk of stillbirth outweighs benefit of further maturity", options: { color: WHITE, fill: GRAY_CARD, fontSize: 10, fontFace: "Calibri" } },
    ],
  ],
  colW: [3.2, 2.4, 3.9],
});

// ─── SLIDE 17 — Perinatal Outcomes ──────────────────────────────────────────
contentSlide("Perinatal Outcomes & Neonatal Complications", [], {
  twoCol: true,
  colAHead: "IMMEDIATE COMPLICATIONS",
  colBHead: "LONG-TERM / ADULT CONSEQUENCES",
  colA: [
    "Perinatal asphyxia & acidemia",
    "Meconium aspiration syndrome",
    "Hypoglycemia (depleted glycogen stores)",
    "Hypothermia (reduced subcutaneous fat)",
    "Polycythemia / hyperviscosity (chronic hypoxia → erythropoiesis)",
    "Necrotizing enterocolitis (NEC)",
    "Intraventricular hemorrhage (IVH) in preterm FGR",
    "Increased risk of NICU admission and prolonged stay",
    "Perinatal mortality: 4–8× higher than AGA infants",
  ],
  colB: [
    "Barker Hypothesis (Developmental Origins of Health and Disease - DOHaD):",
    "FGR programs metabolic adaptations that persist into adult life",
    "Hypertension in adult life (RR ~1.5–2x)",
    "Type 2 diabetes mellitus (insulin resistance)",
    "Coronary artery disease & atherosclerosis",
    "Stroke and cerebrovascular disease",
    "Metabolic syndrome",
    "Neurodevelopmental delay, lower IQ, behavioral issues (especially in early FGR)",
    "Impaired immune function",
  ],
});

// ─── SLIDE 18 — SGA vs FGR: Side-by-Side Comparison ────────────────────────
contentSlide("SGA vs FGR: Key Differences at a Glance", [], {
  tableData: [
    [
      { text: "Feature", options: { bold: true, color: DARK_BG, fill: ACCENT, fontSize: 11, fontFace: "Calibri" } },
      { text: "SGA", options: { bold: true, color: DARK_BG, fill: ACCENT, fontSize: 11, fontFace: "Calibri" } },
      { text: "FGR", options: { bold: true, color: DARK_BG, fill: ACCENT, fontSize: 11, fontFace: "Calibri" } },
    ],
    [
      { text: "Definition", options: { color: WHITE, fill: MID_BG, fontSize: 10, fontFace: "Calibri" } },
      { text: "Birth weight < 10th percentile (population-based)", options: { color: WHITE, fill: MID_BG, fontSize: 10, fontFace: "Calibri" } },
      { text: "Failure to achieve biological growth potential", options: { color: WHITE, fill: MID_BG, fontSize: 10, fontFace: "Calibri" } },
    ],
    [
      { text: "Basis", options: { color: WHITE, fill: GRAY_CARD, fontSize: 10, fontFace: "Calibri" } },
      { text: "Statistical / normative (population reference)", options: { color: WHITE, fill: GRAY_CARD, fontSize: 10, fontFace: "Calibri" } },
      { text: "Pathophysiological / individualized", options: { color: WHITE, fill: GRAY_CARD, fontSize: 10, fontFace: "Calibri" } },
    ],
    [
      { text: "Pathology present?", options: { color: WHITE, fill: MID_BG, fontSize: 10, fontFace: "Calibri" } },
      { text: "Not necessarily; may be constitutionally small", options: { color: WHITE, fill: MID_BG, fontSize: 10, fontFace: "Calibri" } },
      { text: "Yes — underlying pathological process", options: { color: WHITE, fill: MID_BG, fontSize: 10, fontFace: "Calibri" } },
    ],
    [
      { text: "Doppler", options: { color: WHITE, fill: GRAY_CARD, fontSize: 10, fontFace: "Calibri" } },
      { text: "Usually normal UA Doppler", options: { color: WHITE, fill: GRAY_CARD, fontSize: 10, fontFace: "Calibri" } },
      { text: "Abnormal UA Doppler (elevated PI, AEDV, REDV)", options: { color: WHITE, fill: GRAY_CARD, fontSize: 10, fontFace: "Calibri" } },
    ],
    [
      { text: "Growth velocity", options: { color: WHITE, fill: MID_BG, fontSize: 10, fontFace: "Calibri" } },
      { text: "Normal — parallel to centiles", options: { color: WHITE, fill: MID_BG, fontSize: 10, fontFace: "Calibri" } },
      { text: "Decreasing / plateauing — crossing centiles downward", options: { color: WHITE, fill: MID_BG, fontSize: 10, fontFace: "Calibri" } },
    ],
    [
      { text: "Amniotic fluid", options: { color: WHITE, fill: GRAY_CARD, fontSize: 10, fontFace: "Calibri" } },
      { text: "Normal AFV", options: { color: WHITE, fill: GRAY_CARD, fontSize: 10, fontFace: "Calibri" } },
      { text: "Oligohydramnios (in moderate–severe FGR)", options: { color: WHITE, fill: GRAY_CARD, fontSize: 10, fontFace: "Calibri" } },
    ],
    [
      { text: "Outcome risk", options: { color: WHITE, fill: MID_BG, fontSize: 10, fontFace: "Calibri" } },
      { text: "Low if constitutionally small (PORTO: 1.3% adverse outcome)", options: { color: WHITE, fill: MID_BG, fontSize: 10, fontFace: "Calibri" } },
      { text: "High (PORTO: 11.5% adverse outcome with abnormal Doppler)", options: { color: YELLOW, fill: MID_BG, fontSize: 10, fontFace: "Calibri", bold: true } },
    ],
    [
      { text: "Management approach", options: { color: WHITE, fill: GRAY_CARD, fontSize: 10, fontFace: "Calibri" } },
      { text: "Expectant; deliver at or near term", options: { color: WHITE, fill: GRAY_CARD, fontSize: 10, fontFace: "Calibri" } },
      { text: "Intensive surveillance; individualized delivery timing", options: { color: WHITE, fill: GRAY_CARD, fontSize: 10, fontFace: "Calibri" } },
    ],
  ],
  colW: [2.4, 3.55, 3.55],
});

// ─── SLIDE 19 — Patterns of Deterioration ───────────────────────────────────
contentSlide("Progression & Patterns of Deterioration in FGR", [
  "FGR follows a predictable sequence of hemodynamic deterioration (especially early FGR):",
  "STEP 1 — Placental insufficiency develops: UA PI rises (increased resistance); normal MCA and DV",
  "STEP 2 — Fetal redistribution: MCA PI falls (cerebral vasodilation / 'brain sparing'); CPR < 1.0",
  "STEP 3 — Severe placental disease: UA absent end-diastolic velocity (AEDV); oligohydramnios develops",
  "STEP 4 — Venous compromise: DV a-wave diminished → absent → reversed; hepatic venous pulsations appear",
  "STEP 5 — Terminal deterioration: Reversed UA EDF; CTG shows late decelerations, reduced variability; BPP < 4",
  "Late FGR often shows only MCA/CPR changes without UA AEDV — pattern is more subtle",
  "Clinical implication: Delivery must occur before Step 4/5; earlier intervention = better neonatal outcome",
  "PORTO study confirmed: Integrated biometry + Doppler + CTG is gold standard for monitoring progression",
]);

// ─── SLIDE 20 — Summary & Take-Home Points ──────────────────────────────────
contentSlide("Summary & Take-Home Points", [
  "SGA (< 10th %ile by population curves) is NOT synonymous with FGR; many SGA infants are constitutionally small and healthy",
  "FGR = failure to achieve growth potential; requires individualized assessment using customized growth curves and Doppler",
  "Two main types of FGR: Symmetric (early insult, often genetic/infectious) vs Asymmetric (late, placental)",
  "Early FGR (< 32 wks) is more severe; Late FGR (≥ 32 wks) is more common and subtler — risk of missed diagnosis",
  "UA Doppler is the PRIMARY surveillance tool; absent/reversed EDF is an obstetric emergency",
  "MCA Doppler + CPR ratio is key for detecting brain-sparing — especially important in late FGR",
  "Optimal outcomes require integrated monitoring: biometry + Doppler + AFV + CTG/BPP",
  "Betamethasone for lung maturation if delivery expected at 24–34 wks; MgSO4 for neuroprotection < 32 wks",
  "Long-term: FGR programs adult cardiovascular, metabolic, and neurodevelopmental disease (Barker/DOHaD hypothesis)",
  "Early screening: Low PAPP-A + uterine artery Doppler → low-dose aspirin from < 16 wks reduces FGR risk by 20%",
]);

// ─── Write file ─────────────────────────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/sga-fgr-presentation/SGA_vs_FGR_Presentation.pptx" })
  .then(() => console.log("SUCCESS: /home/daytona/workspace/sga-fgr-presentation/SGA_vs_FGR_Presentation.pptx"))
  .catch(e => { console.error("ERROR:", e); process.exit(1); });
Running Command

cd /home/daytona/workspace/sga-fgr-presentation && node build.js

Running Command

ls -lh /home/daytona/workspace/sga-fgr-presentation/SGA_vs_FGR_Presentation.pptx

Your presentation is ready! Here is the download link:

SGA vs FGR Presentation

Presentation · PPTX


What's Inside (20 Slides)

The presentation is built directly from Creasy & Resnik's Maternal-Fetal Medicine, 9th Edition, styled in a professional deep-navy + teal design:
SlideTopic
1Title slide
2Overview / agenda of all topics
3Definitions — SGA vs FGR (with the critical conceptual distinction)
4Historical perspective: Lubchenco curves, WHO LBW, terminology evolution
5Normal fetal growth — three phases, growth rate data
6Classification: Symmetric vs Asymmetric FGR (two-column card layout)
7Early FGR (< 32 wks) vs Late FGR (≥ 32 wks) — two phenotypes
8Etiology: Maternal factors
9Etiology: Fetal, placental & environmental factors
10Placental pathophysiology — spiral artery remodeling failure, O2 dynamics
11Screening, risk stratification, low-dose aspirin
12Ultrasound biometry & diagnosis (including PORTO study data)
13Doppler surveillance — UA, MCA, CPR, ductus venosus (with Cochrane RCT data)
14BPP, NST, CTG and integrated surveillance protocol
15Management remote from term (< 34 wks), corticosteroids, MgSO4
16Timing of delivery — detailed table by clinical scenario
17Perinatal outcomes + Barker/DOHaD hypothesis for long-term adult disease
18SGA vs FGR side-by-side comparison table
19Patterns of deterioration — stepwise hemodynamic sequence
20Summary & 10 take-home points
This is a shared conversation. Sign in to Orris to start your own chat.