Approach to acute liver failure in children
"acute liver failure" AND children

| Age Group | Common Causes |
|---|---|
| Neonates / Infants | Neonatal hemochromatosis (gestational alloimmune liver disease), herpes simplex virus (HSV), galactosemia, tyrosinemia, mitochondrial disorders, urea cycle defects |
| Toddlers (1-5 yr) | Acetaminophen toxicity, Wilson disease (less common in young children), autoimmune hepatitis, hepatitis A |
| School-age / Adolescents | Acetaminophen (intentional or unintentional), autoimmune hepatitis, Wilson disease, hepatitis A/B, idiosyncratic DILI |
| Stage | Features |
|---|---|
| 1 | Mild confusion, irritability, excessive crying, sleep disturbances, short attention span |
| 2 | Excessive sleepiness, moderate confusion, personality changes, intermittent disorientation |
| 3 | Profound confusion, stupor, delirium, hyperreflexia, extensor plantar response |
| 4a | Coma with response to pain |
| 4b | Coma without response to pain (decerebrate/decorticate posturing) |
| Etiology | Treatment |
|---|---|
| Acetaminophen | N-acetylcysteine (NAC): 140 mg/kg loading dose IV/PO, then 70 mg/kg q4h |
| Autoimmune hepatitis | IV methylprednisolone (use cautiously - risk of infection; avoid if uncertain) |
| Herpes simplex virus | IV acyclovir (always cover HSV empirically in neonates with ALF) |
| Wilson disease | Copper chelation (D-penicillamine or trientine); albumin dialysis; LT often required |
| Hepatitis B | Nucleos(t)ide analogues (entecavir, tenofovir) |
| Galactosemia | Galactose-free formula immediately |
| Tyrosinemia type 1 | Nitisinone (NTBC) |
Slides on Approach to acute liver failure in children
mkdir -p /home/daytona/workspace/palf-slides && ls /home/daytona/workspace/palf-slides/
~/palf-slides/palf.js
const pptxgen = require("pptxgenjs");
const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Approach to Acute Liver Failure in Children (PALF)";
// ─── PALETTE ────────────────────────────────────────────────────────────────
const C = {
navy: "0B2545", // dominant dark bg
teal: "1B6CA8", // section headers, key shapes
tealLt: "2B8DC8", // lighter accent
gold: "F0A500", // accent / highlight
goldLt: "FFD166", // sub-accent
red: "C0392B", // warning / critical
white: "FFFFFF",
offWhite:"F4F8FB",
grayLt: "D6E4F0",
grayMid: "8BA7C0",
textDark:"0B2545",
};
// ─── HELPERS ────────────────────────────────────────────────────────────────
function addSlide(bg) {
const s = pres.addSlide();
if (bg) s.background = { color: bg };
return s;
}
// Dark header bar + title + subtitle
function sectionHeader(slide, title, subtitle) {
// top bar
slide.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 1.0, fill: { color: C.navy }, line: { color: C.navy } });
slide.addShape(pres.shapes.RECTANGLE, { x: 0, y: 1.0, w: 10, h: 0.06, fill: { color: C.gold }, line: { color: C.gold } });
slide.addText(title, { x: 0.4, y: 0.08, w: 9.2, h: 0.82, fontSize: 24, bold: true, color: C.white, fontFace: "Calibri", valign: "middle", margin: 0 });
if (subtitle) {
slide.addText(subtitle, { x: 0.4, y: 1.12, w: 9.2, h: 0.44, fontSize: 13, color: C.teal, fontFace: "Calibri", bold: true, margin: 0 });
}
}
// Bullet card (rounded rect with content)
function addCard(slide, x, y, w, h, title, bullets, titleColor, cardColor) {
cardColor = cardColor || C.white;
titleColor = titleColor || C.navy;
slide.addShape(pres.shapes.RECTANGLE, {
x, y, w, h,
fill: { color: cardColor },
shadow: { type: "outer", color: "000000", blur: 8, offset: 3, angle: 135, opacity: 0.12 },
line: { color: C.grayLt, pt: 1 }
});
if (title) {
slide.addShape(pres.shapes.RECTANGLE, { x, y, w, h: 0.34, fill: { color: titleColor }, line: { color: titleColor } });
slide.addText(title, { x: x + 0.12, y: y + 0.02, w: w - 0.18, h: 0.30, fontSize: 11, bold: true, color: C.white, fontFace: "Calibri", valign: "middle", margin: 0 });
}
if (bullets && bullets.length > 0) {
const ty = title ? y + 0.38 : y + 0.1;
const th = h - (title ? 0.42 : 0.14);
const items = bullets.map((b, i) => ({
text: b,
options: { bullet: { code: "25B8", color: C.teal }, breakLine: i < bullets.length - 1, fontSize: 10.5, color: C.textDark, fontFace: "Calibri" }
}));
slide.addText(items, { x: x + 0.18, y: ty, w: w - 0.28, h: th, valign: "top", margin: 0 });
}
}
// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 1 — TITLE SLIDE
// ═══════════════════════════════════════════════════════════════════════════
{
const s = addSlide(C.navy);
// Decorative side stripe
s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 0.28, h: 5.625, fill: { color: C.gold }, line: { color: C.gold } });
s.addShape(pres.shapes.RECTANGLE, { x: 0.28, y: 0, w: 0.08, h: 5.625, fill: { color: C.teal }, line: { color: C.teal } });
// Bottom accent bar
s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 5.1, w: 10, h: 0.525, fill: { color: C.teal }, line: { color: C.teal } });
// Main title
s.addText("Pediatric Acute Liver Failure", {
x: 0.65, y: 1.2, w: 9.0, h: 1.2,
fontSize: 38, bold: true, color: C.white, fontFace: "Calibri",
align: "left", valign: "middle", margin: 0
});
s.addText("(PALF)", {
x: 0.65, y: 2.3, w: 4, h: 0.7,
fontSize: 30, bold: true, color: C.goldLt, fontFace: "Calibri",
align: "left", margin: 0
});
// Subtitle
s.addText("Approach to Diagnosis & Management", {
x: 0.65, y: 3.1, w: 8.5, h: 0.55,
fontSize: 17, color: C.grayLt, fontFace: "Calibri", align: "left", margin: 0
});
// Divider line
s.addShape(pres.shapes.RECTANGLE, { x: 0.65, y: 3.7, w: 5.5, h: 0.04, fill: { color: C.goldLt }, line: { color: C.goldLt } });
// Footer text
s.addText("Pediatric Gastroenterology & Hepatology | Intensive Care", {
x: 0.65, y: 5.13, w: 9, h: 0.38,
fontSize: 11, color: C.white, fontFace: "Calibri", align: "left", margin: 0
});
}
// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 2 — DEFINITION & DIAGNOSTIC CRITERIA
// ═══════════════════════════════════════════════════════════════════════════
{
const s = addSlide(C.offWhite);
sectionHeader(s, "Definition & Diagnostic Criteria", "What defines PALF?");
// Central definition box
s.addShape(pres.shapes.RECTANGLE, {
x: 0.3, y: 1.65, w: 9.4, h: 1.12,
fill: { color: C.navy }, line: { color: C.navy }
});
s.addText([
{ text: "PALF: ", options: { bold: true, color: C.goldLt, fontSize: 13 } },
{ text: "Severe hepatic dysfunction within 8 weeks of illness onset, no pre-existing liver disease, and liver-based coagulopathy", options: { color: C.white, fontSize: 13 } }
], { x: 0.45, y: 1.68, w: 9.1, h: 1.06, valign: "middle", margin: 0 });
// Three criteria cards
const cards = [
{ title: "WITH Encephalopathy", bullets: ["INR ≥ 1.5", "or PT > 15 seconds"] },
{ title: "WITHOUT Encephalopathy", bullets: ["INR ≥ 2.0", "or PT ≥ 20 seconds"] },
{ title: "Time Frame", bullets: ["< 8 weeks illness onset", "No prior liver disease"] },
];
cards.forEach((c, i) => {
addCard(s, 0.3 + i * 3.15, 2.88, 2.95, 1.62, c.title, c.bullets,
i === 0 ? C.red : i === 1 ? C.teal : C.navy);
});
// Historical mortality note
s.addShape(pres.shapes.RECTANGLE, { x: 0.3, y: 4.62, w: 9.4, h: 0.7, fill: { color: C.grayLt }, line: { color: C.grayLt } });
s.addText([
{ text: "Historically: ", options: { bold: true, color: C.red, fontSize: 11.5 } },
{ text: "Mortality 70–95% ", options: { color: C.textDark, fontSize: 11.5 } },
{ text: " | With modern ICU care + transplantation: ", options: { color: C.textDark, fontSize: 11.5 } },
{ text: "~30% mortality today", options: { bold: true, color: C.teal, fontSize: 11.5 } }
], { x: 0.5, y: 4.65, w: 9.0, h: 0.62, valign: "middle", margin: 0 });
}
// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 3 — ETIOLOGY (Age-stratified)
// ═══════════════════════════════════════════════════════════════════════════
{
const s = addSlide(C.offWhite);
sectionHeader(s, "Etiology of PALF", "Age-stratified causes — etiology is INDETERMINATE in ~50% of cases");
// Age columns
const ages = [
{
label: "Neonates / Infants",
items: ["Gestational alloimmune liver disease (neonatal hemochromatosis)", "Herpes simplex virus (HSV)", "Galactosemia", "Tyrosinemia type 1", "Mitochondrial disorders", "Urea cycle defects"],
color: C.teal
},
{
label: "Toddlers (1–5 yr)",
items: ["Acetaminophen toxicity", "Autoimmune hepatitis", "Hepatitis A / B", "Wilson disease (less common)", "Idiosyncratic DILI", "Viral: EBV, CMV, adenovirus"],
color: C.navy
},
{
label: "School-age / Adolescents",
items: ["Acetaminophen (intentional OD)", "Wilson disease", "Autoimmune hepatitis", "Hepatitis A / B / E", "Idiosyncratic DILI", "Budd-Chiari syndrome"],
color: C.red
},
];
ages.forEach((a, i) => {
const x = 0.28 + i * 3.18;
s.addShape(pres.shapes.RECTANGLE, { x, y: 1.62, w: 3.0, h: 0.38, fill: { color: a.color }, line: { color: a.color } });
s.addText(a.label, { x: x + 0.08, y: 1.64, w: 2.88, h: 0.34, fontSize: 11, bold: true, color: C.white, fontFace: "Calibri", valign: "middle", margin: 0 });
s.addShape(pres.shapes.RECTANGLE, { x, y: 2.0, w: 3.0, h: 2.82, fill: { color: C.white }, line: { color: C.grayLt, pt: 1 } });
const items = a.items.map((t, ii) => ({
text: t,
options: { bullet: { code: "25CF", color: a.color }, breakLine: ii < a.items.length - 1, fontSize: 10.5, color: C.textDark, fontFace: "Calibri" }
}));
s.addText(items, { x: x + 0.18, y: 2.08, w: 2.72, h: 2.68, valign: "top", margin: 0 });
});
// Footer note
s.addShape(pres.shapes.RECTANGLE, { x: 0.28, y: 4.92, w: 9.44, h: 0.46, fill: { color: C.goldLt }, line: { color: C.goldLt } });
s.addText("⚠ Across ALL ages: valproic acid, salicylates (Reye syndrome), organic acidemias, malignancy, Budd-Chiari, indeterminate", {
x: 0.42, y: 4.94, w: 9.2, h: 0.40, fontSize: 10.5, bold: false, color: C.navy, fontFace: "Calibri", valign: "middle", margin: 0
});
}
// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 4 — CLINICAL FEATURES & HE STAGING
// ═══════════════════════════════════════════════════════════════════════════
{
const s = addSlide(C.offWhite);
sectionHeader(s, "Clinical Presentation & Hepatic Encephalopathy Staging", "Classic triad: Jaundice · Coagulopathy · Encephalopathy");
// Left column — features
addCard(s, 0.28, 1.62, 4.0, 1.5, "Systemic Features", [
"Jaundice, dark urine, pale stools",
"Coagulopathy — bleeding, petechiae",
"Hypotension, vasodilation (low SVR)",
"Hypoglycemia, lactic acidosis",
"Renal failure (hepatorenal syndrome)",
"Gram-positive sepsis very common"
], C.teal);
addCard(s, 0.28, 3.22, 4.0, 1.55, "CNS Features in Children", [
"Irritability / excessive crying (early)",
"Asterixis (flapping tremor)",
"Seizures in 10–30%",
"Cerebral edema → herniation (Stage 4)",
"EEG: alpha slowing → delta → triphasic waves",
"CT/MRI: edema, T1 GP hyperintensity"
], C.navy);
// Right column — HE staging table
s.addShape(pres.shapes.RECTANGLE, { x: 4.55, y: 1.62, w: 5.1, h: 0.34, fill: { color: C.navy }, line: { color: C.navy } });
s.addText("Hepatic Encephalopathy Staging (Pediatric Modifications)", { x: 4.62, y: 1.64, w: 4.96, h: 0.30, fontSize: 10.5, bold: true, color: C.white, fontFace: "Calibri", valign: "middle", margin: 0 });
const heStages = [
{ stage: "Stage 1", color: C.goldLt, desc: "Irritability, excessive crying, sleep disturbances, mild confusion, short attention span" },
{ stage: "Stage 2", color: "FFA040", desc: "Excessive sleepiness, moderate confusion, personality changes, intermittent disorientation" },
{ stage: "Stage 3", color: "FF7043", desc: "Profound confusion, stupor, delirium, hyperreflexia, extensor plantar response" },
{ stage: "Stage 4a", color: "D32F2F", desc: "Coma with response to pain (decerebrate/decorticate posturing)" },
{ stage: "Stage 4b", color: "7B0000", desc: "Coma without any response to pain — imminent herniation risk" },
];
heStages.forEach((h, i) => {
const y = 2.0 + i * 0.62;
s.addShape(pres.shapes.RECTANGLE, { x: 4.55, y, w: 1.18, h: 0.58, fill: { color: h.color }, line: { color: h.color } });
s.addText(h.stage, { x: 4.57, y: y + 0.02, w: 1.14, h: 0.54, fontSize: 10.5, bold: true, color: C.white, fontFace: "Calibri", align: "center", valign: "middle", margin: 0 });
s.addShape(pres.shapes.RECTANGLE, { x: 5.73, y, w: 3.92, h: 0.58, fill: { color: C.white }, line: { color: C.grayLt, pt: 1 } });
s.addText(h.desc, { x: 5.82, y: y + 0.04, w: 3.74, h: 0.50, fontSize: 9.5, color: C.textDark, fontFace: "Calibri", valign: "middle", margin: 0 });
});
s.addShape(pres.shapes.RECTANGLE, { x: 4.55, y: 5.12, w: 5.1, h: 0.35, fill: { color: C.red }, line: { color: C.red } });
s.addText("⚠ Stage 4 → Cerebral edema invariably present → Most common cause of death", {
x: 4.62, y: 5.14, w: 4.96, h: 0.30, fontSize: 9.5, color: C.white, bold: true, fontFace: "Calibri", valign: "middle", margin: 0
});
}
// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 5 — DIAGNOSTIC WORK-UP
// ═══════════════════════════════════════════════════════════════════════════
{
const s = addSlide(C.offWhite);
sectionHeader(s, "Diagnostic Work-up", "Urgent investigation — etiology guides specific therapy");
const groups = [
{
title: "Liver Function & Severity", color: C.teal,
items: ["LFTs: AST, ALT, bilirubin", "PT / INR / aPTT", "Factor V (most sensitive trend marker)", "Serum albumin", "Arterial ammonia", "Blood gas + lactate, glucose"]
},
{
title: "Infection Screen", color: C.navy,
items: ["HAV IgM, HBsAg + anti-HBc IgM", "HSV PCR / DFA (esp. neonates)", "EBV, CMV, parvovirus B19", "Adenovirus, enterovirus PCR", "Blood + urine cultures", "HEV serology"]
},
{
title: "Metabolic / Genetic", color: C.gold,
items: ["Plasma amino acids, urine organic acids", "Acylcarnitine profile (FAOD)", "Serum lactate : pyruvate ratio", "Galactose-1-PUT (galactosemia)", "Alpha-1-antitrypsin level + phenotype", "Serum ferritin (neonatal hemochromatosis)"]
},
{
title: "Wilson Disease", color: "6A0D83",
items: ["Serum ceruloplasmin (may be falsely low in ALF)", "24-hr urine copper", "Slit-lamp exam (KF rings)", "Liver biopsy copper content"]
},
{
title: "Autoimmune / Other", color: C.red,
items: ["ANA, ASMA, anti-LKM1, IgG", "Anti-SLA, anti-LC1", "APAP-protein adducts (if indeterminate)", "Doppler USS / MRI (Budd-Chiari)", "Bone marrow biopsy (malignancy)"]
},
];
// Two-row layout: 3 + 2
[0, 1, 2].forEach((i) => {
addCard(s, 0.22 + i * 3.25, 1.62, 3.08, 2.0, groups[i].title, groups[i].items, groups[i].color);
});
[3, 4].forEach((j) => {
addCard(s, 0.22 + j * 4.9 - 4.9 * 0.5 + 0.8, 3.74, 3.7, 1.72, groups[j].title, groups[j].items, groups[j].color);
});
}
// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 6 — IMMEDIATE MANAGEMENT (ICU)
// ═══════════════════════════════════════════════════════════════════════════
{
const s = addSlide(C.offWhite);
sectionHeader(s, "Immediate Management", "ALL patients → ICU | Transfer to Pediatric Liver Transplant Center");
// Emergency banner
s.addShape(pres.shapes.RECTANGLE, { x: 0.28, y: 1.62, w: 9.44, h: 0.44, fill: { color: C.red }, line: { color: C.red } });
s.addText("⚡ Transfer to a pediatric liver transplant center URGENTLY — mandatory for all PALF cases", {
x: 0.4, y: 1.63, w: 9.2, h: 0.40, fontSize: 12, bold: true, color: C.white, fontFace: "Calibri", valign: "middle", margin: 0
});
const pillars = [
{
title: "Neurological", color: C.navy,
items: ["HOB 30°, minimize stimulation", "Lactulose / rifaximin (ammonia ↓)", "3% NaCl or mannitol (cerebral edema)", "Target Na 145–150 mEq/L", "ICP monitoring: Stage 3–4 HE", "Avoid sedatives / benzodiazepines"]
},
{
title: "Hemodynamic", color: C.teal,
items: ["Balanced crystalloid resuscitation", "Norepinephrine (vasopressors PRN)", "Continuous glucose 10% (target 80–120)", "Avoid FFP (masks coagulopathy marker)", "Correct coags only for active bleeding / procedures"]
},
{
title: "Renal / Metabolic", color: "7B3F00",
items: ["CRRT for AKI / HRS", "CRRT also aids ammonia clearance", "Correct electrolytes (K, Mg, Phos)", "Monitor for lactic acidosis"]
},
{
title: "Infection", color: C.red,
items: ["Empiric: vancomycin + pip-tazo", "Antifungal prophylaxis (fluconazole)", "HSV empiric acyclovir in neonates", "Surveillance cultures q48–72h", "Avoid aminoglycosides (nephrotoxic)"]
},
{
title: "Nutrition", color: "2E7D32",
items: ["Early enteral feeding (NGT)", "Short-term protein restriction 0.5–1 g/kg/day", "High dextrose (prevent hypoglycemia)", "Avoid prolonged protein restriction"]
},
];
[0,1,2,3,4].forEach((i) => {
const row = i < 3 ? 0 : 1;
const col = i < 3 ? i : i - 3;
const xBase = row === 0 ? 0.22 + col * 3.25 : 0.22 + col * 4.9;
const w = row === 0 ? 3.08 : 3.7;
addCard(s, xBase, 2.2 + row * 1.72, w, 1.6, pillars[i].title, pillars[i].items, pillars[i].color);
});
}
// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 7 — ETIOLOGY-SPECIFIC THERAPY
// ═══════════════════════════════════════════════════════════════════════════
{
const s = addSlide(C.offWhite);
sectionHeader(s, "Etiology-Specific Therapy", "Targeted treatment is key — always identify the underlying cause");
// NAC banner
s.addShape(pres.shapes.RECTANGLE, { x: 0.28, y: 1.62, w: 9.44, h: 0.68, fill: { color: C.teal }, line: { color: C.teal } });
s.addText([
{ text: "N-Acetylcysteine (NAC): ", options: { bold: true, color: C.goldLt, fontSize: 13 } },
{ text: "Loading 140 mg/kg IV/PO → 70 mg/kg q4h. Use for: APAP toxicity (definite), DILI, Hep B, autoimmune, indeterminate (grade 1–2 HE)", options: { color: C.white, fontSize: 12 } }
], { x: 0.42, y: 1.64, w: 9.2, h: 0.62, valign: "middle", margin: 0 });
// Table
const rows = [
["Acetaminophen overdose", "N-Acetylcysteine (NAC) — loading + maintenance", C.goldLt],
["Autoimmune hepatitis", "IV methylprednisolone (cautiously; risk infection)", C.white],
["Herpes simplex virus", "IV Acyclovir — empiric in all neonates with ALF", C.goldLt],
["Wilson disease", "D-penicillamine / trientine; albumin dialysis; LT often needed", C.white],
["Hepatitis B", "Entecavir or tenofovir (nucleos(t)ide analogue)", C.goldLt],
["Galactosemia", "Galactose-free formula — immediately", C.white],
["Tyrosinemia type 1", "Nitisinone (NTBC) — start urgently", C.goldLt],
["Neonatal hemochromatosis", "IVIG + exchange transfusion + antioxidant cocktail (NAC, vit E, selenium)", C.white],
["Budd-Chiari", "Anticoagulation; interventional shunt; consider LT", C.goldLt],
];
// Table header
s.addShape(pres.shapes.RECTANGLE, { x: 0.28, y: 2.38, w: 4.6, h: 0.36, fill: { color: C.navy }, line: { color: C.navy } });
s.addShape(pres.shapes.RECTANGLE, { x: 4.88, y: 2.38, w: 4.84, h: 0.36, fill: { color: C.navy }, line: { color: C.navy } });
s.addText("Etiology", { x: 0.32, y: 2.40, w: 4.52, h: 0.30, fontSize: 10.5, bold: true, color: C.white, fontFace: "Calibri", valign: "middle", margin: 0 });
s.addText("Treatment", { x: 4.92, y: 2.40, w: 4.76, h: 0.30, fontSize: 10.5, bold: true, color: C.white, fontFace: "Calibri", valign: "middle", margin: 0 });
rows.forEach((r, i) => {
const y = 2.74 + i * 0.30;
s.addShape(pres.shapes.RECTANGLE, { x: 0.28, y, w: 4.6, h: 0.29, fill: { color: r[2] }, line: { color: C.grayLt, pt: 0.5 } });
s.addShape(pres.shapes.RECTANGLE, { x: 4.88, y, w: 4.84, h: 0.29, fill: { color: r[2] }, line: { color: C.grayLt, pt: 0.5 } });
s.addText(r[0], { x: 0.36, y: y + 0.02, w: 4.44, h: 0.26, fontSize: 9.5, color: C.textDark, fontFace: "Calibri", bold: true, valign: "middle", margin: 0 });
s.addText(r[1], { x: 4.94, y: y + 0.02, w: 4.70, h: 0.26, fontSize: 9.5, color: C.textDark, fontFace: "Calibri", valign: "middle", margin: 0 });
});
}
// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 8 — CEREBRAL EDEMA MANAGEMENT
// ═══════════════════════════════════════════════════════════════════════════
{
const s = addSlide(C.offWhite);
sectionHeader(s, "Management of Cerebral Edema & Raised ICP", "Leading cause of death in Stage 4 HE — anticipate and prevent");
// Mechanism box
s.addShape(pres.shapes.RECTANGLE, { x: 0.28, y: 1.62, w: 9.44, h: 0.54, fill: { color: C.navy }, line: { color: C.navy } });
s.addText([
{ text: "Mechanism: ", options: { bold: true, color: C.goldLt, fontSize: 12 } },
{ text: "Ammonia → astrocyte swelling (glutamine accumulation) → cytotoxic edema → raised ICP → herniation. NOT from portal hypertension.", options: { color: C.white, fontSize: 11.5 } }
], { x: 0.42, y: 1.63, w: 9.2, h: 0.50, valign: "middle", margin: 0 });
const steps = [
{ num: "1", title: "Head Positioning", detail: "HOB 30°, midline head, avoid hip flexion > 30°, minimize stimulation", color: C.teal },
{ num: "2", title: "Hypernatremia Target", detail: "Target serum Na 145–150 mEq/L using 3% hypertonic saline (prophylactic / therapeutic)", color: C.teal },
{ num: "3", title: "Mannitol", detail: "0.5–1 g/kg IV bolus for acute ICP spikes. Avoid if serum osmolality > 320 mOsm/L or renal failure", color: C.navy },
{ num: "4", title: "Hyperventilation", detail: "Short-term bridge only — target PaCO₂ 30–35 mmHg. Not for sustained use (causes cerebral vasoconstriction)", color: "7B3F00" },
{ num: "5", title: "ICP Monitoring", detail: "Consider epidural or intraparenchymal monitor in Stage 3–4 HE at experienced transplant centers", color: "6A0D83" },
{ num: "6", title: "Avoid", detail: "Sedatives / BZDs, fever (increases ICP), excessive IV fluids, hypoxemia, hypercapnia", color: C.red },
];
steps.forEach((st, i) => {
const col = i % 3;
const row = Math.floor(i / 3);
const x = 0.28 + col * 3.22;
const y = 2.28 + row * 1.55;
// Number circle
s.addShape(pres.shapes.ELLIPSE, { x: x, y: y, w: 0.42, h: 0.42, fill: { color: st.color }, line: { color: st.color } });
s.addText(st.num, { x: x, y: y, w: 0.42, h: 0.42, fontSize: 14, bold: true, color: C.white, fontFace: "Calibri", align: "center", valign: "middle", margin: 0 });
s.addShape(pres.shapes.RECTANGLE, { x: x + 0.46, y, w: 2.65, h: 0.42, fill: { color: st.color }, line: { color: st.color } });
s.addText(st.title, { x: x + 0.50, y: y, w: 2.58, h: 0.42, fontSize: 10.5, bold: true, color: C.white, fontFace: "Calibri", valign: "middle", margin: 0 });
s.addShape(pres.shapes.RECTANGLE, { x, y: y + 0.44, w: 3.11, h: 1.06, fill: { color: C.white }, line: { color: C.grayLt, pt: 1 } });
s.addText(st.detail, { x: x + 0.1, y: y + 0.48, w: 2.92, h: 0.96, fontSize: 10, color: C.textDark, fontFace: "Calibri", valign: "top", margin: 0 });
});
}
// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 9 — LIVER TRANSPLANTATION
// ═══════════════════════════════════════════════════════════════════════════
{
const s = addSlide(C.offWhite);
sectionHeader(s, "Liver Transplantation in PALF", "Life-saving but difficult listing decision — evaluate ALL patients");
// Key stats
const stats = [
{ val: "~30%", label: "Current PALF\nMortality (w/ LT)" },
{ val: "73%", label: "1-yr Patient Survival\nafter LT for PALF" },
{ val: "7.7%", label: "LT Listing Rate\nfor PALF (2020)" },
{ val: "~50%", label: "Indeterminate\nEtiology" },
];
stats.forEach((st, i) => {
s.addShape(pres.shapes.RECTANGLE, { x: 0.28 + i * 2.42, y: 1.62, w: 2.22, h: 1.22,
fill: { color: i % 2 === 0 ? C.navy : C.teal }, line: { color: i % 2 === 0 ? C.navy : C.teal } });
s.addText(st.val, { x: 0.28 + i * 2.42, y: 1.64, w: 2.22, h: 0.72, fontSize: 28, bold: true, color: C.goldLt, fontFace: "Calibri", align: "center", valign: "middle", margin: 0 });
s.addText(st.label, { x: 0.28 + i * 2.42, y: 2.3, w: 2.22, h: 0.52, fontSize: 9.5, color: C.white, fontFace: "Calibri", align: "center", valign: "middle", margin: 0 });
});
addCard(s, 0.28, 2.98, 4.62, 2.44, "Indications / When to List", [
"Stage 3–4 encephalopathy with worsening trajectory",
"INR > 4, rapidly rising bilirubin",
"Renal failure + ammonia > 150 µmol/L",
"Wilson disease (most require LT)",
"DILI not responding to NAC",
"Indeterminate etiology — worst prognosis",
"Metabolic disease unresponsive to medical Rx"
], C.teal);
addCard(s, 5.10, 2.98, 4.62, 2.44, "Contraindications / Cautions", [
"Active uncontrolled systemic sepsis",
"Multi-organ failure beyond reversibility",
"Underlying mitochondrial disease (extrahepatic)",
"Brain death / irreversible CNS injury",
"Acetaminophen-induced (high spontaneous recovery — avoid rushing to list)",
"HAV etiology — favorable natural history"
], C.red);
}
// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 10 — PROGNOSTIC INDICATORS
// ═══════════════════════════════════════════════════════════════════════════
{
const s = addSlide(C.offWhite);
sectionHeader(s, "Prognostic Indicators", "Serial monitoring is key — factor V & INR are best bedside prognostic markers");
addCard(s, 0.28, 1.62, 4.62, 3.62, "Poor Prognosis", [
"INR > 4 or rapidly rising",
"Serum bilirubin > 18 mg/dL",
"Arterial ammonia > 150–200 µmol/L",
"HE grade 3–4",
"Severe metabolic acidosis (pH < 7.3 post-resuscitation)",
"Renal failure requiring dialysis",
"Indeterminate or subacute etiology",
"Age < 1 year (neonatal PALF)",
"Rapid progression: jaundice → coma < 7 days",
"EEG: triphasic waves"
], C.red);
addCard(s, 5.10, 1.62, 4.62, 3.62, "Favorable Prognosis", [
"Acetaminophen etiology (high spontaneous recovery)",
"Hepatitis A etiology",
"HE grade 1–2 at presentation",
"INR improving over 48–72 hours",
"Tyrosinemia responding to nitisinone (NTBC)",
"Autoimmune hepatitis (partial steroid response)",
"Factor V > 25% of normal",
"Rising factor V over serial measurements",
"Young child with known metabolic disease on specific Rx"
], "2E7D32");
// Footer
s.addShape(pres.shapes.RECTANGLE, { x: 0.28, y: 5.3, w: 9.44, h: 0.2, fill: { color: C.grayLt }, line: { color: C.grayLt } });
s.addText("King's College Criteria (adapted) and PALF Study Group scores are used to guide listing decisions alongside clinical judgment", {
x: 0.4, y: 5.32, w: 9.2, h: 0.2, fontSize: 9, color: C.grayMid, fontFace: "Calibri", valign: "middle", margin: 0
});
}
// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 11 — SPECIAL CONSIDERATIONS: NEONATES
// ═══════════════════════════════════════════════════════════════════════════
{
const s = addSlide(C.offWhite);
sectionHeader(s, "Special Considerations: Neonatal ALF", "Different etiology spectrum — unique diagnostic & treatment approaches");
const nCards = [
{
title: "Neonatal HSV",
color: C.red,
items: [
"Always empiric IV acyclovir until excluded",
"20 mg/kg IV q8h",
"HSV PCR: blood, CSF, skin swab",
"Mortality near 100% if untreated",
"Present: vesicles, seizures, coagulopathy, fever (or hypothermia)"
]
},
{
title: "Gestational Alloimmune Liver Disease (GALD / Neonatal Hemochromatosis)",
color: C.navy,
items: [
"Maternal IgG crosses placenta → fetal hepatocyte injury",
"Dx: MRI (extrahepatic siderosis), ferritin, buccal biopsy",
"Rx: IVIG + exchange transfusion + antioxidant cocktail",
"(NAC + vitamin E + selenium + N-acetylcysteine)",
"LT if no response to medical therapy"
]
},
{
title: "Mitochondrial Liver Disease",
color: "7B3F00",
items: [
"POLG mutations, respiratory chain defects",
"Clue: lactic acidosis, elevated lactate:pyruvate ratio",
"Avoid valproic acid",
"NAC supportive",
"LT generally contraindicated if extrahepatic disease present",
"Genetic / electron transport chain testing"
]
},
];
nCards.forEach((c, i) => {
addCard(s, 0.28 + i * 3.22, 1.62, 3.08, 3.72, c.title, c.items, c.color);
});
// Summary note
s.addShape(pres.shapes.RECTANGLE, { x: 0.28, y: 5.42, w: 9.44, h: 0.1, fill: { color: C.gold }, line: { color: C.gold } });
}
// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 12 — SUMMARY / KEY TAKEAWAYS
// ═══════════════════════════════════════════════════════════════════════════
{
const s = addSlide(C.navy);
// Decorative elements
s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.06, fill: { color: C.gold }, line: { color: C.gold } });
s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 5.565, w: 10, h: 0.06, fill: { color: C.gold }, line: { color: C.gold } });
s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0.06, w: 0.28, h: 5.505, fill: { color: C.teal }, line: { color: C.teal } });
s.addText("Key Takeaways", {
x: 0.55, y: 0.15, w: 9.0, h: 0.62,
fontSize: 24, bold: true, color: C.goldLt, fontFace: "Calibri", margin: 0
});
const points = [
["1", "PALF = coagulopathy (INR ≥1.5 with HE; ≥2.0 without) + acute hepatic illness < 8 wks, no pre-existing liver disease"],
["2", "Etiology is INDETERMINATE in ~50% — systematic work-up is mandatory in every case"],
["3", "Transfer IMMEDIATELY to a pediatric liver transplant center — do not delay"],
["4", "ICU care addressing all organ systems: neuro, hemodynamic, renal, infectious, nutritional"],
["5", "NAC for APAP; acyclovir for HSV (esp. neonates); disease-specific therapy always first-line"],
["6", "Hepatic encephalopathy monitoring is critical — cerebral edema + herniation is the leading cause of death"],
["7", "Liver transplant is life-saving in selected patients — LT decision requires early parallel evaluation"],
["8", "Serial INR + factor V are the most useful bedside prognostic markers"],
];
points.forEach((p, i) => {
const y = 0.88 + i * 0.58;
s.addShape(pres.shapes.ELLIPSE, { x: 0.42, y: y, w: 0.38, h: 0.38, fill: { color: C.gold }, line: { color: C.gold } });
s.addText(p[0], { x: 0.42, y: y, w: 0.38, h: 0.38, fontSize: 11, bold: true, color: C.navy, fontFace: "Calibri", align: "center", valign: "middle", margin: 0 });
s.addText(p[1], { x: 0.9, y: y + 0.02, w: 8.8, h: 0.36, fontSize: 11, color: C.white, fontFace: "Calibri", valign: "middle", margin: 0 });
});
}
// ─── WRITE FILE ──────────────────────────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/palf-slides/PALF_Approach_Children.pptx" })
.then(() => console.log("SUCCESS: PALF_Approach_Children.pptx created"))
.catch(err => { console.error("ERROR:", err); process.exit(1); });
cd /home/daytona/workspace/palf-slides && node palf.js
~/palf-slides/palf.js
Successfully replaced 1 instance(s) of the string in '/home/daytona/workspace/palf-slides/palf.js'
"pres.shapes.ELLIPSE" in ~/palf-slides
"pres.shapes.ELLIPSE" in ~/palf-slides
~/palf-slides/palf.js
Successfully replaced 1 instance(s) of the string in '/home/daytona/workspace/palf-slides/palf.js'
cd /home/daytona/workspace/palf-slides && node palf.js
ls -lh /home/daytona/workspace/palf-slides/PALF_Approach_Children.pptx
PALF Approach Children
Presentation · PPTX
| Slide | Content |
|---|---|
| 1 | Title slide |
| 2 | Definition & Diagnostic Criteria (INR thresholds, historical mortality) |
| 3 | Etiology - age-stratified table (neonate / toddler / adolescent) |
| 4 | Clinical Presentation + HE Staging (pediatric-modified grading table) |
| 5 | Diagnostic Work-up (5 category cards: LFTs, infection, metabolic, Wilson, autoimmune) |
| 6 | Immediate ICU Management (5 pillars: neuro, hemodynamic, renal, infection, nutrition) |
| 7 | Etiology-Specific Therapy (NAC dosing banner + treatment table for 9 causes) |
| 8 | Cerebral Edema Management (mechanism + 6-step protocol) |
| 9 | Liver Transplantation (stats, indications, contraindications) |
| 10 | Prognostic Indicators (poor vs. favorable prognosis cards) |
| 11 | Special Considerations - Neonatal ALF (HSV, GALD, mitochondrial disease) |
| 12 | Key Takeaways (8-point summary on dark background) |
Approach to acute liver failure in children
| Age | Key Causes |
|---|---|
| Neonates | HSV, gestational alloimmune liver disease (GALD/neonatal hemochromatosis), galactosemia, tyrosinemia, mitochondrial disease, urea cycle defects |
| Toddlers 1-5 yr | Acetaminophen, autoimmune hepatitis, HAV/HBV, Wilson disease, idiosyncratic DILI, viral (EBV, CMV, adenovirus) |
| School-age / Teens | Acetaminophen (intentional OD), Wilson disease, autoimmune hepatitis, HAV/HBV/HEV, DILI |
| All ages | Valproic acid, Reye syndrome (salicylates), organic acidemias, Budd-Chiari, malignancy |
Etiology remains indeterminate in ~50% of PALF cases - the most important single epidemiological fact.
| Stage | Features |
|---|---|
| 1 | Irritability, excessive crying, sleep disturbance, mild confusion |
| 2 | Excessive sleepiness, moderate confusion, personality change, intermittent disorientation |
| 3 | Stupor, profound confusion, delirium, hyperreflexia, extensor plantar response |
| 4a | Coma with pain response |
| 4b | Coma without any pain response - imminent herniation |
| Cause | Treatment |
|---|---|
| Acetaminophen | NAC: 140 mg/kg loading → 70 mg/kg q4h IV/PO |
| Autoimmune hepatitis | IV methylprednisolone (cautious - infection risk) |
| HSV | IV acyclovir 20 mg/kg q8h - empiric in neonates |
| Wilson disease | D-penicillamine / trientine + albumin dialysis; LT usually needed |
| Hepatitis B | Entecavir or tenofovir |
| Galactosemia | Galactose-free formula immediately |
| Tyrosinemia type 1 | Nitisinone (NTBC) urgently |
| GALD/Neonatal HC | IVIG + exchange transfusion + antioxidant cocktail |
| Budd-Chiari | Anticoagulation, interventional shunt, ± LT |
NAC beyond APAP: Also used in idiosyncratic DILI, hepatitis B, autoimmune, and indeterminate ALF (especially grades 1-2 HE) given low risk profile.
| Poor Prognosis | Favorable Prognosis |
|---|---|
| INR > 4, rising factor V absent | Acetaminophen etiology |
| Ammonia > 150-200 µmol/L | HAV etiology |
| HE Grade 3-4 | HE Grade 1-2 |
| pH < 7.3 post-resuscitation | INR improving at 48-72h |
| Renal failure on dialysis | Factor V > 25% or rising |
| Indeterminate / subacute etiology | Specific metabolic disease on targeted Rx |
| EEG triphasic waves | Young child with known treatable cause |
I don’t need summary i need detail study
"pediatric acute liver failure" AND management
Note: The AASLD adult definition allows up to 26 weeks. Pediatric definitions are stricter (8 weeks) because neonates and children with Wilson disease, autoimmune hepatitis, and certain metabolic diseases often have unrecognized pre-existing liver disease that must be excluded clinically.
| Type | Time: Symptom Onset to Encephalopathy | Features |
|---|---|---|
| Hyperacute | < 7 days | Acetaminophen, ischemia. High cerebral edema risk. Paradoxically better prognosis with treatment |
| Acute | 7-21 days | Hepatitis A, HBV |
| Subacute (Subfulminant) | 21 days to 8 weeks | Idiosyncratic DILI, indeterminate. Portal hypertension more common. Worst transplant-free survival |

