Make a ppt on communication with patient(verbal and non verbal) Add these Topic:-communication with patient Name smayra Roll no 134

Reading File
Reading File
Running Command

mkdir -p /home/daytona/workspace/communication-ppt && ls /home/daytona/workspace…

Writing File

~/communication-ppt/build.js

const pptxgen = require("pptxgenjs");
const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Communication with Patient";
pres.author = "Smayra";

// ─── COLOR PALETTE ───────────────────────────────────────────────────────────
const C = {
  teal:      "007B83",   // dominant brand color
  tealLight: "00A8B5",
  tealPale:  "E0F5F7",
  navy:      "0D2B45",
  white:     "FFFFFF",
  offWhite:  "F5FBFC",
  accent:    "F4A261",   // warm accent for highlights
  accentDk:  "E76F51",
  gray:      "6B7280",
  grayLight: "D1D5DB",
};

// ─── HELPERS ─────────────────────────────────────────────────────────────────
function addSlideHeader(slide, title, subtitle) {
  // Teal top bar
  slide.addShape(pres.ShapeType.rect, {
    x: 0, y: 0, w: 10, h: 0.7,
    fill: { color: C.teal },
    line: { color: C.teal },
  });
  // Section title in bar
  slide.addText(title, {
    x: 0.3, y: 0, w: 9.4, h: 0.7,
    fontSize: 22, bold: true, color: C.white,
    valign: "middle", margin: 0,
  });
  if (subtitle) {
    slide.addText(subtitle, {
      x: 0.3, y: 0.72, w: 9.4, h: 0.35,
      fontSize: 13, color: C.teal, italic: true, margin: 0,
    });
  }
  // Thin accent line under bar
  slide.addShape(pres.ShapeType.rect, {
    x: 0, y: 0.7, w: 10, h: 0.05,
    fill: { color: C.accent },
    line: { color: C.accent },
  });
}

function bullet(text, sub) {
  const items = [{ text, options: { bullet: { code: "25CF" }, bold: false, color: C.navy, breakLine: sub ? false : true } }];
  if (sub) items.push({ text: sub, options: { bullet: { indent: 20 }, color: C.gray, fontSize: 11, breakLine: true } });
  return items;
}

// ══════════════════════════════════════════════════════════════════════════════
// SLIDE 1 — TITLE SLIDE
// ══════════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();

  // Dark navy background
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.navy }, line: { color: C.navy } });

  // Decorative teal circle (top-right)
  s.addShape(pres.ShapeType.ellipse, { x: 7.5, y: -1, w: 4, h: 4, fill: { color: C.teal, transparency: 75 }, line: { color: C.teal, transparency: 75 } });
  // Second accent circle
  s.addShape(pres.ShapeType.ellipse, { x: -0.8, y: 3.5, w: 3, h: 3, fill: { color: C.tealLight, transparency: 80 }, line: { color: C.tealLight, transparency: 80 } });

  // Teal accent bar (left)
  s.addShape(pres.ShapeType.rect, { x: 0.45, y: 1.1, w: 0.12, h: 2.8, fill: { color: C.accent }, line: { color: C.accent } });

  // Topic label
  s.addText("TOPIC", {
    x: 0.7, y: 1.0, w: 9, h: 0.4,
    fontSize: 12, color: C.accent, bold: true, charSpacing: 4, margin: 0,
  });

  // Main title
  s.addText("Communication", {
    x: 0.7, y: 1.45, w: 8.8, h: 0.85,
    fontSize: 46, bold: true, color: C.white, margin: 0,
  });
  s.addText("with Patient", {
    x: 0.7, y: 2.28, w: 8.8, h: 0.85,
    fontSize: 46, bold: true, color: C.tealLight, margin: 0,
  });

  // Subtitle
  s.addText("Verbal & Non-Verbal Communication in Healthcare", {
    x: 0.7, y: 3.18, w: 8.8, h: 0.45,
    fontSize: 16, color: C.grayLight, italic: true, margin: 0,
  });

  // Divider
  s.addShape(pres.ShapeType.rect, { x: 0.7, y: 3.72, w: 6, h: 0.03, fill: { color: C.teal }, line: { color: C.teal } });

  // Name & Roll no
  s.addText([
    { text: "Smayra", options: { bold: true, color: C.white } },
    { text: "   |   Roll No. 134", options: { color: C.grayLight } },
  ], { x: 0.7, y: 3.85, w: 8, h: 0.38, fontSize: 15, margin: 0 });
}

