Make ppt presentation on Pediatric NCD Early detection, prompt treatment and prevention with good theme and colours
ls -la /home/daytona/workspace/ 2>/dev/null || echo "workspace empty or not found"
mkdir -p /home/daytona/workspace/pediatric-ncd-ppt
~/pediatric-ncd-ppt/create_pediatric_ncd_ppt.js
const pptxgen = require('pptxgenjs');
const pptx = new pptxgen();
pptx.layout = 'LAYOUT_WIDE';
pptx.author = 'Orris';
pptx.company = 'Health Education';
pptx.subject = 'Pediatric NCD Early Detection, Prompt Treatment and Prevention';
pptx.title = 'Pediatric NCD: Early Detection, Prompt Treatment and Prevention';
pptx.lang = 'en-US';
pptx.theme = {
headFontFace: 'Aptos Display',
bodyFontFace: 'Aptos',
lang: 'en-US'
};
const COLORS = {
bgDark: '0B1F3A',
bgMid: '123A6B',
bgLight: 'EAF3FF',
primary: '1D4E89',
secondary: '2A9D8F',
accent: 'F4A261',
danger: 'E63946',
textDark: '102A43',
textLight: 'FFFFFF',
muted: '6C7A89',
white: 'FFFFFF'
};
function addHeaderBar(slide, title, subtitle = '') {
slide.background = { color: COLORS.bgLight };
slide.addShape(pptx.ShapeType.rect, {
x: 0,
y: 0,
w: 13.33,
h: 0.85,
fill: { color: COLORS.bgDark },
line: { color: COLORS.bgDark }
});
slide.addText(title, {
x: 0.45,
y: 0.18,
w: 9.8,
h: 0.35,
fontFace: 'Aptos Display',
fontSize: 21,
bold: true,
color: COLORS.textLight,
margin: 0
});
if (subtitle) {
slide.addText(subtitle, {
x: 0.45,
y: 0.53,
w: 10.8,
h: 0.2,
fontSize: 11,
color: 'D0E3FF',
margin: 0
});
}
slide.addShape(pptx.ShapeType.line, {
x: 0,
y: 0.85,
w: 13.33,
h: 0,
line: { color: COLORS.accent, pt: 2 }
});
}
function addFooter(slide, txt = 'Pediatric NCD Program') {
slide.addShape(pptx.ShapeType.rect, {
x: 0,
y: 7.18,
w: 13.33,
h: 0.32,
fill: { color: 'DCE9F9' },
line: { color: 'DCE9F9' }
});
slide.addText(txt, {
x: 0.45,
y: 7.24,
w: 8,
h: 0.18,
fontSize: 10,
color: COLORS.muted,
margin: 0
});
}
function addCard(slide, x, y, w, h, title, body, color = COLORS.primary) {
slide.addShape(pptx.ShapeType.roundRect, {
x, y, w, h,
radius: 0.08,
fill: { color: COLORS.white, transparency: 0 },
line: { color: 'C8D8EE', pt: 1 }
});
slide.addShape(pptx.ShapeType.rect, {
x: x + 0.15,
y: y + 0.18,
w: 0.08,
h: h - 0.36,
fill: { color },
line: { color }
});
slide.addText(title, {
x: x + 0.3,
y: y + 0.16,
w: w - 0.45,
h: 0.35,
fontSize: 15,
bold: true,
color: COLORS.textDark,
margin: 0
});
slide.addText(body, {
x: x + 0.3,
y: y + 0.56,
w: w - 0.45,
h: h - 0.72,
fontSize: 12,
color: '334E68',
valign: 'top',
margin: 0.02,
breakLine: true
});
}
// Slide 1: Title
{
const s = pptx.addSlide();
s.background = { color: COLORS.bgDark };
s.addShape(pptx.ShapeType.rect, {
x: 0,
y: 0,
w: 13.33,
h: 7.5,
fill: { color: COLORS.bgDark },
line: { color: COLORS.bgDark }
});
s.addShape(pptx.ShapeType.roundRect, {
x: 0.8,
y: 1.0,
w: 11.7,
h: 5.4,
radius: 0.12,
fill: { color: COLORS.bgMid, transparency: 10 },
line: { color: '4F79AA', pt: 1 }
});
s.addText('Pediatric Non-Communicable Diseases', {
x: 1.2,
y: 2.1,
w: 10.9,
h: 0.9,
fontFace: 'Aptos Display',
fontSize: 38,
bold: true,
color: COLORS.textLight,
align: 'center'
});
s.addText('Early Detection, Prompt Treatment and Prevention', {
x: 1.2,
y: 3.2,
w: 10.9,
h: 0.5,
fontSize: 21,
bold: false,
color: 'D7E8FF',
align: 'center'
});
s.addShape(pptx.ShapeType.line, {
x: 4.2,
y: 3.95,
w: 4.9,
h: 0,
line: { color: COLORS.accent, pt: 2 }
});
s.addText('For pediatricians, family physicians, nurses and school-health teams', {
x: 1.4,
y: 4.25,
w: 10.5,
h: 0.4,
fontSize: 14,
color: 'E8F1FF',
align: 'center'
});
s.addText('Prepared by: ____________________ Date: ____________________', {
x: 1.5,
y: 5.4,
w: 10.3,
h: 0.3,
fontSize: 12,
color: 'BFD7F6',
align: 'center'
});
}
// Slide 2: Why this matters
{
const s = pptx.addSlide();
addHeaderBar(s, 'Why Pediatric NCDs Need Early Action', 'The trajectory starts in childhood and tracks into adulthood');
addCard(s, 0.6, 1.25, 6.15, 2.45, 'The challenge',
'• Pediatric NCD burden is rising with urbanization, dietary change, inactivity and environmental exposures.\n' +
'• Major clusters include asthma/chronic respiratory disease, obesity, hypertension, diabetes and selected cancers.\n' +
'• Delayed diagnosis increases complications, school absenteeism and long-term cardiovascular-metabolic risk.', COLORS.danger);
addCard(s, 6.9, 1.25, 5.8, 2.45, 'The opportunity',
'• Most pediatric risk factors are detectable at primary care and school-health level.\n' +
'• Structured screening + rapid follow-up can modify lifelong risk trajectories.\n' +
'• Prevention packages are cost-effective when started before irreversible disease progression.', COLORS.secondary);
addCard(s, 0.6, 3.95, 12.1, 2.8, 'Core message',
'Move from episodic care to a lifecycle model: detect early, stratify risk, treat promptly, and sustain prevention through family, school and community systems.', COLORS.primary);
addFooter(s, 'Burden and prevention framing from major internal medicine and pediatric references');
}
// Slide 3: Priority Pediatric NCDs
{
const s = pptx.addSlide();
addHeaderBar(s, 'Priority Conditions in Pediatric NCD Programs');
const boxes = [
{ t: 'Obesity & Metabolic Risk', b: 'BMI-for-age trends upward\nInsulin resistance, dyslipidemia\nNAFLD risk', c: '2A9D8F' },
{ t: 'Type 2 Diabetes / Prediabetes', b: 'Increasing in adolescents\nAcanthosis, family history\nNeed glucose-based screening', c: '1D4E89' },
{ t: 'Hypertension', b: 'Often asymptomatic\nRequires age/height specific BP interpretation\nSecondary causes in younger children', c: 'F4A261' },
{ t: 'Asthma / Chronic Respiratory Disease', b: 'Recurrent wheeze or cough\nEnvironmental triggers\nHigh preventable exacerbation burden', c: 'E63946' },
{ t: 'Childhood Cancers (selected)', b: 'Less common but high impact\nRed-flag symptom recognition\nFast referral pathways', c: '7B2CBF' },
{ t: 'CKD Risk in High-Risk Groups', b: 'Diabetes, hypertension, obesity\nUrinalysis and renal function follow-up\nPrevent progression', c: '4C956C' }
];
let idx = 0;
for (let r = 0; r < 2; r++) {
for (let c = 0; c < 3; c++) {
const x = 0.65 + c * 4.2;
const y = 1.35 + r * 2.95;
const it = boxes[idx++];
s.addShape(pptx.ShapeType.roundRect, {
x, y, w: 3.8, h: 2.6,
radius: 0.08,
fill: { color: 'FFFFFF' },
line: { color: 'D7E3F4', pt: 1 }
});
s.addShape(pptx.ShapeType.rect, {
x: x, y: y, w: 3.8, h: 0.5,
fill: { color: it.c },
line: { color: it.c }
});
s.addText(it.t, {
x: x + 0.12, y: y + 0.12, w: 3.56, h: 0.28,
fontSize: 12, bold: true, color: 'FFFFFF', margin: 0
});
s.addText(it.b, {
x: x + 0.16, y: y + 0.68, w: 3.45, h: 1.8,
fontSize: 11, color: '334E68', valign: 'top', margin: 0.02
});
}
}
addFooter(s);
}
// Slide 4: Early detection algorithm
{
const s = pptx.addSlide();
addHeaderBar(s, 'Early Detection Framework', 'Screen, identify risk, confirm, and act');
const steps = [
{ h: '1. Universal Risk Scan', t: 'Growth curve, BP, lifestyle, family history, symptoms at routine visits and school-health contacts.', c: '1D4E89' },
{ h: '2. Targeted Screening', t: 'BMI-for-age, repeated BP, glucose/HbA1c in high-risk youth, respiratory symptom tools, focused exams.', c: '2A9D8F' },
{ h: '3. Confirmatory Workup', t: 'Standardized diagnostic tests, staging, complication screen, and differential diagnosis.', c: 'F4A261' },
{ h: '4. Triage and Referral', t: 'Primary-care management for mild disease; fast-track referral for severe, atypical or red-flag cases.', c: 'E63946' },
{ h: '5. Longitudinal Follow-up', t: 'Monitoring plans, adherence review, family counseling, and prevention reinforcement.', c: '7B2CBF' }
];
for (let i = 0; i < steps.length; i++) {
const y = 1.2 + i * 1.2;
s.addShape(pptx.ShapeType.roundRect, {
x: 0.85, y, w: 11.7, h: 0.95,
radius: 0.05,
fill: { color: 'FFFFFF' },
line: { color: 'CCDDF2', pt: 1 }
});
s.addShape(pptx.ShapeType.roundRect, {
x: 0.95, y + 0.12, w: 3.15, h: 0.68,
radius: 0.04,
fill: { color: steps[i].c },
line: { color: steps[i].c }
});
s.addText(steps[i].h, {
x: 1.12, y: y + 0.31, w: 2.8, h: 0.24,
fontSize: 12, bold: true, color: 'FFFFFF'
});
s.addText(steps[i].t, {
x: 4.35, y: y + 0.18, w: 7.95, h: 0.55,
fontSize: 11.5, color: '334E68', valign: 'mid'
});
if (i < steps.length - 1) {
s.addShape(pptx.ShapeType.chevron, {
x: 6.45, y: y + 0.95, w: 0.45, h: 0.22,
fill: { color: 'A9C1E5' },
line: { color: 'A9C1E5' }
});
}
}
addFooter(s);
}
// Slide 5: Prompt treatment principles
{
const s = pptx.addSlide();
addHeaderBar(s, 'Prompt Treatment: First 24-72 Hours Matter');
addCard(s, 0.65, 1.25, 4.1, 2.45, 'Risk Stratification',
'• Categorize into mild, moderate, severe, and emergency pathways.\n• Identify comorbidities and social barriers early.', COLORS.primary);
addCard(s, 4.95, 1.25, 4.1, 2.45, 'Protocolized Initiation',
'• Start evidence-based treatment bundles immediately after diagnosis.\n• Do not delay counseling and action while awaiting specialist review.', COLORS.secondary);
addCard(s, 9.25, 1.25, 3.45, 2.45, 'Safety Nets',
'• Explicit return precautions\n• Family education for warning signs\n• Follow-up appointment before discharge', COLORS.danger);
addCard(s, 0.65, 3.95, 12.05, 2.75, 'Condition-specific examples',
'• Asthma: controller therapy plan + inhaler technique + trigger mitigation.\n' +
'• Hypertension: repeated validated BP, lifestyle intervention, secondary-cause workup when indicated.\n' +
'• Obesity/prediabetes: family-centered nutrition, activity prescription, sleep optimization, and staged metabolic follow-up.\n' +
'• Suspected malignancy red flags: same-day referral pathways and rapid diagnostics.', '7B2CBF');
addFooter(s);
}
// Slide 6: Prevention strategy
{
const s = pptx.addSlide();
addHeaderBar(s, 'Prevention Strategy Across Levels of Care');
const levels = [
{
ttl: 'Primary Prevention',
clr: '2A9D8F',
txt: 'Healthy diet patterns\nDaily physical activity\nAdequate sleep\nSmoke-free environments\nMental wellbeing support'
},
{
ttl: 'Secondary Prevention',
clr: '1D4E89',
txt: 'Routine growth/BP checks\nRisk-based glucose/lipid testing\nEarly symptom recognition\nSchool screening linkage'
},
{
ttl: 'Tertiary Prevention',
clr: 'F4A261',
txt: 'Complication surveillance\nAdherence reinforcement\nRehabilitation and psychosocial care\nTransition planning to adult services'
}
];
for (let i = 0; i < levels.length; i++) {
const x = 0.8 + i * 4.25;
s.addShape(pptx.ShapeType.roundRect, {
x, y: 1.6, w: 3.95, h: 4.65,
radius: 0.08,
fill: { color: 'FFFFFF' },
line: { color: 'D5E2F3', pt: 1 }
});
s.addShape(pptx.ShapeType.rect, {
x: x, y: 1.6, w: 3.95, h: 0.65,
fill: { color: levels[i].clr },
line: { color: levels[i].clr }
});
s.addText(levels[i].ttl, {
x: x + 0.2, y: 1.83, w: 3.55, h: 0.24,
fontSize: 13, bold: true, color: 'FFFFFF', align: 'center'
});
s.addText(levels[i].txt, {
x: x + 0.24, y: 2.45, w: 3.45, h: 3.6,
fontSize: 12, color: '334E68', valign: 'top'
});
}
addFooter(s);
}
// Slide 7: Implementation checklist
{
const s = pptx.addSlide();
addHeaderBar(s, 'Implementation Checklist for Clinics and Schools');
const left =
'1. Define local pediatric NCD priority list.\n' +
'2. Standardize screening schedules and thresholds.\n' +
'3. Train teams on pediatric measurement accuracy.\n' +
'4. Create rapid referral pathways with named contacts.\n' +
'5. Use registries for follow-up and missed-visit tracking.';
const right =
'6. Integrate counseling scripts for families.\n' +
'7. Ensure affordable medication and diagnostics access.\n' +
'8. Partner with schools for prevention campaigns.\n' +
'9. Monitor KPIs: detection rate, treatment initiation time, control rates.\n' +
'10. Review outcomes quarterly and adjust protocols.';
addCard(s, 0.8, 1.45, 6.0, 5.75, 'Operational Actions', left, COLORS.primary);
addCard(s, 6.95, 1.45, 5.6, 5.75, 'Quality and Continuity Actions', right, COLORS.secondary);
addFooter(s, 'Use this as a practical launch plan for district and facility teams');
}
// Slide 8: Closing
{
const s = pptx.addSlide();
s.background = { color: COLORS.bgDark };
s.addShape(pptx.ShapeType.rect, {
x: 0, y: 0, w: 13.33, h: 7.5,
fill: { color: COLORS.bgDark },
line: { color: COLORS.bgDark }
});
s.addText('Thank You', {
x: 0.8, y: 1.7, w: 11.7, h: 0.9,
fontFace: 'Aptos Display', fontSize: 54, bold: true,
color: 'FFFFFF', align: 'center'
});
s.addText('Early detection + prompt treatment + prevention = healthier lifecourse', {
x: 1.2, y: 3.0, w: 10.9, h: 0.45,
fontSize: 18, color: 'D0E3FF', align: 'center'
});
s.addShape(pptx.ShapeType.roundRect, {
x: 3.25, y: 4.05, w: 6.85, h: 1.35,
radius: 0.08,
fill: { color: '1B3B66', transparency: 10 },
line: { color: '6D95C7', pt: 1 }
});
s.addText('Questions and Discussion', {
x: 3.45, y: 4.52, w: 6.45, h: 0.35,
fontSize: 22, bold: true, color: 'FFFFFF', align: 'center'
});
s.addText('Contact: __________________________', {
x: 3.55, y: 5.05, w: 6.2, h: 0.25,
fontSize: 12, color: 'BFD7F6', align: 'center'
});
}
// References slide
{
const s = pptx.addSlide();
addHeaderBar(s, 'Selected References');
s.addShape(pptx.ShapeType.roundRect, {
x: 0.75, y: 1.25, w: 11.9, h: 5.8,
radius: 0.08,
fill: { color: 'FFFFFF' },
line: { color: 'D4E1F2', pt: 1 }
});
s.addText(
'• Harrison’s Principles of Internal Medicine 22E (2025, McGraw Hill Medical), sections on global NCD risk and prevention.\n' +
'• Cummings Otolaryngology Head and Neck Surgery, pediatric obesity related comorbidity discussion.\n' +
'• Brenner and Rector\'s The Kidney, public health and screening concepts for high-risk populations.\n' +
'• Textbook of Family Medicine 9e, early detection principles in cancer care.\n\n' +
'Note: Adapt epidemiology figures and protocol thresholds to your country guidelines and local program standards before clinical deployment.',
{
x: 1.05,
y: 1.55,
w: 11.3,
h: 5.1,
fontSize: 14,
color: '334E68',
valign: 'top'
}
);
addFooter(s, 'Educational deck template - customize with local policy and data');
}
pptx.writeFile({ fileName: '/home/daytona/workspace/pediatric-ncd-ppt/Pediatric_NCD_Early_Detection_Treatment_Prevention.pptx' });node "/home/daytona/workspace/pediatric-ncd-ppt/create_pediatric_ncd_ppt.js" && ls -la "/home/daytona/workspace/pediatric-ncd-ppt/"
~/pediatric-ncd-ppt/create_pediatric_ncd_ppt.js
Successfully replaced 1 instance(s) of the string in '/home/daytona/workspace/pediatric-ncd-ppt/create_pediatric_ncd_ppt.js'
node "/home/daytona/workspace/pediatric-ncd-ppt/create_pediatric_ncd_ppt.js" && ls -la "/home/daytona/workspace/pediatric-ncd-ppt/"
Pediatric NCD Early Detection Treatment Prevention
Presentation · PPTX
Clinical sign and symptoms for pg students md medicine teaching make pdf
Unsupported content block type: {'type': 'function_call', 'name': 'write_file', 'arguments': '{"file_path":"/home/daytona/workspace/pediatric-ncd-ppt/create_pediatric_ncd_ppt.js","content":"const pptxgen = require(\'pptxgenjs\');\\n\\nconst pptx = new pptxgen();\\npptx.layout = \'LAYOUT_WIDE\';\\npptx.author = \'Orris\';\\npptx.company = \'Health Education\';\\npptx.subject = \'Pediatric NCD Early Detection, Prompt Treatment and Prevention\';\\npptx.title = \'Pediatric NCD: Early Detection, Prompt Treatment and Prevention\';\\npptx.lang = \'en-US\';\\npptx.theme = {\\n headFontFace: \'Aptos Display\',\\n bodyFontFace: \'Aptos\',\\n lang: \'en-US\'\\n};\\n\\nconst COLORS = {\\n bgDark: \'0B1F3A\',\\n bgMid: \'123A6B\',\\n bgLight: \'EAF3FF\',\\n primary: \'1D4E89\',\\n secondary: \'2A9D8F\',\\n accent: \'F4A261\',\\n danger: \'E63946\',\\n textDark: \'102A43\',\\n textLight: \'FFFFFF\',\\n muted: \'6C7A89\',\\n white: \'FFFFFF\'\\n};\\n\\nfunction addHeaderBar(slide, title, subtitle = \'\') {\\n slide.background = { color: COLORS.bgLight };\\n slide.addShape(pptx.ShapeType.rect, {\\n x: 0,\\n y: 0,\\n w: 13.33,\\n h: 0.85,\\n fill: { color: COLORS.bgDark },\\n line: { color: COLORS.bgDark }\\n });\\n slide.addText(title, {\\n x: 0.45,\\n y: 0.18,\\n w: 9.8,\\n h: 0.35,\\n fontFace: \'Aptos Display\',\\n fontSize: 21,\\n bold: true,\\n color: COLORS.textLight,\\n margin: 0\\n });\\n if (subtitle) {\\n slide.addText(subtitle, {\\n x: 0.45,\\n y: 0.53,\\n w: 10.8,\\n h: 0.2,\\n fontSize: 11,\\n color: \'D0E3FF\',\\n margin: 0\\n });\\n }\\n slide.addShape(pptx.ShapeType.line, {\\n x: 0,\\n y: 0.85,\\n w: 13.33,\\n h: 0,\\n line: { color: COLORS.accent, pt: 2 }\\n });\\n}\\n\\nfunction addFooter(slide, txt = \'Pediatric NCD Program\') {\\n slide.addShape(pptx.ShapeType.rect, {\\n x: 0,\\n y: 7.18,\\n w: 13.33,\\n h: 0.32,\\n fill: { color: \'DCE9F9\' },\\n line: { color: \'DCE9F9\' }\\n });\\n slide.addText(txt, {\\n x: 0.45,\\n y: 7.24,\\n w: 8,\\n h: 0.18,\\n fontSize: 10,\\n color: COLORS.muted,\\n margin: 0\\n });\\n}\\n\\nfunction addCard(slide, x, y, w, h, title, body, color = COLORS.primary) {\\n slide.addShape(pptx.ShapeType.roundRect, {\\n x, y, w, h,\\n radius: 0.08,\\n fill: { color: COLORS.white, transparency: 0 },\\n line: { color: \'C8D8EE\', pt: 1 }\\n });\\n slide.addShape(pptx.ShapeType.rect, {\\n x: x + 0.15,\\n y: y + 0.18,\\n w: 0.08,\\n h: h - 0.36,\\n fill: { color },\\n line: { color }\\n });\\n slide.addText(title, {\\n x: x + 0.3,\\n y: y + 0.16,\\n w: w - 0.45,\\n h: 0.35,\\n fontSize: 15,\\n bold: true,\\n color: COLORS.textDark,\\n margin: 0\\n });\\n slide.addText(body, {\\n x: x + 0.3,\\n y: y + 0.56,\\n w: w - 0.45,\\n h: h - 0.72,\\n fontSize: 12,\\n color: \'334E68\',\\n valign: \'top\',\\n margin: 0.02,\\n breakLine: true\\n });\\n}\\n\\n// Slide 1: Title\\n{\\n const s = pptx.addSlide();\\n s.background = { color: COLORS.bgDark };\\n s.addShape(pptx.ShapeType.rect, {\\n x: 0,\\n y: 0,\\n w: 13.33,\\n h: 7.5,\\n fill: { color: COLORS.bgDark },\\n line: { color: COLORS.bgDark }\\n });\\n s.addShape(pptx.ShapeType.roundRect, {\\n x: 0.8,\\n y: 1.0,\\n w: 11.7,\\n h: 5.4,\\n radius: 0.12,\\n fill: { color: COLORS.bgMid, transparency: 10 },\\n line: { color: \'4F79AA\', pt: 1 }\\n });\\n s.addText(\'Pediatric Non-Communicable Diseases\', {\\n x: 1.2,\\n y: 2.1,\\n w: 10.9,\\n h: 0.9,\\n fontFace: \'Aptos Display\',\\n fontSize: 38,\\n bold: true,\\n color: COLORS.textLight,\\n align: \'center\'\\n });\\n s.addText(\'Early Detection, Prompt Treatment and Prevention\', {\\n x: 1.2,\\n y: 3.2,\\n w: 10.9,\\n h: 0.5,\\n fontSize: 21,\\n bold: false,\\n color: \'D7E8FF\',\\n align: \'center\'\\n });\\n s.addShape(pptx.ShapeType.line, {\\n x: 4.2,\\n y: 3.95,\\n w: 4.9,\\n h: 0,\\n line: { color: COLORS.accent, pt: 2 }\\n });\\n s.addText(\'For pediatricians, family physicians, nurses and school-health teams\', {\\n x: 1.4,\\n y: 4.25,\\n w: 10.5,\\n h: 0.4,\\n fontSize: 14,\\n color: \'E8F1FF\',\\n align: \'center\'\\n });\\n s.addText(\'Prepared by: ____________________ Date: ____________________\', {\\n x: 1.5,\\n y: 5.4,\\n w: 10.3,\\n h: 0.3,\\n fontSize: 12,\\n color: \'BFD7F6\',\\n align: \'center\'\\n });\\n}\\n\\n// Slide 2: Why this matters\\n{\\n const s = pptx.addSlide();\\n addHeaderBar(s, \'Why Pediatric NCDs Need Early Action\', \'The trajectory starts in childhood and tracks into adulthood\');\\n\\n addCard(s, 0.6, 1.25, 6.15, 2.45, \'The challenge\',\\n \'• Pediatric NCD burden is rising with urbanization, dietary change, inactivity and environmental exposures.\\\\n\' +\\n \'• Major clusters include asthma/chronic respiratory disease, obesity, hypertension, diabetes and selected cancers.\\\\n\' +\\n \'• Delayed diagnosis increases complications, school absenteeism and long-term cardiovascular-metabolic risk.\', COLORS.danger);\\n\\n addCard(s, 6.9, 1.25, 5.8, 2.45, \'The opportunity\',\\n \'• Most pediatric risk factors are detectable at primary care and school-health level.\\\\n\' +\\n \'• Structured screening + rapid follow-up can modify lifelong risk trajectories.\\\\n\' +\\n \'• Prevention packages are cost-effective when started before irreversible disease progression.\', COLORS.secondary);\\n\\n addCard(s, 0.6, 3.95, 12.1, 2.8, \'Core message\',\\n \'Move from episodic care to a lifecycle model: detect early, stratify risk, treat promptly, and sustain prevention through family, school and community systems.\', COLORS.primary);\\n\\n addFooter(s, \'Burden and prevention framing from major internal medicine and pediatric references\');\\n}\\n\\n// Slide 3: Priority Pediatric NCDs\\n{\\n const s = pptx.addSlide();\\n addHeaderBar(s, \'Priority Conditions in Pediatric NCD Programs\');\\n\\n const boxes = [\\n { t: \'Obesity & Metabolic Risk\', b: \'BMI-for-age trends upward\\\\nInsulin resistance, dyslipidemia\\\\nNAFLD risk\', c: \'2A9D8F\' },\\n { t: \'Type 2 Diabetes / Prediabetes\', b: \'Increasing in adolescents\\\\nAcanthosis, family history\\\\nNeed glucose-based screening\', c: \'1D4E89\' },\\n { t: \'Hypertension\', b: \'Often asymptomatic\\\\nRequires age/height specific BP interpretation\\\\nSecondary causes in younger children\', c: \'F4A261\' },\\n { t: \'Asthma / Chronic Respiratory Disease\', b: \'Recurrent wheeze or cough\\\\nEnvironmental triggers\\\\nHigh preventable exacerbation burden\', c: \'E63946\' },\\n { t: \'Childhood Cancers (selected)\', b: \'Less common but high impact\\\\nRed-flag symptom recognition\\\\nFast referral pathways\', c: \'7B2CBF\' },\\n { t: \'CKD Risk in High-Risk Groups\', b: \'Diabetes, hypertension, obesity\\\\nUrinalysis and renal function follow-up\\\\nPrevent progression\', c: \'4C956C\' }\\n ];\\n\\n let idx = 0;\\n for (let r = 0; r < 2; r++) {\\n for (let c = 0; c < 3; c++) {\\n const x = 0.65 + c * 4.2;\\n const y = 1.35 + r * 2.95;\\n const it = boxes[idx++];\\n s.addShape(pptx.ShapeType.roundRect, {\\n x, y, w: 3.8, h: 2.6,\\n radius: 0.08,\\n fill: { color: \'FFFFFF\' },\\n line: { color: \'D7E3F4\', pt: 1 }\\n });\\n s.addShape(pptx.ShapeType.rect, {\\n x: x, y: y, w: 3.8, h: 0.5,\\n fill: { color: it.c },\\n line: { color: it.c }\\n });\\n s.addText(it.t, {\\n x: x + 0.12, y: y + 0.12, w: 3.56, h: 0.28,\\n fontSize: 12, bold: true, color: \'FFFFFF\', margin: 0\\n });\\n s.addText(it.b, {\\n x: x + 0.16, y: y + 0.68, w: 3.45, h: 1.8,\\n fontSize: 11, color: \'334E68\', valign: \'top\', margin: 0.02\\n });\\n }\\n }\\n\\n addFooter(s);\\n}\\n\\n// Slide 4: Early detection algorithm\\n{\\n const s = pptx.addSlide();\\n addHeaderBar(s, \'Early Detection Framework\', \'Screen, identify risk, confirm, and act\');\\n\\n const steps = [\\n { h: \'1. Universal Risk Scan\', t: \'Growth curve, BP, lifestyle, family history, symptoms at routine visits and school-health contacts.\', c: \'1D4E89\' },\\n { h: \'2. Targeted Screening\', t: \'BMI-for-age, repeated BP, glucose/HbA1c in high-risk youth, respiratory symptom tools, focused exams.\', c: \'2A9D8F\' },\\n { h: \'3. Confirmatory Workup\', t: \'Standardized diagnostic tests, staging, complication screen, and differential diagnosis.\', c: \'F4A261\' },\\n { h: \'4. Triage and Referral\', t: \'Primary-care management for mild disease; fast-track referral for severe, atypical or red-flag cases.\', c: \'E63946\' },\\n { h: \'5. Longitudinal Follow-up\', t: \'Monitoring plans, adherence review, family counseling, and prevention reinforcement.\', c: \'7B2CBF\' }\\n ];\\n\\n for (let i = 0; i < steps.length; i++) {\\n const y = 1.2 + i * 1.2;\\n s.addShape(pptx.ShapeType.roundRect, {\\n x: 0.85, y, w: 11.7, h: 0.95,\\n radius: 0.05,\\n fill: { color: \'FFFFFF\' },\\n line: { color: \'CCDDF2\', pt: 1 }\\n });\\n s.addShape(pptx.ShapeType.roundRect, {\\n x: 0.95, y + 0.12, w: 3.15, h: 0.68,\\n radius: 0.04,\\n fill: { color: steps[i].c },\\n line: { color: steps[i].c }\\n });\\n s.addText(steps[i].h, {\\n x: 1.12, y: y + 0.31, w: 2.8, h: 0.24,\\n fontSize: 12, bold: true, color: \'FFFFFF\'\\n });\\n s.addText(steps[i].t, {\\n x: 4.35, y: y + 0.18, w: 7.95, h: 0.55,\\n fontSize: 11.5, color: \'334E68\', valign: \'mid\'\\n });\\n if (i < steps.length - 1) {\\n s.addShape(pptx.ShapeType.chevron, {\\n x: 6.45, y: y + 0.95, w: 0.45, h: 0.22,\\n fill: { color: \'A9C1E5\' },\\n line: { color: \'A9C1E5\' }\\n });\\n }\\n }\\n\\n addFooter(s);\\n}\\n\\n// Slide 5: Prompt treatment principles\\n{\\n const s = pptx.addSlide();\\n addHeaderBar(s, \'Prompt Treatment: First 24-72 Hours Matter\');\\n\\n addCard(s, 0.65, 1.25, 4.1, 2.45, \'Risk Stratification\',\\n \'• Categorize into mild, moderate, severe, and emergency pathways.\\\\n• Identify comorbidities and social barriers early.\', COLORS.primary);\\n\\n addCard(s, 4.95, 1.25, 4.1, 2.45, \'Protocolized Initiation\',\\n \'• Start evidence-based treatment bundles immediately after diagnosis.\\\\n• Do not delay counseling and action while awaiting specialist review.\', COLORS.secondary);\\n\\n addCard(s, 9.25, 1.25, 3.45, 2.45, \'Safety Nets\',\\n \'• Explicit return precautions\\\\n• Family education for warning signs\\\\n• Follow-up appointment before discharge\', COLORS.danger);\\n\\n addCard(s, 0.65, 3.95, 12.05, 2.75, \'Condition-specific examples\',\\n \'• Asthma: controller therapy plan + inhaler technique + trigger mitigation.\\\\n\' +\\n \'• Hypertension: repeated validated BP, lifestyle intervention, secondary-cause workup when indicated.\\\\n\' +\\n \'• Obesity/prediabetes: family-centered nutrition, activity prescription, sleep optimization, and staged metabolic follow-up.\\\\n\' +\\n \'• Suspected malignancy red flags: same-day referral pathways and rapid diagnostics.\', \'7B2CBF\');\\n\\n addFooter(s);\\n}\\n\\n// Slide 6: Prevention strategy\\n{\\n const s = pptx.addSlide();\\n addHeaderBar(s, \'Prevention Strategy Across Levels of Care\');\\n\\n const levels = [\\n {\\n ttl: \'Primary Prevention\',\\n clr: \'2A9D8F\',\\n txt: \'Healthy diet patterns\\\\nDaily physical activity\\\\nAdequate sleep\\\\nSmoke-free environments\\\\nMental wellbeing support\'\\n },\\n {\\n ttl: \'Secondary Prevention\',\\n clr: \'1D4E89\',\\n txt: \'Routine growth/BP checks\\\\nRisk-based glucose/lipid testing\\\\nEarly symptom recognition\\\\nSchool screening linkage\'\\n },\\n {\\n ttl: \'Tertiary Prevention\',\\n clr: \'F4A261\',\\n txt: \'Complication surveillance\\\\nAdherence reinforcement\\\\nRehabilitation and psychosocial care\\\\nTransition planning to adult services\'\\n }\\n ];\\n\\n for (let i = 0; i < levels.length; i++) {\\n const x = 0.8 + i * 4.25;\\n s.addShape(pptx.ShapeType.roundRect, {\\n x, y: 1.6, w: 3.95, h: 4.65,\\n radius: 0.08,\\n fill: { color: \'FFFFFF\' },\\n line: { color: \'D5E2F3\', pt: 1 }\\n });\\n s.addShape(pptx.ShapeType.rect, {\\n x: x, y: 1.6, w: 3.95, h: 0.65,\\n fill: { color: levels[i].clr },\\n line: { color: levels[i].clr }\\n });\\n s.addText(levels[i].ttl, {\\n x: x + 0.2, y: 1.83, w: 3.55, h: 0.24,\\n fontSize: 13, bold: true, color: \'FFFFFF\', align: \'center\'\\n });\\n s.addText(levels[i].txt, {\\n x: x + 0.24, y: 2.45, w: 3.45, h: 3.6,\\n fontSize: 12, color: \'334E68\', valign: \'top\'\\n });\\n }\\n\\n addFooter(s);\\n}\\n\\n// Slide 7: Implementation checklist\\n{\\n const s = pptx.addSlide();\\n addHeaderBar(s, \'Implementation Checklist for Clinics and Schools\');\\n\\n const left =\\n \'1. Define local pediatric NCD priority list.\\\\n\' +\\n \'2. Standardize screening schedules and thresholds.\\\\n\' +\\n \'3. Train teams on pediatric measurement accuracy.\\\\n\' +\\n \'4. Create rapid referral pathways with named contacts.\\\\n\' +\\n \'5. Use registries for follow-up and missed-visit tracking.\';\\n\\n const right =\\n \'6. Integrate counseling scripts for families.\\\\n\' +\\n \'7. Ensure affordable medication and diagnostics access.\\\\n\' +\\n \'8. Partner with schools for prevention campaigns.\\\\n\' +\\n \'9. Monitor KPIs: detection rate, treatment initiation time, control rates.\\\\n\' +\\n \'10. Review outcomes quarterly and adjust protocols.\';\\n\\n addCard(s, 0.8, 1.45, 6.0, 5.75, \'Operational Actions\', left, COLORS.primary);\\n addCard(s, 6.95, 1.45, 5.6, 5.75, \'Quality and Continuity Actions\', right, COLORS.secondary);\\n\\n addFooter(s, \'Use this as a practical launch plan for district and facility teams\');\\n}\\n\\n// Slide 8: Closing\\n{\\n const s = pptx.addSlide();\\n s.background = { color: COLORS.bgDark };\\n s.addShape(pptx.ShapeType.rect, {\\n x: 0, y: 0, w: 13.33, h: 7.5,\\n fill: { color: COLORS.bgDark },\\n line: { color: COLORS.bgDark }\\n });\\n s.addText(\'Thank You\', {\\n x: 0.8, y: 1.7, w: 11.7, h: 0.9,\\n fontFace: \'Aptos Display\', fontSize: 54, bold: true,\\n color: \'FFFFFF\', align: \'center\'\\n });\\n s.addText(\'Early detection + prompt treatment + prevention = healthier lifecourse\', {\\n x: 1.2, y: 3.0, w: 10.9, h: 0.45,\\n fontSize: 18, color: \'D0E3FF\', align: \'center\'\\n });\\n s.addShape(pptx.ShapeType.roundRect, {\\n x: 3.25, y: 4.05, w: 6.85, h: 1.35,\\n radius: 0.08,\\n fill: { color: \'1B3B66\', transparency: 10 },\\n line: { color: \'6D95C7\', pt: 1 }\\n });\\n s.addText(\'Questions and Discussion\', {\\n x: 3.45, y: 4.52, w: 6.45, h: 0.35,\\n fontSize: 22, bold: true, color: \'FFFFFF\', align: \'center\'\\n });\\n s.addText(\'Contact: __________________________\', {\\n x: 3.55, y: 5.05, w: 6.2, h: 0.25,\\n fontSize: 12, color: \'BFD7F6\', align: \'center\'\\n });\\n}\\n\\n// References slide\\n{\\n const s = pptx.addSlide();\\n addHeaderBar(s, \'Selected References\');\\n s.addShape(pptx.ShapeType.roundRect, {\\n x: 0.75, y: 1.25, w: 11.9, h: 5.8,\\n radius: 0.08,\\n fill: { color: \'FFFFFF\' },\\n line: { color: \'D4E1F2\', pt: 1 }\\n });\\n s.addText(\\n \'• Harrison’s Principles of Internal Medicine 22E (2025, McGraw Hill Medical), sections on global NCD risk and prevention.\\\\n\' +\\n \'• Cummings Otolaryngology Head and Neck Surgery, pediatric obesity related comorbidity discussion.\\\\n\' +\\n \'• Brenner and Rector\\\\\'s The Kidney, public health and screening concepts for high-risk populations.\\\\n\' +\\n \'• Textbook of Family Medicine 9e, early detection principles in cancer care.\\\\n\\\\n\' +\\n \'Note: Adapt epidemiology figures and protocol thresholds to your country guidelines and local program standards before clinical deployment.\',\\n {\\n x: 1.05,\\n y: 1.55,\\n w: 11.3,\\n h: 5.1,\\n fontSize: 14,\\n color: \'334E68\',\\n valign: \'top\'\\n }\\n );\\n addFooter(s, \'Educational deck template - customize with local policy and data\');\\n}\\n\\npptx.writeFile({ fileName: \'/home/daytona/workspace/pediatric-ncd-ppt/Pediatric_NCD_Early_Detection_Treatment_Prevention.pptx\' });"}', 'callId': 'call_h76lTeZaYCNxJ1u6VYCPbCCB', 'id': 'fc_07d477423eb5f80b0069ea332f89a88197961a224a770f88b9', 'index': 0}
We encountered an error while processing your request. Please try again or reach out to us for help.