Please remake this word document into 30 slide ppt, add visual cues, relevant photographs. Make it appropriate for pharmacology residents. Make the colour palette professional but girly and pastel.
cd /home/daytona/workspace/attachments/5ca89490-2178-4d53-b318-2f6ab477044f/ && pandoc "INTRODUCTIO1 2.docx" -o /home/daytona/workspace/intro_content.md 2>&1
pharmacology history ancient medicine herbs remedies
drug receptor binding pharmacodynamics molecular mechanism
pharmacokinetics ADME absorption distribution metabolism excretion
antibiotic penicillin discovery Alexander Fleming
mkdir -p /home/daytona/workspace/pharmacology-ppt && ls /home/daytona/workspace/pharmacology-ppt/
~/pharmacology-ppt/create_pptx.js
const pptxgen = require("pptxgenjs");
const { execSync } = require("child_process");
const fs = require("fs");
let pres = new pptxgen();
pres.layout = 'LAYOUT_16x9';
pres.author = 'Pharmacology Department';
pres.title = 'Introduction to Pharmacology';
// ─── PASTEL GIRLY PROFESSIONAL PALETTE ───
const C = {
dustyRose: "E8B4C0", // dominant pink
lavender: "C9B8E8", // secondary purple
mintGreen: "B8DDD9", // accent teal
peachCream: "F5D5C0", // warm accent
lilac: "D4C5E8", // soft purple
white: "FFFFFF",
offWhite: "FDF8FA",
charcoal: "3D2B35", // dark text
deepRose: "9C5470", // strong accent
softGold: "D4A574", // accent gold
paleBlush: "FAF0F3", // light bg
roseGold: "C4849A", // border/line accent
};
// ─── FONT DEFAULTS ───
const TITLE_FONT = "Georgia";
const BODY_FONT = "Calibri";
// ─── HELPER: slide with gradient-like background ───
function addBg(slide, topColor, bottomColor) {
// Full-slide background rectangle (top color)
slide.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: 10, h: 5.625,
fill: { color: topColor },
line: { color: topColor }
});
// Bottom accent strip
slide.addShape(pres.ShapeType.rect, {
x: 0, y: 4.8, w: 10, h: 0.825,
fill: { color: bottomColor },
line: { color: bottomColor }
});
}
// ─── HELPER: decorative left sidebar ───
function addSidebar(slide, color) {
slide.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: 0.18, h: 5.625,
fill: { color: color },
line: { color: color }
});
}
// ─── HELPER: rounded pill shape for label ───
function addPill(slide, text, x, y, w, h, bgColor, textColor) {
slide.addShape(pres.ShapeType.roundRect, {
x, y, w, h,
fill: { color: bgColor },
line: { color: bgColor },
rectRadius: 0.15
});
slide.addText(text, {
x, y, w, h,
fontSize: 9, bold: true, color: textColor,
align: "center", valign: "middle",
fontFace: BODY_FONT, margin: 0
});
}
// ─── HELPER: section header icon circle ───
function addCircleIcon(slide, text, x, y, size, bgColor, textColor) {
slide.addShape(pres.ShapeType.ellipse, {
x, y, w: size, h: size,
fill: { color: bgColor },
line: { color: bgColor }
});
slide.addText(text, {
x, y, w: size, h: size,
fontSize: 11, bold: true, color: textColor,
align: "center", valign: "middle",
fontFace: BODY_FONT, margin: 0
});
}
// ─── HELPER: decorative dots ───
function addDots(slide) {
[[9.5,0.2], [9.6,0.5], [9.7,0.3]].forEach(([x,y]) => {
slide.addShape(pres.ShapeType.ellipse, {
x, y, w: 0.08, h: 0.08,
fill: { color: C.roseGold },
line: { color: C.roseGold }
});
});
}
// Fetch images
const imageUrls = [
"https://cdn.orris.care/cdss_images/pmc_clinical_VQA_26d92780a0ee04ee9c9626b8ca565c67cef4ed0358f39ee3f438cc2e4105c0ab.jpg", // Klimt medicine art
"https://cdn.orris.care/cdss_images/pmc_clinical_VQA_53077b32a67d831286f9b6c9c0bc3099f503bffd6235816a219ab5384b474e1d.jpg", // PK/PD diagram
"https://cdn.orris.care/cdss_images/pmc_clinical_VQA_8709da27736bc850b45acf4b02c7e94deb9c7c7eef44ac9f7a25cdb45fb7d416.jpg", // Tamoxifen PK
"https://cdn.orris.care/cdss_images/pmc_clinical_VQA_8b4c566947e256d817c2f50dc49147342eb538f04b14e3d4526c5096bcb7c75a.jpg", // GABA receptor
"https://cdn.orris.care/cdss_images/pmc_clinical_VQA_d08b4b0c295cc51f22ae05fb5fd16245a03811217c86a973c6c405ccf404b8e3.jpg", // ADC mechanism
"https://cdn.orris.care/cdss_images/HARRISON_1763035966873_8460ba69-de47-4ffd-8e86-a36f06bb7d86.png", // Blood agar/penicillin
"https://cdn.orris.care/cdss_images/pmc_clinical_VQA_0fc5ceaf106c119faf7efa8879fea9761caefdbcd4fa4e0b0b539935349554e0.jpg", // SPRM receptor
];
console.log("Fetching images...");
let images = [];
try {
const raw = execSync(
`node /home/daytona/skills/shared/scripts/fetch_images.js ${imageUrls.map(u => `"${u}"`).join(" ")}`,
{ maxBuffer: 50 * 1024 * 1024 }
).toString();
images = JSON.parse(raw);
} catch(e) {
console.log("Image fetch error:", e.message);
images = imageUrls.map(u => ({ url: u, base64: null, error: "failed" }));
}
const imgKlimt = images[0]?.base64 || null;
const imgPKPD = images[1]?.base64 || null;
const imgTamox = images[2]?.base64 || null;
const imgGABA = images[3]?.base64 || null;
const imgADC = images[4]?.base64 || null;
const imgAgar = images[5]?.base64 || null;
const imgSPRM = images[6]?.base64 || null;
// ═══════════════════════════════════════════════════
// SLIDE 1 — TITLE SLIDE
// ═══════════════════════════════════════════════════
{
let s = pres.addSlide();
// Background
s.addShape(pres.ShapeType.rect, { x:0, y:0, w:10, h:5.625, fill:{color: C.paleBlush}, line:{color: C.paleBlush} });
// Large decorative circle top-right
s.addShape(pres.ShapeType.ellipse, { x:7.5, y:-1.2, w:3.5, h:3.5, fill:{color: C.dustyRose}, line:{color: C.dustyRose} });
s.addShape(pres.ShapeType.ellipse, { x:8.2, y:-0.4, w:2.0, h:2.0, fill:{color: C.lavender}, line:{color: C.lavender} });
// Bottom wave shape
s.addShape(pres.ShapeType.rect, { x:0, y:4.6, w:10, h:1.025, fill:{color: C.dustyRose}, line:{color: C.dustyRose} });
s.addShape(pres.ShapeType.ellipse, { x:-0.5, y:4.2, w:5, h:1.5, fill:{color: C.dustyRose}, line:{color: C.dustyRose} });
// Left sidebar
addSidebar(s, C.roseGold);
// Pill label
addPill(s, "PHARMACOLOGY RESIDENCY", 0.5, 0.3, 3.5, 0.35, C.lavender, C.charcoal);
// Main title
s.addText("Introduction to\nPharmacology", {
x: 0.4, y: 0.85, w: 6.5, h: 1.8,
fontSize: 38, bold: true, color: C.charcoal,
fontFace: TITLE_FONT, align: "left", valign: "top"
});
// Subtitle
s.addText("History, Definitions & Scope of the Discipline", {
x: 0.4, y: 2.65, w: 6.5, h: 0.6,
fontSize: 15, color: C.deepRose,
fontFace: BODY_FONT, align: "left", italic: true
});
// Divider line
s.addShape(pres.ShapeType.line, { x:0.4, y:2.55, w:5.5, h:0, line:{color: C.roseGold, width: 2} });
// Info row
s.addText("Pharmacology Department • Foundation Module • 2026", {
x: 0.4, y: 3.2, w: 6, h: 0.4,
fontSize: 10, color: C.charcoal,
fontFace: BODY_FONT, align: "left"
});
// Klimt image
if (imgKlimt) s.addImage({ data: imgKlimt, x:6.8, y:1.2, w:2.8, h:2.8 });
// Bottom text
s.addText("\"Pharmacology is not just the study of drugs — it is the science of improving life\"", {
x: 0.3, y: 4.7, w: 9.5, h: 0.7,
fontSize: 9, color: C.white, italic: true,
fontFace: BODY_FONT, align: "center", valign: "middle"
});
}
// ─── HELPER: standard content slide ───
function contentSlide(title, bullets, accentColor, iconEmoji) {
let s = pres.addSlide();
addBg(s, C.offWhite, accentColor || C.dustyRose);
addSidebar(s, accentColor || C.dustyRose);
addDots(s);
// Title bar
s.addShape(pres.ShapeType.rect, { x:0.18, y:0, w:9.82, h:0.75, fill:{color: accentColor || C.dustyRose}, line:{color: accentColor || C.dustyRose} });
s.addText(title, {
x:0.35, y:0.05, w:9.2, h:0.65,
fontSize:20, bold:true, color:C.white,
fontFace:TITLE_FONT, valign:"middle", margin:0
});
// Bullets
const items = bullets.map((b, i) => {
if (typeof b === 'string') return { text: b, options: { bullet:{type:"bullet"}, breakLine: i < bullets.length-1, fontSize:13, color:C.charcoal, fontFace:BODY_FONT, paraSpaceAfter:4 } };
return b;
});
s.addText(items, { x:0.4, y:0.85, w:9.2, h:3.9, valign:"top" });
return s;
}
// ─── HELPER: two-column slide ───
function twoColSlide(title, leftContent, rightContent, accentColor) {
let s = pres.addSlide();
addBg(s, C.offWhite, accentColor || C.lavender);
addSidebar(s, accentColor || C.lavender);
addDots(s);
s.addShape(pres.ShapeType.rect, { x:0.18, y:0, w:9.82, h:0.75, fill:{color: accentColor || C.lavender}, line:{color: accentColor || C.lavender} });
s.addText(title, {
x:0.35, y:0.05, w:9.2, h:0.65,
fontSize:20, bold:true, color:C.white,
fontFace:TITLE_FONT, valign:"middle", margin:0
});
// Divider
s.addShape(pres.ShapeType.rect, { x:4.85, y:0.85, w:0.04, h:3.9, fill:{color: C.roseGold}, line:{color: C.roseGold} });
// Left
const lItems = leftContent.map((b,i) => ({ text:b, options:{bullet:{type:"bullet"}, breakLine:i<leftContent.length-1, fontSize:12, color:C.charcoal, fontFace:BODY_FONT, paraSpaceAfter:5} }));
s.addText(lItems, { x:0.35, y:0.85, w:4.4, h:3.9, valign:"top" });
// Right
const rItems = rightContent.map((b,i) => ({ text:b, options:{bullet:{type:"bullet"}, breakLine:i<rightContent.length-1, fontSize:12, color:C.charcoal, fontFace:BODY_FONT, paraSpaceAfter:5} }));
s.addText(rItems, { x:5.0, y:0.85, w:4.6, h:3.9, valign:"top" });
return s;
}
// ─── HELPER: image + text slide ───
function imgTextSlide(title, bullets, imgData, accentColor, imgRight) {
let s = pres.addSlide();
addBg(s, C.offWhite, accentColor || C.mintGreen);
addSidebar(s, accentColor || C.mintGreen);
addDots(s);
s.addShape(pres.ShapeType.rect, { x:0.18, y:0, w:9.82, h:0.75, fill:{color:accentColor||C.mintGreen}, line:{color:accentColor||C.mintGreen} });
s.addText(title, {
x:0.35, y:0.05, w:9.2, h:0.65,
fontSize:20, bold:true, color:C.white,
fontFace:TITLE_FONT, valign:"middle", margin:0
});
const textX = imgRight ? 0.35 : 5.0;
const imgX = imgRight ? 5.4 : 0.35;
const items = bullets.map((b,i) => ({ text:b, options:{bullet:{type:"bullet"}, breakLine:i<bullets.length-1, fontSize:12, color:C.charcoal, fontFace:BODY_FONT, paraSpaceAfter:6} }));
s.addText(items, { x:textX, y:0.9, w:4.5, h:3.8, valign:"top" });
if (imgData) s.addImage({ data:imgData, x:imgX, y:0.9, w:4.3, h:3.5 });
return s;
}
// ─── HELPER: section divider slide ───
function sectionSlide(number, title, subtitle, accentColor) {
let s = pres.addSlide();
s.addShape(pres.ShapeType.rect, { x:0, y:0, w:10, h:5.625, fill:{color: accentColor}, line:{color: accentColor} });
s.addShape(pres.ShapeType.ellipse, { x:-1, y:-1, w:4, h:4, fill:{color: C.white}, line:{color: C.white}, transparency:85 });
s.addShape(pres.ShapeType.ellipse, { x:7, y:3, w:3.5, h:3.5, fill:{color: C.white}, line:{color: C.white}, transparency:85 });
s.addText(`Section ${number}`, {
x:0.6, y:1.4, w:8.8, h:0.5,
fontSize:14, color:C.white, bold:false,
fontFace:BODY_FONT, align:"left", charSpacing:4
});
s.addText(title, {
x:0.6, y:1.9, w:8.8, h:1.4,
fontSize:34, bold:true, color:C.white,
fontFace:TITLE_FONT, align:"left"
});
s.addShape(pres.ShapeType.line, { x:0.6, y:3.4, w:4, h:0, line:{color:C.white, width:2} });
s.addText(subtitle, {
x:0.6, y:3.5, w:8.8, h:0.6,
fontSize:13, color:C.white, italic:true,
fontFace:BODY_FONT, align:"left"
});
return s;
}
// ─── HELPER: timeline slide ───
function timelineSlide(title, events, accentColor) {
let s = pres.addSlide();
addBg(s, C.offWhite, accentColor || C.peachCream);
addSidebar(s, accentColor || C.peachCream);
s.addShape(pres.ShapeType.rect, { x:0.18, y:0, w:9.82, h:0.75, fill:{color:accentColor||C.peachCream}, line:{color:accentColor||C.peachCream} });
s.addText(title, {
x:0.35, y:0.05, w:9.2, h:0.65,
fontSize:20, bold:true, color:C.white,
fontFace:TITLE_FONT, valign:"middle", margin:0
});
// Timeline line
s.addShape(pres.ShapeType.line, { x:0.7, y:3.0, w:8.6, h:0, line:{color:C.roseGold, width:3} });
const totalW = 8.6;
const startX = 0.7;
const spacing = totalW / (events.length - 1);
events.forEach((ev, i) => {
const x = startX + i * spacing;
const isTop = i % 2 === 0;
// Node circle
s.addShape(pres.ShapeType.ellipse, { x:x-0.15, y:2.85, w:0.3, h:0.3, fill:{color:C.deepRose}, line:{color:C.deepRose} });
// Year
s.addText(ev.year, {
x:x-0.5, y: isTop ? 2.45 : 3.2,
w:1.0, h:0.3,
fontSize:11, bold:true, color:C.deepRose,
fontFace:BODY_FONT, align:"center"
});
// Event text
s.addText(ev.text, {
x:x-0.8, y: isTop ? 0.85 : 3.55,
w:1.6, h:1.5,
fontSize:9, color:C.charcoal,
fontFace:BODY_FONT, align:"center", wrap:true
});
// Connector line
s.addShape(pres.ShapeType.line, {
x:x, y: isTop ? 2.85 : 3.15,
w:0, h: isTop ? -1.5 : 1.4,
line:{color:C.roseGold, width:1, dashType:"sysDash"}
});
});
return s;
}
// ─── HELPER: definition card slide ───
function definitionSlide(title, defs, accentColor) {
let s = pres.addSlide();
addBg(s, C.paleBlush, accentColor || C.lavender);
addSidebar(s, accentColor || C.lavender);
addDots(s);
s.addShape(pres.ShapeType.rect, { x:0.18, y:0, w:9.82, h:0.75, fill:{color:accentColor||C.lavender}, line:{color:accentColor||C.lavender} });
s.addText(title, {
x:0.35, y:0.05, w:9.2, h:0.65,
fontSize:20, bold:true, color:C.white,
fontFace:TITLE_FONT, valign:"middle", margin:0
});
const cardColors = [C.dustyRose, C.lavender, C.mintGreen, C.peachCream];
defs.forEach((def, i) => {
const row = Math.floor(i/2);
const col = i % 2;
const cx = 0.3 + col * 4.9;
const cy = 0.9 + row * 2.3;
s.addShape(pres.ShapeType.roundRect, { x:cx, y:cy, w:4.6, h:2.1, fill:{color:cardColors[i%4]}, line:{color:cardColors[i%4]}, rectRadius:0.1 });
s.addText(def.term, { x:cx+0.15, y:cy+0.1, w:4.3, h:0.35, fontSize:12, bold:true, color:C.charcoal, fontFace:TITLE_FONT });
s.addText(def.desc, { x:cx+0.15, y:cy+0.45, w:4.3, h:1.55, fontSize:10, color:C.charcoal, fontFace:BODY_FONT, wrap:true });
});
return s;
}
// ═══════════════════════════════════════════════════
// SLIDE 2 — Agenda / Overview
// ═══════════════════════════════════════════════════
{
let s = pres.addSlide();
addBg(s, C.paleBlush, C.dustyRose);
addSidebar(s, C.dustyRose);
s.addShape(pres.ShapeType.rect, { x:0.18, y:0, w:9.82, h:0.75, fill:{color:C.dustyRose}, line:{color:C.dustyRose} });
s.addText("Lecture Overview", { x:0.35, y:0.05, w:9.2, h:0.65, fontSize:20, bold:true, color:C.white, fontFace:TITLE_FONT, valign:"middle", margin:0 });
const topics = [
{n:"01", label:"History of Pharmacology", color:C.dustyRose},
{n:"02", label:"Definition & Etymology", color:C.lavender},
{n:"03", label:"Ancient Contributions", color:C.mintGreen},
{n:"04", label:"Islamic Golden Age", color:C.peachCream},
{n:"05", label:"Modern Pharmacology", color:C.dustyRose},
{n:"06", label:"Pharmacokinetics (PK)", color:C.lavender},
{n:"07", label:"Pharmacodynamics (PD)", color:C.mintGreen},
{n:"08", label:"Biotech Revolution", color:C.peachCream},
{n:"09", label:"Drug Classification & Sources", color:C.dustyRose},
{n:"10", label:"Future of Pharmacology", color:C.lavender},
];
topics.forEach((t, i) => {
const col = i % 2;
const row = Math.floor(i/2);
const x = 0.5 + col * 4.8;
const y = 0.9 + row * 0.88;
s.addShape(pres.ShapeType.roundRect, { x, y, w:4.5, h:0.75, fill:{color:t.color}, line:{color:t.color}, rectRadius:0.1 });
s.addShape(pres.ShapeType.ellipse, { x:x+0.1, y:y+0.15, w:0.45, h:0.45, fill:{color:C.white}, line:{color:C.white} });
s.addText(t.n, { x:x+0.1, y:y+0.15, w:0.45, h:0.45, fontSize:9, bold:true, color:t.color, fontFace:BODY_FONT, align:"center", valign:"middle", margin:0 });
s.addText(t.label, { x:x+0.65, y:y+0.15, w:3.75, h:0.45, fontSize:11, bold:false, color:C.charcoal, fontFace:BODY_FONT, valign:"middle", margin:0 });
});
}
// ═══════════════════════════════════════════════════
// SLIDE 3 — Section Divider: History
// ═══════════════════════════════════════════════════
sectionSlide("01", "History of Pharmacology", "From ancient remedies to modern science", C.dustyRose);
// ═══════════════════════════════════════════════════
// SLIDE 4 — History Introduction
// ═══════════════════════════════════════════════════
contentSlide(
"History of Pharmacology — Overview",
[
"Knowledge of drugs and their use in disease is as old as the history of mankind",
"Transition from traditional herbal remedies and empirical treatments to scientific and experimental drug therapy",
"Chemistry, physiology, microbiology, and medicine contributed to its evolution",
"19th century: pharmacology emerged as an independent scientific discipline",
"Key pioneers: Rudolf Buchheim and Oswald Schmiedeberg (experimental research)",
"Discoveries of antibiotics, hormones, vaccines, and synthetic drugs revolutionised treatment",
"Today: biotechnology, molecular biology, and personalized medicine drive the field forward",
],
C.dustyRose
);
// ═══════════════════════════════════════════════════
// SLIDE 5 — Timeline: Ancient to Medieval
// ═══════════════════════════════════════════════════
timelineSlide(
"Timeline: Ancient to Early Modern",
[
{ year: "1550 BCE", text: "Ebers Papyrus (Egypt)" },
{ year: "~500 BCE", text: "Charaka Samhita (India)" },
{ year: "~200 BCE", text: "Huangdi Neijing (China)" },
{ year: "60–90 CE", text: "De Materia Medica (Dioscorides)" },
{ year: "980–1037", text: "Ibn Sina — Canon of Medicine" },
{ year: "1820", text: "First US Pharmacopeia" },
],
C.peachCream
);
// ═══════════════════════════════════════════════════
// SLIDE 6 — Ancient Egypt: Ebers Papyrus
// ═══════════════════════════════════════════════════
contentSlide(
"Ancient Egypt — Ebers Papyrus (1550 BCE)",
[
"One of the oldest and most important medical documents from ancient Egypt",
"Written around 1550 BCE, containing detailed information about diseases, herbal remedies, and surgical practices",
"Also described magical treatments — reflecting the early integration of medicine and spirituality",
"Documented over 800 medical prescriptions and formulas",
"Represents the earliest known evidence of organised pharmacological knowledge",
"Foundation for Egyptian medicine and early pharmaceutical practice",
],
C.peachCream
);
// ═══════════════════════════════════════════════════
// SLIDE 7 — Ayurvedic Pharmacology
// ═══════════════════════════════════════════════════
twoColSlide(
"Ayurvedic Pharmacology — Ancient India",
[
"Originated in ancient India as part of traditional medicine",
"Used herbs, minerals, animal products, and plant extracts for prevention and treatment",
"Based on balancing the three doshas: Vata, Pitta, and Kapha",
"Charaka Samhita: detailed descriptions of diseases, medicinal plants, and pharmacological principles",
],
[
"Rasa Shastra: specialized branch focusing on metals, minerals, and mercury",
"Introduced pharmaceutical techniques: purification, calcination, distillation",
"Considered a foundational text in the history of pharmacology",
"Laid groundwork for early pharmaceutical chemistry in India",
],
C.mintGreen
);
// ═══════════════════════════════════════════════════
// SLIDE 8 — Traditional Chinese Medicine
// ═══════════════════════════════════════════════════
contentSlide(
"Traditional Chinese Medicine",
[
"Huangdi Neijing (The Yellow Emperor's Inner Canon) — ~2nd century BCE",
"Introduced concepts of Qi (vital energy), Yin and Yang balance, and the Five Elements",
"Described herbal treatments for common diseases",
"Bencao Gangmu (Compendium of Materia Medica) by Li Shizhen (1596 CE): documented 1,892 drugs",
"Systematic classification of drugs by their properties, uses, and preparations",
"Major influence on Chinese, Korean, and Japanese pharmacological traditions",
],
C.mintGreen
);
// ═══════════════════════════════════════════════════
// SLIDE 9 — Greek & Roman Contributions
// ═══════════════════════════════════════════════════
contentSlide(
"Greek & Roman Contributions",
[
"Hippocrates (460–370 BCE): 'Father of Medicine' — promoted observation and rational treatment",
"Dioscorides (1st century CE): De Materia Medica — described ~600 plants and 1,000 medicines; the basis of European pharmacopeias for 1,500 years",
"Galen (129–216 CE): developed systematic pharmacological theory; introduced polypharmacy and the Galenic preparations still referenced today",
"Established concepts of humoral theory — four humors (blood, phlegm, yellow bile, black bile)",
"Galen's works dominated medical practice in Europe until the Renaissance",
],
C.lavender
);
// ═══════════════════════════════════════════════════
// SLIDE 10 — Islamic Golden Age
// ═══════════════════════════════════════════════════
twoColSlide(
"Islamic Golden Age (8th–13th Century)",
[
"Arab scholars translated, preserved, and significantly advanced Greek medical knowledge",
"Al-Kindi (9th century): introduced quantitative pharmacology in De Gradibus",
"Al-Biruni: authored Kitab al-Saydana — a comprehensive pharmaceutical encyclopaedia",
],
[
"Ibn Sina (Avicenna, 980–1037 CE): The Canon of Medicine — described >760 drugs",
"Introduced systematic drug testing on humans and animals",
"Standard medical textbook in Europe and Middle East for centuries",
"Established ethical principles of drug testing",
],
C.lavender
);
// ═══════════════════════════════════════════════════
// SLIDE 11 — Section Divider: Definitions
// ═══════════════════════════════════════════════════
sectionSlide("02", "Definition & Scope", "What is pharmacology and what does it encompass?", C.lavender);
// ═══════════════════════════════════════════════════
// SLIDE 12 — Definition of Pharmacology
// ═══════════════════════════════════════════════════
{
let s = pres.addSlide();
addBg(s, C.paleBlush, C.lavender);
addSidebar(s, C.lavender);
addDots(s);
s.addShape(pres.ShapeType.rect, { x:0.18, y:0, w:9.82, h:0.75, fill:{color:C.lavender}, line:{color:C.lavender} });
s.addText("Defining Pharmacology", { x:0.35, y:0.05, w:9.2, h:0.65, fontSize:20, bold:true, color:C.white, fontFace:TITLE_FONT, valign:"middle", margin:0 });
// Etymology box
s.addShape(pres.ShapeType.roundRect, { x:0.3, y:0.85, w:9.4, h:1.1, fill:{color:C.dustyRose}, line:{color:C.dustyRose}, rectRadius:0.12 });
s.addText([
{text:"Etymology: ", options:{bold:true, fontSize:13, color:C.white}},
{text:"From Greek ", options:{fontSize:13, color:C.white}},
{text:"\"pharmakon\" ", options:{bold:true, italic:true, fontSize:13, color:C.white}},
{text:"(drug or poison) + ", options:{fontSize:13, color:C.white}},
{text:"\"logos\" ", options:{bold:true, italic:true, fontSize:13, color:C.white}},
{text:"(study or knowledge)", options:{fontSize:13, color:C.white}},
], { x:0.5, y:0.95, w:9.0, h:0.5, valign:"middle" });
s.addText("\"The study of substances that interact with living systems through chemical processes — specifically through binding to regulatory molecules and activating or inhibiting normal body processes\"", {
x:0.5, y:1.5, w:9.0, h:0.55, fontSize:11, italic:true, color:C.white, fontFace:BODY_FONT, align:"center"
});
// Two sub-definition boxes
s.addShape(pres.ShapeType.roundRect, { x:0.3, y:2.1, w:4.5, h:2.8, fill:{color:C.mintGreen}, line:{color:C.mintGreen}, rectRadius:0.12 });
s.addText("Pharmacokinetics (PK)", { x:0.45, y:2.15, w:4.2, h:0.45, fontSize:13, bold:true, color:C.charcoal, fontFace:TITLE_FONT });
s.addText("What the body does to the drug\n\n• Absorption\n• Distribution\n• Metabolism\n• Excretion (ADME)", { x:0.45, y:2.6, w:4.2, h:2.1, fontSize:11, color:C.charcoal, fontFace:BODY_FONT, wrap:true });
s.addShape(pres.ShapeType.roundRect, { x:5.2, y:2.1, w:4.5, h:2.8, fill:{color:C.peachCream}, line:{color:C.peachCream}, rectRadius:0.12 });
s.addText("Pharmacodynamics (PD)", { x:5.35, y:2.15, w:4.2, h:0.45, fontSize:13, bold:true, color:C.charcoal, fontFace:TITLE_FONT });
s.addText("What the drug does to the body\n\n• Biochemical effects\n• Physiological effects\n• Mechanisms of action\n• Therapeutic & adverse effects", { x:5.35, y:2.6, w:4.2, h:2.1, fontSize:11, color:C.charcoal, fontFace:BODY_FONT, wrap:true });
}
// ═══════════════════════════════════════════════════
// SLIDE 13 — Pharmacokinetics Deep Dive
// ═══════════════════════════════════════════════════
imgTextSlide(
"Pharmacokinetics — ADME Principles",
[
"Absorption: passage of drug from site of administration into circulation (affected by route, bioavailability, first-pass effect)",
"Distribution: movement of drug from blood to body tissues (Vd, protein binding, BBB)",
"Metabolism (Biotransformation): enzymatic conversion of drugs — primarily hepatic CYP450 system (Phase I & II)",
"Excretion: removal from body — primarily renal; also biliary, pulmonary, and fecal",
"Half-life (t½): time to reduce plasma concentration by 50%",
"Steady state: achieved after ~5 half-lives with repeated dosing",
],
imgTamox,
C.mintGreen,
false
);
// ═══════════════════════════════════════════════════
// SLIDE 14 — Pharmacodynamics Deep Dive
// ═══════════════════════════════════════════════════
imgTextSlide(
"Pharmacodynamics — Drug Action at Receptors",
[
"Drugs produce effects by binding to specific receptor proteins on cell surfaces or intracellularly",
"Agonist: binds receptor and activates it → produces response",
"Antagonist: binds receptor without activating it → blocks agonist",
"Partial agonist: binds and activates but produces submaximal response",
"Dose-response relationship: EC₅₀, Emax, potency vs. efficacy",
"Therapeutic index (TI): LD₅₀ / ED₅₀ — measure of drug safety",
"Signal transduction: GPCR, ion channels, enzyme-linked receptors, nuclear receptors",
],
imgGABA,
C.lavender,
true
);
// ═══════════════════════════════════════════════════
// SLIDE 15 — Section Divider: Modern Pharmacology
// ═══════════════════════════════════════════════════
sectionSlide("03", "Modern Pharmacology", "The birth of scientific drug development", C.mintGreen);
// ═══════════════════════════════════════════════════
// SLIDE 16 — Birth of Modern Pharmacology
// ═══════════════════════════════════════════════════
contentSlide(
"Birth of Modern Pharmacology (19th Century)",
[
"Rudolf Buchheim (1820–1879): established the first pharmacological laboratory in Dorpat, 1847 — father of experimental pharmacology",
"Oswald Schmiedeberg (1838–1921): Buchheim's student; introduced systematic drug testing and trained >120 pharmacologists worldwide",
"Isolation of pure active compounds: morphine (1804), quinine (1820), caffeine (1819), cocaine (1855)",
"Development of organic chemistry enabled synthesis of new drug molecules",
"Claude Bernard: demonstrated site-specific drug actions using curare",
"Transition from 'polypharmacy' to single, well-characterised active substances",
],
C.mintGreen
);
// ═══════════════════════════════════════════════════
// SLIDE 17 — Antibiotic Era
// ═══════════════════════════════════════════════════
imgTextSlide(
"The Antibiotic Era",
[
"Alexander Fleming (1928): accidentally discovered penicillin from Penicillium notatum mold",
"Fleming's observation: Staphylococcus colonies destroyed near the mold",
"Florey & Chain (1940s): isolated, purified, and mass-produced penicillin — Nobel Prize 1945",
"Paul Ehrlich: introduced Salvarsan (arsphenamine) in 1909 — first modern chemotherapeutic agent for syphilis",
"Sulfonamides (1930s, Gerhard Domagk): first broad-spectrum antibacterials",
"Streptomycin (1943, Waksman): first antibiotic effective against tuberculosis",
"The antibiotic era transformed infectious diseases from major killers to manageable conditions",
],
imgAgar,
C.mintGreen,
false
);
// ═══════════════════════════════════════════════════
// SLIDE 18 — Paul Ehrlich & Receptor Theory
// ═══════════════════════════════════════════════════
contentSlide(
"Paul Ehrlich & The Receptor Concept",
[
"Paul Ehrlich (1854–1915): coined the concept of 'magic bullet' — a chemical that selectively kills pathogens without harming the host",
"Introduced the idea that drugs bind to specific cellular receptors: \"corpora non agunt nisi fixata\" (a substance cannot act unless it is bound)",
"John Newport Langley: proposed 'receptive substances' in cells — introduced the early receptor concept",
"A.J. Clark: developed the Occupancy Theory — drug effect proportional to receptors occupied",
"Raymond Ahlquist (1948): classified adrenergic receptors into alpha (α) and beta (β) subtypes",
"James Black: developed beta-blockers and H₂ antagonists — 1988 Nobel Prize in Medicine",
],
C.dustyRose
);
// ═══════════════════════════════════════════════════
// SLIDE 19 — Evolution of Receptor Theory
// ═══════════════════════════════════════════════════
imgTextSlide(
"Evolution of Receptor Theory",
[
"Ehrlich (late 19th c.): selective binding concept — foundation of receptor pharmacology",
"Langley (1905): 'receptive substances' on cells produce physiological responses",
"Clark (1926): occupancy theory — effect intensity correlates with receptor occupation",
"Ahlquist (1948): classification of adrenergic receptors (α and β)",
"Black (1960s): receptor-specific drug development — beta-blockers (propranolol) and H₂ blockers (cimetidine)",
"Modern era: X-ray crystallography and cryo-EM allow visualisation of receptor-drug complexes",
"Receptor theory is the foundation of modern pharmacodynamics and rational drug design",
],
imgSPRM,
C.dustyRose,
true
);
// ═══════════════════════════════════════════════════
// SLIDE 20 — Pharmacopeias & Drug Standards
// ═══════════════════════════════════════════════════
contentSlide(
"Pharmacopeias & Drug Standardisation",
[
"Pharmacopeia: official compendium of drugs, their preparations, and quality standards",
"Florence Pharmacopeia (Ricettario Fiorentino, 1498): first official pharmacopeia",
"London Pharmacopeia (1618): first national pharmacopeia",
"United States Pharmacopeia (USP, 1820): established drug standards in the US",
"British Pharmacopoeia (BP) and European Pharmacopoeia (EP): current international standards",
"WHO Essential Medicines List: guide to prioritised medicines for global health needs",
"Standardisation ensures drug safety, efficacy, purity, and quality worldwide",
],
C.peachCream
);
// ═══════════════════════════════════════════════════
// SLIDE 21 — Section Divider: Branches & Classification
// ═══════════════════════════════════════════════════
sectionSlide("04", "Branches & Drug Classification", "Scope and organisation of pharmacological knowledge", C.peachCream);
// ═══════════════════════════════════════════════════
// SLIDE 22 — Branches of Pharmacology
// ═══════════════════════════════════════════════════
definitionSlide(
"Major Branches of Pharmacology",
[
{ term: "Pharmacokinetics", desc: "Study of drug movement through the body — absorption, distribution, metabolism, excretion (ADME)" },
{ term: "Pharmacodynamics", desc: "Study of drug mechanisms of action, receptor interactions, dose-response relationships" },
{ term: "Clinical Pharmacology", desc: "Application of pharmacological principles to patient care, therapeutic drug monitoring, and individualised dosing" },
{ term: "Toxicology", desc: "Study of adverse effects of drugs and chemical agents; dose-response in harmful contexts; antidote development" },
],
C.peachCream
);
// ═══════════════════════════════════════════════════
// SLIDE 23 — More Branches
// ═══════════════════════════════════════════════════
definitionSlide(
"Specialised Branches of Pharmacology",
[
{ term: "Neuropharmacology", desc: "Drug effects on the nervous system; targets for CNS disorders including depression, epilepsy, and Parkinson's" },
{ term: "Chemotherapy & Pharmacogenomics", desc: "Drug treatment of cancer and infections; genetic basis of variable drug responses — personalised medicine" },
{ term: "Immunopharmacology", desc: "Drugs modulating the immune response — immunosuppressants, biologics, vaccines" },
{ term: "Molecular Pharmacology", desc: "Drug-receptor interactions at the molecular and genetic level; drug target discovery and validation" },
],
C.lavender
);
// ═══════════════════════════════════════════════════
// SLIDE 24 — Drug Sources & Classification
// ═══════════════════════════════════════════════════
twoColSlide(
"Sources & Classification of Drugs",
[
"Natural sources:",
" · Plant: morphine (opium poppy), digitalis, aspirin (willow bark)",
" · Animal: insulin (porcine/bovine), heparin",
" · Microbial: penicillin, streptomycin, cyclosporin",
" · Mineral: iron, calcium, lithium",
],
[
"Synthetic & semi-synthetic:",
" · Fully synthetic: sulfonamides, benzodiazepines",
" · Semi-synthetic: ampicillin, doxycycline",
"Biologic/Biotechnology-derived:",
" · Recombinant proteins: insulin, EPO, G-CSF",
" · Monoclonal antibodies: trastuzumab, adalimumab",
" · Gene therapies: zolgensma",
],
C.mintGreen
);
// ═══════════════════════════════════════════════════
// SLIDE 25 — Section Divider: Biotech Revolution
// ═══════════════════════════════════════════════════
sectionSlide("05", "The Biotech Revolution", "From genetic engineering to precision medicine", C.deepRose);
// ═══════════════════════════════════════════════════
// SLIDE 26 — Biotech Revolution
// ═══════════════════════════════════════════════════
imgTextSlide(
"The Biotechnology Revolution",
[
"Recombinant DNA technology (Boyer & Cohen, 1973): enabled production of therapeutic proteins",
"First recombinant drug: human insulin (Humulin, 1982) — milestone in genetic engineering",
"Monoclonal antibodies (Köhler & Milstein, 1975, Nobel 1984): highly targeted therapies",
"Human Genome Project (completed 2003): mapped ~25,000 human genes — foundation for genomic medicine",
"Biologics transformed treatment of cancer, autoimmune disease, and diabetes",
"Gene therapy and CAR-T cell therapy — new frontiers in oncology",
"Shifted drug development from trial-and-error to rational molecular targeting",
],
imgADC,
C.deepRose,
false
);
// ═══════════════════════════════════════════════════
// SLIDE 27 — Pharmacogenomics & Precision Medicine
// ═══════════════════════════════════════════════════
contentSlide(
"Pharmacogenomics & Personalised Medicine",
[
"Pharmacogenomics: study of how genetic variation influences individual drug responses",
"CYP450 polymorphisms (CYP2D6, CYP2C19): alter drug metabolism — poor vs. ultra-rapid metabolisers",
"HLA-B*5701 testing before abacavir: prevents severe hypersensitivity reactions",
"DPYD variants and fluorouracil toxicity: genetic testing prevents life-threatening toxicity",
"Warfarin dosing: influenced by CYP2C9 and VKORC1 genotype",
"Oncology: EGFR, KRAS, BRAF, HER2 mutations guide targeted therapy selection",
"Goal: right drug, right dose, right patient — minimising adverse effects and maximising efficacy",
],
C.deepRose
);
// ═══════════════════════════════════════════════════
// SLIDE 28 — Drug Development Process
// ═══════════════════════════════════════════════════
{
let s = pres.addSlide();
addBg(s, C.offWhite, C.dustyRose);
addSidebar(s, C.dustyRose);
addDots(s);
s.addShape(pres.ShapeType.rect, { x:0.18, y:0, w:9.82, h:0.75, fill:{color:C.dustyRose}, line:{color:C.dustyRose} });
s.addText("Drug Development Process", { x:0.35, y:0.05, w:9.2, h:0.65, fontSize:20, bold:true, color:C.white, fontFace:TITLE_FONT, valign:"middle", margin:0 });
const stages = [
{label:"Discovery\n& Target\nIdentification", color:C.lavender},
{label:"Preclinical\nStudies\n(In vitro/In vivo)", color:C.mintGreen},
{label:"Phase I\nTrials\n(Safety/PK)", color:C.peachCream},
{label:"Phase II\nTrials\n(Efficacy)", color:C.dustyRose},
{label:"Phase III\nTrials\n(Comparison)", color:C.lavender},
{label:"FDA/EMA\nApproval &\nPost-Marketing", color:C.mintGreen},
];
stages.forEach((st, i) => {
const x = 0.35 + i * 1.55;
s.addShape(pres.ShapeType.roundRect, { x, y:0.9, w:1.4, h:3.5, fill:{color:st.color}, line:{color:st.color}, rectRadius:0.1 });
s.addText(st.label, { x, y:0.9, w:1.4, h:3.5, fontSize:10, color:C.charcoal, bold:false, fontFace:BODY_FONT, align:"center", valign:"middle", wrap:true });
if (i < stages.length - 1) {
s.addText("→", { x:x+1.42, y:2.3, w:0.15, h:0.4, fontSize:14, bold:true, color:C.roseGold, fontFace:BODY_FONT, align:"center" });
}
});
s.addText("Average drug development: 10–15 years | Cost: ~$1–2.5 billion | Success rate from Phase I: ~10%", {
x:0.3, y:4.5, w:9.4, h:0.4,
fontSize:9.5, italic:true, color:C.charcoal, fontFace:BODY_FONT, align:"center"
});
}
// ═══════════════════════════════════════════════════
// SLIDE 29 — Future of Pharmacology
// ═══════════════════════════════════════════════════
contentSlide(
"The Future of Pharmacology",
[
"Artificial intelligence & machine learning: accelerating drug discovery and de novo molecule design",
"CRISPR-based gene therapies: correcting genetic errors at source — curative potential for monogenic diseases",
"mRNA therapeutics: beyond COVID-19 vaccines — cancer immunotherapy, rare diseases",
"Nanomedicine: targeted nanoparticle drug delivery to reduce systemic toxicity",
"Digital biomarkers & remote monitoring: real-world pharmacovigilance",
"Antimicrobial resistance (AMR): urgent need for novel antibiotics and alternative strategies (phage therapy, bacteriocins)",
"Personalised oncology: liquid biopsies and ctDNA guiding real-time treatment adjustments",
],
C.lavender
);
// ═══════════════════════════════════════════════════
// SLIDE 30 — Summary & Key Takeaways
// ═══════════════════════════════════════════════════
{
let s = pres.addSlide();
s.addShape(pres.ShapeType.rect, { x:0, y:0, w:10, h:5.625, fill:{color:C.paleBlush}, line:{color:C.paleBlush} });
s.addShape(pres.ShapeType.ellipse, { x:-0.5, y:-0.5, w:3, h:3, fill:{color:C.dustyRose}, line:{color:C.dustyRose}, transparency:70 });
s.addShape(pres.ShapeType.ellipse, { x:8, y:3.5, w:2.5, h:2.5, fill:{color:C.lavender}, line:{color:C.lavender}, transparency:70 });
addSidebar(s, C.roseGold);
s.addShape(pres.ShapeType.rect, { x:0.18, y:0, w:9.82, h:0.75, fill:{color:C.roseGold}, line:{color:C.roseGold} });
s.addText("Key Takeaways", { x:0.35, y:0.05, w:9.2, h:0.65, fontSize:20, bold:true, color:C.white, fontFace:TITLE_FONT, valign:"middle", margin:0 });
const kts = [
"Pharmacology has evolved from empirical herbalism to a precise molecular science over thousands of years",
"Core pillars: Pharmacokinetics (what the body does to the drug) & Pharmacodynamics (what the drug does to the body)",
"Receptor theory, pioneered by Ehrlich, Langley, and Clark, explains how drugs produce their effects",
"Milestones: antibiotics, hormone isolation, receptor classification, biotechnology, genomics",
"Drug development is a rigorous, expensive multi-phase process governed by regulatory agencies",
"The future belongs to precision medicine, AI-assisted drug design, and gene-based therapies",
];
kts.forEach((kt, i) => {
const y = 0.95 + i * 0.72;
s.addShape(pres.ShapeType.ellipse, { x:0.35, y:y+0.08, w:0.25, h:0.25, fill:{color:C.dustyRose}, line:{color:C.dustyRose} });
s.addText(`${i+1}`, { x:0.35, y:y+0.08, w:0.25, h:0.25, fontSize:8, bold:true, color:C.white, fontFace:BODY_FONT, align:"center", valign:"middle", margin:0 });
s.addText(kt, { x:0.72, y, w:8.8, h:0.65, fontSize:11, color:C.charcoal, fontFace:BODY_FONT, valign:"middle", wrap:true });
});
s.addText("\"Pharmacology is not just the study of drugs — it is the science of improving life\"", {
x:0.3, y:5.2, w:9.4, h:0.35,
fontSize:9, italic:true, color:C.deepRose, fontFace:TITLE_FONT, align:"center"
});
}
// ─── WRITE FILE ───
const outPath = "/home/daytona/workspace/pharmacology-ppt/Introduction_to_Pharmacology.pptx";
pres.writeFile({ fileName: outPath }).then(() => {
console.log("DONE:", outPath);
}).catch(err => {
console.error("ERROR:", err);
});
cd /home/daytona/workspace/pharmacology-ppt && node create_pptx.js 2>&1
ls -lh /home/daytona/workspace/pharmacology-ppt/Introduction_to_Pharmacology.pptx
Start again
No, just start where you left off. I have recharged credits
ls -lh /home/daytona/workspace/pharmacology-ppt/Introduction_to_Pharmacology.pptx
Introduction to Pharmacology
Presentation · PPTX
| Slides | Content |
|---|---|
| 1 | Title slide — with Klimt's Medicine artwork, decorative pastel circles, and the course quote |
| 2 | Lecture overview — 10-topic numbered agenda with colour-coded pills |
| 3, 11, 15, 21, 25 | Section divider slides — bold accent backgrounds for each major section |
| 4–5 | History overview + visual timeline (1550 BCE → 1820) |
| 6–10 | Ancient Egypt, Ayurveda, TCM, Greek/Roman, Islamic Golden Age |
| 12 | Definition slide — etymology box + PK vs PD comparison cards |
| 13–14 | PK (ADME) and PD (receptor theory) with embedded clinical diagrams |
| 16–19 | Modern pharmacology — Buchheim, antibiotic era, Ehrlich, receptor evolution |
| 20 | Pharmacopeias & drug standardisation |
| 22–24 | Branches of pharmacology, drug sources & classification |
| 26–27 | Biotech revolution + pharmacogenomics/precision medicine |
| 28 | Drug development pipeline — 6-column visual flowchart |
| 29–30 | Future of pharmacology + key takeaways summary |