// ══════════════════════════════════════════════════════════════════════════════
// SLIDE 2 — WHAT IS COMMUNICATION?
// ══════════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.offWhite }, line: { color: C.offWhite } });

  addSlideHeader(s, "What is Communication?", "The foundation of effective patient care");

  // Large quote box
  s.addShape(pres.ShapeType.rect, { x: 0.4, y: 1.15, w: 9.2, h: 1.2, fill: { color: C.tealPale }, line: { color: C.teal, pt: 1.5 }, rectRadius: 0.1 });
  s.addText('"Communication is the process of sharing information, thoughts, and feelings between people through speaking, writing, or body language."', {
    x: 0.5, y: 1.2, w: 9, h: 1.1,
    fontSize: 13.5, color: C.navy, italic: true, align: "center", valign: "middle",
  });

  // 3 key cards
  const cards = [
    { title: "Sender", icon: "👤", desc: "The person initiating the message (doctor/nurse)" },
    { title: "Message", icon: "💬", desc: "Information conveyed verbally or non-verbally" },
    { title: "Receiver", icon: "🧑‍⚕️", desc: "The patient who receives and interprets the message" },
  ];
  cards.forEach((c, i) => {
    const x = 0.4 + i * 3.1;
    s.addShape(pres.ShapeType.rect, { x, y: 2.55, w: 2.9, h: 2.7, fill: { color: C.white }, line: { color: C.teal, pt: 1.5 }, rectRadius: 0.12 });
    s.addText(c.icon, { x, y: 2.65, w: 2.9, h: 0.55, fontSize: 26, align: "center", margin: 0 });
    s.addText(c.title, { x, y: 3.22, w: 2.9, h: 0.38, fontSize: 15, bold: true, color: C.teal, align: "center", margin: 0 });
    s.addText(c.desc, { x: x + 0.1, y: 3.65, w: 2.7, h: 1.4, fontSize: 11.5, color: C.gray, align: "center", valign: "top" });
  });
}

// ══════════════════════════════════════════════════════════════════════════════
// SLIDE 3 — IMPORTANCE OF COMMUNICATION
// ══════════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.offWhite }, line: { color: C.offWhite } });

  addSlideHeader(s, "Importance of Communication", "Why it matters in healthcare");

  const pts = [
    ["Builds trust & rapport", "Patients feel heard and respected"],
    ["Improves diagnosis accuracy", "Better history-taking leads to better diagnosis"],
    ["Increases treatment adherence", "Patients follow instructions they understand"],
    ["Reduces medical errors", "Clear communication prevents misunderstandings"],
    ["Enhances patient satisfaction", "Good communication improves overall care experience"],
    ["Emotional support", "Helps patients cope with illness and anxiety"],
  ];

  pts.forEach((p, i) => {
    const col = i % 2;
    const row = Math.floor(i / 2);
    const x = col === 0 ? 0.35 : 5.2;
    const y = 1.2 + row * 1.35;
    s.addShape(pres.ShapeType.rect, { x, y, w: 4.55, h: 1.1, fill: { color: C.white }, line: { color: C.tealLight, pt: 1.2 }, rectRadius: 0.1 });
    // Accent left bar
    s.addShape(pres.ShapeType.rect, { x, y, w: 0.08, h: 1.1, fill: { color: C.accent }, line: { color: C.accent }, rectRadius: 0 });
    s.addText(p[0], { x: x + 0.15, y: y + 0.08, w: 4.3, h: 0.38, fontSize: 13, bold: true, color: C.navy, margin: 0 });
    s.addText(p[1], { x: x + 0.15, y: y + 0.48, w: 4.3, h: 0.5, fontSize: 10.5, color: C.gray, margin: 0 });
  });
}

