attachment
attachment

Clinical Question 6B AMONG INFANTS AND CHILDREN AGED 3 MONTHS TO 18 YEARS WITH BACTERIAL COMMUNITY- ACQUIRED PNEUMONIA, WILL THE ADDITION OF A MACROLIDE TO STANDARD EMPIRIC REGIMEN IMPROVE TREATMENT OUTCOME? Give me a content for the question to the ppt making for a 2 slides from above given picture

Reading File
Reading File
Running Command

ls -la /home/daytona/workspace/ 2>/dev/null || echo "workspace empty or not foun…

Running Command

mkdir -p /home/daytona/workspace/cq6b-ppt

Writing File

~/cq6b-ppt/build.js

const pptxgen = require("pptxgenjs");

const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Clinical Question 6B – Macrolide Addition in Pediatric BCAP";

// ─── COLOR PALETTE ───────────────────────────────────────────────────────────
const NAVY    = "1B2A4A";   // dominant dark bg
const TEAL    = "1A7A8A";   // accent header bar
const ROSE    = "C0395B";   // accent / highlight
const WHITE   = "FFFFFF";
const LGRAY   = "EAF0F4";   // light card bg
const MGRAY   = "9DAFC0";   // muted text
const YELLOW  = "F5C842";   // badge accent
const GREEN   = "2ECC71";
const RED_ACC = "E74C3C";

// ═══════════════════════════════════════════════════════════════════════════════
//  SLIDE 1 – Clinical Question + Key Recommendation
// ═══════════════════════════════════════════════════════════════════════════════
const s1 = pres.addSlide();

// Full dark background
s1.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: NAVY } });

// Left accent stripe
s1.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.08, h: 5.625, fill: { color: ROSE } });

// Top teal header bar
s1.addShape(pres.ShapeType.rect, { x: 0.08, y: 0, w: 9.92, h: 1.08, fill: { color: TEAL } });

// CPG badge
s1.addShape(pres.ShapeType.roundRect, {
  x: 0.22, y: 0.18, w: 1.1, h: 0.38,
  fill: { color: YELLOW }, rectRadius: 0.05
});
s1.addText("CPG 2021", {
  x: 0.22, y: 0.18, w: 1.1, h: 0.38,
  fontSize: 9, bold: true, color: NAVY, align: "center", valign: "middle", margin: 0
});

// "Clinical Question 6B" label
s1.addText("Clinical Question 6B", {
  x: 1.45, y: 0.14, w: 8.3, h: 0.34,
  fontSize: 11, bold: false, color: LGRAY, align: "left", valign: "middle", margin: 0
});

// Main question title
s1.addText([
  { text: "Macrolide Addition to Standard Empiric Regimen", options: { bold: true, breakLine: true } },
  { text: "in Pediatric Bacterial Community-Acquired Pneumonia", options: { bold: false } }
], {
  x: 0.22, y: 0.5, w: 9.5, h: 0.6,
  fontSize: 15, color: WHITE, align: "left", valign: "middle", margin: 0
});

// Authors
s1.addText("Kristine Alvarado-Dela Cruz, M.D.  |  Lesley Anne Dela Cruz, M.D.", {
  x: 0.22, y: 1.1, w: 9.5, h: 0.28,
  fontSize: 8.5, color: MGRAY, italic: true, align: "left", margin: 0
});

// Population pill
s1.addShape(pres.ShapeType.roundRect, {
  x: 0.22, y: 1.52, w: 9.56, h: 0.44,
  fill: { color: "22354E" }, rectRadius: 0.07
});
s1.addText("Population: Infants and children aged 3 months – 18 years with bacterial PCAP", {
  x: 0.22, y: 1.52, w: 9.56, h: 0.44,
  fontSize: 10.5, color: YELLOW, bold: true, align: "center", valign: "middle", margin: 0
});

// ─── KEY RECOMMENDATION CARD ─────────────────────────────────────────────────
s1.addShape(pres.ShapeType.rect, {
  x: 0.22, y: 2.1, w: 9.56, h: 2.1,
  fill: { color: "142235" }, line: { color: ROSE, width: 1.5 }
});