| Function Lost | Consequence |
|---|---|
| Coagulation factor synthesis | Coagulopathy (all factors except VIII are liver-derived) |
| Ammonia detoxification (urea cycle) | Hyperammonemia |
| Gluconeogenesis + glycogen storage | Hypoglycemia |
| Bilirubin conjugation + excretion | Jaundice |
| Drug metabolism | Drug toxicity, prolonged sedative effects |
| Immune defense (Kupffer cells) | Susceptibility to gram-positive sepsis |
| Cytokine processing | Systemic inflammatory response, vasodilation |
| Stage | Adult Features | Pediatric Modifications (Stages 1 & 2) |
|---|---|---|
| 1 | Mild confusion, subtle personality change, sleep inversion | Irritability, excessive crying, decreased interaction, poor feeding, sleep disturbances, short attention span |
| 2 | Drowsiness, asterixis, disorientation | Excessive sleepiness, moderate confusion, personality changes, inappropriate behavior, intermittent disorientation, inability to perform age-appropriate tasks |
| 3 | Stupor, hyperreflexia, responds to verbal stimuli only | Stupor, delirium, hyperreflexia, extensor plantar response, responds to verbal stimuli |
| 4a | Coma, responds to pain | Coma with decerebrate/decorticate response to pain |
| 4b | Coma, no pain response | Deep coma, no pain response, risk of herniation imminent |