// ══════════════════════════════════════════════════════════════════════════════
// SLIDE 4 — TYPES OF COMMUNICATION (DIVIDER)
// ══════════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.teal }, line: { color: C.teal } });
  s.addShape(pres.ShapeType.ellipse, { x: 6.5, y: -1, w: 5, h: 5, fill: { color: C.tealLight, transparency: 70 }, line: { color: C.tealLight, transparency: 70 } });
  s.addShape(pres.ShapeType.ellipse, { x: -1, y: 2.5, w: 4, h: 4, fill: { color: C.navy, transparency: 60 }, line: { color: C.navy, transparency: 60 } });

  s.addText("Types of", { x: 1, y: 1.3, w: 8, h: 0.9, fontSize: 42, bold: true, color: C.white, align: "center", margin: 0 });
  s.addText("Communication", { x: 1, y: 2.15, w: 8, h: 0.9, fontSize: 42, bold: true, color: C.accent, align: "center", margin: 0 });

  // Two boxes side-by-side
  s.addShape(pres.ShapeType.rect, { x: 1.2, y: 3.35, w: 3.2, h: 1.0, fill: { color: C.navy, transparency: 30 }, line: { color: C.white, pt: 1.5 }, rectRadius: 0.12 });
  s.addText("01  Verbal", { x: 1.2, y: 3.35, w: 3.2, h: 1.0, fontSize: 18, bold: true, color: C.white, align: "center", valign: "middle" });

  s.addShape(pres.ShapeType.rect, { x: 5.6, y: 3.35, w: 3.2, h: 1.0, fill: { color: C.navy, transparency: 30 }, line: { color: C.accent, pt: 1.5 }, rectRadius: 0.12 });
  s.addText("02  Non-Verbal", { x: 5.6, y: 3.35, w: 3.2, h: 1.0, fontSize: 18, bold: true, color: C.accent, align: "center", valign: "middle" });
}

// ══════════════════════════════════════════════════════════════════════════════
// SLIDE 5 — VERBAL COMMUNICATION
// ══════════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.offWhite }, line: { color: C.offWhite } });

  addSlideHeader(s, "Verbal Communication", "Using words to convey information to the patient");

  // Definition box
  s.addShape(pres.ShapeType.rect, { x: 0.35, y: 1.1, w: 9.3, h: 0.72, fill: { color: C.tealPale }, line: { color: C.teal, pt: 1 }, rectRadius: 0.08 });
  s.addText("Verbal communication involves the use of spoken or written words to exchange information between the healthcare provider and the patient.", {
    x: 0.5, y: 1.12, w: 9.1, h: 0.68, fontSize: 12, color: C.navy, italic: true, valign: "middle",
  });

  // Two columns: Forms & Techniques
  // Forms
  s.addShape(pres.ShapeType.rect, { x: 0.35, y: 2.0, w: 4.4, h: 0.42, fill: { color: C.teal }, line: { color: C.teal }, rectRadius: 0.06 });
  s.addText("FORMS", { x: 0.35, y: 2.0, w: 4.4, h: 0.42, fontSize: 13, bold: true, color: C.white, align: "center", valign: "middle", margin: 0, charSpacing: 3 });

  const forms = [
    "Face-to-face conversation",
    "Telephonic communication",
    "Written instructions / prescriptions",
    "Health education & counselling",
  ];
  forms.forEach((f, i) => {
    s.addText("• " + f, {
      x: 0.5, y: 2.55 + i * 0.55, w: 4.1, h: 0.48,
      fontSize: 12, color: C.navy, valign: "middle",
    });
  });

  // Techniques
  s.addShape(pres.ShapeType.rect, { x: 5.25, y: 2.0, w: 4.4, h: 0.42, fill: { color: C.accent }, line: { color: C.accent }, rectRadius: 0.06 });
  s.addText("TECHNIQUES", { x: 5.25, y: 2.0, w: 4.4, h: 0.42, fontSize: 13, bold: true, color: C.white, align: "center", valign: "middle", margin: 0, charSpacing: 3 });

  const techs = [
    "Use simple, jargon-free language",
    "Speak clearly and at a moderate pace",
    "Ask open-ended questions",
    "Use active listening & reflection",
  ];
  techs.forEach((t, i) => {
    s.addText("• " + t, {
      x: 5.4, y: 2.55 + i * 0.55, w: 4.1, h: 0.48,
      fontSize: 12, color: C.navy, valign: "middle",
    });
  });

  // Vertical divider
  s.addShape(pres.ShapeType.rect, { x: 4.85, y: 2.0, w: 0.03, h: 3.2, fill: { color: C.grayLight }, line: { color: C.grayLight } });
}