// Card header strip
s1.addShape(pres.ShapeType.rect, {
  x: 0.22, y: 2.1, w: 9.56, h: 0.38,
  fill: { color: ROSE }
});
s1.addText("KEY RECOMMENDATION", {
  x: 0.22, y: 2.1, w: 9.56, h: 0.38,
  fontSize: 11, bold: true, color: WHITE, align: "center", valign: "middle", margin: 0
});

// Recommendation text
s1.addText(
  "The addition of a macrolide to standard beta-lactam antibiotic therapy is NOT recommended in the empiric treatment of bacterial PCAP.",
  {
    x: 0.45, y: 2.52, w: 9.1, h: 0.88,
    fontSize: 13, color: WHITE, bold: false, align: "center", valign: "middle", margin: 0, wrap: true
  }
);

// Grade badge
s1.addShape(pres.ShapeType.roundRect, {
  x: 2.5, y: 3.44, w: 5, h: 0.52,
  fill: { color: "2C3E60" }, rectRadius: 0.08
});
s1.addText("Conditional Recommendation  |  Very Low-Grade Evidence", {
  x: 2.5, y: 3.44, w: 5, h: 0.52,
  fontSize: 10, color: YELLOW, bold: true, align: "center", valign: "middle", margin: 0
});

// Bottom footer
s1.addShape(pres.ShapeType.rect, { x: 0, y: 5.3, w: 10, h: 0.325, fill: { color: TEAL } });
s1.addText("2021 Clinical Practice Guidelines – Pediatric Community-Acquired Pneumonia", {
  x: 0.2, y: 5.3, w: 9.6, h: 0.325,
  fontSize: 8, color: WHITE, align: "center", valign: "middle", margin: 0
});

// ═══════════════════════════════════════════════════════════════════════════════
//  SLIDE 2 – Summary of Evidence (3 outcomes)
// ═══════════════════════════════════════════════════════════════════════════════
const s2 = pres.addSlide();

// Background
s2.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: NAVY } });
s2.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.08, h: 5.625, fill: { color: ROSE } });

// Header bar
s2.addShape(pres.ShapeType.rect, { x: 0.08, y: 0, w: 9.92, h: 0.72, fill: { color: TEAL } });
s2.addText("SUMMARY OF EVIDENCE  –  Clinical Question 6B", {
  x: 0.18, y: 0, w: 9.64, h: 0.72,
  fontSize: 14, bold: true, color: WHITE, align: "left", valign: "middle", margin: 0
});

// ─── OUTCOME 1 CARD ──────────────────────────────────────────────────────────
// Card bg
s2.addShape(pres.ShapeType.rect, {
  x: 0.18, y: 0.84, w: 9.64, h: 1.38,
  fill: { color: "1D2F45" }, line: { color: RED_ACC, width: 1.2 }
});
// Outcome label banner
s2.addShape(pres.ShapeType.rect, {
  x: 0.18, y: 0.84, w: 9.64, h: 0.33,
  fill: { color: RED_ACC }
});
s2.addText("Outcome 1 – Macrolide Resistance   [Does NOT recommend macrolides]", {
  x: 0.22, y: 0.84, w: 9.56, h: 0.33,
  fontSize: 9.5, bold: true, color: WHITE, align: "left", valign: "middle", margin: 0
});
// Importance badge
s2.addShape(pres.ShapeType.roundRect, {
  x: 8.5, y: 0.84, w: 1.28, h: 0.33,
  fill: { color: "8B0000" }, rectRadius: 0.04
});
s2.addText("CRITICAL", {
  x: 8.5, y: 0.84, w: 1.28, h: 0.33,
  fontSize: 8, bold: true, color: WHITE, align: "center", valign: "middle", margin: 0
});

// Table header row
const tblHdrY = 1.19;
[["# Studies", 0.18, 1.5], ["Study Design", 1.72, 2.4], ["Key Findings", 4.16, 4.0], ["Grade", 8.2, 1.6]].forEach(([lbl, x, w]) => {
  s2.addShape(pres.ShapeType.rect, { x, y: tblHdrY, w, h: 0.28, fill: { color: "2C3E60" } });
  s2.addText(lbl, { x, y: tblHdrY, w, h: 0.28, fontSize: 8, bold: true, color: YELLOW, align: "center", valign: "middle", margin: 0 });
});

