Make a ppt on communication with patient(verbal and non verbal) Add these Topic:-communication with patient Name surya Roll no 138
mkdir -p /home/daytona/workspace/communication-ppt
~/communication-ppt/create_ppt.js
const pptxgen = require("pptxgenjs");
let pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.author = "Surya";
pres.title = "Communication with Patient";
// โโโ COLOUR PALETTE โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
const DARK_TEAL = "0D4E5C"; // dominant dark
const MED_TEAL = "1A7A8A"; // mid accent
const LIGHT_TEAL = "E6F4F7"; // light bg panels
const ACCENT = "F4A726"; // warm amber accent
const WHITE = "FFFFFF";
const TEXT_DARK = "0D2D35";
const TEXT_MID = "2C6E7A";
// โโโ HELPER: top accent bar โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
function accentBar(slide) {
slide.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: 10, h: 0.12,
fill: { color: ACCENT },
line: { type: "none" }
});
}
// โโโ HELPER: bottom strip โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
function bottomStrip(slide) {
slide.addShape(pres.ShapeType.rect, {
x: 0, y: 5.45, w: 10, h: 0.18,
fill: { color: DARK_TEAL },
line: { type: "none" }
});
}
// โโโ SLIDE 1 โ TITLE SLIDE โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
{
let s = pres.addSlide();
// full background
s.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: 10, h: 5.625,
fill: { color: DARK_TEAL }, line: { type: "none" }
});
// decorative circle top-right
s.addShape(pres.ShapeType.ellipse, {
x: 7.6, y: -1.2, w: 4, h: 4,
fill: { color: MED_TEAL }, line: { type: "none" }
});
// decorative circle bottom-left
s.addShape(pres.ShapeType.ellipse, {
x: -1.5, y: 3.5, w: 4, h: 4,
fill: { color: MED_TEAL }, line: { type: "none" }
});
// accent bar
s.addShape(pres.ShapeType.rect, {
x: 0.6, y: 1.55, w: 0.1, h: 2.4,
fill: { color: ACCENT }, line: { type: "none" }
});
// main title
s.addText("Communication\nwith Patient", {
x: 0.9, y: 1.0, w: 7.5, h: 2.2,
fontSize: 46, bold: true, color: WHITE,
fontFace: "Calibri", align: "left", valign: "middle",
lineSpacingMultiple: 1.15
});
// subtitle
s.addText("Verbal & Non-Verbal Communication in Healthcare", {
x: 0.9, y: 3.3, w: 7.5, h: 0.5,
fontSize: 16, color: ACCENT, fontFace: "Calibri",
align: "left", bold: false, italic: true
});
// name / roll
s.addText("Presented by: Surya | Roll No: 138", {
x: 0.9, y: 4.85, w: 7.5, h: 0.4,
fontSize: 13, color: "B0D8E0", fontFace: "Calibri", align: "left"
});
// stethoscope emoji icon area
s.addText("๐ฉบ", {
x: 8.0, y: 2.3, w: 1.5, h: 1.5,
fontSize: 60, align: "center", valign: "middle"
});
}
// โโโ SLIDE 2 โ AGENDA / CONTENTS โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
{
let s = pres.addSlide();
s.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: 10, h: 5.625,
fill: { color: LIGHT_TEAL }, line: { type: "none" }
});
accentBar(s);
bottomStrip(s);
// left panel
s.addShape(pres.ShapeType.rect, {
x: 0, y: 0.12, w: 3.2, h: 5.33,
fill: { color: DARK_TEAL }, line: { type: "none" }
});
s.addText("Contents", {
x: 0.15, y: 0.5, w: 2.9, h: 0.6,
fontSize: 22, bold: true, color: ACCENT, fontFace: "Calibri", align: "center"
});
const items = [
"01 Introduction",
"02 Verbal Communication",
"03 Types of Verbal Comm.",
"04 Non-Verbal Communication",
"05 Types of Non-Verbal Comm.",
"06 Barriers to Communication",
"07 Effective Communication Tips",
"08 Conclusion",
];
s.addText(items.map((t, i) => ({
text: t,
options: { breakLine: i < items.length - 1, color: i % 2 === 0 ? WHITE : "B0D8E0", fontSize: 13, bold: i % 2 === 0 }
})), {
x: 0.2, y: 1.3, w: 2.8, h: 3.8,
fontFace: "Calibri", valign: "top", lineSpacingMultiple: 1.5
});
// right content
s.addText("Why Communication\nMatters in Patient Care", {
x: 3.5, y: 0.6, w: 6.1, h: 1.1,
fontSize: 28, bold: true, color: DARK_TEAL, fontFace: "Calibri",
align: "left", lineSpacingMultiple: 1.1
});
s.addShape(pres.ShapeType.rect, {
x: 3.5, y: 1.75, w: 1.2, h: 0.07,
fill: { color: ACCENT }, line: { type: "none" }
});
s.addText(
"Effective communication is the foundation of safe, compassionate, and patient-centered care. " +
"It builds trust, reduces errors, and improves health outcomes.",
{
x: 3.5, y: 2.0, w: 6.0, h: 1.2,
fontSize: 14, color: TEXT_DARK, fontFace: "Calibri",
align: "left", lineSpacingMultiple: 1.4
}
);
// stat boxes
const stats = [
{ val: "80%", label: "of errors linked to\ncommunication failure" },
{ val: "70%", label: "better outcomes with\nactive listening" },
];
stats.forEach((st, i) => {
let bx = 3.5 + i * 3.1;
s.addShape(pres.ShapeType.rect, {
x: bx, y: 3.4, w: 2.8, h: 1.6,
fill: { color: DARK_TEAL }, line: { type: "none" },
rectRadius: 0.1
});
s.addText(st.val, {
x: bx, y: 3.45, w: 2.8, h: 0.7,
fontSize: 32, bold: true, color: ACCENT, fontFace: "Calibri", align: "center"
});
s.addText(st.label, {
x: bx + 0.1, y: 4.1, w: 2.6, h: 0.8,
fontSize: 12, color: WHITE, fontFace: "Calibri", align: "center", lineSpacingMultiple: 1.2
});
});
}
// โโโ SLIDE 3 โ VERBAL COMMUNICATION โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
{
let s = pres.addSlide();
s.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: 10, h: 5.625,
fill: { color: WHITE }, line: { type: "none" }
});
accentBar(s);
bottomStrip(s);
// header strip
s.addShape(pres.ShapeType.rect, {
x: 0, y: 0.12, w: 10, h: 1.1,
fill: { color: DARK_TEAL }, line: { type: "none" }
});
s.addText("๐ฃ๏ธ Verbal Communication", {
x: 0.4, y: 0.18, w: 9, h: 1.0,
fontSize: 30, bold: true, color: WHITE, fontFace: "Calibri", valign: "middle"
});
s.addText("Definition", {
x: 0.4, y: 1.45, w: 9, h: 0.4,
fontSize: 17, bold: true, color: MED_TEAL, fontFace: "Calibri"
});
s.addText(
"Verbal communication involves the use of spoken or written words to convey information, " +
"instructions, and emotions between the healthcare provider and the patient.",
{
x: 0.4, y: 1.85, w: 9.2, h: 0.7,
fontSize: 13.5, color: TEXT_DARK, fontFace: "Calibri", lineSpacingMultiple: 1.35
}
);
// 3 feature cards
const cards = [
{ icon: "๐ข", title: "Tone & Pitch", body: "A calm, reassuring tone helps reduce patient anxiety and builds confidence in care." },
{ icon: "๐", title: "Clear Language", body: "Use simple, jargon-free words. Avoid medical abbreviations the patient may not understand." },
{ icon: "๐", title: "Feedback", body: "Encourage patients to repeat instructions (teach-back) to confirm understanding." },
];
cards.forEach((c, i) => {
let cx = 0.3 + i * 3.2;
s.addShape(pres.ShapeType.rect, {
x: cx, y: 2.7, w: 3.0, h: 2.4,
fill: { color: LIGHT_TEAL }, line: { color: MED_TEAL, pt: 1 },
rectRadius: 0.12
});
s.addText(c.icon, {
x: cx, y: 2.75, w: 3.0, h: 0.6,
fontSize: 26, align: "center"
});
s.addText(c.title, {
x: cx + 0.1, y: 3.3, w: 2.8, h: 0.4,
fontSize: 14, bold: true, color: DARK_TEAL, fontFace: "Calibri", align: "center"
});
s.addText(c.body, {
x: cx + 0.1, y: 3.75, w: 2.8, h: 1.2,
fontSize: 12, color: TEXT_DARK, fontFace: "Calibri", align: "center",
lineSpacingMultiple: 1.3, valign: "top"
});
});
}
// โโโ SLIDE 4 โ TYPES OF VERBAL COMMUNICATION โโโโโโโโโโโโโโโโโโโโโ
{
let s = pres.addSlide();
s.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: 10, h: 5.625,
fill: { color: LIGHT_TEAL }, line: { type: "none" }
});
accentBar(s);
bottomStrip(s);
s.addText("Types of Verbal Communication", {
x: 0.4, y: 0.25, w: 9, h: 0.7,
fontSize: 28, bold: true, color: DARK_TEAL, fontFace: "Calibri"
});
s.addShape(pres.ShapeType.rect, {
x: 0.4, y: 0.95, w: 2.0, h: 0.07,
fill: { color: ACCENT }, line: { type: "none" }
});
const types = [
{ num: "01", title: "Oral / Spoken Communication", body: "Face-to-face conversations, telephonic instructions, bedside counseling, history taking." },
{ num: "02", title: "Written Communication", body: "Prescriptions, discharge summaries, patient education pamphlets, consent forms." },
{ num: "03", title: "Active Listening", body: "Paying full attention, nodding, paraphrasing โ shows respect and ensures accuracy." },
{ num: "04", title: "Therapeutic Communication", body: "Purposeful, patient-focused talk that promotes healing โ e.g., open-ended questions, empathy." },
];
types.forEach((t, i) => {
let row = Math.floor(i / 2);
let col = i % 2;
let bx = 0.3 + col * 4.85;
let by = 1.2 + row * 2.0;
s.addShape(pres.ShapeType.rect, {
x: bx, y: by, w: 4.55, h: 1.75,
fill: { color: WHITE }, line: { color: MED_TEAL, pt: 1.2 },
rectRadius: 0.1
});
s.addShape(pres.ShapeType.rect, {
x: bx, y: by, w: 0.7, h: 1.75,
fill: { color: DARK_TEAL }, line: { type: "none" },
rectRadius: 0.1
});
s.addText(t.num, {
x: bx, y: by + 0.55, w: 0.7, h: 0.6,
fontSize: 14, bold: true, color: ACCENT, fontFace: "Calibri", align: "center"
});
s.addText(t.title, {
x: bx + 0.8, y: by + 0.1, w: 3.65, h: 0.45,
fontSize: 13, bold: true, color: DARK_TEAL, fontFace: "Calibri"
});
s.addText(t.body, {
x: bx + 0.8, y: by + 0.55, w: 3.65, h: 1.1,
fontSize: 12, color: TEXT_DARK, fontFace: "Calibri",
lineSpacingMultiple: 1.3, valign: "top"
});
});
}
// โโโ SLIDE 5 โ NON-VERBAL COMMUNICATION โโโโโโโโโโโโโโโโโโโโโโโโโโ
{
let s = pres.addSlide();
s.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: 10, h: 5.625,
fill: { color: WHITE }, line: { type: "none" }
});
accentBar(s);
bottomStrip(s);
// header
s.addShape(pres.ShapeType.rect, {
x: 0, y: 0.12, w: 10, h: 1.1,
fill: { color: MED_TEAL }, line: { type: "none" }
});
s.addText("๐ค Non-Verbal Communication", {
x: 0.4, y: 0.18, w: 9, h: 1.0,
fontSize: 30, bold: true, color: WHITE, fontFace: "Calibri", valign: "middle"
});
s.addText("Definition", {
x: 0.4, y: 1.45, w: 9, h: 0.35,
fontSize: 17, bold: true, color: MED_TEAL, fontFace: "Calibri"
});
s.addText(
"Non-verbal communication refers to messages conveyed without words โ through body language, facial expressions, " +
"gestures, posture, eye contact, touch, and use of space. Studies show that up to 93% of communication is non-verbal.",
{
x: 0.4, y: 1.8, w: 9.2, h: 0.8,
fontSize: 13.5, color: TEXT_DARK, fontFace: "Calibri", lineSpacingMultiple: 1.35
}
);
// icon grid
const items = [
{ icon: "๐๏ธ", label: "Eye Contact", note: "Shows attentiveness & empathy" },
{ icon: "๐", label: "Facial Expr.", note: "Reflects emotions & reactions" },
{ icon: "๐๏ธ", label: "Gestures", note: "Reinforce verbal messages" },
{ icon: "๐ง", label: "Posture", note: "Open posture = approachable" },
{ icon: "๐ค", label: "Touch", note: "Comfort & therapeutic support" },
{ icon: "๐", label: "Proxemics", note: "Appropriate personal space" },
];
items.forEach((it, i) => {
let col = i % 3;
let row = Math.floor(i / 3);
let bx = 0.4 + col * 3.1;
let by = 2.75 + row * 1.4;
s.addShape(pres.ShapeType.rect, {
x: bx, y: by, w: 2.8, h: 1.25,
fill: { color: LIGHT_TEAL }, line: { color: MED_TEAL, pt: 0.8 },
rectRadius: 0.1
});
s.addText(it.icon, {
x: bx, y: by + 0.05, w: 0.85, h: 1.1,
fontSize: 24, align: "center", valign: "middle"
});
s.addText(it.label, {
x: bx + 0.8, y: by + 0.1, w: 1.9, h: 0.4,
fontSize: 13, bold: true, color: DARK_TEAL, fontFace: "Calibri", valign: "middle"
});
s.addText(it.note, {
x: bx + 0.8, y: by + 0.5, w: 1.9, h: 0.65,
fontSize: 11, color: TEXT_MID, fontFace: "Calibri",
lineSpacingMultiple: 1.2, valign: "top"
});
});
}
// โโโ SLIDE 6 โ TYPES OF NON-VERBAL COMM. โโโโโโโโโโโโโโโโโโโโโโโโโ
{
let s = pres.addSlide();
s.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: 10, h: 5.625,
fill: { color: DARK_TEAL }, line: { type: "none" }
});
accentBar(s);
s.addText("Types of Non-Verbal Communication", {
x: 0.4, y: 0.22, w: 9.2, h: 0.7,
fontSize: 28, bold: true, color: WHITE, fontFace: "Calibri"
});
s.addShape(pres.ShapeType.rect, {
x: 0.4, y: 0.95, w: 2.5, h: 0.07,
fill: { color: ACCENT }, line: { type: "none" }
});
const types = [
{ t: "Kinesics", d: "Study of body movement, gestures, head nodding, and facial expressions as communication cues." },
{ t: "Paralanguage", d: "Vocal qualities beyond words โ pitch, tone, speed, pauses, sighs, and crying." },
{ t: "Proxemics", d: "Use of personal space: intimate (0-18\"), personal (18\"โ4'), social (4โ12'), public (>12')." },
{ t: "Haptics", d: "Communication through touch โ a pat on the back, handshake, or therapeutic touch provides comfort." },
{ t: "Chronemics", d: "Use of time as communication โ punctuality and response time signal respect and priority." },
{ t: "Appearance", d: "Clothing, hygiene, and grooming convey professionalism and build patient trust." },
];
types.forEach((item, i) => {
let col = i % 2;
let row = Math.floor(i / 2);
let bx = 0.3 + col * 4.9;
let by = 1.15 + row * 1.38;
s.addShape(pres.ShapeType.rect, {
x: bx, y: by, w: 4.6, h: 1.25,
fill: { color: "0A3D4A" }, line: { color: ACCENT, pt: 0.8 },
rectRadius: 0.1
});
s.addShape(pres.ShapeType.rect, {
x: bx, y: by, w: 0.07, h: 1.25,
fill: { color: ACCENT }, line: { type: "none" }
});
s.addText(item.t, {
x: bx + 0.2, y: by + 0.1, w: 4.2, h: 0.35,
fontSize: 14, bold: true, color: ACCENT, fontFace: "Calibri"
});
s.addText(item.d, {
x: bx + 0.2, y: by + 0.45, w: 4.2, h: 0.72,
fontSize: 11.5, color: "B0D8E0", fontFace: "Calibri",
lineSpacingMultiple: 1.3, valign: "top"
});
});
}
// โโโ SLIDE 7 โ BARRIERS TO COMMUNICATION โโโโโโโโโโโโโโโโโโโโโโโโโ
{
let s = pres.addSlide();
s.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: 10, h: 5.625,
fill: { color: LIGHT_TEAL }, line: { type: "none" }
});
accentBar(s);
bottomStrip(s);
s.addText("โ ๏ธ Barriers to Effective Communication", {
x: 0.4, y: 0.22, w: 9.2, h: 0.7,
fontSize: 28, bold: true, color: DARK_TEAL, fontFace: "Calibri"
});
s.addShape(pres.ShapeType.rect, {
x: 0.4, y: 0.95, w: 2.2, h: 0.07,
fill: { color: ACCENT }, line: { type: "none" }
});
// two columns
const leftBarriers = [
{ icon: "๐", t: "Language Barrier", d: "Patient & provider speak different languages; medical jargon confuses patients." },
{ icon: "๐ฐ", t: "Emotional Barrier", d: "Fear, anxiety, anger, or grief can prevent clear message exchange." },
{ icon: "๐", t: "Noise / Environment", d: "Loud ward environments disrupt conversation and concentration." },
];
const rightBarriers = [
{ icon: "๐ง", t: "Physical Barrier", d: "Hearing impairment, speech disorders, or disability affecting communication." },
{ icon: "๐ญ", t: "Cultural Barrier", d: "Different cultural norms around eye contact, touch, or disclosure of illness." },
{ icon: "โฐ", t: "Time Pressure", d: "Rushed interactions lead to incomplete history and patient dissatisfaction." },
];
const renderBarriers = (list, startX) => {
list.forEach((b, i) => {
let by = 1.15 + i * 1.38;
s.addShape(pres.ShapeType.rect, {
x: startX, y: by, w: 4.5, h: 1.2,
fill: { color: WHITE }, line: { color: MED_TEAL, pt: 1 },
rectRadius: 0.1
});
s.addText(b.icon, {
x: startX, y: by, w: 0.9, h: 1.2,
fontSize: 24, align: "center", valign: "middle"
});
s.addText(b.t, {
x: startX + 0.95, y: by + 0.1, w: 3.45, h: 0.35,
fontSize: 13, bold: true, color: DARK_TEAL, fontFace: "Calibri"
});
s.addText(b.d, {
x: startX + 0.95, y: by + 0.45, w: 3.45, h: 0.65,
fontSize: 11.5, color: TEXT_DARK, fontFace: "Calibri",
lineSpacingMultiple: 1.25, valign: "top"
});
});
};
renderBarriers(leftBarriers, 0.25);
renderBarriers(rightBarriers, 5.25);
}
// โโโ SLIDE 8 โ EFFECTIVE COMMUNICATION TIPS โโโโโโโโโโโโโโโโโโโโโโโ
{
let s = pres.addSlide();
s.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: 10, h: 5.625,
fill: { color: WHITE }, line: { type: "none" }
});
accentBar(s);
bottomStrip(s);
// left dark panel
s.addShape(pres.ShapeType.rect, {
x: 0, y: 0.12, w: 3.5, h: 5.33,
fill: { color: DARK_TEAL }, line: { type: "none" }
});
s.addText("โ
", { x: 0, y: 0.4, w: 3.5, h: 0.7, fontSize: 36, align: "center" });
s.addText("Tips for\nEffective\nCommunication", {
x: 0.15, y: 1.1, w: 3.2, h: 1.6,
fontSize: 22, bold: true, color: WHITE, fontFace: "Calibri",
align: "center", lineSpacingMultiple: 1.2
});
s.addShape(pres.ShapeType.rect, {
x: 0.75, y: 2.7, w: 2.0, h: 0.08,
fill: { color: ACCENT }, line: { type: "none" }
});
s.addText("Apply these in every\npatient interaction", {
x: 0.15, y: 2.85, w: 3.2, h: 0.9,
fontSize: 13, color: "B0D8E0", fontFace: "Calibri",
align: "center", italic: true, lineSpacingMultiple: 1.3
});
// tips list
const tips = [
{ n: "1", t: "Use simple, clear language", d: "Avoid medical jargon; use words the patient understands." },
{ n: "2", t: "Maintain eye contact", d: "Shows interest and builds trust with the patient." },
{ n: "3", t: "Practice active listening", d: "Do not interrupt; nod and reflect back what is said." },
{ n: "4", t: "Show empathy", d: "Acknowledge the patient's feelings and concerns genuinely." },
{ n: "5", t: "Use teach-back method", d: "Ask patients to repeat info to confirm understanding." },
{ n: "6", t: "Respect cultural differences", d: "Be sensitive to varying norms around communication." },
];
tips.forEach((tip, i) => {
let by = 0.3 + i * 0.83;
s.addShape(pres.ShapeType.ellipse, {
x: 3.7, y: by + 0.05, w: 0.5, h: 0.5,
fill: { color: ACCENT }, line: { type: "none" }
});
s.addText(tip.n, {
x: 3.7, y: by + 0.05, w: 0.5, h: 0.5,
fontSize: 13, bold: true, color: WHITE, fontFace: "Calibri",
align: "center", valign: "middle"
});
s.addText(tip.t, {
x: 4.35, y: by + 0.0, w: 5.3, h: 0.35,
fontSize: 13, bold: true, color: DARK_TEAL, fontFace: "Calibri"
});
s.addText(tip.d, {
x: 4.35, y: by + 0.35, w: 5.3, h: 0.38,
fontSize: 11.5, color: TEXT_DARK, fontFace: "Calibri"
});
if (i < tips.length - 1) {
s.addShape(pres.ShapeType.rect, {
x: 3.65, y: by + 0.55, w: 6.05, h: 0.02,
fill: { color: "D0E8EE" }, line: { type: "none" }
});
}
});
}
// โโโ SLIDE 9 โ CONCLUSION โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
{
let s = pres.addSlide();
s.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: 10, h: 5.625,
fill: { color: DARK_TEAL }, line: { type: "none" }
});
// decorative shapes
s.addShape(pres.ShapeType.ellipse, {
x: 7.5, y: -0.8, w: 3.5, h: 3.5,
fill: { color: MED_TEAL }, line: { type: "none" }
});
s.addShape(pres.ShapeType.ellipse, {
x: -1.0, y: 3.2, w: 3.5, h: 3.5,
fill: { color: MED_TEAL }, line: { type: "none" }
});
s.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: 10, h: 0.12,
fill: { color: ACCENT }, line: { type: "none" }
});
s.addText("Conclusion", {
x: 0.6, y: 0.4, w: 8, h: 0.65,
fontSize: 34, bold: true, color: ACCENT, fontFace: "Calibri"
});
s.addShape(pres.ShapeType.rect, {
x: 0.6, y: 1.05, w: 2.5, h: 0.08,
fill: { color: WHITE }, line: { type: "none" }
});
const points = [
"Both verbal and non-verbal communication are equally important in patient care.",
"Words deliver information; non-verbal cues deliver empathy and emotional safety.",
"Identifying and overcoming barriers ensures patient-centered, error-free care.",
"Healthcare professionals must continuously develop their communication skills.",
"Good communication = Better health outcomes, higher patient satisfaction.",
];
s.addText(
points.map((p, i) => ({ text: "โ " + p, options: { breakLine: i < points.length - 1 } })),
{
x: 0.6, y: 1.3, w: 8.6, h: 3.0,
fontSize: 14, color: WHITE, fontFace: "Calibri",
lineSpacingMultiple: 1.55, valign: "top"
}
);
s.addText('"The most important thing in communication is hearing what isn\'t said." โ Peter Drucker', {
x: 0.6, y: 4.55, w: 8.6, h: 0.55,
fontSize: 12, color: ACCENT, fontFace: "Calibri", italic: true, align: "center"
});
}
// โโโ SLIDE 10 โ THANK YOU โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
{
let s = pres.addSlide();
s.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: 10, h: 5.625,
fill: { color: MED_TEAL }, line: { type: "none" }
});
s.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: 10, h: 0.12,
fill: { color: ACCENT }, line: { type: "none" }
});
// big circle background
s.addShape(pres.ShapeType.ellipse, {
x: 2.5, y: 0.6, w: 5, h: 5,
fill: { color: DARK_TEAL }, line: { type: "none" }
});
s.addText("๐", { x: 2.5, y: 1.1, w: 5, h: 1.2, fontSize: 60, align: "center" });
s.addText("Thank You!", {
x: 2.5, y: 2.3, w: 5, h: 0.9,
fontSize: 40, bold: true, color: WHITE, fontFace: "Calibri", align: "center"
});
s.addText("Surya | Roll No: 138", {
x: 2.5, y: 3.2, w: 5, h: 0.45,
fontSize: 16, color: ACCENT, fontFace: "Calibri", align: "center", bold: true
});
s.addText("Communication with Patient โ Verbal & Non-Verbal", {
x: 2.5, y: 3.75, w: 5, h: 0.4,
fontSize: 12, color: "B0D8E0", fontFace: "Calibri", align: "center", italic: true
});
}
// โโโ WRITE FILE โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
pres.writeFile({ fileName: "/home/daytona/workspace/communication-ppt/Communication_with_Patient_Surya.pptx" })
.then(() => console.log("โ
PPT created successfully!"))
.catch(err => { console.error("โ Error:", err); process.exit(1); });
cd /home/daytona/workspace/communication-ppt && node create_ppt.js
Communication with Patient Surya
Presentation ยท PPTX
| Slide | Content |
|---|---|
| 1 | Title Slide - Topic, Name (Surya), Roll No. 138 |
| 2 | Contents / Introduction - Why communication matters + stats |
| 3 | Verbal Communication - Definition + 3 key feature cards |
| 4 | Types of Verbal Communication - Oral, Written, Active Listening, Therapeutic |
| 5 | Non-Verbal Communication - Definition + 6 icon grid (eye contact, gestures, etc.) |
| 6 | Types of Non-Verbal - Kinesics, Paralanguage, Proxemics, Haptics, Chronemics, Appearance |
| 7 | Barriers to Communication - Language, Emotional, Noise, Physical, Cultural, Time Pressure |
| 8 | Effective Communication Tips - 6 practical tips with teach-back method |
| 9 | Conclusion - Key takeaways + Peter Drucker quote |
| 10 | Thank You - Name & Roll No. |