// ══════════════════════════════════════════════════════════════════════════════
// SLIDE 6 — VERBAL COMMUNICATION: KEY PRINCIPLES
// ══════════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.offWhite }, line: { color: C.offWhite } });

  addSlideHeader(s, "Verbal Communication – Key Principles", "");

  const principles = [
    { icon: "🗣️", title: "Clarity", desc: "Use plain language. Avoid medical jargon. Repeat important points." },
    { icon: "👂", title: "Active Listening", desc: "Maintain focus. Do not interrupt. Paraphrase to confirm understanding." },
    { icon: "🤝", title: "Empathy", desc: "Acknowledge patient's feelings. Validate their concerns and emotions." },
    { icon: "❓", title: "Open Questions", desc: 'Use "How are you feeling?" rather than yes/no questions.' },
    { icon: "🔁", title: "Feedback", desc: "Summarize what the patient said. Invite them to ask questions." },
    { icon: "🌐", title: "Cultural Sensitivity", desc: "Respect cultural differences in communication styles and beliefs." },
  ];

  principles.forEach((p, i) => {
    const col = i % 3;
    const row = Math.floor(i / 3);
    const x = 0.35 + col * 3.1;
    const y = 1.05 + row * 2.1;
    s.addShape(pres.ShapeType.rect, { x, y, w: 2.9, h: 1.9, fill: { color: C.white }, line: { color: C.teal, pt: 1 }, rectRadius: 0.12 });
    s.addText(p.icon, { x, y: y + 0.1, w: 2.9, h: 0.5, fontSize: 24, align: "center", margin: 0 });
    s.addText(p.title, { x, y: y + 0.6, w: 2.9, h: 0.38, fontSize: 13, bold: true, color: C.teal, align: "center", margin: 0 });
    s.addText(p.desc, { x: x + 0.1, y: y + 0.98, w: 2.7, h: 0.82, fontSize: 10.5, color: C.gray, align: "center", valign: "top" });
  });
}

// ══════════════════════════════════════════════════════════════════════════════
// SLIDE 7 — NON-VERBAL COMMUNICATION
// ══════════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.offWhite }, line: { color: C.offWhite } });

  addSlideHeader(s, "Non-Verbal Communication", "Actions speak louder than words");

  // Definition
  s.addShape(pres.ShapeType.rect, { x: 0.35, y: 1.1, w: 9.3, h: 0.7, fill: { color: C.tealPale }, line: { color: C.teal, pt: 1 }, rectRadius: 0.08 });
  s.addText("Non-verbal communication refers to the transmission of messages without using words — through body language, facial expressions, gestures, posture, eye contact, touch, and appearance.", {
    x: 0.5, y: 1.12, w: 9.1, h: 0.68, fontSize: 12, color: C.navy, italic: true, valign: "middle",
  });

  // 7 categories in a flowing grid
  const categories = [
    { icon: "👁️", label: "Eye Contact", desc: "Shows attentiveness and genuine concern" },
    { icon: "😊", label: "Facial Expression", desc: "Reflects emotions; smile conveys warmth" },
    { icon: "🤲", label: "Gestures", desc: "Hand movements that reinforce speech" },
    { icon: "🧍", label: "Posture", desc: "Open posture shows receptiveness" },
    { icon: "🤗", label: "Touch / Proxemics", desc: "Therapeutic touch; respect personal space" },
    { icon: "👔", label: "Appearance", desc: "Clean, professional attire builds trust" },
    { icon: "⏱️", label: "Paralanguage", desc: "Tone, pitch, pace, and silence of voice" },
  ];

  const positions = [
    [0.3, 2.0], [2.15, 2.0], [4.0, 2.0], [5.85, 2.0],
    [0.95, 3.4], [3.1, 3.4], [5.25, 3.4],
  ];

  categories.forEach((c, i) => {
    const [x, y] = positions[i];
    s.addShape(pres.ShapeType.rect, { x, y, w: 1.7, h: 1.25, fill: { color: C.white }, line: { color: C.accentDk, pt: 1.2 }, rectRadius: 0.12 });
    s.addText(c.icon, { x, y: y + 0.05, w: 1.7, h: 0.4, fontSize: 20, align: "center", margin: 0 });
    s.addText(c.label, { x, y: y + 0.44, w: 1.7, h: 0.3, fontSize: 10, bold: true, color: C.navy, align: "center", margin: 0 });
    s.addText(c.desc, { x: x + 0.05, y: y + 0.73, w: 1.6, h: 0.48, fontSize: 8.5, color: C.gray, align: "center", valign: "top" });
  });
}