// Data row
const r1Y = 1.49;
const r1H = 0.7;
[
  ["24 studies\n(Chen et al., 2020)", 0.18, 1.5],
  ["Meta-analysis of\nRCTs", 1.72, 2.4],
  ["Overall macrolide resistance\nPooled OR 4.42  (95% CI = 2.32–8.41)", 4.16, 4.0],
  ["High", 8.2, 1.6]
].forEach(([txt, x, w]) => {
  s2.addShape(pres.ShapeType.rect, { x, y: r1Y, w, h: r1H, fill: { color: "162030" }, line: { color: "2A3F5A", width: 0.5 } });
  s2.addText(txt, { x, y: r1Y, w, h: r1H, fontSize: 8.5, color: WHITE, align: "center", valign: "middle", margin: 4, wrap: true });
});

// ─── OUTCOME 2 CARD ──────────────────────────────────────────────────────────
s2.addShape(pres.ShapeType.rect, {
  x: 0.18, y: 2.36, w: 9.64, h: 1.18,
  fill: { color: "1D2F45" }, line: { color: GREEN, width: 1.2 }
});
s2.addShape(pres.ShapeType.rect, { x: 0.18, y: 2.36, w: 9.64, h: 0.33, fill: { color: "1A7A4A" } });
s2.addText("Outcome 2 – Length of Hospitalization   [Studies recommending macrolides]", {
  x: 0.22, y: 2.36, w: 9.56, h: 0.33,
  fontSize: 9.5, bold: true, color: WHITE, align: "left", valign: "middle", margin: 0
});
s2.addShape(pres.ShapeType.roundRect, { x: 8.1, y: 2.36, w: 1.68, h: 0.33, fill: { color: "155A3E" }, rectRadius: 0.04 });
s2.addText("NOT CRITICAL", { x: 8.1, y: 2.36, w: 1.68, h: 0.33, fontSize: 8, bold: true, color: WHITE, align: "center", valign: "middle", margin: 0 });

const r2HdrY = 2.71;
[["# Studies", 0.18, 1.5], ["Study Design", 1.72, 2.4], ["Key Findings", 4.16, 4.0], ["Grade", 8.2, 1.6]].forEach(([lbl, x, w]) => {
  s2.addShape(pres.ShapeType.rect, { x, y: r2HdrY, w, h: 0.28, fill: { color: "2C3E60" } });
  s2.addText(lbl, { x, y: r2HdrY, w, h: 0.28, fontSize: 8, bold: true, color: YELLOW, align: "center", valign: "middle", margin: 0 });
});
const r2Y = 3.01;
const r2H = 0.5;
[
  ["9 studies\n(Lin et al., 2018\n+ Williams et al., 2017)", 0.18, 1.5],
  ["Meta-analysis of\nCohort & Case-control\nstudies", 1.72, 2.4],
  ["LOS for macrolide group: −0.051 days (range −0.377 to 0.274), p=0.756, I²=76.8%\nHR time-to-discharge: 0.92 (95% CI 0.77–1.08)", 4.16, 4.0],
  ["Very Low", 8.2, 1.6]
].forEach(([txt, x, w]) => {
  s2.addShape(pres.ShapeType.rect, { x, y: r2Y, w, h: r2H, fill: { color: "162030" }, line: { color: "2A3F5A", width: 0.5 } });
  s2.addText(txt, { x, y: r2Y, w, h: r2H, fontSize: 7.8, color: WHITE, align: "center", valign: "middle", margin: 3, wrap: true });
});

// ─── OUTCOME 3 CARD ──────────────────────────────────────────────────────────
s2.addShape(pres.ShapeType.rect, {
  x: 0.18, y: 3.62, w: 9.64, h: 1.22,
  fill: { color: "1D2F45" }, line: { color: YELLOW, width: 1.2 }
});
s2.addShape(pres.ShapeType.rect, { x: 0.18, y: 3.62, w: 9.64, h: 0.33, fill: { color: "947A00" } });
s2.addText("Outcome 3 – Treatment Failure   [Studies recommending macrolides]", {
  x: 0.22, y: 3.62, w: 9.56, h: 0.33,
  fontSize: 9.5, bold: true, color: WHITE, align: "left", valign: "middle", margin: 0
});
s2.addShape(pres.ShapeType.roundRect, { x: 8.1, y: 3.62, w: 1.68, h: 0.33, fill: { color: "5A4800" }, rectRadius: 0.04 });
s2.addText("NOT CRITICAL", { x: 8.1, y: 3.62, w: 1.68, h: 0.33, fontSize: 8, bold: true, color: WHITE, align: "center", valign: "middle", margin: 0 });