| Test | Significance |
|---|---|
| PT / INR | Defines PALF (INR ≥ 1.5 with HE, ≥ 2.0 without). Primary prognosis marker |
| Factor V | Shortest half-life of all clotting factors (~12h) - most sensitive for trend monitoring. Rising factor V = recovery. Falling = deterioration |
| Factor VII | Even shorter half-life (4-6h) - earliest indicator but less prognostically validated |
| Serum albumin | Reflects chronic synthetic function; may be acutely low |
| AST / ALT | Massively elevated (thousands). May paradoxically fall as all hepatocytes destroyed - "enzyme burnout" |
| Bilirubin | Total + direct; rises progressively |
| Alkaline phosphatase (ALP) | Paradoxically LOW in Wilson disease - copper inhibits ALP release |
| GGT | Elevated in cholestatic DILI; may guide etiology |
| Arterial ammonia | Correlates with HE severity in ALF (unlike chronic liver disease). Target < 75 µmol/L; levels > 150-200 associated with herniation risk |
| Serum lactate | Elevated = poor prognosis (tissue hypoperfusion; also seen in mitochondrial disease) |
| Blood gas (arterial) | Acid-base status; pH < 7.3 after resuscitation = Kings College Criteria criterion |
| Blood glucose | Monitor q1-2h; hypoglycemia very common and dangerous |
| Creatinine + BUN | Renal involvement; also Kings College Criteria component |
| CBC + differential | Thrombocytopenia; hemolysis (Wilson disease = Coombs-negative) |
| Fibrinogen | < 100 mg/dL indicates severe coagulopathy; needed before ICP monitor |
| APAP level | Always check even if not suspected; adducts for indeterminate cases |
Critical difference from chronic liver disease: Lactulose has NOT been shown to improve survival in ALF. Its mechanism (lowering gut ammonia production by acidification) works in cirrhosis but may be problematic in ALF because:
- Can cause colonic distension (complicates LT surgery)
- May worsen fluid/electrolyte balance However, it is still commonly used as it does lower ammonia levels.
| Etiology | Transplant-Free Survival |
|---|---|
| Acetaminophen | ~65% |
| Hepatitis A | ~50-60% |
| Ischemic hepatitis | ~50% |
| Pregnancy-related | ~50% |
| Autoimmune hepatitis | ~20-30% |
| Hepatitis B | ~25-30% |
| Idiosyncratic DILI | ~20-25% |
| Wilson disease (fulminant) | ~0-10% (almost always requires LT) |
| Indeterminate | Worst prognosis in PALF; ~15-20% |
| Parameter | Threshold / Sign |
|---|---|
| INR | > 4, or not improving at 48-72h |
| Factor V | < 25% of normal; falling trend |
| Serum bilirubin | > 18 mg/dL |
| Arterial ammonia | > 150-200 µmol/L |
| HE grade | 3 or 4 at presentation |
| Pace of HE progression | Rapid (days from jaundice to coma) |
| Blood gas pH | < 7.3 after resuscitation (APAP) |
| Serum lactate | > 3.5 mmol/L |
| Serum phosphate | > 1.2 mmol/L (hyperphosphatemia post-APAP = massive hepatocyte ATP depletion) |
| Renal failure | Creatinine > 3.4 mg/dL (APAP KCC) |
| Etiology | Indeterminate, subacute, Wilson disease, DILI |
| EEG | Triphasic waves, burst-suppression |
| Liver volume | Rapid shrinkage on serial imaging |