// ══════════════════════════════════════════════════════════════════════════════
// SLIDE 8 — NON-VERBAL: BODY LANGUAGE IN DETAIL
// ══════════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.offWhite }, line: { color: C.offWhite } });

  addSlideHeader(s, "Body Language in Patient Care", "Non-verbal cues that shape the patient experience");

  // Left: Do's
  s.addShape(pres.ShapeType.rect, { x: 0.3, y: 1.0, w: 4.3, h: 0.5, fill: { color: "2D9E5B" }, line: { color: "2D9E5B" }, rectRadius: 0.06 });
  s.addText("✅  DO's", { x: 0.3, y: 1.0, w: 4.3, h: 0.5, fontSize: 14, bold: true, color: C.white, align: "center", valign: "middle", margin: 0 });

  const dos = [
    "Maintain gentle, consistent eye contact",
    "Lean slightly forward to show interest",
    "Nod to indicate understanding",
    "Use a warm, calm facial expression",
    "Sit at the same level as the patient",
    "Keep arms uncrossed and open",
  ];
  dos.forEach((d, i) => {
    s.addShape(pres.ShapeType.rect, { x: 0.3, y: 1.58 + i * 0.59, w: 4.3, h: 0.5, fill: { color: "F0FBF5" }, line: { color: "A8D5B5", pt: 1 }, rectRadius: 0.06 });
    s.addText("• " + d, { x: 0.45, y: 1.6 + i * 0.59, w: 4.1, h: 0.46, fontSize: 11, color: C.navy, valign: "middle" });
  });

  // Right: Don'ts
  s.addShape(pres.ShapeType.rect, { x: 5.4, y: 1.0, w: 4.3, h: 0.5, fill: { color: C.accentDk }, line: { color: C.accentDk }, rectRadius: 0.06 });
  s.addText("❌  DON'Ts", { x: 5.4, y: 1.0, w: 4.3, h: 0.5, fontSize: 14, bold: true, color: C.white, align: "center", valign: "middle", margin: 0 });

  const donts = [
    "Avoid crossed arms (signals defensiveness)",
    "Do not look at your phone or screen constantly",
    "Avoid frowning or sighing",
    "Do not stand over the patient (intimidating)",
    "Avoid hurried movements and gestures",
    "Do not invade personal space unnecessarily",
  ];
  donts.forEach((d, i) => {
    s.addShape(pres.ShapeType.rect, { x: 5.4, y: 1.58 + i * 0.59, w: 4.3, h: 0.5, fill: { color: "FFF5F0" }, line: { color: "F4B8A0", pt: 1 }, rectRadius: 0.06 });
    s.addText("• " + d, { x: 5.55, y: 1.6 + i * 0.59, w: 4.1, h: 0.46, fontSize: 11, color: C.navy, valign: "middle" });
  });

  // Middle divider
  s.addShape(pres.ShapeType.rect, { x: 4.85, y: 1.0, w: 0.03, h: 4.2, fill: { color: C.grayLight }, line: { color: C.grayLight } });
}