const r3HdrY = 3.97;
[["# Studies", 0.18, 1.5], ["Study Design", 1.72, 2.4], ["Key Findings", 4.16, 4.0], ["Grade", 8.2, 1.6]].forEach(([lbl, x, w]) => {
  s2.addShape(pres.ShapeType.rect, { x, y: r3HdrY, w, h: 0.28, fill: { color: "2C3E60" } });
  s2.addText(lbl, { x, y: r3HdrY, w, h: 0.28, fontSize: 8, bold: true, color: YELLOW, align: "center", valign: "middle", margin: 0 });
});
const r3Y = 4.27;
const r3H = 0.55;
[
  ["1 study\n(Ambroggio\net al., 2016)", 0.18, 1.5],
  ["Individual\ncohort study", 1.72, 2.4],
  ["14-Day TF: 1–<6 yrs OR 1.34 (0.83–2.18); 6–18 yrs OR 0.51 (0.28–0.95)\n7-Day TF: 1–<6 yrs OR 1.33 (0.74–2.39); 6–18 yrs OR 0.33 (0.12–0.91)", 4.16, 4.0],
  ["Very Low", 8.2, 1.6]
].forEach(([txt, x, w]) => {
  s2.addShape(pres.ShapeType.rect, { x, y: r3Y, w, h: r3H, fill: { color: "162030" }, line: { color: "2A3F5A", width: 0.5 } });
  s2.addText(txt, { x, y: r3Y, w, h: r3H, fontSize: 7.5, color: WHITE, align: "center", valign: "middle", margin: 3, wrap: true });
});

// Footer
s2.addShape(pres.ShapeType.rect, { x: 0, y: 5.3, w: 10, h: 0.325, fill: { color: TEAL } });
s2.addText("2021 Clinical Practice Guidelines – Pediatric Community-Acquired Pneumonia", {
  x: 0.2, y: 5.3, w: 9.6, h: 0.325,
  fontSize: 8, color: WHITE, align: "center", valign: "middle", margin: 0
});

// ─── WRITE FILE ──────────────────────────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/cq6b-ppt/ClinicalQuestion6B_Macrolide_PCAP.pptx" })
  .then(() => console.log("✅ PPTX saved successfully."))
  .catch(err => { console.error("❌ Error:", err); process.exit(1); });
Running Command

cd /home/daytona/workspace/cq6b-ppt && node build.js

Your 2-slide presentation is ready:

ClinicalQuestion6B Macrolide PCAP

Presentation · PPTX


Here's what's on each slide:
Slide 1 — Clinical Question + Key Recommendation
  • CPG 2021 badge + "Clinical Question 6B" label in the teal header
  • Full question title: Macrolide Addition to Standard Empiric Regimen in Pediatric Bacterial CAP
  • Authors (Alvarado-Dela Cruz & Dela Cruz)
  • Population strip: Infants and children aged 3 months – 18 years with bacterial PCAP
  • Key Recommendation card (rose-bordered):
    • "The addition of a macrolide to standard beta-lactam antibiotic therapy is NOT recommended in the empiric treatment of bacterial PCAP."
    • Grade badge: Conditional Recommendation | Very Low-Grade Evidence
Slide 2 — Summary of Evidence (3 Outcomes)
  • Outcome 1 – Macrolide Resistance (CRITICAL importance, red banner)
    • 24 studies, meta-analysis of RCTs (Chen et al., 2020) → Pooled OR 4.42 (95% CI 2.32–8.41) — High grade
  • Outcome 2 – Length of Hospitalization (NOT CRITICAL, green banner)
    • 9 studies, meta-analysis of cohort/case-control → LOS difference −0.051 days, p=0.756; HR 0.92 — Very Low grade
  • Outcome 3 – Treatment Failure (NOT CRITICAL, yellow banner)
    • 1 cohort study (Ambroggio et al., 2016) → 14-day & 7-day TF ORs by age group — Very Low grade
Design uses a dark navy background with teal headers, rose/green/yellow outcome banners, and gold data-table headers for clean readability.
This is a shared conversation. Sign in to Orris to start your own chat.