KMC position benefits and latch score make ppt in download form and collect information from ghai book paediatric
mkdir -p /home/daytona/workspace/kmc-ppt
~/kmc-ppt/create_ppt.js
const pptxgen = require("pptxgenjs");
let pres = new pptxgen();
pres.layout = 'LAYOUT_16x9';
pres.author = 'Paediatrics';
pres.title = 'KMC Position Benefits and LATCH Score';
// Color palette
const TEAL_DARK = "005B6E";
const TEAL_MID = "007B8F";
const TEAL_LIGHT = "00A8C0";
const GOLD = "F5A623";
const WHITE = "FFFFFF";
const LIGHT_BG = "EAF7FA";
const DARK_TEXT = "1A2E35";
const GRAY_TEXT = "4A6670";
// ─── Helper: Section Header Slide ───────────────────────────────────────────
function sectionSlide(title, subtitle) {
let s = pres.addSlide();
s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: TEAL_DARK } });
s.addShape(pres.ShapeType.rect, { x: 0, y: 4.5, w: 10, h: 1.125, fill: { color: TEAL_LIGHT } });
s.addText(title, { x: 0.6, y: 1.5, w: 8.8, h: 1.2, fontSize: 40, bold: true, color: WHITE, fontFace: "Calibri", align: "center" });
if (subtitle) {
s.addText(subtitle, { x: 0.6, y: 3.0, w: 8.8, h: 0.8, fontSize: 20, color: GOLD, fontFace: "Calibri", align: "center", italic: true });
}
return s;
}
// ─── Helper: Content Slide (left accent bar) ─────────────────────────────────
function contentSlide(title, accent) {
let s = pres.addSlide();
s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: LIGHT_BG } });
s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.8, fill: { color: TEAL_DARK } });
s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.1, h: 5.625, fill: { color: accent || TEAL_LIGHT } });
s.addText(title, { x: 0.3, y: 0.08, w: 9.4, h: 0.65, fontSize: 22, bold: true, color: WHITE, fontFace: "Calibri", valign: "middle" });
return s;
}
// ─── SLIDE 1: Title Slide ────────────────────────────────────────────────────
{
let s = pres.addSlide();
s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: TEAL_DARK } });
s.addShape(pres.ShapeType.rect, { x: 0, y: 3.9, w: 10, h: 1.725, fill: { color: TEAL_MID } });
s.addShape(pres.ShapeType.rect, { x: 0, y: 3.9, w: 10, h: 0.06, fill: { color: GOLD } });
// Decorative circles
s.addShape(pres.ShapeType.ellipse, { x: 7.8, y: -0.8, w: 3.5, h: 3.5, fill: { color: TEAL_LIGHT }, line: { color: TEAL_LIGHT } });
s.addShape(pres.ShapeType.ellipse, { x: -0.8, y: 3.5, w: 2.5, h: 2.5, fill: { color: TEAL_LIGHT }, line: { color: TEAL_LIGHT } });
s.addText("Kangaroo Mother Care (KMC)", {
x: 0.5, y: 0.8, w: 9, h: 1.1, fontSize: 36, bold: true, color: WHITE,
fontFace: "Calibri", align: "center"
});
s.addText("Position, Benefits & LATCH Score", {
x: 0.5, y: 1.9, w: 9, h: 0.8, fontSize: 26, color: GOLD,
fontFace: "Calibri", align: "center", italic: false
});
s.addText("Reference: Ghai Essential Paediatrics | Park's Preventive & Social Medicine", {
x: 0.5, y: 4.1, w: 9, h: 0.5, fontSize: 13, color: WHITE,
fontFace: "Calibri", align: "center", italic: true
});
s.addText("Neonatal Care — Low Birth Weight & Preterm Infants", {
x: 0.5, y: 4.7, w: 9, h: 0.5, fontSize: 13, color: WHITE,
fontFace: "Calibri", align: "center"
});
}
// ─── SLIDE 2: What is KMC? ───────────────────────────────────────────────────
{
let s = contentSlide("What is Kangaroo Mother Care (KMC)?", TEAL_LIGHT);
s.addText("Introduced in Colombia in 1979 by Drs. Hector Martinez and Edgar Rey as a response to high infection and mortality rates in LBW babies in overcrowded hospitals.", {
x: 0.3, y: 0.95, w: 9.4, h: 0.8, fontSize: 14, color: GRAY_TEXT, fontFace: "Calibri", italic: true
});
const boxes = [
{ icon: "🤱", label: "Skin-to-Skin Contact", desc: "Baby placed upright on mother's bare chest" },
{ icon: "🍼", label: "Breastfeeding Support", desc: "Exclusive or predominant breastfeeding" },
{ icon: "🏠", label: "Early Discharge", desc: "Ambulatory care with early hospital discharge" },
{ icon: "👨👩👧", label: "Family Support", desc: "Support for mother and family in baby care" },
];
boxes.forEach((b, i) => {
let x = 0.25 + (i % 2) * 4.85;
let y = i < 2 ? 1.85 : 3.2;
s.addShape(pres.ShapeType.roundRect, { x, y, w: 4.55, h: 1.15, fill: { color: WHITE }, line: { color: TEAL_LIGHT, pt: 2 }, rectRadius: 0.15 });
s.addText(b.icon + " " + b.label, { x: x + 0.15, y: y + 0.07, w: 4.25, h: 0.45, fontSize: 15, bold: true, color: TEAL_DARK, fontFace: "Calibri" });
s.addText(b.desc, { x: x + 0.15, y: y + 0.55, w: 4.25, h: 0.5, fontSize: 12, color: GRAY_TEXT, fontFace: "Calibri" });
});
s.addText("Park's Preventive & Social Medicine | Ghai Essential Paediatrics", {
x: 0.3, y: 5.2, w: 9.4, h: 0.3, fontSize: 10, color: GRAY_TEXT, fontFace: "Calibri", align: "right", italic: true
});
}
// ─── SLIDE 3: KMC Position ───────────────────────────────────────────────────
{
let s = contentSlide("KMC Position — How to Place the Baby", GOLD);
const steps = [
["1", "Upright (frog) position", "Baby placed vertically on mother's chest between the breasts"],
["2", "Chest-to-chest contact", "Baby's abdomen at mother's epigastrium; head turned to one side"],
["3", "Flexed limbs", "Hips flexed and abducted in a 'frog-leg' position; elbows flexed"],
["4", "Head slightly extended", "Airway must remain open; avoid neck flexion or hyperextension"],
["5", "Secured with binder", "Wrap/binder holds baby securely; mother can move freely"],
["6", "Duration", "Minimum 8 hrs/day; 24 hrs/day is ideal — continuous KMC preferred"],
];
steps.forEach(([num, title, desc], i) => {
let y = 0.95 + i * 0.72;
s.addShape(pres.ShapeType.ellipse, { x: 0.2, y: y + 0.07, w: 0.42, h: 0.42, fill: { color: TEAL_LIGHT }, line: { color: TEAL_LIGHT } });
s.addText(num, { x: 0.2, y: y + 0.07, w: 0.42, h: 0.42, fontSize: 14, bold: true, color: WHITE, fontFace: "Calibri", align: "center", valign: "middle", margin: 0 });
s.addText(title + ": ", { x: 0.75, y: y + 0.05, w: 2.5, h: 0.42, fontSize: 13, bold: true, color: TEAL_DARK, fontFace: "Calibri", valign: "middle" });
s.addText(desc, { x: 3.2, y: y + 0.05, w: 6.6, h: 0.42, fontSize: 12, color: DARK_TEXT, fontFace: "Calibri", valign: "middle" });
});
s.addText("Ghai Essential Paediatrics | WHO KMC Guidelines", {
x: 0.3, y: 5.2, w: 9.4, h: 0.3, fontSize: 10, color: GRAY_TEXT, fontFace: "Calibri", align: "right", italic: true
});
}
// ─── SLIDE 4: Benefits — Thermal & Physiological ────────────────────────────
{
let s = contentSlide("KMC Benefits — Thermal & Physiological", TEAL_LIGHT);
const items = [
["🌡️", "Thermoregulation", "Maintains body temperature as effectively as an incubator; prevents hypothermia in LBW/preterm infants"],
["❤️", "Cardiorespiratory Stability", "Reduces apnea episodes; stabilises heart rate, respiratory rate, and oxygen saturation (SpO₂)"],
["🔬", "Reduced Infections", "Skin flora colonisation with maternal organisms reduces nosocomial infection risk (NEC, sepsis)"],
["🧠", "Neurological Development", "Promotes brain maturation; better sleep cycles; increased deep sleep states"],
["⚖️", "Weight Gain", "Improved weight gain: up to 15–20 g/day; shorter hospital stay"],
];
items.forEach(([icon, title, desc], i) => {
let y = 0.95 + i * 0.84;
s.addShape(pres.ShapeType.rect, { x: 0.2, y, w: 9.6, h: 0.75, fill: { color: i % 2 === 0 ? WHITE : "D9F2F7" }, line: { color: TEAL_LIGHT, pt: 1 } });
s.addText(icon, { x: 0.3, y: y + 0.12, w: 0.6, h: 0.5, fontSize: 20, fontFace: "Segoe UI Emoji" });
s.addText(title, { x: 1.0, y: y + 0.05, w: 2.6, h: 0.35, fontSize: 14, bold: true, color: TEAL_DARK, fontFace: "Calibri" });
s.addText(desc, { x: 1.0, y: y + 0.38, w: 8.6, h: 0.35, fontSize: 12, color: DARK_TEXT, fontFace: "Calibri" });
});
s.addText("Ghai Essential Paediatrics | Park's Textbook", {
x: 0.3, y: 5.2, w: 9.4, h: 0.3, fontSize: 10, color: GRAY_TEXT, fontFace: "Calibri", align: "right", italic: true
});
}
// ─── SLIDE 5: Benefits — Maternal & Psychosocial ────────────────────────────
{
let s = contentSlide("KMC Benefits — Maternal & Psychosocial", GOLD);
const items = [
["🤱", "Breastfeeding Success", "Stimulates prolactin; increases breast milk production; supports exclusive breastfeeding"],
["💞", "Mother-Infant Bonding", "Enhances maternal attachment; reduces maternal anxiety and postnatal depression"],
["😴", "Comfort & Pain Relief", "Reduces procedural pain in baby (heel prick, IV); baby calmer and less stressed"],
["🏥", "Earlier Discharge", "Stable LBW infants discharged earlier — ambulatory KMC at home"],
["💰", "Cost Reduction", "Decreases NICU stay duration; reduces hospital costs significantly"],
["📉", "Reduced Mortality", "WHO: KMC reduces mortality in LBW <2000 g by up to 40%; reduces severe morbidity"],
];
items.forEach(([icon, title, desc], i) => {
let col = i % 2;
let row = Math.floor(i / 2);
let x = 0.2 + col * 4.9;
let y = 1.0 + row * 1.45;
s.addShape(pres.ShapeType.roundRect, { x, y, w: 4.6, h: 1.28, fill: { color: WHITE }, line: { color: GOLD, pt: 1.5 }, rectRadius: 0.12 });
s.addText(icon + " " + title, { x: x + 0.15, y: y + 0.08, w: 4.3, h: 0.42, fontSize: 14, bold: true, color: TEAL_DARK, fontFace: "Calibri" });
s.addText(desc, { x: x + 0.15, y: y + 0.55, w: 4.3, h: 0.65, fontSize: 11.5, color: DARK_TEXT, fontFace: "Calibri" });
});
s.addText("Ghai Essential Paediatrics | WHO / Park's Textbook", {
x: 0.3, y: 5.2, w: 9.4, h: 0.3, fontSize: 10, color: GRAY_TEXT, fontFace: "Calibri", align: "right", italic: true
});
}
// ─── SLIDE 6: Section Break — LATCH Score ────────────────────────────────────
sectionSlide("LATCH Score", "Assessment Tool for Effective Breastfeeding");
// ─── SLIDE 7: What is LATCH Score? ──────────────────────────────────────────
{
let s = contentSlide("What is the LATCH Score?", TEAL_LIGHT);
s.addText("The LATCH score is a validated breastfeeding assessment tool — each letter represents one component scored 0, 1, or 2.", {
x: 0.3, y: 0.92, w: 9.4, h: 0.6, fontSize: 14, color: DARK_TEXT, fontFace: "Calibri"
});
s.addText("Total Score: 0 – 10 | Higher score = better breastfeeding", {
x: 0.3, y: 1.52, w: 9.4, h: 0.45, fontSize: 14, bold: true, color: GOLD, fontFace: "Calibri", align: "center"
});
const letters = [
{ letter: "L", word: "Latch", color: TEAL_DARK },
{ letter: "A", word: "Audible swallow", color: TEAL_MID },
{ letter: "T", word: "Type of nipple", color: TEAL_LIGHT },
{ letter: "C", word: "Comfort (breast/nipple)", color: "E08B00" },
{ letter: "H", word: "Hold (positioning/help)", color: "007A8F" },
];
letters.forEach((item, i) => {
let x = 0.3 + i * 1.9;
s.addShape(pres.ShapeType.rect, { x, y: 2.1, w: 1.75, h: 1.0, fill: { color: item.color }, line: { color: item.color } });
s.addText(item.letter, { x, y: 2.1, w: 1.75, h: 0.6, fontSize: 40, bold: true, color: WHITE, fontFace: "Calibri", align: "center", valign: "bottom", margin: 0 });
s.addShape(pres.ShapeType.rect, { x, y: 3.1, w: 1.75, h: 0.6, fill: { color: LIGHT_BG }, line: { color: item.color } });
s.addText(item.word, { x, y: 3.1, w: 1.75, h: 0.6, fontSize: 11, color: DARK_TEXT, fontFace: "Calibri", align: "center", valign: "middle", bold: false });
});
s.addText("Jensen, Wallace & Kelsay (1994) — widely used in neonatal / maternity nursing", {
x: 0.3, y: 5.2, w: 9.4, h: 0.3, fontSize: 10, color: GRAY_TEXT, fontFace: "Calibri", align: "right", italic: true
});
}
// ─── SLIDE 8: LATCH Score Table ──────────────────────────────────────────────
{
let s = contentSlide("LATCH Score — Scoring Criteria", TEAL_LIGHT);
const rows = [
["Component", "Score 0", "Score 1", "Score 2"],
["L — Latch", "Too sleepy / no latch", "Repeated attempts; holds briefly", "Grasps breast; rhythmic sucking; relaxed"],
["A — Audible Swallow", "None heard", "A few with stimulation", "Spontaneous and intermittent"],
["T — Nipple Type", "Inverted", "Flat", "Everted (after stimulation or normal)"],
["C — Comfort (breast)", "Engorged; cracked nipples; bleeding", "Filling; reddened; large blisters", "Soft; no tenderness; mild discomfort"],
["H — Hold", "Full nurse assistance (all time)", "Minimal assistance; staff teaches", "No help needed; mother capable"],
];
const colW = [2.0, 2.5, 2.5, 2.5];
const startX = 0.25;
let y = 0.92;
rows.forEach((row, ri) => {
let x = startX;
row.forEach((cell, ci) => {
let bg = ri === 0 ? TEAL_DARK : (ri % 2 === 0 ? "D9F2F7" : WHITE);
let textColor = ri === 0 ? WHITE : DARK_TEXT;
let bold = ri === 0 || ci === 0;
s.addShape(pres.ShapeType.rect, { x, y, w: colW[ci], h: ri === 0 ? 0.42 : 0.72, fill: { color: bg }, line: { color: TEAL_LIGHT, pt: 0.5 } });
s.addText(cell, { x: x + 0.06, y, w: colW[ci] - 0.12, h: ri === 0 ? 0.42 : 0.72, fontSize: ri === 0 ? 13 : 11, bold, color: textColor, fontFace: "Calibri", valign: "middle" });
x += colW[ci];
});
y += ri === 0 ? 0.42 : 0.72;
});
s.addText("Jensen D, Wallace S, Kelsay P. LATCH: A breastfeeding charting system and documentation tool. JOGNN 1994", {
x: 0.3, y: 5.2, w: 9.4, h: 0.3, fontSize: 9.5, color: GRAY_TEXT, fontFace: "Calibri", align: "right", italic: true
});
}
// ─── SLIDE 9: LATCH Score Interpretation ────────────────────────────────────
{
let s = contentSlide("LATCH Score — Interpretation & Action", GOLD);
const bands = [
{ range: "0 – 3", label: "Needs Urgent Support", color: "C0392B", desc: "Immediate lactation consultant referral; consider supplementation; reassess latch with support" },
{ range: "4 – 6", label: "Needs Monitoring", color: "E08B00", desc: "Targeted support; observe next 2 feeds; teach mother positioning techniques; home follow-up" },
{ range: "7 – 10", label: "Breastfeeding Well", color: "27AE60", desc: "Encourage and praise; routine follow-up; reassess if any maternal / infant concern arises" },
];
bands.forEach((b, i) => {
let y = 1.0 + i * 1.35;
s.addShape(pres.ShapeType.rect, { x: 0.25, y, w: 1.4, h: 1.15, fill: { color: b.color }, line: { color: b.color } });
s.addText(b.range, { x: 0.25, y, w: 1.4, h: 0.55, fontSize: 22, bold: true, color: WHITE, fontFace: "Calibri", align: "center", valign: "middle", margin: 0 });
s.addText("Score", { x: 0.25, y: y + 0.55, w: 1.4, h: 0.6, fontSize: 12, color: WHITE, fontFace: "Calibri", align: "center", valign: "top", margin: 0 });
s.addShape(pres.ShapeType.rect, { x: 1.65, y, w: 8.1, h: 1.15, fill: { color: "FAFAFA" }, line: { color: b.color, pt: 1.5 } });
s.addText(b.label, { x: 1.75, y: y + 0.05, w: 8.0, h: 0.38, fontSize: 16, bold: true, color: b.color, fontFace: "Calibri" });
s.addText(b.desc, { x: 1.75, y: y + 0.43, w: 8.0, h: 0.65, fontSize: 12, color: DARK_TEXT, fontFace: "Calibri" });
});
s.addText("Score <7 at discharge is associated with early breastfeeding cessation — schedule 24–48 hr follow-up.", {
x: 0.25, y: 5.1, w: 9.5, h: 0.35, fontSize: 11.5, color: TEAL_DARK, fontFace: "Calibri", bold: true, italic: true
});
}
// ─── SLIDE 10: KMC + LATCH Integration ──────────────────────────────────────
{
let s = contentSlide("KMC & LATCH — Clinical Integration", TEAL_LIGHT);
s.addText("Using LATCH scoring during KMC sessions provides structured, objective breastfeeding monitoring for LBW/preterm infants.", {
x: 0.3, y: 0.95, w: 9.4, h: 0.6, fontSize: 13.5, color: DARK_TEXT, fontFace: "Calibri"
});
const cols = [
{
title: "When to Score",
color: TEAL_DARK,
items: [
"At first KMC feed attempt",
"Every feed for first 48 hrs",
"At each nursing shift",
"Pre-discharge assessment",
"At home visit follow-up",
]
},
{
title: "What to Observe",
color: TEAL_MID,
items: [
"Baby's latch quality in upright KMC position",
"Audible swallowing sounds",
"Nipple comfort during feeding",
"How much help mother needs",
"Type of nipple (flat/inverted/everted)",
]
},
{
title: "Action on Low Score",
color: GOLD,
items: [
"Continue KMC — skin contact aids feeding",
"Correct positioning — adjust hold",
"Express breast milk if latch fails",
"Refer to lactation support",
"Document and reassess after support",
]
},
];
cols.forEach((col, ci) => {
let x = 0.25 + ci * 3.25;
s.addShape(pres.ShapeType.rect, { x, y: 1.65, w: 3.1, h: 0.45, fill: { color: col.color }, line: { color: col.color } });
s.addText(col.title, { x, y: 1.65, w: 3.1, h: 0.45, fontSize: 14, bold: true, color: WHITE, fontFace: "Calibri", align: "center", valign: "middle", margin: 0 });
col.items.forEach((item, ii) => {
let rowY = 2.18 + ii * 0.57;
s.addShape(pres.ShapeType.rect, { x, y: rowY, w: 3.1, h: 0.52, fill: { color: ii % 2 === 0 ? LIGHT_BG : WHITE }, line: { color: TEAL_LIGHT, pt: 0.5 } });
s.addText("• " + item, { x: x + 0.1, y: rowY + 0.04, w: 2.95, h: 0.44, fontSize: 11, color: DARK_TEXT, fontFace: "Calibri", valign: "middle" });
});
});
s.addText("Ghai Essential Paediatrics | WHO KMC Implementation Guidelines", {
x: 0.3, y: 5.2, w: 9.4, h: 0.3, fontSize: 10, color: GRAY_TEXT, fontFace: "Calibri", align: "right", italic: true
});
}
// ─── SLIDE 11: Eligibility & Contraindications ──────────────────────────────
{
let s = contentSlide("KMC — Eligibility & Contraindications", GOLD);
s.addShape(pres.ShapeType.rect, { x: 0.2, y: 0.95, w: 4.65, h: 0.42, fill: { color: "27AE60" }, line: { color: "27AE60" } });
s.addText("✅ Eligible / Indications", { x: 0.2, y: 0.95, w: 4.65, h: 0.42, fontSize: 15, bold: true, color: WHITE, fontFace: "Calibri", align: "center", valign: "middle", margin: 0 });
const elig = [
"LBW infants: birth weight < 2000 g (esp. 1000–1800 g)",
"Preterm infants (< 37 weeks gestation)",
"Stable infant — no respiratory distress or major illness",
"Initiated in NICU — may continue at home",
"Any willing family member can give KMC (father, grandparent)",
"Twins can receive KMC simultaneously",
];
elig.forEach((item, i) => {
let y = 1.45 + i * 0.54;
s.addShape(pres.ShapeType.rect, { x: 0.2, y, w: 4.65, h: 0.48, fill: { color: i % 2 === 0 ? "#E8F8EF" : WHITE }, line: { color: "27AE60", pt: 0.5 } });
s.addText("• " + item, { x: 0.35, y: y + 0.04, w: 4.4, h: 0.4, fontSize: 11, color: DARK_TEXT, fontFace: "Calibri", valign: "middle" });
});
s.addShape(pres.ShapeType.rect, { x: 5.15, y: 0.95, w: 4.65, h: 0.42, fill: { color: "C0392B" }, line: { color: "C0392B" } });
s.addText("❌ Contraindications", { x: 5.15, y: 0.95, w: 4.65, h: 0.42, fontSize: 15, bold: true, color: WHITE, fontFace: "Calibri", align: "center", valign: "middle", margin: 0 });
const contra = [
"Severe respiratory distress requiring ventilation",
"Infant requiring continuous IV infusion or monitoring lines",
"Major congenital malformations (unstable)",
"Mother unable or unwilling to participate",
"Open surgical wounds or major skin lesions",
"Infant with severe NEC or active sepsis (relative)",
];
contra.forEach((item, i) => {
let y = 1.45 + i * 0.54;
s.addShape(pres.ShapeType.rect, { x: 5.15, y, w: 4.65, h: 0.48, fill: { color: i % 2 === 0 ? "#FDECEA" : WHITE }, line: { color: "C0392B", pt: 0.5 } });
s.addText("• " + item, { x: 5.30, y: y + 0.04, w: 4.4, h: 0.4, fontSize: 11, color: DARK_TEXT, fontFace: "Calibri", valign: "middle" });
});
s.addText("Ghai Essential Paediatrics | WHO KMC Guidelines 2023", {
x: 0.3, y: 5.2, w: 9.4, h: 0.3, fontSize: 10, color: GRAY_TEXT, fontFace: "Calibri", align: "right", italic: true
});
}
// ─── SLIDE 12: Summary / Key Points ─────────────────────────────────────────
{
let s = pres.addSlide();
s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: TEAL_DARK } });
s.addShape(pres.ShapeType.rect, { x: 0, y: 0.8, w: 10, h: 4.825, fill: { color: LIGHT_BG } });
s.addText("Key Takeaways", {
x: 0.5, y: 0.05, w: 9, h: 0.7, fontSize: 28, bold: true, color: WHITE,
fontFace: "Calibri", align: "center"
});
const points = [
["🤱", "KMC originated in Colombia (1979); now a WHO standard of care for LBW/preterm infants"],
["📐", "Upright skin-to-skin position; frog-leg posture; minimum 8 hrs/day (24 hrs ideal)"],
["🌡️", "Thermal, cardiovascular, neurological, and breastfeeding benefits proven by evidence"],
["📉", "Reduces LBW infant mortality by up to 40% (WHO); shorter NICU stay, lower costs"],
["📋", "LATCH score assesses 5 breastfeeding components: L-A-T-C-H, scored 0-1-2 (total 0-10)"],
["⚠️", "LATCH score <7 at discharge = early follow-up; <4 = urgent lactation support needed"],
["🔗", "Use LATCH at every KMC feed; low score → correct position, express milk, refer for help"],
];
points.forEach(([icon, text], i) => {
let y = 1.0 + i * 0.63;
s.addShape(pres.ShapeType.ellipse, { x: 0.3, y: y + 0.08, w: 0.42, h: 0.42, fill: { color: TEAL_LIGHT }, line: { color: TEAL_LIGHT } });
s.addText(icon, { x: 0.3, y: y + 0.08, w: 0.42, h: 0.42, fontSize: 16, fontFace: "Segoe UI Emoji", align: "center", valign: "middle", margin: 0 });
s.addText(text, { x: 0.85, y: y + 0.06, w: 8.9, h: 0.48, fontSize: 13, color: DARK_TEXT, fontFace: "Calibri", valign: "middle" });
});
}
// ─── Write File ──────────────────────────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/kmc-ppt/KMC_Position_Benefits_LATCH_Score.pptx" })
.then(() => console.log("PPT created successfully!"))
.catch(e => { console.error("Error:", e); process.exit(1); });
cd /home/daytona/workspace/kmc-ppt && node create_ppt.js
ls -lh /home/daytona/workspace/kmc-ppt/
KMC Position Benefits LATCH Score
Presentation · PPTX
| Slide | Content |
|---|---|
| 1 | Title slide — KMC Position, Benefits & LATCH Score (Ghai + Park's reference) |
| 2 | What is KMC? — History (Colombia 1979, Drs. Martinez & Rey), 4 core components |
| 3 | KMC Position — Step-by-step: upright/frog position, head alignment, binder use, duration |
| 4 | Physiological Benefits — Thermoregulation, cardiorespiratory stability, infection prevention, neuro development, weight gain |
| 5 | Maternal & Psychosocial Benefits — Breastfeeding, bonding, pain relief, early discharge, cost reduction, mortality reduction (WHO: 40% in <2000 g) |
| 6 | Section break — LATCH Score |
| 7 | What is LATCH? — Visual display of all 5 letters with full-form (Jensen 1994) |
| 8 | LATCH Score Table — All 5 components with Score 0 / 1 / 2 criteria |
| 9 | LATCH Interpretation — Score bands (0-3 urgent, 4-6 monitor, 7-10 well) with actions |
| 10 | Clinical Integration — When to score, what to observe, actions on low score during KMC |
| 11 | Eligibility & Contraindications — Green/red two-column comparison |
| 12 | Key Takeaways — 7 summary bullet points |
Make pdf please in download form
libreoffice --headless --convert-to pdf /home/daytona/workspace/kmc-ppt/KMC_Position_Benefits_LATCH_Score.pptx --outdir /home/daytona/workspace/kmc-ppt/ 2>&1
mkdir -p /home/daytona/workspace/kmc-ppt/output && libreoffice --headless --convert-to pdf /home/daytona/workspace/kmc-ppt/KMC_Position_Benefits_LATCH_Score.pptx --outdir /home/daytona/workspace/kmc-ppt/output/ 2>&1
cp /home/daytona/workspace/kmc-ppt/KMC_Position_Benefits_LATCH_Score.pptx /tmp/kmc.pptx && libreoffice --headless --convert-to pdf /tmp/kmc.pptx --outdir /tmp/ 2>&1 && ls -lh /tmp/kmc.pdf
cp /tmp/kmc.pdf /home/daytona/workspace/kmc-ppt/KMC_Position_Benefits_LATCH_Score.pdf && ls -lh /home/daytona/workspace/kmc-ppt/
KMC Position Benefits LATCH Score
PDF Document · PDF