// ══════════════════════════════════════════════════════════════════════════════
// SLIDE 9 — VERBAL vs NON-VERBAL COMPARISON
// ══════════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.offWhite }, line: { color: C.offWhite } });

  addSlideHeader(s, "Verbal vs. Non-Verbal: Quick Comparison", "");

  // Table header
  const headers = ["Aspect", "Verbal", "Non-Verbal"];
  const widths = [2.5, 3.4, 3.4];
  const xs = [0.3, 2.85, 6.3];

  headers.forEach((h, i) => {
    s.addShape(pres.ShapeType.rect, { x: xs[i], y: 1.0, w: widths[i], h: 0.48, fill: { color: C.teal }, line: { color: C.teal } });
    s.addText(h, { x: xs[i], y: 1.0, w: widths[i], h: 0.48, fontSize: 13, bold: true, color: C.white, align: "center", valign: "middle", margin: 0 });
  });

  const rows = [
    ["Medium", "Words, spoken or written", "Body language, expressions, gestures"],
    ["Awareness", "Conscious and deliberate", "Often unconscious and automatic"],
    ["Clarity", "Explicit and precise", "Open to interpretation"],
    ["Impact", "Informs and instructs", "Builds trust and emotional connection"],
    ["Control", "Easily controlled", "Harder to control"],
    ["Examples", "Explanation, counselling", "Eye contact, posture, touch"],
  ];

  rows.forEach((r, i) => {
    const bg = i % 2 === 0 ? C.white : C.tealPale;
    xs.forEach((x, j) => {
      s.addShape(pres.ShapeType.rect, { x, y: 1.5 + i * 0.62, w: widths[j], h: 0.6, fill: { color: bg }, line: { color: C.grayLight, pt: 0.8 } });
      s.addText(r[j], { x: x + 0.08, y: 1.52 + i * 0.62, w: widths[j] - 0.16, h: 0.56, fontSize: j === 0 ? 12 : 11, bold: j === 0, color: j === 0 ? C.navy : C.gray, valign: "middle" });
    });
  });
}

// ══════════════════════════════════════════════════════════════════════════════
// SLIDE 10 — BARRIERS TO COMMUNICATION
// ══════════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.offWhite }, line: { color: C.offWhite } });

  addSlideHeader(s, "Barriers to Effective Communication", "Obstacles that impede patient-provider exchange");

  const barriers = [
    { cat: "Physical", items: "Noise, poor lighting, distance, lack of privacy" },
    { cat: "Language", items: "Unfamiliar language, medical jargon, literacy issues" },
    { cat: "Psychological", items: "Fear, anxiety, denial, emotional distress" },
    { cat: "Cultural", items: "Different beliefs, values, taboos around illness" },
    { cat: "Perceptual", items: "Stereotyping, assumptions, prejudice toward patients" },
    { cat: "Environmental", items: "Overcrowded wards, time pressure, interruptions" },
  ];

  barriers.forEach((b, i) => {
    const col = i % 2;
    const row = Math.floor(i / 2);
    const x = col === 0 ? 0.35 : 5.15;
    const y = 1.15 + row * 1.38;
    s.addShape(pres.ShapeType.rect, { x, y, w: 4.5, h: 1.18, fill: { color: C.white }, line: { color: C.accentDk, pt: 1.2 }, rectRadius: 0.1 });
    s.addShape(pres.ShapeType.rect, { x, y, w: 0.1, h: 1.18, fill: { color: C.accentDk }, line: { color: C.accentDk }, rectRadius: 0 });
    s.addText(b.cat, { x: x + 0.18, y: y + 0.1, w: 4.2, h: 0.36, fontSize: 13.5, bold: true, color: C.accentDk, margin: 0 });
    s.addText(b.items, { x: x + 0.18, y: y + 0.5, w: 4.2, h: 0.6, fontSize: 11, color: C.gray, margin: 0 });
  });
}

// ══════════════════════════════════════════════════════════════════════════════
// SLIDE 11 — THERAPEUTIC COMMUNICATION
// ══════════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.offWhite }, line: { color: C.offWhite } });

  addSlideHeader(s, "Therapeutic Communication", "Purposeful communication to promote patient wellbeing");

  // Definition
  s.addShape(pres.ShapeType.rect, { x: 0.35, y: 1.05, w: 9.3, h: 0.68, fill: { color: C.tealPale }, line: { color: C.teal, pt: 1 }, rectRadius: 0.08 });
  s.addText("Therapeutic communication is a face-to-face process of interacting that focuses on advancing the physical and emotional well-being of the patient.", {
    x: 0.5, y: 1.08, w: 9.1, h: 0.62, fontSize: 12, color: C.navy, italic: true, valign: "middle",
  });

  const techniques = [
    ["Using silence", "Allows patient time to think and respond"],
    ["Offering self", "Being present with the patient emotionally"],
    ["Broad openings", '"How have you been feeling lately?"'],
    ["Restating", "Repeating key words to show you listened"],
    ["Clarifying", "Asking for explanation to avoid confusion"],
    ["Summarizing", "Recapping to confirm understanding"],
    ["Focusing", "Directing conversation to important topics"],
    ["Giving information", "Sharing facts to aid decision-making"],
  ];

  techniques.forEach((t, i) => {
    const col = i % 2;
    const row = Math.floor(i / 2);
    const x = col === 0 ? 0.35 : 5.2;
    const y = 1.88 + row * 0.85;
    s.addShape(pres.ShapeType.rect, { x, y, w: 4.55, h: 0.72, fill: { color: C.white }, line: { color: C.tealLight, pt: 1 }, rectRadius: 0.08 });
    s.addText([
      { text: t[0] + ": ", options: { bold: true, color: C.teal } },
      { text: t[1], options: { color: C.gray } },
    ], { x: x + 0.15, y: y + 0.05, w: 4.3, h: 0.62, fontSize: 11.5, valign: "middle" });
  });
}

