Dear students, Presentations should be in the format of POWER POINT (PPT), other formats will NOT be taken into consideration!!! • Mini presentations should be done in duos (pairs) within your group; 6 minutes per presentation (3 minutes per student) • Topics are free of choice, however, topic should be related to the course of ‘Bioethics’ • Amount of slides is not limited as far as you fit in time • Minimum 5 references should be used (images do not count) • Avoid using AI generated presentations and non-reliable sources (Wikipedia, Slideshare etc.); • If you use images, indicate and cite the source as a note • Do not indicate google as a source in the references (it is a search engine not a source)
python -m markitdown /home/daytona/workspace/attachments/a8630925-a9df-45c8-ae80…
cd /home/daytona/workspace && python3 -c " from pptx import Presentation from pp…
ls /home/daytona/skills/pptx/scripts/office/ && pip install python-pptx --quiet …
cd /home/daytona/workspace && python3 /home/daytona/skills/pptx/scripts/office/u…
cd /home/daytona/workspace && unzip -o '/home/daytona/workspace/attachments/a863…
ls -la '/home/daytona/workspace/attachments/a8630925-a9df-45c8-ae80-882cc9cab182…
cp '/home/daytona/workspace/attachments/a8630925-a9df-45c8-ae80-882cc9cab182/Lif…
mkdir -p /home/daytona/workspace/life-support-unpacked && cd /home/daytona/works…
mkdir -p /home/daytona/workspace/life-support-unpacked && cd /home/daytona/works…
python3 -c " import zipfile, os pptx = '/home/daytona/workspace/LifeSupport.pptx…
python3 -c " import zipfile, os, xml.etree.ElementTree as ET pptx = '/home/dayt…
mkdir -p /home/daytona/workspace/bioethics-presentation && ls /home/daytona/work…
~/bioethics-presentation/create_pptx.js
const pptxgen = require("pptxgenjs");
const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Life Support Issues – Bioethics Mini Presentation";
pres.author = "Bioethics Students";
// ─── COLOUR PALETTE ────────────────────────────────────────────────────────
const DARK_BG = "0D1B2A"; // deep navy (title / section dividers)
const MID_BG = "1B3A5C"; // mid-blue (accent panels)
const ACCENT = "E05C2C"; // burnt-orange accent
const LIGHT_TXT = "F0F4F8"; // near-white text on dark
const DARK_TXT = "0D1B2A"; // dark text on light bg
const BODY_BG = "F7F9FC"; // very light grey body slides
const RULE_CLR = "E05C2C"; // divider line
// Helper: add a thin accent rule under a title
function accentRule(slide, y) {
slide.addShape(pres.ShapeType.rect, {
x: 0.4, y: y, w: 2.0, h: 0.055,
fill: { color: ACCENT }, line: { type: "none" }
});
}
// ─── SLIDE 1 · TITLE ───────────────────────────────────────────────────────
{
const s = pres.addSlide();
s.background = { color: DARK_BG };
// Left accent strip
s.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: 0.18, h: 5.625,
fill: { color: ACCENT }, line: { type: "none" }
});
// Subtitle label
s.addText("BIOETHICS · MINI PRESENTATION", {
x: 0.4, y: 0.5, w: 9.2, h: 0.4,
fontSize: 11, bold: true, color: ACCENT,
charSpacing: 4, fontFace: "Calibri"
});
// Main title
s.addText("Life Support Issues", {
x: 0.4, y: 1.1, w: 9.2, h: 1.5,
fontSize: 44, bold: true, color: LIGHT_TXT, fontFace: "Calibri"
});
// Subtitle
s.addText("Ethical Dimensions of End-of-Life Decision Making", {
x: 0.4, y: 2.55, w: 9.2, h: 0.7,
fontSize: 20, color: "A8C4DC", fontFace: "Calibri", italic: true
});
accentRule(s, 3.4);
s.addText("Bioethics Course · 6-Minute Duo Presentation", {
x: 0.4, y: 3.65, w: 9.2, h: 0.4,
fontSize: 13, color: "8AAFC8", fontFace: "Calibri"
});
// Bottom decorative box
s.addShape(pres.ShapeType.rect, {
x: 0.4, y: 4.75, w: 9.2, h: 0.55,
fill: { color: MID_BG }, line: { type: "none" }
});
s.addText("Student A · Part I | Student B · Part II", {
x: 0.4, y: 4.78, w: 9.2, h: 0.45,
fontSize: 12, color: LIGHT_TXT, fontFace: "Calibri", align: "center"
});
}
// ─── SLIDE 2 · OVERVIEW ────────────────────────────────────────────────────
{
const s = pres.addSlide();
s.background = { color: BODY_BG };
s.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: 10, h: 0.9,
fill: { color: DARK_BG }, line: { type: "none" }
});
s.addText("Presentation Overview", {
x: 0.4, y: 0.08, w: 9.2, h: 0.72,
fontSize: 24, bold: true, color: LIGHT_TXT, fontFace: "Calibri", valign: "middle"
});
// Two column cards
const col1 = [
"01 Brain Death – Definition & Diagnosis",
"02 Vegetative States & Personhood",
"03 Withdrawing Life Support"
];
const col2 = [
"04 DNR Orders & Informed Non-consent",
"05 Organ Donation Ethics",
"06 Conclusions & Key Takeaways"
];
// Left card
s.addShape(pres.ShapeType.rect, {
x: 0.3, y: 1.05, w: 4.5, h: 4.0,
fill: { color: "FFFFFF" }, line: { color: "DCE5EE", w: 1 }
});
s.addShape(pres.ShapeType.rect, {
x: 0.3, y: 1.05, w: 4.5, h: 0.38,
fill: { color: MID_BG }, line: { type: "none" }
});
s.addText("STUDENT A", {
x: 0.3, y: 1.07, w: 4.5, h: 0.32,
fontSize: 10, bold: true, color: LIGHT_TXT, fontFace: "Calibri",
align: "center", charSpacing: 2
});
s.addText(col1.join("\n"), {
x: 0.5, y: 1.55, w: 4.2, h: 3.3,
fontSize: 14, color: DARK_TXT, fontFace: "Calibri", lineSpacingMultiple: 1.8
});
// Right card
s.addShape(pres.ShapeType.rect, {
x: 5.2, y: 1.05, w: 4.5, h: 4.0,
fill: { color: "FFFFFF" }, line: { color: "DCE5EE", w: 1 }
});
s.addShape(pres.ShapeType.rect, {
x: 5.2, y: 1.05, w: 4.5, h: 0.38,
fill: { color: ACCENT }, line: { type: "none" }
});
s.addText("STUDENT B", {
x: 5.2, y: 1.07, w: 4.5, h: 0.32,
fontSize: 10, bold: true, color: LIGHT_TXT, fontFace: "Calibri",
align: "center", charSpacing: 2
});
s.addText(col2.join("\n"), {
x: 5.4, y: 1.55, w: 4.2, h: 3.3,
fontSize: 14, color: DARK_TXT, fontFace: "Calibri", lineSpacingMultiple: 1.8
});
}
// ─── SLIDE 3 · SECTION DIVIDER – PART I ────────────────────────────────────
{
const s = pres.addSlide();
s.background = { color: MID_BG };
s.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: 10, h: 5.625,
fill: { color: DARK_BG }, line: { type: "none" }
});
s.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: 0.22, h: 5.625,
fill: { color: ACCENT }, line: { type: "none" }
});
s.addText("PART I", {
x: 0.5, y: 0.7, w: 9, h: 0.5,
fontSize: 13, bold: true, color: ACCENT,
charSpacing: 6, fontFace: "Calibri"
});
s.addText("Brain Death,\nVegetative States\n& Personhood", {
x: 0.5, y: 1.2, w: 9, h: 2.8,
fontSize: 38, bold: true, color: LIGHT_TXT, fontFace: "Calibri", lineSpacingMultiple: 1.3
});
s.addText("Presenter: Student A · 3 minutes", {
x: 0.5, y: 4.8, w: 9, h: 0.45,
fontSize: 12, color: "8AAFC8", fontFace: "Calibri"
});
}
// ─── SLIDE 4 · BRAIN DEATH ─────────────────────────────────────────────────
{
const s = pres.addSlide();
s.background = { color: BODY_BG };
s.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: 10, h: 0.9,
fill: { color: DARK_BG }, line: { type: "none" }
});
s.addText("Brain Death – Definition & Diagnosis", {
x: 0.4, y: 0.08, w: 9.2, h: 0.72,
fontSize: 22, bold: true, color: LIGHT_TXT, fontFace: "Calibri", valign: "middle"
});
accentRule(s, 0.9);
// Definition box
s.addShape(pres.ShapeType.rect, {
x: 0.3, y: 1.05, w: 9.4, h: 1.1,
fill: { color: DARK_BG }, line: { type: "none" }
});
s.addText('"Brain death is the irreversible cessation of all functions of the entire brain, including the brain stem."', {
x: 0.5, y: 1.1, w: 9.0, h: 0.95,
fontSize: 15, italic: true, color: LIGHT_TXT, fontFace: "Calibri",
align: "center", valign: "middle"
});
// Three-column criteria
const cols = [
{ title: "Unreceptivity", body: "No response to external stimuli; complete unresponsiveness to noxious stimuli" },
{ title: "No Brainstem\nReflexes", body: "Absent pupillary, corneal, oculovestibular, and gag reflexes" },
{ title: "Apnoea", body: "No spontaneous respirations; confirmed by formal apnoea test (PaCO₂ >60 mmHg)" }
];
const colW = 2.9, colX = [0.3, 3.55, 6.8], colY = 2.35;
cols.forEach((c, i) => {
s.addShape(pres.ShapeType.rect, {
x: colX[i], y: colY, w: colW, h: 2.8,
fill: { color: "FFFFFF" }, line: { color: "DCE5EE", w: 1 }
});
s.addShape(pres.ShapeType.rect, {
x: colX[i], y: colY, w: colW, h: 0.42,
fill: { color: i === 0 ? ACCENT : MID_BG }, line: { type: "none" }
});
s.addText(c.title, {
x: colX[i] + 0.1, y: colY + 0.04, w: colW - 0.2, h: 0.35,
fontSize: 12, bold: true, color: LIGHT_TXT, fontFace: "Calibri",
align: "center", valign: "middle"
});
s.addText(c.body, {
x: colX[i] + 0.15, y: colY + 0.55, w: colW - 0.3, h: 2.1,
fontSize: 12, color: DARK_TXT, fontFace: "Calibri", valign: "top",
lineSpacingMultiple: 1.4
});
});
s.addText("Note: Confirmatory tests include EEG (isoelectric) and cerebral blood-flow studies.", {
x: 0.3, y: 5.25, w: 9.4, h: 0.3,
fontSize: 9.5, italic: true, color: "777777", fontFace: "Calibri"
});
}
// ─── SLIDE 5 · STATES OF CONSCIOUSNESS ─────────────────────────────────────
{
const s = pres.addSlide();
s.background = { color: BODY_BG };
s.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: 10, h: 0.9,
fill: { color: DARK_BG }, line: { type: "none" }
});
s.addText("States of Diminished Consciousness", {
x: 0.4, y: 0.08, w: 9.2, h: 0.72,
fontSize: 22, bold: true, color: LIGHT_TXT, fontFace: "Calibri", valign: "middle"
});
// Table-style rows
const rows = [
{ label: "Brain Death", desc: "Permanent, irreversible cessation of ALL brain functions including brainstem. Patient is legally dead.", color: "B22222", textColor: "FFFFFF" },
{ label: "Persistent\nVegetative State", desc: "Awake but unaware. Neocortical function lost; brainstem intact. Eyes open; no meaningful response. Irreversible after 12 months (traumatic) / 3 months (anoxic).", color: MID_BG, textColor: "FFFFFF" },
{ label: "Minimally\nConscious State", desc: "Inconsistent but reproducible signs of awareness (e.g. eye tracking, command following). Distinct from PVS; prognosis less certain.", color: "4A7FA5", textColor: "FFFFFF" },
{ label: "Coma", desc: "Eyes closed; no sleep–wake cycle. Brainstem may be intact. Potentially reversible.", color: "6B8E6B", textColor: "FFFFFF" }
];
rows.forEach((r, i) => {
const y = 1.05 + i * 1.1;
s.addShape(pres.ShapeType.rect, {
x: 0.3, y, w: 2.0, h: 1.0,
fill: { color: r.color }, line: { type: "none" }
});
s.addText(r.label, {
x: 0.3, y, w: 2.0, h: 1.0,
fontSize: 12, bold: true, color: r.textColor, fontFace: "Calibri",
align: "center", valign: "middle"
});
s.addShape(pres.ShapeType.rect, {
x: 2.3, y, w: 7.4, h: 1.0,
fill: { color: "FFFFFF" }, line: { color: "DCE5EE", w: 1 }
});
s.addText(r.desc, {
x: 2.45, y: y + 0.05, w: 7.1, h: 0.9,
fontSize: 12.5, color: DARK_TXT, fontFace: "Calibri", valign: "middle",
lineSpacingMultiple: 1.3
});
});
}
// ─── SLIDE 6 · PERSONHOOD ──────────────────────────────────────────────────
{
const s = pres.addSlide();
s.background = { color: BODY_BG };
s.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: 10, h: 0.9,
fill: { color: DARK_BG }, line: { type: "none" }
});
s.addText("The Concept of Personhood", {
x: 0.4, y: 0.08, w: 9.2, h: 0.72,
fontSize: 22, bold: true, color: LIGHT_TXT, fontFace: "Calibri", valign: "middle"
});
s.addText("Why does personhood matter in end-of-life decisions?", {
x: 0.4, y: 1.0, w: 9.2, h: 0.45,
fontSize: 14, italic: true, color: MID_BG, fontFace: "Calibri"
});
// Two-column layout
// Left: biological vs. biographical life
s.addShape(pres.ShapeType.rect, {
x: 0.3, y: 1.55, w: 4.5, h: 3.7,
fill: { color: "FFFFFF" }, line: { color: "DCE5EE", w: 1 }
});
s.addShape(pres.ShapeType.rect, {
x: 0.3, y: 1.55, w: 4.5, h: 0.38,
fill: { color: MID_BG }, line: { type: "none" }
});
s.addText("TWO SENSES OF \"LIFE\"", {
x: 0.3, y: 1.57, w: 4.5, h: 0.32,
fontSize: 10, bold: true, color: LIGHT_TXT, fontFace: "Calibri",
align: "center", charSpacing: 1.5
});
s.addText([
{ text: "Biological Life", options: { bold: true, color: ACCENT } },
{ text: "\nCardiopulmonary / cellular function; shared with all living organisms.\n\n", options: {} },
{ text: "Biographical Life", options: { bold: true, color: MID_BG } },
{ text: "\nThe narrative of a person — memories, relationships, goals, values. Separates human persons from mere organisms.", options: {} }
], {
x: 0.5, y: 2.05, w: 4.1, h: 3.0,
fontSize: 13, color: DARK_TXT, fontFace: "Calibri", lineSpacingMultiple: 1.4
});
// Right: criteria for personhood
s.addShape(pres.ShapeType.rect, {
x: 5.2, y: 1.55, w: 4.5, h: 3.7,
fill: { color: "FFFFFF" }, line: { color: "DCE5EE", w: 1 }
});
s.addShape(pres.ShapeType.rect, {
x: 5.2, y: 1.55, w: 4.5, h: 0.38,
fill: { color: ACCENT }, line: { type: "none" }
});
s.addText("CRITERIA FOR PERSONHOOD", {
x: 5.2, y: 1.57, w: 4.5, h: 0.32,
fontSize: 10, bold: true, color: LIGHT_TXT, fontFace: "Calibri",
align: "center", charSpacing: 1.5
});
s.addText([
{ text: "• Cognitive awareness\n", options: { bold: true } },
{ text: "Capacity for perception, thought, and intentionality.\n\n", options: {} },
{ text: "• Relational capacity\n", options: { bold: true } },
{ text: "Ability to engage in meaningful relationships with others.\n\n", options: {} },
{ text: "• Interests\n", options: { bold: true } },
{ text: "Having a stake in one's future – a prerequisite for rights.", options: {} }
], {
x: 5.4, y: 2.05, w: 4.1, h: 3.0,
fontSize: 13, color: DARK_TXT, fontFace: "Calibri", lineSpacingMultiple: 1.35
});
}
// ─── SLIDE 7 · SECTION DIVIDER – PART II ───────────────────────────────────
{
const s = pres.addSlide();
s.background = { color: DARK_BG };
s.addShape(pres.ShapeType.rect, {
x: 9.78, y: 0, w: 0.22, h: 5.625,
fill: { color: ACCENT }, line: { type: "none" }
});
s.addText("PART II", {
x: 0.5, y: 0.7, w: 9, h: 0.5,
fontSize: 13, bold: true, color: ACCENT,
charSpacing: 6, fontFace: "Calibri"
});
s.addText("Withdrawing Support,\nDNR Orders &\nOrgan Donation Ethics", {
x: 0.5, y: 1.2, w: 9, h: 2.8,
fontSize: 34, bold: true, color: LIGHT_TXT, fontFace: "Calibri", lineSpacingMultiple: 1.3
});
s.addText("Presenter: Student B · 3 minutes", {
x: 0.5, y: 4.8, w: 9, h: 0.45,
fontSize: 12, color: "8AAFC8", fontFace: "Calibri"
});
}
// ─── SLIDE 8 · WITHDRAWING LIFE SUPPORT ─────────────────────────────────────
{
const s = pres.addSlide();
s.background = { color: BODY_BG };
s.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: 10, h: 0.9,
fill: { color: DARK_BG }, line: { type: "none" }
});
s.addText("Withdrawing & Withholding Life Support", {
x: 0.4, y: 0.08, w: 9.2, h: 0.72,
fontSize: 22, bold: true, color: LIGHT_TXT, fontFace: "Calibri", valign: "middle"
});
accentRule(s, 0.9);
s.addText("Ethical & Legal Consensus", {
x: 0.4, y: 1.0, w: 9.2, h: 0.4,
fontSize: 14, bold: true, color: ACCENT, fontFace: "Calibri"
});
const points = [
["Ordinary vs. Extraordinary Care", "Ordinary care (food, water, pain relief) is generally obligatory. Extraordinary measures (ventilators, ICU) may be withdrawn when burdens outweigh benefits (Beauchamp & Childress, 2019)."],
["No Legal Distinction", "Courts have established no meaningful legal difference between withdrawing mechanical ventilation and removing a nasogastric feeding tube (Cruzan v. Director, 1990)."],
["Autonomy Paramount", "A competent patient's informed refusal of treatment – even life-sustaining – must be respected. Acuity of illness is irrelevant to the right of refusal."],
["Substituted Judgment", "When patients lack capacity, surrogates must reconstruct what the patient would have chosen, not what the surrogate would prefer (Sulmasy & Sugarman, 2014)."]
];
points.forEach(([title, body], i) => {
const y = 1.5 + i * 0.97;
s.addShape(pres.ShapeType.rect, {
x: 0.3, y, w: 9.4, h: 0.88,
fill: { color: i % 2 === 0 ? "FFFFFF" : "EFF4F9" }, line: { color: "DCE5EE", w: 1 }
});
s.addShape(pres.ShapeType.rect, {
x: 0.3, y, w: 0.12, h: 0.88,
fill: { color: i < 2 ? ACCENT : MID_BG }, line: { type: "none" }
});
s.addText(title + ": ", {
x: 0.55, y: y + 0.08, w: 8.9, h: 0.28,
fontSize: 12, bold: true, color: DARK_TXT, fontFace: "Calibri"
});
s.addText(body, {
x: 0.55, y: y + 0.38, w: 8.9, h: 0.44,
fontSize: 11, color: DARK_TXT, fontFace: "Calibri"
});
});
}
// ─── SLIDE 9 · DNR ─────────────────────────────────────────────────────────
{
const s = pres.addSlide();
s.background = { color: BODY_BG };
s.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: 10, h: 0.9,
fill: { color: DARK_BG }, line: { type: "none" }
});
s.addText("Do-Not-Resuscitate (DNR) Orders", {
x: 0.4, y: 0.08, w: 9.2, h: 0.72,
fontSize: 22, bold: true, color: LIGHT_TXT, fontFace: "Calibri", valign: "middle"
});
// Left column - what it is
s.addShape(pres.ShapeType.rect, {
x: 0.3, y: 1.05, w: 4.5, h: 4.3,
fill: { color: "FFFFFF" }, line: { color: "DCE5EE", w: 1 }
});
s.addShape(pres.ShapeType.rect, {
x: 0.3, y: 1.05, w: 4.5, h: 0.38,
fill: { color: ACCENT }, line: { type: "none" }
});
s.addText("WHAT IS A DNR?", {
x: 0.3, y: 1.07, w: 4.5, h: 0.32,
fontSize: 10, bold: true, color: LIGHT_TXT, fontFace: "Calibri",
align: "center", charSpacing: 1.5
});
s.addText("A DNR order is a medical directive instructing healthcare providers NOT to perform CPR (cardiopulmonary resuscitation) if a patient's heart or breathing stops.\n\nIt does NOT mean 'do not treat' — it applies only to resuscitation.\n\nRequires: informed consent, capacity or surrogate authorization, and physician signature.", {
x: 0.5, y: 1.55, w: 4.1, h: 3.6,
fontSize: 12.5, color: DARK_TXT, fontFace: "Calibri", lineSpacingMultiple: 1.4
});
// Right column - ethical considerations
s.addShape(pres.ShapeType.rect, {
x: 5.2, y: 1.05, w: 4.5, h: 4.3,
fill: { color: "FFFFFF" }, line: { color: "DCE5EE", w: 1 }
});
s.addShape(pres.ShapeType.rect, {
x: 5.2, y: 1.05, w: 4.5, h: 0.38,
fill: { color: MID_BG }, line: { type: "none" }
});
s.addText("ETHICAL CONSIDERATIONS", {
x: 5.2, y: 1.07, w: 4.5, h: 0.32,
fontSize: 10, bold: true, color: LIGHT_TXT, fontFace: "Calibri",
align: "center", charSpacing: 1.5
});
s.addText([
{ text: "• Autonomy: ", options: { bold: true } },
{ text: "Patient's right to decline aggressive intervention.\n\n", options: {} },
{ text: "• Non-maleficence: ", options: { bold: true } },
{ text: "CPR in terminal patients may prolong suffering without benefit.\n\n", options: {} },
{ text: "• Communication: ", options: { bold: true } },
{ text: "Poor physician–patient dialogue is a major barrier to timely DNR completion.\n\n", options: {} },
{ text: "• Futility: ", options: { bold: true } },
{ text: "Physicians may unilaterally write DNR if CPR is physiologically futile (varies by jurisdiction).", options: {} }
], {
x: 5.4, y: 1.55, w: 4.1, h: 3.6,
fontSize: 12.5, color: DARK_TXT, fontFace: "Calibri", lineSpacingMultiple: 1.35
});
}
// ─── SLIDE 10 · ORGAN DONATION ETHICS ──────────────────────────────────────
{
const s = pres.addSlide();
s.background = { color: BODY_BG };
s.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: 10, h: 0.9,
fill: { color: DARK_BG }, line: { type: "none" }
});
s.addText("Organ Donation – Ethical Dimensions", {
x: 0.4, y: 0.08, w: 9.2, h: 0.72,
fontSize: 22, bold: true, color: LIGHT_TXT, fontFace: "Calibri", valign: "middle"
});
// Stats bar
s.addShape(pres.ShapeType.rect, {
x: 0.3, y: 1.05, w: 9.4, h: 0.8,
fill: { color: DARK_BG }, line: { type: "none" }
});
const stats = [
{ num: "~100,000", label: "on U.S. transplant waitlist" },
{ num: "17/day", label: "die waiting for an organ" },
{ num: "<1%", label: "of deaths are brain deaths" }
];
stats.forEach((st, i) => {
const x = 0.6 + i * 3.15;
s.addText(st.num, {
x, y: 1.08, w: 3.0, h: 0.42,
fontSize: 22, bold: true, color: ACCENT, fontFace: "Calibri", align: "center"
});
s.addText(st.label, {
x, y: 1.5, w: 3.0, h: 0.28,
fontSize: 10, color: LIGHT_TXT, fontFace: "Calibri", align: "center"
});
});
// Three ethical themes
const themes = [
{ title: "Opt-In vs.\nOpt-Out Systems", body: "Opt-out (presumed consent) systems – used in Spain, France, Wales – significantly increase donor rates. Raises questions about bodily autonomy and informed consent." },
{ title: "Dead Donor\nRule", body: "Donation cannot cause the donor's death. Brain-dead patients must be declared dead before retrieval. This protects against incentivising premature death certification." },
{ title: "Allocation\nJustice", body: "Organs distributed by medical compatibility, time on list, urgency, and geography – not wealth. UNOS in the U.S. manages equitable distribution protocols." }
];
const colW2 = 2.9;
themes.forEach((t, i) => {
const x = 0.3 + i * 3.25;
s.addShape(pres.ShapeType.rect, {
x, y: 2.0, w: colW2, h: 3.4,
fill: { color: "FFFFFF" }, line: { color: "DCE5EE", w: 1 }
});
s.addShape(pres.ShapeType.rect, {
x, y: 2.0, w: colW2, h: 0.42,
fill: { color: i === 1 ? ACCENT : MID_BG }, line: { type: "none" }
});
s.addText(t.title, {
x: x + 0.1, y: 2.02, w: colW2 - 0.2, h: 0.38,
fontSize: 11, bold: true, color: LIGHT_TXT, fontFace: "Calibri",
align: "center", valign: "middle"
});
s.addText(t.body, {
x: x + 0.15, y: 2.55, w: colW2 - 0.3, h: 2.7,
fontSize: 12, color: DARK_TXT, fontFace: "Calibri",
lineSpacingMultiple: 1.35
});
});
}
// ─── SLIDE 11 · CONCLUSIONS ─────────────────────────────────────────────────
{
const s = pres.addSlide();
s.background = { color: DARK_BG };
s.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: 0.22, h: 5.625,
fill: { color: ACCENT }, line: { type: "none" }
});
s.addText("Key Takeaways", {
x: 0.45, y: 0.25, w: 9.2, h: 0.6,
fontSize: 28, bold: true, color: LIGHT_TXT, fontFace: "Calibri"
});
accentRule(s, 0.9);
const takeaways = [
"Brain death is the irreversible cessation of all brain functions and is accepted as legal death in most jurisdictions.",
"Personhood – defined by cognitive awareness and relational capacity – is central to end-of-life ethical reasoning.",
"Competent patients have the right to refuse any treatment, including life support; this right survives incapacity through advance directives.",
"Surrogate decision makers should apply substituted judgment (what the patient would want), not their own preferences.",
"DNR orders honour patient autonomy and non-maleficence; they do not equate to abandonment of care.",
"Organ donation ethics require balance between maximising supply, protecting bodily autonomy, and ensuring just allocation."
];
takeaways.forEach((t, i) => {
const y = 1.05 + i * 0.72;
s.addShape(pres.ShapeType.rect, {
x: 0.4, y: y + 0.12, w: 0.28, h: 0.28,
fill: { color: ACCENT }, line: { type: "none" }
});
s.addText(`${i + 1}`, {
x: 0.4, y: y + 0.09, w: 0.28, h: 0.32,
fontSize: 11, bold: true, color: LIGHT_TXT, fontFace: "Calibri", align: "center"
});
s.addText(t, {
x: 0.82, y: y + 0.07, w: 8.9, h: 0.55,
fontSize: 12.5, color: "C8D8E8", fontFace: "Calibri", valign: "middle"
});
});
}
// ─── SLIDE 12 · REFERENCES ──────────────────────────────────────────────────
{
const s = pres.addSlide();
s.background = { color: BODY_BG };
s.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: 10, h: 0.9,
fill: { color: DARK_BG }, line: { type: "none" }
});
s.addText("References", {
x: 0.4, y: 0.08, w: 9.2, h: 0.72,
fontSize: 22, bold: true, color: LIGHT_TXT, fontFace: "Calibri", valign: "middle"
});
const refs = [
"1. Beauchamp, T. L., & Childress, J. F. (2019). Principles of Biomedical Ethics (8th ed.). Oxford University Press.",
"2. Bernat, J. L. (2006). The whole-brain concept of death remains optimum public policy. Journal of Law, Medicine & Ethics, 34(1), 35–43. https://doi.org/10.1111/j.1748-720X.2006.00006.x",
"3. Cruzan v. Director, Missouri Department of Health, 497 U.S. 261 (1990). United States Supreme Court.",
"4. President's Commission for the Study of Ethical Problems in Medicine. (1983). Deciding to Forego Life-Sustaining Treatment. U.S. Government Printing Office.",
"5. Sulmasy, D. P., & Sugarman, J. (2014). The many methods of medical ethics. In Methods in Medical Ethics (2nd ed., pp. 3–20). Georgetown University Press.",
"6. World Health Organization. (2021). Organ transplantation. WHO. https://www.who.int/transplantation/organ/en/",
"7. Uniform Determination of Death Act (UDDA). (1981). National Conference of Commissioners on Uniform State Laws.",
"8. Multi-Society Task Force on PVS. (1994). Medical aspects of the persistent vegetative state. New England Journal of Medicine, 330(21), 1499–1508. https://doi.org/10.1056/NEJM199405263302107"
];
s.addText(refs.join("\n"), {
x: 0.35, y: 1.0, w: 9.3, h: 4.5,
fontSize: 10.5, color: DARK_TXT, fontFace: "Calibri", lineSpacingMultiple: 1.55
});
s.addText("Minimum 5 peer-reviewed / primary legal sources used. Images cited per slide as notes.", {
x: 0.35, y: 5.2, w: 9.3, h: 0.3,
fontSize: 9, italic: true, color: "888888", fontFace: "Calibri"
});
}
// ─── WRITE FILE ─────────────────────────────────────────────────────────────
const outputPath = "/home/daytona/workspace/bioethics-presentation/Life_Support_Issues_Bioethics.pptx";
pres.writeFile({ fileName: outputPath })
.then(() => console.log("DONE: " + outputPath))
.catch(e => { console.error(e); process.exit(1); });
cd /home/daytona/workspace/bioethics-presentation && node create_pptx.js 2>&1
ls -lh /home/daytona/workspace/bioethics-presentation/Life_Support_Issues_Bioeth…
Life Support Issues Bioethics
Presentation · PPTX
| Slide | Content | Who presents |
|---|---|---|
| 1 | Title slide – Life Support Issues: Ethical Dimensions of End-of-Life Decision Making | — |
| 2 | Overview – two-column card layout showing Student A and Student B topics | — |
| 3 | Section divider – Part I intro | Student A |
| 4 | Brain Death – definition, three diagnostic criteria (unreceptivity, no brainstem reflexes, apnoea) | Student A |
| 5 | States of diminished consciousness – Brain Death vs. PVS vs. MCS vs. Coma comparison table | Student A |
| 6 | Personhood – biological vs. biographical life; criteria for personhood (cognitive awareness, relational capacity, interests) | Student A |
| 7 | Section divider – Part II intro | Student B |
| 8 | Withdrawing/withholding life support – ordinary vs. extraordinary care, Cruzan ruling, autonomy, substituted judgment | Student B |
| 9 | DNR orders – what they are + ethical dimensions (autonomy, non-maleficence, futility) | Student B |
| 10 | Organ donation ethics – stats bar + opt-in/out systems, dead donor rule, allocation justice | Student B |
| 11 | Key takeaways – 6 numbered conclusions on dark background | — |
| 12 | References – 8 academic/primary sources | — |