What can you do , how reliable are you , what are your features useful for me as a final year student and are you free
| Need | Can I Help? |
|---|---|
| FYP / Thesis writing | โ Yes |
| Literature review & citations | โ Yes |
| Exam notes & concept explanations | โ Yes |
| Data analysis & coding | โ Yes |
| Creating reports/presentations | โ Yes |
| Medical/clinical study | โ Yes (textbook library) |
| Real-time research | โ Yes |
| Career documents (CV, cover letter) | โ Yes |
Can you make a ppt on GDM
Who is this presentation for? ยท How detailed should it be?
"gestational diabetes mellitus"[MeSH Terms] AND management
"gestational diabetes"[MeSH Terms] AND screening diagnosis
mkdir -p /home/daytona/workspace/gdm-ppt && ls /home/daytona/workspace/gdm-ppt
~/gdm-ppt/gdm.js
const pptxgen = require("pptxgenjs");
const pres = new pptxgen();
pres.layout = "LAYOUT_WIDE";
pres.title = "Gestational Diabetes Mellitus (GDM)";
pres.author = "Medical Education";
// โโโ COLOR PALETTE โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
const C = {
navy: "0D2B55", // dominant dark
teal: "1A7A8A", // supporting
aqua: "2EC4C4", // accent / highlights
white: "FFFFFF",
offWhite:"F0F5FA",
light: "D6EAF0",
lightGray:"E8EFF5",
textDark:"12243A",
textMid: "2B4A6B",
warn: "E05C2A", // orange-red for warnings/alerts
green: "1E8A5E", // positive outcomes
};
// โโโ HELPER: dark slide header band โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
function headerBand(slide, text, sub) {
// Full-width top band
slide.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: 13.3, h: 1.35,
fill: { color: C.navy },
line: { color: C.navy }
});
// Accent stripe
slide.addShape(pres.ShapeType.rect, {
x: 0, y: 1.35, w: 13.3, h: 0.07,
fill: { color: C.aqua },
line: { color: C.aqua }
});
slide.addText(text, {
x: 0.4, y: 0.08, w: 12.5, h: 0.78,
fontSize: 28, bold: true, color: C.white, fontFace: "Calibri", margin: 0
});
if (sub) {
slide.addText(sub, {
x: 0.4, y: 0.85, w: 12.5, h: 0.45,
fontSize: 14, color: C.aqua, fontFace: "Calibri", margin: 0
});
}
}
// โโโ HELPER: small section label pill โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
function sectionPill(slide, label, x, y, w) {
slide.addShape(pres.ShapeType.roundRect, {
x, y, w: w || 2.8, h: 0.32,
fill: { color: C.teal }, line: { color: C.teal }, rectRadius: 0.08
});
slide.addText(label, {
x, y, w: w || 2.8, h: 0.32,
fontSize: 11, bold: true, color: C.white, fontFace: "Calibri",
align: "center", margin: 0
});
}
// โโโ HELPER: bullet block โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
function bulletBlock(slide, items, x, y, w, h, fontSize) {
const rows = items.map((item, i) => ({
text: item,
options: { bullet: { type: "bullet" }, breakLine: i < items.length - 1 }
}));
slide.addText(rows, {
x, y, w, h,
fontSize: fontSize || 14,
color: C.textDark, fontFace: "Calibri",
valign: "top", paraSpaceAfter: 4, lineSpacingMultiple: 1.15
});
}
// โโโ HELPER: info card โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
function infoCard(slide, x, y, w, h, title, body, titleColor, bgColor) {
slide.addShape(pres.ShapeType.roundRect, {
x, y, w, h,
fill: { color: bgColor || C.offWhite },
line: { color: C.teal, pt: 1.5 },
rectRadius: 0.12
});
if (title) {
slide.addText(title, {
x: x + 0.12, y: y + 0.08, w: w - 0.24, h: 0.38,
fontSize: 13, bold: true, color: titleColor || C.teal,
fontFace: "Calibri", margin: 0
});
}
slide.addText(body, {
x: x + 0.12, y: y + (title ? 0.44 : 0.1), w: w - 0.24, h: h - (title ? 0.55 : 0.2),
fontSize: 12.5, color: C.textDark, fontFace: "Calibri",
valign: "top", lineSpacingMultiple: 1.2
});
}
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// SLIDE 1 โ TITLE SLIDE
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
{
const s = pres.addSlide();
// Full dark background
s.addShape(pres.ShapeType.rect, { x:0, y:0, w:13.3, h:7.5, fill:{color: C.navy}, line:{color:C.navy} });
// Decorative teal block right side
s.addShape(pres.ShapeType.rect, { x:9.2, y:0, w:4.1, h:7.5, fill:{color: C.teal}, line:{color:C.teal} });
// Aqua accent bar
s.addShape(pres.ShapeType.rect, { x:0, y:3.5, w:9.0, h:0.08, fill:{color:C.aqua}, line:{color:C.aqua} });
s.addText("Gestational", { x:0.5, y:1.0, w:8.6, h:1.1, fontSize:52, bold:true, color:C.white, fontFace:"Calibri", margin:0 });
s.addText("Diabetes Mellitus", { x:0.5, y:2.05, w:8.6, h:1.1, fontSize:52, bold:true, color:C.aqua, fontFace:"Calibri", margin:0 });
s.addText("GDM", { x:0.5, y:3.1, w:8.6, h:0.5, fontSize:28, bold:false, color:C.light, fontFace:"Calibri", margin:0 });
s.addText("A Comprehensive Clinical Review", { x:0.5, y:3.9, w:8.6, h:0.45, fontSize:18, color:C.light, fontFace:"Calibri", margin:0 });
s.addText("For Medical Students", { x:0.5, y:4.4, w:8.6, h:0.38, fontSize:14, color:C.aqua, fontFace:"Calibri", margin:0 });
// Right panel content
s.addText("KEY FACTS", { x:9.4, y:1.0, w:3.7, h:0.4, fontSize:13, bold:true, color:C.white, fontFace:"Calibri", align:"center", margin:0 });
const facts = [
"~6โ8% of all pregnancies",
"Leading metabolic complication in pregnancy",
"50% risk of future T2DM",
"Preventable adverse outcomes with treatment",
"Screening at 24โ28 weeks"
];
facts.forEach((f, i) => {
s.addShape(pres.ShapeType.rect, { x:9.3, y:1.55 + i*0.9, w:3.8, h:0.72, fill:{color:"1C6A78"}, line:{color:"1C6A78"} });
s.addText(f, { x:9.35, y:1.6 + i*0.9, w:3.7, h:0.62, fontSize:12.5, color:C.white, fontFace:"Calibri", valign:"middle", margin:4 });
});
s.addText("Sources: Creasy & Resnik MFM | Goldman-Cecil Medicine | Harrison's 22e", {
x:0.5, y:6.9, w:12.3, h:0.4,
fontSize:10, color:"4A7A9B", fontFace:"Calibri", align:"center", margin:0
});
}
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// SLIDE 2 โ TABLE OF CONTENTS
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
{
const s = pres.addSlide();
s.addShape(pres.ShapeType.rect, { x:0, y:0, w:13.3, h:7.5, fill:{color:C.offWhite}, line:{color:C.offWhite} });
headerBand(s, "Contents", "Overview of Topics Covered");
const topics = [
["01", "Definition & Background"],
["02", "Epidemiology & Prevalence"],
["03", "Pathophysiology"],
["04", "Risk Factors"],
["05", "Clinical Features & Complications"],
["06", "Screening & Diagnosis"],
["07", "Diagnostic Criteria (IADPSG / ADA / ACOG)"],
["08", "Management โ Lifestyle"],
["09", "Management โ Pharmacological"],
["10", "Glycemic Targets & Monitoring"],
["11", "Fetal Surveillance & Delivery"],
["12", "Postpartum Care & Long-term Prognosis"],
["13", "Prevention & Future Directions"],
["14", "Summary & Key Take-Aways"],
];
const cols = [topics.slice(0,7), topics.slice(7)];
cols.forEach((col, ci) => {
col.forEach(([num, title], ri) => {
const x = 0.35 + ci * 6.5;
const y = 1.6 + ri * 0.74;
s.addShape(pres.ShapeType.roundRect, { x, y, w:6.2, h:0.62,
fill:{color: ri%2===0 ? C.white : C.lightGray}, line:{color:C.light, pt:0.8}, rectRadius:0.08 });
s.addShape(pres.ShapeType.roundRect, { x:x+0.05, y:y+0.1, w:0.42, h:0.42,
fill:{color:C.teal}, line:{color:C.teal}, rectRadius:0.06 });
s.addText(num, { x:x+0.05, y:y+0.1, w:0.42, h:0.42,
fontSize:11, bold:true, color:C.white, fontFace:"Calibri", align:"center", valign:"middle", margin:0 });
s.addText(title, { x:x+0.56, y:y+0.12, w:5.5, h:0.38,
fontSize:13.5, color:C.textDark, fontFace:"Calibri", valign:"middle", margin:0 });
});
});
}
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// SLIDE 3 โ DEFINITION & BACKGROUND
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
{
const s = pres.addSlide();
s.addShape(pres.ShapeType.rect, { x:0, y:0, w:13.3, h:7.5, fill:{color:C.white}, line:{color:C.white} });
headerBand(s, "Definition & Background", "What is GDM?");
// Large definition box
s.addShape(pres.ShapeType.roundRect, { x:0.35, y:1.6, w:12.6, h:1.45,
fill:{color:"EAF6F9"}, line:{color:C.aqua, pt:2}, rectRadius:0.15 });
s.addText([
{text:"Definition: ", options:{bold:true, color:C.teal}},
{text:"Gestational Diabetes Mellitus (GDM) is defined as glucose intolerance that is first diagnosed during pregnancy and is not clearly pre-existing diabetes.", options:{color:C.textDark}}
], { x:0.55, y:1.68, w:12.2, h:1.3, fontSize:16, fontFace:"Calibri", valign:"middle", margin:4, lineSpacingMultiple:1.3 });
const points = [
["WHO / ADA Classification", "GDM is categorized separately from Type 1 and Type 2 diabetes. It typically resolves after delivery but signals future metabolic risk."],
["Timing", "Hyperglycemia is usually detected in the late second (13โ26 weeks) or third trimester (27โ40 weeks) of pregnancy."],
["Underlying Mechanism", "Pathophysiology is similar to T2DM: inadequate insulin response to progressive insulin resistance caused by placental hormones."],
["Not All the Same", "A small subset (~6%) of women with apparent GDM actually have pre-existing Type 1 diabetes that manifests during pregnancy (Finland cohort data)."],
];
points.forEach(([title, body], i) => {
const x = 0.35 + (i%2)*6.5;
const y = 3.25 + Math.floor(i/2)*1.72;
s.addShape(pres.ShapeType.roundRect, { x, y, w:6.2, h:1.55,
fill:{color:C.offWhite}, line:{color:C.teal, pt:1}, rectRadius:0.1 });
s.addShape(pres.ShapeType.rect, { x, y, w:0.28, h:1.55,
fill:{color:C.teal}, line:{color:C.teal} });
s.addText(title, { x:x+0.36, y:y+0.1, w:5.7, h:0.35,
fontSize:13, bold:true, color:C.teal, fontFace:"Calibri", margin:0 });
s.addText(body, { x:x+0.36, y:y+0.44, w:5.7, h:1.0,
fontSize:12, color:C.textDark, fontFace:"Calibri", valign:"top", lineSpacingMultiple:1.2, margin:0 });
});
}
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// SLIDE 4 โ EPIDEMIOLOGY
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
{
const s = pres.addSlide();
s.addShape(pres.ShapeType.rect, { x:0, y:0, w:13.3, h:7.5, fill:{color:C.offWhite}, line:{color:C.offWhite} });
headerBand(s, "Epidemiology & Prevalence", "Global & National Burden");
// Big stat boxes
const stats = [
{ num:"6โ8%", label:"of all pregnancies\nworldwide affected", color:C.teal },
{ num:"~90%", label:"of diabetes in\npregnancy is GDM", color:"1A6A7A" },
{ num:"1โ25%", label:"prevalence varies by\nethnicity & criteria", color:C.navy },
{ num:"50%", label:"will develop T2DM\nwithin 10 years", color:C.warn },
];
stats.forEach((st, i) => {
const x = 0.35 + i*3.15;
s.addShape(pres.ShapeType.roundRect, { x, y:1.6, w:2.9, h:1.85,
fill:{color:st.color}, line:{color:st.color}, rectRadius:0.15 });
s.addText(st.num, { x, y:1.7, w:2.9, h:0.9,
fontSize:36, bold:true, color:C.white, fontFace:"Calibri", align:"center", margin:0 });
s.addText(st.label, { x, y:2.55, w:2.9, h:0.8,
fontSize:12, color:C.white, fontFace:"Calibri", align:"center", lineSpacingMultiple:1.2, margin:4 });
});
// Subheadings
s.addText("Ethnic & Geographic Variation", { x:0.35, y:3.65, w:6.3, h:0.38,
fontSize:15, bold:true, color:C.teal, fontFace:"Calibri", margin:0 });
bulletBlock(s, [
"Higher prevalence in Hispanic, Native American, Asian, and African American populations",
"South Asian women have disproportionately high GDM rates due to insulin resistance phenotype",
"Criteria used (IADPSG vs NDDG) significantly affects reported prevalence (2-fold difference)",
"Rising global incidence driven by obesity epidemic and advancing maternal age at conception",
], 0.35, 4.02, 6.2, 3.0, 13);
s.addText("Trend Over Time", { x:6.9, y:3.65, w:6.0, h:0.38,
fontSize:15, bold:true, color:C.teal, fontFace:"Calibri", margin:0 });
bulletBlock(s, [
"GDM incidence has risen by ~50% over the past two decades",
"Parallel trends with rising obesity, sedentary lifestyles, and older maternal age",
"Anesthesia records: ~7% of all pregnancies complicated by diabetes; ~90% are GDM",
"Recurrence rate in subsequent pregnancies: up to 50โ84%",
], 6.9, 4.02, 6.0, 3.0, 13);
}
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// SLIDE 5 โ PATHOPHYSIOLOGY
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
{
const s = pres.addSlide();
s.addShape(pres.ShapeType.rect, { x:0, y:0, w:13.3, h:7.5, fill:{color:C.white}, line:{color:C.white} });
headerBand(s, "Pathophysiology", "Why Does GDM Develop?");
// Flow diagram simulation
const steps = [
{ label:"Normal Pregnancy", body:"Placenta secretes\ndiabetogenic hormones:\nhPL, progesterone,\ncortisol, GH", color:C.teal },
{ label:"โ Insulin Resistance", body:"~60% reduction in\ninsulin sensitivity by\n3rd trimester", color:"1A6A7A" },
{ label:"ฮฒ-Cell Compensation", body:"Normal pancreas\nincreases insulin\nsecretion 2โ3x\nto compensate", color:C.navy },
{ label:"ฮฒ-Cell Failure (GDM)", body:"Insufficient ฮฒ-cell\nreserve โ inadequate\ncompensation โ\nhyperglycemia", color:C.warn },
];
steps.forEach((st, i) => {
const x = 0.3 + i*3.2;
s.addShape(pres.ShapeType.roundRect, { x, y:1.6, w:2.9, h:2.4,
fill:{color:st.color}, line:{color:st.color}, rectRadius:0.12 });
s.addText(st.label, { x, y:1.68, w:2.9, h:0.5,
fontSize:13, bold:true, color:C.white, fontFace:"Calibri", align:"center", margin:0 });
s.addText(st.body, { x:x+0.1, y:2.22, w:2.7, h:1.7,
fontSize:12.5, color:C.white, fontFace:"Calibri", align:"center",
lineSpacingMultiple:1.3, valign:"top", margin:0 });
// Arrow (except last)
if (i < 3) {
s.addShape(pres.ShapeType.rightArrow, { x:3.15+i*3.2, y:2.45, w:0.35, h:0.58,
fill:{color:C.aqua}, line:{color:C.aqua} });
}
});
// Hormones explanation
s.addText("Placental Diabetogenic Hormones", { x:0.35, y:4.2, w:12.6, h:0.4,
fontSize:15, bold:true, color:C.teal, fontFace:"Calibri", margin:0 });
const hormones = [
["Human Placental Lactogen (hPL)", "Main diabetogenic hormone; increases with placental mass and gestational age; induces lipolysis and promotes insulin resistance"],
["Progesterone", "Reduces insulin secretion and increases peripheral insulin resistance"],
["Cortisol", "Counter-regulatory hormone; rises throughout pregnancy; stimulates hepatic gluconeogenesis"],
["Growth Hormone variant", "Placental GH variant suppresses pituitary GH; promotes insulin resistance"],
];
hormones.forEach(([h, b], i) => {
const x = 0.35 + (i%2)*6.5;
const y = 4.65 + Math.floor(i/2)*1.28;
s.addShape(pres.ShapeType.roundRect, { x, y, w:6.2, h:1.15,
fill:{color:C.offWhite}, line:{color:C.light, pt:1}, rectRadius:0.08 });
s.addText(h, { x:x+0.1, y:y+0.06, w:6.0, h:0.32,
fontSize:12, bold:true, color:C.teal, fontFace:"Calibri", margin:0 });
s.addText(b, { x:x+0.1, y:y+0.38, w:6.0, h:0.72,
fontSize:11.5, color:C.textDark, fontFace:"Calibri", lineSpacingMultiple:1.2, valign:"top", margin:0 });
});
}
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// SLIDE 6 โ RISK FACTORS
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
{
const s = pres.addSlide();
s.addShape(pres.ShapeType.rect, { x:0, y:0, w:13.3, h:7.5, fill:{color:C.offWhite}, line:{color:C.offWhite} });
headerBand(s, "Risk Factors for GDM", "Who Is at Highest Risk?");
const categories = [
{
title:"Maternal Factors",
color: C.teal,
items:["Age >30 years", "Obesity (BMI >30 kg/mยฒ)", "Excessive weight gain in pregnancy", "Sedentary lifestyle / low physical activity", "Short stature (in some populations)"]
},
{
title:"Medical History",
color:"1A6A7A",
items:["Previous GDM in prior pregnancy", "Impaired glucose tolerance (prediabetes)", "Polycystic ovary syndrome (PCOS)", "Hypertension or cardiovascular disease", "Glucosuria on routine urine dipstick"]
},
{
title:"Obstetric History",
color:C.navy,
items:["Prior macrosomic infant (>4 kg)", "Unexplained stillbirth or perinatal loss", "Recurrent miscarriage", "Prior infant with congenital malformation", "Polyhydramnios in prior pregnancy"]
},
{
title:"Family & Ethnic Factors",
color:"4A3E8C",
items:["First-degree relative with T2DM", "Hispanic, South Asian, African American, Native American ethnicity", "Pacific Islander descent", "Family history of GDM in mother/sister", "High-prevalence geographic origin"]
},
];
categories.forEach((cat, i) => {
const x = 0.3 + (i%2)*6.5;
const y = 1.6 + Math.floor(i/2)*2.7;
s.addShape(pres.ShapeType.roundRect, { x, y, w:6.2, h:2.5,
fill:{color:C.white}, line:{color:cat.color, pt:1.5}, rectRadius:0.12 });
s.addShape(pres.ShapeType.roundRect, { x, y, w:6.2, h:0.42,
fill:{color:cat.color}, line:{color:cat.color}, rectRadius:0.12 });
// Fix corners on bottom of header
s.addShape(pres.ShapeType.rect, { x, y:0.28+y, w:6.2, h:0.14, fill:{color:cat.color}, line:{color:cat.color} });
s.addText(cat.title, { x:x+0.1, y:y+0.05, w:6.0, h:0.35,
fontSize:14, bold:true, color:C.white, fontFace:"Calibri", margin:0 });
const rows = cat.items.map((item, idx) => ({
text: item,
options: { bullet:true, breakLine: idx < cat.items.length-1, fontSize:12.5, color:C.textDark }
}));
s.addText(rows, { x:x+0.1, y:y+0.5, w:6.0, h:1.9,
fontFace:"Calibri", valign:"top", paraSpaceAfter:2, lineSpacingMultiple:1.15, margin:0 });
});
}
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// SLIDE 7 โ CLINICAL FEATURES & MATERNAL COMPLICATIONS
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
{
const s = pres.addSlide();
s.addShape(pres.ShapeType.rect, { x:0, y:0, w:13.3, h:7.5, fill:{color:C.white}, line:{color:C.white} });
headerBand(s, "Clinical Features & Complications", "Maternal and Fetal Consequences");
s.addText("โ GDM is usually ASYMPTOMATIC โ diagnosis relies entirely on screening", {
x:0.35, y:1.55, w:12.6, h:0.48,
fontSize:14, bold:true, color:C.white, fontFace:"Calibri", align:"center",
fill:{color:C.warn}, margin:6
});
// Maternal
s.addText("MATERNAL COMPLICATIONS", { x:0.35, y:2.2, w:5.9, h:0.38,
fontSize:14, bold:true, color:C.teal, fontFace:"Calibri", margin:0 });
const maternalComps = [
"Gestational hypertension & preeclampsia",
"Polyhydramnios (excess amniotic fluid)",
"Increased risk of cesarean section",
"Urinary tract infections",
"Pre-term labour in some cases",
"50% lifetime risk of developing T2DM",
"Cluster of cardiovascular risk factors",
"Recurrent GDM in future pregnancies (~50โ84%)",
];
bulletBlock(s, maternalComps, 0.35, 2.6, 5.9, 4.6, 13);
// Fetal
s.addText("FETAL / NEONATAL COMPLICATIONS", { x:7.0, y:2.2, w:6.0, h:0.38,
fontSize:14, bold:true, color:C.teal, fontFace:"Calibri", margin:0 });
const fetalComps = [
"Macrosomia (birth weight >4 kg / LGA)",
"Shoulder dystocia and birth trauma",
"Neonatal hypoglycemia (fetal hyperinsulinism)",
"Neonatal hyperbilirubinemia (jaundice)",
"Respiratory distress syndrome",
"Congenital malformations (with overt DM)",
"Intrauterine fetal demise (stillbirth)",
"Long-term: โ risk of childhood obesity & T2DM",
];
bulletBlock(s, fetalComps, 7.0, 2.6, 6.0, 4.6, 13);
// Divider
s.addShape(pres.ShapeType.line, { x:6.65, y:2.15, w:0, h:5.0,
line:{color:C.light, pt:1.5, dashType:"dash"} });
}
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// SLIDE 8 โ SCREENING
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
{
const s = pres.addSlide();
s.addShape(pres.ShapeType.rect, { x:0, y:0, w:13.3, h:7.5, fill:{color:C.offWhite}, line:{color:C.offWhite} });
headerBand(s, "Screening for GDM", "Who, When & How");
// When box
s.addShape(pres.ShapeType.roundRect, { x:0.35, y:1.6, w:12.6, h:0.75,
fill:{color:C.teal}, line:{color:C.teal}, rectRadius:0.12 });
s.addText("WHEN: All pregnant women should be screened at 24โ28 weeks of gestation | High-risk women: screen earlier in the 1st trimester", {
x:0.5, y:1.65, w:12.3, h:0.65,
fontSize:13.5, color:C.white, fontFace:"Calibri", bold:true, valign:"middle", margin:0
});
// Two-Step
s.addShape(pres.ShapeType.roundRect, { x:0.35, y:2.5, w:6.2, h:4.65,
fill:{color:C.white}, line:{color:C.teal, pt:1.5}, rectRadius:0.12 });
s.addShape(pres.ShapeType.roundRect, { x:0.35, y:2.5, w:6.2, h:0.5,
fill:{color:C.teal}, line:{color:C.teal}, rectRadius:0.12 });
s.addShape(pres.ShapeType.rect, { x:0.35, y:2.78, w:6.2, h:0.22, fill:{color:C.teal}, line:{color:C.teal} });
s.addText("TWO-STEP APPROACH (USA / ACOG)", { x:0.45, y:2.54, w:6.0, h:0.42,
fontSize:13, bold:true, color:C.white, fontFace:"Calibri", margin:0 });
const step1 = [
"STEP 1 โ Glucose Challenge Test (GCT):",
" โข Non-fasting 50-g oral glucose load",
" โข Measure plasma glucose at 1 hour",
" โข Threshold: โฅ130โ140 mg/dL = abnormal",
" โข If abnormal โ proceed to Step 2",
"",
"STEP 2 โ 100-g OGTT (3-hour, fasting):",
" โข 3 days adequate carbohydrate intake pre-test",
" โข Overnight fast (8โ14 hours)",
" โข Seated, non-smoking during test",
" โข Carpenter-Coustan Criteria:",
" โ Fasting: โฅ95 mg/dL",
" โ 1 hr: โฅ180 mg/dL",
" โ 2 hr: โฅ155 mg/dL",
" โ 3 hr: โฅ140 mg/dL",
" โข โฅ2 abnormal values = GDM diagnosis",
" โข (2018 ACOG: 1 abnormal value may warrant treatment)",
];
s.addText(step1.join("\n"), { x:0.5, y:3.1, w:5.9, h:3.9,
fontSize:11.5, color:C.textDark, fontFace:"Calibri", valign:"top",
lineSpacingMultiple:1.25, margin:0 });
// One-Step
s.addShape(pres.ShapeType.roundRect, { x:6.8, y:2.5, w:6.15, h:4.65,
fill:{color:C.white}, line:{color:"1A6A7A", pt:1.5}, rectRadius:0.12 });
s.addShape(pres.ShapeType.roundRect, { x:6.8, y:2.5, w:6.15, h:0.5,
fill:{color:"1A6A7A"}, line:{color:"1A6A7A"}, rectRadius:0.12 });
s.addShape(pres.ShapeType.rect, { x:6.8, y:2.78, w:6.15, h:0.22, fill:{color:"1A6A7A"}, line:{color:"1A6A7A"} });
s.addText("ONE-STEP APPROACH (IADPSG / WHO / ADA)", { x:6.9, y:2.54, w:5.9, h:0.42,
fontSize:13, bold:true, color:C.white, fontFace:"Calibri", margin:0 });
const step1b = [
"75-g OGTT, fasting, at 24โ28 weeks:",
" โข Overnight fast required",
" โข Plasma glucose at fasting, 1 hr, 2 hr",
" โข ANY single abnormal value = GDM",
"",
"IADPSG Diagnostic Thresholds:",
" โข Fasting: โฅ92 mg/dL (5.1 mmol/L)",
" โข 1 hour: โฅ180 mg/dL (10.0 mmol/L)",
" โข 2 hour: โฅ153 mg/dL (8.5 mmol/L)",
"",
"Overt Diabetes During Pregnancy:",
" โข Fasting โฅ126 mg/dL",
" โข HbA1c โฅ6.5%",
" โข Random glucose โฅ200 mg/dL",
"",
"Note: One-step detects more cases but has\n higher false-positive rates and cost.",
];
s.addText(step1b.join("\n"), { x:6.9, y:3.1, w:5.9, h:3.9,
fontSize:11.5, color:C.textDark, fontFace:"Calibri", valign:"top",
lineSpacingMultiple:1.25, margin:0 });
}
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// SLIDE 9 โ DIAGNOSTIC CRITERIA TABLE
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
{
const s = pres.addSlide();
s.addShape(pres.ShapeType.rect, { x:0, y:0, w:13.3, h:7.5, fill:{color:C.white}, line:{color:C.white} });
headerBand(s, "Diagnostic Criteria", "IADPSG / ADA / ACOG / NDDG Comparison");
// Main table
const tableData = [
[
{ text:"Criteria / Organization", options:{ bold:true, color:C.white } },
{ text:"Test", options:{ bold:true, color:C.white } },
{ text:"Fasting", options:{ bold:true, color:C.white } },
{ text:"1 hour", options:{ bold:true, color:C.white } },
{ text:"2 hour", options:{ bold:true, color:C.white } },
{ text:"3 hour", options:{ bold:true, color:C.white } },
{ text:"Cutoff", options:{ bold:true, color:C.white } },
],
["IADPSG / WHO 2013", "75-g OGTT", "โฅ92 mg/dL", "โฅ180 mg/dL", "โฅ153 mg/dL", "N/A", "Any 1 value"],
["ADA (2024)", "75-g or 100-g", "โฅ92 mg/dL", "โฅ180 mg/dL", "โฅ153 mg/dL", "โ", "Any 1 (75g)"],
["ACOG (100g)", "100-g OGTT", "โฅ95 mg/dL", "โฅ180 mg/dL", "โฅ155 mg/dL", "โฅ140 mg/dL", "โฅ2 values"],
["Carpenter-Coustan", "100-g OGTT", "โฅ95 mg/dL", "โฅ180 mg/dL", "โฅ155 mg/dL", "โฅ140 mg/dL", "โฅ2 values"],
["NDDG (older)", "100-g OGTT", "โฅ105 mg/dL", "โฅ190 mg/dL", "โฅ165 mg/dL", "โฅ145 mg/dL", "โฅ2 values"],
["O'Sullivan (original)", "100-g OGTT", "โฅ90 mg/dL", "โฅ165 mg/dL", "โฅ145 mg/dL", "โฅ125 mg/dL", "โฅ2 values"],
];
const tRows = tableData.map((row, ri) => {
return row.map((cell, ci) => {
const isHeader = ri === 0;
return {
text: typeof cell === "string" ? cell : cell,
options: {
bold: isHeader || ci === 0,
color: isHeader ? C.white : (ci===0 ? C.teal : C.textDark),
fontSize: 12,
fontFace: "Calibri",
fill: isHeader ? { color: C.navy } : (ri%2===0 ? { color:C.offWhite } : { color:C.white }),
align: ci===0 ? "left" : "center",
valign: "middle",
margin: [4,4,4,6]
}
};
});
});
s.addTable(tRows, {
x:0.3, y:1.65, w:12.7, h:3.8,
border: { pt:0.8, color:C.light },
rowH: 0.52,
colW: [2.5, 1.6, 1.6, 1.6, 1.6, 1.6, 1.7]
});
// Notes
s.addText("KEY NOTES", { x:0.3, y:5.65, w:2.8, h:0.35,
fontSize:13, bold:true, color:C.teal, fontFace:"Calibri", margin:0 });
const notes = [
"IADPSG one-step approach diagnoses ~18% of pregnant women vs ~7% with ACOG two-step โ significant policy implications",
"Two-step has false-negative rate of ~4% and ~15% non-compliance with follow-up 100-g OGTT",
"Overt diabetes in pregnancy: fasting โฅ126 mg/dL, HbA1c โฅ6.5%, or random โฅ200 mg/dL with symptoms",
"Early screening (<24 wk) recommended for high-risk women using non-pregnant diagnostic criteria"
];
bulletBlock(s, notes, 0.3, 6.02, 12.7, 1.35, 12);
}
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// SLIDE 10 โ GLYCEMIC TARGETS & MONITORING
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
{
const s = pres.addSlide();
s.addShape(pres.ShapeType.rect, { x:0, y:0, w:13.3, h:7.5, fill:{color:C.offWhite}, line:{color:C.offWhite} });
headerBand(s, "Glycemic Targets & Monitoring", "Treatment Goals During Pregnancy");
// Target boxes
const targets = [
{ label:"Fasting", value:"< 95 mg/dL\n(5.3 mmol/L)", color:C.teal },
{ label:"1-hr Postprandial", value:"< 140 mg/dL\n(7.8 mmol/L)", color:"1A6A7A" },
{ label:"2-hr Postprandial", value:"< 120 mg/dL\n(6.7 mmol/L)", color:C.navy },
{ label:"HbA1c", value:"< 6%\n(if measured)", color:"4A3E8C" },
];
targets.forEach((t, i) => {
const x = 0.3 + i*3.18;
s.addShape(pres.ShapeType.roundRect, { x, y:1.6, w:3.0, h:1.8,
fill:{color:t.color}, line:{color:t.color}, rectRadius:0.12 });
s.addText(t.label, { x, y:1.7, w:3.0, h:0.45,
fontSize:13, bold:true, color:C.white, fontFace:"Calibri", align:"center", margin:0 });
s.addText(t.value, { x, y:2.12, w:3.0, h:1.2,
fontSize:20, bold:true, color:C.white, fontFace:"Calibri", align:"center", valign:"middle", lineSpacingMultiple:1.3, margin:0 });
});
// Monitoring protocols
s.addText("SELF-MONITORING BLOOD GLUCOSE (SMBG)", { x:0.3, y:3.6, w:6.1, h:0.38,
fontSize:14, bold:true, color:C.teal, fontFace:"Calibri", margin:0 });
bulletBlock(s, [
"Minimum: fasting + 1-hr or 2-hr post each main meal (4โ7 tests/day)",
"HbA1c is of limited utility during pregnancy due to โ RBC turnover (falsely low values)",
"Continuous Glucose Monitoring (CGM): evidence-based for T1DM in pregnancy; role in GDM being studied",
"Fasting glucose is most predictive of neonatal macrosomia",
"Post-prandial glucose more closely correlates with LGA birthweight",
], 0.3, 4.0, 6.1, 3.15, 12.5);
s.addText("INSULIN DOSE PROGRESSION", { x:6.7, y:3.6, w:6.2, h:0.38,
fontSize:14, bold:true, color:C.teal, fontFace:"Calibri", margin:0 });
bulletBlock(s, [
"1st trimester: 0.7โ0.8 units/kg/day",
"2nd trimester: 0.8โ1.0 units/kg/day",
"3rd trimester: 0.9โ1.2 units/kg/day",
"Typical regimen: basal insulin + short-acting (prandial) insulin",
"Insulin pump (CSII) may be used in selected patients",
"Doses increase as insulin resistance rises with gestation",
], 6.7, 4.0, 6.2, 3.15, 12.5);
}
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// SLIDE 11 โ MANAGEMENT: LIFESTYLE
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
{
const s = pres.addSlide();
s.addShape(pres.ShapeType.rect, { x:0, y:0, w:13.3, h:7.5, fill:{color:C.white}, line:{color:C.white} });
headerBand(s, "Management โ Lifestyle Intervention", "First-Line Treatment for GDM");
// Banner
s.addShape(pres.ShapeType.roundRect, { x:0.35, y:1.6, w:12.6, h:0.6,
fill:{color:C.green}, line:{color:C.green}, rectRadius:0.1 });
s.addText("Lifestyle intervention alone achieves glycemic targets in 70โ85% of women with GDM", {
x:0.5, y:1.65, w:12.3, h:0.5,
fontSize:14, bold:true, color:C.white, fontFace:"Calibri", align:"center", margin:0 });
const domains = [
{
icon:"๐ฅ", title:"Medical Nutrition Therapy (MNT)",
color:C.teal,
items:[
"Refer to registered dietitian for individualized plan",
"Goal: achieve normoglycemia while ensuring adequate nutrition",
"Carbohydrate: 35โ45% of total calories; spread across 3 meals + 2โ3 snacks",
"Low glycaemic index foods preferred",
"Avoid concentrated sweets, fruit juices, refined carbohydrates",
"Adequate caloric intake: ~30 kcal/kg/day for normal BMI (โ for obese)",
"Weight gain targets per IOM guidelines based on pre-pregnancy BMI",
]
},
{
icon:"๐", title:"Physical Activity",
color:"1A6A7A",
items:[
"Moderate exercise: โฅ30 minutes/day on most days",
"Walking, swimming, stationary cycling (aerobic exercise preferred)",
"Resistance training also beneficial",
"Reduces postprandial glucose by increasing peripheral glucose uptake",
"Contraindications: obstetric (placenta previa, risk of PTL, cervical incompetence)",
"Post-meal walking (15 min) is particularly effective for postprandial glucose control",
]
},
{
icon:"โ๏ธ", title:"Weight Management",
color:C.navy,
items:[
"Excessive gestational weight gain worsens insulin resistance",
"IOM targets: Normal BMI โ 11.5โ16 kg; Overweight โ 7โ11.5 kg; Obese โ 5โ9 kg",
"Weight loss not recommended during pregnancy, but weight restriction appropriate",
"Post-partum weight reduction is critical to reduce T2DM risk",
]
},
];
domains.forEach((d, i) => {
const x = 0.35 + i*4.32;
s.addShape(pres.ShapeType.roundRect, { x, y:2.35, w:4.18, h:4.85,
fill:{color:C.offWhite}, line:{color:d.color, pt:1.5}, rectRadius:0.12 });
s.addShape(pres.ShapeType.roundRect, { x, y:2.35, w:4.18, h:0.55,
fill:{color:d.color}, line:{color:d.color}, rectRadius:0.12 });
s.addShape(pres.ShapeType.rect, { x, y:2.63, w:4.18, h:0.27, fill:{color:d.color}, line:{color:d.color} });
s.addText(d.title, { x:x+0.08, y:2.39, w:4.02, h:0.47,
fontSize:13, bold:true, color:C.white, fontFace:"Calibri", margin:0 });
const rows = d.items.map((item, idx) => ({
text: item,
options:{ bullet:true, breakLine: idx<d.items.length-1, fontSize:11.5, color:C.textDark }
}));
s.addText(rows, { x:x+0.1, y:2.97, w:3.98, h:4.1,
fontFace:"Calibri", valign:"top", paraSpaceAfter:3, lineSpacingMultiple:1.2, margin:0 });
});
}
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// SLIDE 12 โ MANAGEMENT: PHARMACOLOGICAL
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
{
const s = pres.addSlide();
s.addShape(pres.ShapeType.rect, { x:0, y:0, w:13.3, h:7.5, fill:{color:C.offWhite}, line:{color:C.offWhite} });
headerBand(s, "Management โ Pharmacological", "When Lifestyle Alone is Insufficient");
s.addShape(pres.ShapeType.roundRect, { x:0.35, y:1.6, w:12.6, h:0.58,
fill:{color:C.warn}, line:{color:C.warn}, rectRadius:0.1 });
s.addText("Add pharmacotherapy when glycemic targets are not met within 1โ2 weeks of lifestyle intervention", {
x:0.5, y:1.65, w:12.3, h:0.48,
fontSize:13.5, bold:true, color:C.white, fontFace:"Calibri", align:"center", margin:0 });
// Insulin card
s.addShape(pres.ShapeType.roundRect, { x:0.35, y:2.35, w:6.1, h:4.85,
fill:{color:C.white}, line:{color:C.teal, pt:2}, rectRadius:0.12 });
s.addShape(pres.ShapeType.roundRect, { x:0.35, y:2.35, w:6.1, h:0.55,
fill:{color:C.teal}, line:{color:C.teal}, rectRadius:0.12 });
s.addShape(pres.ShapeType.rect, { x:0.35, y:2.63, w:6.1, h:0.27, fill:{color:C.teal}, line:{color:C.teal} });
s.addText("INSULIN (Gold Standard โ Preferred)", { x:0.45, y:2.39, w:5.9, h:0.47,
fontSize:14, bold:true, color:C.white, fontFace:"Calibri", margin:0 });
bulletBlock(s, [
"Does NOT cross the placenta โ safest fetal profile",
"Preferred medical therapy in pregnancy (ADA / ACOG / WHO)",
"Types used: NPH (basal), Regular, Aspart, Lispro (rapid-acting)",
"Glargine & Detemir: limited pregnancy data; used in clinical practice",
"Dose titration based on fasting and postprandial SMBG values",
"Escalating doses required as pregnancy progresses (insulin resistance โ)",
"IV insulin infusion recommended intrapartum (tight glycemic control at delivery)",
"Risk: hypoglycaemia โ patient education on recognition and management essential",
], 0.45, 2.97, 5.9, 4.1, 12.5);
// Oral agents card
s.addShape(pres.ShapeType.roundRect, { x:6.85, y:2.35, w:6.1, h:4.85,
fill:{color:C.white}, line:{color:"1A6A7A", pt:2}, rectRadius:0.12 });
s.addShape(pres.ShapeType.roundRect, { x:6.85, y:2.35, w:6.1, h:0.55,
fill:{color:"1A6A7A"}, line:{color:"1A6A7A"}, rectRadius:0.12 });
s.addShape(pres.ShapeType.rect, { x:6.85, y:2.63, w:6.1, h:0.27, fill:{color:"1A6A7A"}, line:{color:"1A6A7A"} });
s.addText("ORAL AGENTS (Selected Cases)", { x:6.95, y:2.39, w:5.9, h:0.47,
fontSize:14, bold:true, color:C.white, fontFace:"Calibri", margin:0 });
// Metformin sub-box
s.addShape(pres.ShapeType.roundRect, { x:7.0, y:3.0, w:5.8, h:2.35,
fill:{color:"EAF6F9"}, line:{color:C.aqua, pt:1}, rectRadius:0.1 });
s.addText("Metformin", { x:7.1, y:3.05, w:5.6, h:0.35,
fontSize:13, bold:true, color:C.teal, fontFace:"Calibri", margin:0 });
bulletBlock(s, [
"Crosses the placenta (fetal metformin levels ~50% of maternal)",
"May appear preferable to insulin in some studies",
"~46% of women require additional insulin escalation",
"Acceptable alternative when insulin is declined or unavailable",
"Long-term offspring metabolic effects under investigation",
"Not FDA-approved in pregnancy; use is off-label",
], 7.1, 3.42, 5.6, 1.85, 11.5);
// Glibenclamide sub-box
s.addShape(pres.ShapeType.roundRect, { x:7.0, y:5.45, w:5.8, h:1.55,
fill:{color:"FFF5F0"}, line:{color:C.warn, pt:1}, rectRadius:0.1 });
s.addText("Glibenclamide (Glyburide) โ Use with Caution", { x:7.1, y:5.5, w:5.6, h:0.35,
fontSize:12, bold:true, color:C.warn, fontFace:"Calibri", margin:0 });
bulletBlock(s, [
"Crosses the placenta โ neonatal hypoglycaemia risk",
"ADA 2024: not recommended as first-line; use only if insulin unavailable",
], 7.1, 5.86, 5.6, 1.0, 11.5);
}
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// SLIDE 13 โ FETAL SURVEILLANCE & DELIVERY
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
{
const s = pres.addSlide();
s.addShape(pres.ShapeType.rect, { x:0, y:0, w:13.3, h:7.5, fill:{color:C.white}, line:{color:C.white} });
headerBand(s, "Fetal Surveillance & Delivery Planning", "Antepartum & Intrapartum Management");
const sections = [
{
title:"Antenatal Surveillance",
color:C.teal,
items:[
"Detailed anomaly scan at 18โ20 weeks (especially if overt DM)",
"Fetal growth ultrasound every 4 weeks from 28 weeks",
"LGA / macrosomia (EFW >4000g) on USS suggests suboptimal control",
"Polyhydramnios: indicator of fetal hyperglycaemia / hyperinsulinism",
"Non-stress test (NST) / Biophysical profile (BPP) if poorly controlled",
"Doppler velocimetry if fetal growth restriction (less common)",
]
},
{
title:"Timing of Delivery",
color:"1A6A7A",
items:[
"Well-controlled GDM (diet-controlled): delivery at 40โ41 weeks",
"GDM requiring insulin: consider induction at 38โ39 weeks",
"Harrison's 22e: induction may be recommended at early-term (37โ39 wk)",
"Poorly controlled or macrosomic: earlier delivery considered",
"Preterm delivery reserved for: poor glycemic control, worsening renal disease, active proliferative retinopathy",
]
},
{
title:"Mode of Delivery",
color:C.navy,
items:[
"Vaginal delivery preferred unless obstetric indication for CS",
"Elective CS considered if EFW โฅ4500 g (to prevent shoulder dystocia)",
"Intrapartum glucose: IV dextrose-insulin infusion to keep BG 70โ110 mg/dL",
"Tight glycemic control at delivery โ minimizes neonatal hypoglycaemia",
"Neonatal monitoring: glucose checks at 1โ2 hours after birth",
]
},
{
title:"Neonatal Care",
color:"4A3E8C",
items:[
"Monitor blood glucose q2โ4h for first 12โ24 hours",
"Early feeding (within 30 min of birth) to prevent hypoglycaemia",
"Watch for: respiratory distress, jaundice, polycythaemia",
"Paediatrician/neonatologist should be informed pre-delivery",
"Breastfeeding encouraged โ reduces infant obesity risk",
]
},
];
sections.forEach((sec, i) => {
const x = 0.3 + (i%2)*6.5;
const y = 1.6 + Math.floor(i/2)*2.85;
s.addShape(pres.ShapeType.roundRect, { x, y, w:6.2, h:2.65,
fill:{color:C.offWhite}, line:{color:sec.color, pt:1.5}, rectRadius:0.12 });
s.addShape(pres.ShapeType.roundRect, { x, y, w:6.2, h:0.45,
fill:{color:sec.color}, line:{color:sec.color}, rectRadius:0.12 });
s.addShape(pres.ShapeType.rect, { x, y:y+0.25, w:6.2, h:0.2, fill:{color:sec.color}, line:{color:sec.color} });
s.addText(sec.title, { x:x+0.1, y:y+0.05, w:6.0, h:0.38,
fontSize:13, bold:true, color:C.white, fontFace:"Calibri", margin:0 });
const rows = sec.items.map((item, idx) => ({
text:item, options:{ bullet:true, breakLine: idx<sec.items.length-1, fontSize:11.5, color:C.textDark }
}));
s.addText(rows, { x:x+0.1, y:y+0.52, w:6.0, h:2.05,
fontFace:"Calibri", valign:"top", paraSpaceAfter:2, lineSpacingMultiple:1.15, margin:0 });
});
}
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// SLIDE 14 โ POSTPARTUM CARE
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
{
const s = pres.addSlide();
s.addShape(pres.ShapeType.rect, { x:0, y:0, w:13.3, h:7.5, fill:{color:C.offWhite}, line:{color:C.offWhite} });
headerBand(s, "Postpartum Care & Long-term Prognosis", "Beyond Delivery โ The Lifelong Risk");
// Key statistic
s.addShape(pres.ShapeType.roundRect, { x:0.35, y:1.6, w:12.6, h:0.85,
fill:{color:C.navy}, line:{color:C.navy}, rectRadius:0.12 });
s.addText([
{text:"50% ", options:{bold:true, fontSize:22, color:C.aqua}},
{text:"of women with GDM will develop T2DM within 10 years | ", options:{fontSize:14, color:C.white}},
{text:"~20x ", options:{bold:true, fontSize:22, color:C.aqua}},
{text:"higher lifetime risk of T2DM", options:{fontSize:14, color:C.white}},
], { x:0.5, y:1.65, w:12.3, h:0.75,
fontFace:"Calibri", align:"center", valign:"middle", margin:0 });
const cards = [
{
title:"Immediate Postpartum",
color:C.teal,
items:[
"Insulin requirements drop dramatically after placental delivery",
"Discontinue GDM-specific treatment immediately after delivery",
"Continue SMBG for 24โ48 hours to confirm resolution",
"Breastfeeding encouraged โ reduces infant obesity risk and may reduce maternal T2DM risk",
]
},
{
title:"6-Week Postpartum Screen",
color:"1A6A7A",
items:[
"75-g OGTT at 4โ12 weeks postpartum (not HbA1c alone โ less sensitive)",
"Reclassify: normal / prediabetes / T2DM using non-pregnant criteria",
"If normal: screen every 1โ3 years for life",
"Up to 20% will already have glucose abnormality at 6-week screen",
]
},
{
title:"Long-term Follow-up",
color:C.navy,
items:[
"Annual fasting glucose or HbA1c",
"Counsel on T2DM prevention: diet, exercise, weight management",
"Metformin may be considered in high-risk women",
"Intensive lifestyle intervention reduces T2DM risk by ~58% (DPP trial)",
"Cardiovascular risk factor monitoring: lipids, BP, waist circumference",
"Impaired glucose metabolism in ~50% within 10 years",
]
},
{
title:"Offspring Surveillance",
color:"4A3E8C",
items:[
"Intrauterine hyperglycaemia programs metabolic risk in offspring",
"Children of GDM mothers: โ risk of childhood obesity",
"โ risk of T2DM and metabolic syndrome in adolescence/adulthood",
"Promote healthy lifestyle from infancy",
"Breastfeeding is protective for both mother and child",
]
},
];
cards.forEach((c, i) => {
const x = 0.3 + (i%2)*6.5;
const y = 2.65 + Math.floor(i/2)*2.45;
s.addShape(pres.ShapeType.roundRect, { x, y, w:6.2, h:2.28,
fill:{color:C.white}, line:{color:c.color, pt:1.5}, rectRadius:0.12 });
s.addShape(pres.ShapeType.roundRect, { x, y, w:6.2, h:0.42,
fill:{color:c.color}, line:{color:c.color}, rectRadius:0.12 });
s.addShape(pres.ShapeType.rect, { x, y:y+0.22, w:6.2, h:0.2, fill:{color:c.color}, line:{color:c.color} });
s.addText(c.title, { x:x+0.1, y:y+0.04, w:6.0, h:0.38,
fontSize:13, bold:true, color:C.white, fontFace:"Calibri", margin:0 });
const rows = c.items.map((item, idx) => ({
text:item, options:{ bullet:true, breakLine: idx<c.items.length-1, fontSize:11.5, color:C.textDark }
}));
s.addText(rows, { x:x+0.1, y:y+0.5, w:6.0, h:1.72,
fontFace:"Calibri", valign:"top", paraSpaceAfter:2, lineSpacingMultiple:1.15, margin:0 });
});
}
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// SLIDE 15 โ PREVENTION & FUTURE DIRECTIONS
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
{
const s = pres.addSlide();
s.addShape(pres.ShapeType.rect, { x:0, y:0, w:13.3, h:7.5, fill:{color:C.white}, line:{color:C.white} });
headerBand(s, "Prevention & Future Directions", "Reducing GDM & Its Consequences");
const preCol = [
{
title:"Pre-conception Prevention",
color:C.teal,
items:[
"Achieve healthy BMI before pregnancy",
"Regular physical activity pre-conception",
"Balanced diet (Mediterranean diet shows benefit)",
"Screen and treat prediabetes before pregnancy",
"Metformin in high-risk women (DPP data)",
]
},
{
title:"During Pregnancy",
color:"1A6A7A",
items:[
"Healthy diet from 1st trimester",
"Regular aerobic exercise (no contraindications)",
"Limit gestational weight gain per IOM guidelines",
"Probiotics: emerging evidence โ gut microbiome role",
"myo-Inositol supplementation: under investigation",
]
},
];
const futCol = [
{
title:"Research & Emerging Areas",
color:C.navy,
items:[
"Continuous glucose monitoring (CGM) in GDM: ongoing RCTs",
"Telemedicine & digital health: remote glucose monitoring",
"Artificial Pancreas (closed-loop insulin delivery): trials in pregnancy",
"Gut microbiome modifications: probiotic/prebiotic trials",
"Pharmacogenomics: predicting metformin responders vs non-responders",
"GLP-1 receptor agonists: not currently recommended in pregnancy",
]
},
{
title:"Policy & Public Health",
color:"4A3E8C",
items:[
"Universal screening debate: one-step vs two-step (cost-effectiveness)",
"HAPO FUS: long-term follow-up data informing future guidelines",
"ADA updates Standards of Care annually โ stay current",
"WHO 2013 criteria: adopted in most countries outside USA",
"Community-level obesity prevention as primary GDM prevention",
]
},
];
[...preCol, ...futCol].forEach((c, i) => {
const x = 0.3 + (i%2)*6.5;
const y = 1.6 + Math.floor(i/2)*2.85;
s.addShape(pres.ShapeType.roundRect, { x, y, w:6.2, h:2.68,
fill:{color:C.offWhite}, line:{color:c.color, pt:1.5}, rectRadius:0.12 });
s.addShape(pres.ShapeType.roundRect, { x, y, w:6.2, h:0.45,
fill:{color:c.color}, line:{color:c.color}, rectRadius:0.12 });
s.addShape(pres.ShapeType.rect, { x, y:y+0.25, w:6.2, h:0.2, fill:{color:c.color}, line:{color:c.color} });
s.addText(c.title, { x:x+0.1, y:y+0.05, w:6.0, h:0.38,
fontSize:13, bold:true, color:C.white, fontFace:"Calibri", margin:0 });
const rows = c.items.map((item, idx) => ({
text:item, options:{ bullet:true, breakLine: idx<c.items.length-1, fontSize:11.5, color:C.textDark }
}));
s.addText(rows, { x:x+0.1, y:y+0.52, w:6.0, h:2.1,
fontFace:"Calibri", valign:"top", paraSpaceAfter:2, lineSpacingMultiple:1.15, margin:0 });
});
}
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// SLIDE 16 โ SUMMARY
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
{
const s = pres.addSlide();
s.addShape(pres.ShapeType.rect, { x:0, y:0, w:13.3, h:7.5, fill:{color:C.offWhite}, line:{color:C.offWhite} });
headerBand(s, "Summary & Key Take-Aways", "What Every Medical Student Must Know About GDM");
const takeaways = [
{ num:"01", text:"GDM = glucose intolerance first diagnosed in pregnancy; affects ~6โ8% of pregnancies; usually asymptomatic" },
{ num:"02", text:"Mechanism: physiologic insulin resistance (placental hormones) + insufficient ฮฒ-cell compensation โ hyperglycaemia" },
{ num:"03", text:"Risk factors: obesity, age >30, prior GDM, PCOS, family history of T2DM, high-risk ethnicity" },
{ num:"04", text:"Screen ALL women at 24โ28 weeks: two-step (50g GCT โ 100g OGTT, USA/ACOG) or one-step (75g OGTT, IADPSG/WHO)" },
{ num:"05", text:"Complications: macrosomia, shoulder dystocia, preeclampsia, neonatal hypoglycaemia, future T2DM in mother & offspring" },
{ num:"06", text:"Treatment: lifestyle first (70โ85% success) โ insulin if targets not met; metformin as second-line if insulin declined" },
{ num:"07", text:"Glycemic targets: fasting <95, 1-hr PP <140, 2-hr PP <120 mg/dL; monitor with SMBG at minimum 4x/day" },
{ num:"08", text:"Postpartum 75g OGTT at 4โ12 weeks; annual screening lifelong; lifestyle intervention reduces future T2DM by ~58%" },
];
takeaways.forEach((t, i) => {
const x = 0.3 + (i%2)*6.5;
const y = 1.62 + Math.floor(i/2)*1.4;
s.addShape(pres.ShapeType.roundRect, { x, y, w:6.2, h:1.25,
fill:{color:C.white}, line:{color:C.light, pt:1}, rectRadius:0.1 });
s.addShape(pres.ShapeType.roundRect, { x:x+0.08, y:y+0.1, w:0.48, h:0.48,
fill:{color:C.teal}, line:{color:C.teal}, rectRadius:0.07 });
s.addText(t.num, { x:x+0.08, y:y+0.1, w:0.48, h:0.48,
fontSize:12, bold:true, color:C.white, fontFace:"Calibri", align:"center", valign:"middle", margin:0 });
s.addText(t.text, { x:x+0.65, y:y+0.1, w:5.45, h:1.08,
fontSize:12, color:C.textDark, fontFace:"Calibri", valign:"middle",
lineSpacingMultiple:1.2, margin:0 });
});
s.addText("Sources: Creasy & Resnik MFM 8e | Goldman-Cecil Medicine | Harrison's Principles 22e | Textbook of Family Medicine 9e | Barash Clinical Anesthesia 9e", {
x:0.3, y:7.1, w:12.7, h:0.32,
fontSize:9.5, color:"6A8BA8", fontFace:"Calibri", align:"center", margin:0 });
}
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// SLIDE 17 โ CLOSING / THANK YOU
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
{
const s = pres.addSlide();
s.addShape(pres.ShapeType.rect, { x:0, y:0, w:13.3, h:7.5, fill:{color:C.navy}, line:{color:C.navy} });
s.addShape(pres.ShapeType.rect, { x:0, y:5.8, w:13.3, h:1.7, fill:{color:C.teal}, line:{color:C.teal} });
s.addShape(pres.ShapeType.rect, { x:0, y:3.6, w:13.3, h:0.07, fill:{color:C.aqua}, line:{color:C.aqua} });
s.addText("Thank You", { x:0.8, y:0.7, w:11.7, h:1.2,
fontSize:54, bold:true, color:C.white, fontFace:"Calibri", align:"center", margin:0 });
s.addText("Gestational Diabetes Mellitus", { x:0.8, y:1.85, w:11.7, h:0.65,
fontSize:26, color:C.aqua, fontFace:"Calibri", align:"center", margin:0 });
s.addText("Questions & Discussion", { x:0.8, y:2.55, w:11.7, h:0.5,
fontSize:18, color:C.light, fontFace:"Calibri", align:"center", margin:0 });
const refs = [
"Creasy & Resnik's Maternal-Fetal Medicine: Principles and Practice, 8th Edition",
"Goldman-Cecil Medicine, International Edition (2-Volume Set)",
"Harrison's Principles of Internal Medicine, 22nd Edition (2025)",
"Textbook of Family Medicine, 9th Edition",
"Barash, Cullen & Stoelting's Clinical Anesthesia, 9th Edition",
"ADA Standards of Medical Care in Diabetes | ACOG Practice Bulletin No. 190 | IADPSG Consensus 2010",
];
s.addText("References", { x:0.8, y:3.82, w:11.7, h:0.38,
fontSize:14, bold:true, color:C.aqua, fontFace:"Calibri", align:"center", margin:0 });
const refRows = refs.map((r, i) => ({
text: r, options:{ breakLine: i<refs.length-1, fontSize:11, color:C.light }
}));
s.addText(refRows, { x:1.0, y:4.22, w:11.3, h:1.48,
fontFace:"Calibri", align:"center", lineSpacingMultiple:1.3, margin:0 });
s.addText("Prepared for Medical Students | July 2026", {
x:0.8, y:6.05, w:11.7, h:0.42,
fontSize:13, color:C.white, fontFace:"Calibri", align:"center", bold:true, margin:0 });
}
// โโโ WRITE FILE โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
pres.writeFile({ fileName: "/home/daytona/workspace/gdm-ppt/GDM_Presentation.pptx" })
.then(() => console.log("โ
GDM_Presentation.pptx written successfully"))
.catch(err => console.error("โ Error:", err));
cd /home/daytona/workspace/gdm-ppt && node gdm.js
~/gdm-ppt/gdm.js
Successfully replaced 1 instance(s) of the string in '/home/daytona/workspace/gdm-ppt/gdm.js'
cd /home/daytona/workspace/gdm-ppt && node gdm.js
ls -lh /home/daytona/workspace/gdm-ppt/GDM_Presentation.pptx
GDM Presentation
Presentation ยท PPTX
| # | Slide Title |
|---|---|
| 1 | Title Slide - with 5 key facts panel |
| 2 | Table of Contents - 14 topics listed |
| 3 | Definition & Background - WHO/ADA definition, mechanism overview |
| 4 | Epidemiology & Prevalence - stats, ethnic variation, rising trends |
| 5 | Pathophysiology - flow diagram (placental hormones โ insulin resistance โ ฮฒ-cell failure) |
| 6 | Risk Factors - maternal, medical history, obstetric, family/ethnic |
| 7 | Clinical Features & Complications - maternal + fetal columns |
| 8 | Screening - Two-step (ACOG) vs One-step (IADPSG) side-by-side |
| 9 | Diagnostic Criteria Table - IADPSG / ADA / ACOG / NDDG / Carpenter-Coustan comparison |
| 10 | Glycemic Targets & Monitoring - SMBG targets + insulin dose progression |
| 11 | Management - Lifestyle - MNT, exercise, weight management |
| 12 | Management - Pharmacological - Insulin (gold standard) vs Metformin vs Glibenclamide |
| 13 | Fetal Surveillance & Delivery - antenatal monitoring, timing, mode of delivery, neonatal care |
| 14 | Postpartum Care & Long-term Prognosis - 6-week OGTT, T2DM risk, offspring surveillance |
| 15 | Prevention & Future Directions - CGM, digital health, gut microbiome, GLP-1 research |
| 16 | Summary - 8 key take-aways every student must know |
| 17 | Thank You / References |