// ══════════════════════════════════════════════════════════════════════════════
// SLIDE 12 — COMMUNICATION IN SPECIAL SITUATIONS
// ══════════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.offWhite }, line: { color: C.offWhite } });

  addSlideHeader(s, "Communication in Special Situations", "");

  const situations = [
    {
      title: "Breaking Bad News",
      color: "C0392B",
      points: ["Use the SPIKES protocol", "Choose a quiet, private setting", "Show empathy and allow silence", "Provide information in small steps"],
    },
    {
      title: "Pediatric Patients",
      color: "8E44AD",
      points: ["Use age-appropriate language", "Involve parents/guardians", "Use play or drawings to explain", "Keep a friendly, calm demeanor"],
    },
    {
      title: "Elderly Patients",
      color: "1A8A9A",
      points: ["Speak slowly and clearly", "Use large print materials if needed", "Confirm understanding frequently", "Address sensory impairments"],
    },
    {
      title: "Culturally Diverse Patients",
      color: "D68910",
      points: ["Respect cultural beliefs", "Use trained interpreters if needed", "Avoid stereotyping", "Ask about cultural preferences"],
    },
  ];

  situations.forEach((si, i) => {
    const col = i % 2;
    const row = Math.floor(i / 2);
    const x = col === 0 ? 0.3 : 5.15;
    const y = 1.05 + row * 2.2;
    s.addShape(pres.ShapeType.rect, { x, y, w: 4.55, h: 2.0, fill: { color: C.white }, line: { color: si.color, pt: 1.5 }, rectRadius: 0.1 });
    s.addShape(pres.ShapeType.rect, { x, y, w: 4.55, h: 0.44, fill: { color: si.color }, line: { color: si.color }, rectRadius: 0 });
    s.addText(si.title, { x, y, w: 4.55, h: 0.44, fontSize: 13, bold: true, color: C.white, align: "center", valign: "middle", margin: 0 });
    si.points.forEach((pt, j) => {
      s.addText("• " + pt, { x: x + 0.15, y: y + 0.5 + j * 0.36, w: 4.3, h: 0.34, fontSize: 10.5, color: C.navy });
    });
  });
}

// ══════════════════════════════════════════════════════════════════════════════
// SLIDE 13 — ROLE OF NURSE IN COMMUNICATION
// ══════════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.offWhite }, line: { color: C.offWhite } });

  addSlideHeader(s, "Role of the Nurse in Patient Communication", "");

  const roles = [
    { icon: "🩺", title: "Advocate", desc: "Speak up for the patient's needs and rights within the healthcare team" },
    { icon: "🧠", title: "Educator", desc: "Teach patients about their condition, medications, and self-care at home" },
    { icon: "💙", title: "Counsellor", desc: "Provide emotional support and help patients cope with illness and stress" },
    { icon: "🔗", title: "Coordinator", desc: "Facilitate communication between patient and other healthcare professionals" },
    { icon: "📋", title: "Documenter", desc: "Accurately record patient information and communication in medical records" },
  ];

  roles.forEach((r, i) => {
    const y = 1.1 + i * 0.88;
    // Numbered circle
    s.addShape(pres.ShapeType.ellipse, { x: 0.3, y: y, w: 0.7, h: 0.7, fill: { color: C.teal }, line: { color: C.teal } });
    s.addText(r.icon, { x: 0.3, y: y, w: 0.7, h: 0.7, fontSize: 16, align: "center", valign: "middle", margin: 0 });
    // Card
    s.addShape(pres.ShapeType.rect, { x: 1.15, y, w: 8.5, h: 0.7, fill: { color: C.white }, line: { color: C.tealLight, pt: 1 }, rectRadius: 0.08 });
    s.addText(r.title + ": ", { x: 1.3, y: y + 0.05, w: 1.2, h: 0.6, fontSize: 13, bold: true, color: C.teal, valign: "middle", margin: 0 });
    s.addText(r.desc, { x: 2.4, y: y + 0.05, w: 7.1, h: 0.6, fontSize: 12, color: C.gray, valign: "middle", margin: 0 });
  });
}

// ══════════════════════════════════════════════════════════════════════════════
// SLIDE 14 — CONCLUSION
// ══════════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: C.navy }, line: { color: C.navy } });
  s.addShape(pres.ShapeType.ellipse, { x: 7.2, y: -0.5, w: 4, h: 4, fill: { color: C.teal, transparency: 75 }, line: { color: C.teal, transparency: 75 } });
  s.addShape(pres.ShapeType.ellipse, { x: -1, y: 3, w: 3.5, h: 3.5, fill: { color: C.tealLight, transparency: 80 }, line: { color: C.tealLight, transparency: 80 } });

  s.addText("Key Takeaways", {
    x: 0.5, y: 0.35, w: 9, h: 0.55, fontSize: 14, color: C.accent, bold: true, charSpacing: 3, align: "center", margin: 0,
  });

  const takeaways = [
    "Communication is the cornerstone of quality patient care",
    "Verbal communication must be clear, empathetic, and jargon-free",
    "Non-verbal cues often carry more emotional weight than words",
    "Barriers must be identified and overcome for effective exchange",
    "Nurses play a central role as communicators, educators, and advocates",
  ];

  takeaways.forEach((t, i) => {
    s.addShape(pres.ShapeType.rect, { x: 0.7, y: 1.05 + i * 0.77, w: 8.6, h: 0.65, fill: { color: "FFFFFF", transparency: 90 }, line: { color: C.tealLight, pt: 0.8 }, rectRadius: 0.08 });
    s.addText([
      { text: (i + 1) + "  ", options: { bold: true, color: C.accent, fontSize: 15 } },
      { text: t, options: { color: C.white, fontSize: 12.5 } },
    ], { x: 0.85, y: 1.08 + i * 0.77, w: 8.3, h: 0.59, valign: "middle" });
  });

  s.addText("Smayra  |  Roll No. 134", {
    x: 0.5, y: 5.1, w: 9, h: 0.38, fontSize: 11, color: C.grayLight, align: "center", italic: true, margin: 0,
  });
}

// ── WRITE FILE ────────────────────────────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/communication-ppt/Communication_with_Patient_Smayra.pptx" })
  .then(() => console.log("✅ Done"))
  .catch(e => { console.error(e); process.exit(1); });
Running Command

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

Your presentation is ready! Here is the download link:

Communication with Patient Smayra

Presentation · PPTX


What's inside - 14 slides:
#Slide
1Title Slide - "Communication with Patient"
2What is Communication? (Sender - Message - Receiver cards)
3Importance of Communication (6 key points)
4Types of Communication (Divider slide - Verbal vs Non-Verbal)
5Verbal Communication - Forms & Techniques
6Verbal Communication - Key Principles (Clarity, Active Listening, Empathy, etc.)
7Non-Verbal Communication - 7 Categories (Eye contact, Facial expression, Gestures, Posture, Touch, Appearance, Paralanguage)
8Body Language - Do's and Don'ts side by side
9Verbal vs Non-Verbal Comparison Table
10Barriers to Effective Communication
11Therapeutic Communication Techniques
12Communication in Special Situations (Bad news, Pediatric, Elderly, Cultural)
13Role of the Nurse in Patient Communication
14Conclusion / Key Takeaways
Design: Teal & navy color scheme, professional healthcare look with icons, cards, tables, and structured layouts throughout.
This is a shared conversation. Sign in to Orris to start your own chat.