Make me a detailed simple black and white ppt on topic history taking in general surgery based on s das practical book of slide 25

Reading File
Reading File
Reading File
Finding Sources
Finding Sources
Reading File
Reading File
Searching Content

"page:25" in /textbooks/9788190568104

Searching Content

"page:2" in /textbooks/9788190568104

Running Command

ls /home/daytona/workspace/ 2>/dev/null && echo "---" && node --version

Running Command

mkdir -p /home/daytona/workspace/history-taking-ppt

Writing File

~/history-taking-ppt/create_ppt.js

const pptxgen = require("pptxgenjs");

const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "History Taking in General Surgery";
pres.author = "S Das - A Manual on Clinical Surgery";

// ─── THEME COLORS (Black & White) ───────────────────────────────────────────
const BLACK    = "000000";
const WHITE    = "FFFFFF";
const DARKGRAY = "1A1A1A";
const MIDGRAY  = "444444";
const LIGHTGRAY = "BBBBBB";
const OFFWHITE = "F5F5F5";
const ACCENTGRAY = "777777";

// Helper: add slide with black background
function blackSlide() {
  let s = pres.addSlide();
  s.background = { color: BLACK };
  return s;
}
// Helper: add slide with white background
function whiteSlide() {
  let s = pres.addSlide();
  s.background = { color: WHITE };
  return s;
}
// Section divider (black bg)
function sectionDivider(title, sub) {
  let s = blackSlide();
  // left accent bar
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.25, h: 5.625, fill: { color: WHITE } });
  s.addText(title, { x: 0.6, y: 1.8, w: 9.0, h: 1.2, fontSize: 40, bold: true, color: WHITE, fontFace: "Arial" });
  if (sub) {
    s.addText(sub, { x: 0.6, y: 3.1, w: 9.0, h: 0.7, fontSize: 20, color: LIGHTGRAY, fontFace: "Arial" });
  }
  // bottom line
  s.addShape(pres.ShapeType.rect, { x: 0.6, y: 4.9, w: 5.5, h: 0.05, fill: { color: LIGHTGRAY } });
  return s;
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 1 — TITLE
// ═══════════════════════════════════════════════════════════════
{
  let s = blackSlide();
  // Large white rectangle on right half for contrast
  s.addShape(pres.ShapeType.rect, { x: 5.8, y: 0, w: 4.2, h: 5.625, fill: { color: WHITE } });
  // Left side content
  s.addText("HISTORY TAKING", { x: 0.5, y: 0.7, w: 5.0, h: 1.4, fontSize: 36, bold: true, color: WHITE, fontFace: "Arial", charSpacing: 3 });
  s.addText("IN GENERAL SURGERY", { x: 0.5, y: 2.1, w: 5.0, h: 0.8, fontSize: 20, color: LIGHTGRAY, fontFace: "Arial", charSpacing: 2 });
  s.addShape(pres.ShapeType.rect, { x: 0.5, y: 3.1, w: 3.5, h: 0.05, fill: { color: WHITE } });
  s.addText("Based on S Das\nA Manual on Clinical Surgery\n13th Edition", {
    x: 0.5, y: 3.3, w: 5.0, h: 1.0, fontSize: 13, color: LIGHTGRAY, fontFace: "Arial"
  });
  // Right side bold label
  s.addText("CLINICAL\nSURGERY\nFOUNDATIONS", { x: 6.0, y: 1.2, w: 3.6, h: 2.5, fontSize: 26, bold: true, color: BLACK, fontFace: "Arial", align: "center", valign: "middle" });
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 2 — OVERVIEW: GENERAL SCHEME
// ═══════════════════════════════════════════════════════════════
{
  let s = whiteSlide();
  // Top header bar
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 1.0, fill: { color: BLACK } });
  s.addText("THE GENERAL SCHEME OF PATIENT MANAGEMENT", { x: 0.3, y: 0.1, w: 9.4, h: 0.8, fontSize: 18, bold: true, color: WHITE, fontFace: "Arial", valign: "middle" });

  const steps = [
    { num: "01", label: "History Taking",         sub: "Particulars, Complaints, Past History" },
    { num: "02", label: "Physical Examination",   sub: "General + Systemic" },
    { num: "03", label: "Special Investigations", sub: "Labs, Imaging, Biopsy" },
    { num: "04", label: "Clinical Diagnosis",     sub: "Provisional + Differential" },
    { num: "05", label: "Treatment",              sub: "Medical & Surgical" },
    { num: "06", label: "Progress & Follow-Up",   sub: "Post-op Monitoring" },
  ];
  const cols = 3, rows = 2;
  const bw = 2.9, bh = 1.65, startX = 0.25, startY = 1.15, gapX = 0.25, gapY = 0.25;
  steps.forEach((st, i) => {
    const col = i % cols;
    const row = Math.floor(i / cols);
    const x = startX + col * (bw + gapX);
    const y = startY + row * (bh + gapY);
    // box
    const fill = (i === 0) ? BLACK : OFFWHITE;
    const textColor = (i === 0) ? WHITE : BLACK;
    const subColor = (i === 0) ? LIGHTGRAY : MIDGRAY;
    s.addShape(pres.ShapeType.rect, { x, y, w: bw, h: bh, fill: { color: fill }, line: { color: LIGHTGRAY, width: 1 } });
    s.addText(st.num, { x: x + 0.15, y: y + 0.1, w: 0.6, h: 0.4, fontSize: 11, color: subColor, fontFace: "Arial", bold: true });
    s.addText(st.label, { x: x + 0.15, y: y + 0.45, w: bw - 0.3, h: 0.6, fontSize: 15, bold: true, color: textColor, fontFace: "Arial" });
    s.addText(st.sub, { x: x + 0.15, y: y + 1.05, w: bw - 0.3, h: 0.45, fontSize: 11, color: subColor, fontFace: "Arial" });
  });

  s.addText("Source: S Das - A Manual on Clinical Surgery, 13th Ed.", {
    x: 0.3, y: 5.35, w: 9.4, h: 0.2, fontSize: 9, color: LIGHTGRAY, fontFace: "Arial", italic: true
  });
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 3 — SECTION DIVIDER: HISTORY TAKING
// ═══════════════════════════════════════════════════════════════
sectionDivider("HISTORY TAKING", "The art of patient-centred clinical interrogation");

// ═══════════════════════════════════════════════════════════════
// SLIDE 4 — PARTICULARS OF THE PATIENT
// ═══════════════════════════════════════════════════════════════
{
  let s = whiteSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 1.0, fill: { color: BLACK } });
  s.addText("01  PARTICULARS OF THE PATIENT", { x: 0.3, y: 0.1, w: 9.4, h: 0.8, fontSize: 18, bold: true, color: WHITE, fontFace: "Arial", valign: "middle" });
  s.addText('"Know the patient first before interrogating about complaints"', {
    x: 0.4, y: 1.05, w: 9.2, h: 0.45, fontSize: 13, italic: true, color: MIDGRAY, fontFace: "Arial"
  });

  const items = [
    { label: "Name",      detail: "Builds rapport; address patient by name (e.g. 'Mr. Sirkar, how long...?') — psychological benefit pre- and post-op" },
    { label: "Age",       detail: "Congenital anomalies → birth; Wilms' tumour → infants; Sarcoma → teens; Carcinoma → >40 yrs; BPH/OA → elderly" },
    { label: "Sex",       detail: "Thyroid, movable kidney, cystitis → F; Ca stomach/lung/kidney → M; Haemophilia → M (carried by F)" },
    { label: "Religion",  detail: "Ca penis absent in Jews/Muslims (circumcision); Intussusception after Ramadan fast in Muslims" },
    { label: "Occupation",detail: "SCC bladder → aniline dye workers; Pneumoconiosis → miners; Varicose veins → prolonged standing" },
    { label: "Address",   detail: "Geographic/endemic diseases — filariasis, guinea worm; helps contact tracing" },
  ];

  items.forEach((item, i) => {
    const col = i % 2;
    const row = Math.floor(i / 2);
    const x = col === 0 ? 0.35 : 5.2;
    const y = 1.65 + row * 1.15;
    s.addShape(pres.ShapeType.rect, { x, y, w: 0.12, h: 0.7, fill: { color: BLACK } });
    s.addText(item.label, { x: x + 0.2, y: y, w: 4.3, h: 0.35, fontSize: 13, bold: true, color: BLACK, fontFace: "Arial" });
    s.addText(item.detail, { x: x + 0.2, y: y + 0.3, w: 4.3, h: 0.7, fontSize: 10, color: MIDGRAY, fontFace: "Arial" });
  });

  s.addText("S Das - A Manual on Clinical Surgery, 13th Ed., pp. 5-7", {
    x: 0.3, y: 5.35, w: 9.4, h: 0.2, fontSize: 9, color: LIGHTGRAY, fontFace: "Arial", italic: true
  });
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 5 — CHIEF COMPLAINTS
// ═══════════════════════════════════════════════════════════════
{
  let s = blackSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 1.0, fill: { color: WHITE } });
  s.addText("02  CHIEF COMPLAINTS", { x: 0.3, y: 0.1, w: 9.4, h: 0.8, fontSize: 18, bold: true, color: BLACK, fontFace: "Arial", valign: "middle" });

  s.addText([
    { text: "Record in the patient's own words", options: { bold: true, color: WHITE } },
    { text: " — do NOT use medical jargon in the complaint list", options: { color: LIGHTGRAY } },
    { text: "", options: { breakLine: true } },
    { text: "List each symptom separately with ", options: { color: LIGHTGRAY } },
    { text: "duration", options: { bold: true, color: WHITE } },
    { text: " (e.g. 'Pain in abdomen × 2 months; vomiting × 1 week')", options: { color: LIGHTGRAY } },
    { text: "", options: { breakLine: true } },
    { text: "Arrange in ", options: { color: LIGHTGRAY } },
    { text: "chronological order", options: { bold: true, color: WHITE } },
    { text: " — first symptom to most recent", options: { color: LIGHTGRAY } },
  ], { x: 0.5, y: 1.15, w: 9.0, h: 1.4, fontSize: 13, fontFace: "Arial" });

  s.addShape(pres.ShapeType.rect, { x: 0.5, y: 2.7, w: 9.0, h: 0.03, fill: { color: ACCENTGRAY } });

  s.addText("HISTORY OF PRESENTING ILLNESS — Analyse each complaint:", {
    x: 0.5, y: 2.85, w: 9.0, h: 0.4, fontSize: 14, bold: true, color: WHITE, fontFace: "Arial"
  });

  const hopi = [
    ["S", "Site & Onset",    "Where exactly? Sudden / gradual?"],
    ["O", "Onset & Duration","When did it start? How long?"],
    ["C", "Character",       "Nature of pain/lump/discharge — dull, sharp, burning"],
    ["R", "Radiation",       "Does it spread? Which direction?"],
    ["A", "Aggravating",     "What makes it worse? Food, movement, posture?"],
    ["R", "Relieving",       "What provides relief? Drugs, rest, position?"],
    ["S", "Severity",        "Score 1–10; how does it affect daily life?"],
  ];
  hopi.forEach((row, i) => {
    const x = 0.5;
    const y = 3.35 + i * 0.28;
    s.addShape(pres.ShapeType.rect, { x, y: y - 0.02, w: 0.28, h: 0.25, fill: { color: WHITE } });
    s.addText(row[0], { x, y: y - 0.02, w: 0.28, h: 0.25, fontSize: 12, bold: true, color: BLACK, fontFace: "Arial", align: "center", valign: "middle" });
    s.addText(`${row[1]}:  `, { x: 0.85, y, w: 2.5, h: 0.22, fontSize: 11, bold: true, color: WHITE, fontFace: "Arial" });
    s.addText(row[2], { x: 3.2, y, w: 6.2, h: 0.22, fontSize: 11, color: LIGHTGRAY, fontFace: "Arial" });
  });

  s.addText("S Das - A Manual on Clinical Surgery, 13th Ed.", {
    x: 0.3, y: 5.38, w: 9.4, h: 0.2, fontSize: 9, color: ACCENTGRAY, fontFace: "Arial", italic: true
  });
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 6 — PAIN (detailed analysis)
// ═══════════════════════════════════════════════════════════════
{
  let s = whiteSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 1.0, fill: { color: BLACK } });
  s.addText("PAIN — Detailed Analysis  (The Most Common Surgical Complaint)", {
    x: 0.3, y: 0.1, w: 9.4, h: 0.8, fontSize: 16, bold: true, color: WHITE, fontFace: "Arial", valign: "middle"
  });

  const painItems = [
    { title: "Site",         body: "Ask patient to point with one finger. Superficial pain — localized; Visceral pain — diffuse, poorly localised" },
    { title: "Onset",        body: "Sudden → perforation, torsion, rupture. Gradual → inflammation, obstruction. Intermittent → colic (biliary, renal, intestinal)" },
    { title: "Character",    body: "Burning → peptic ulcer; Colicky → hollow viscus; Dull aching → solid organ; Throbbing → inflammatory/infective" },
    { title: "Radiation",    body: "Biliary → right shoulder tip; Renal → groin; Aortic aneurysm → back; Appendix → umbilicus then RIF" },
    { title: "Severity",     body: "Use pain scale 0–10; note effect on sleep, work, appetite" },
    { title: "Rel./Aggr.",   body: "Food relation (peptic ulcer); movement (peritonitis); micturition; bending (PUD vs cardiac)" },
    { title: "Assoc. Sx",    body: "N/V, fever, jaundice, change in bowel habits, hematuria, dysuria must all be actively sought" },
    { title: "Referred Pain", body: "Diaphragmatic irritation → shoulder tip (C3,4,5); Cardiac → left arm; Testicular → loin" },
  ];

  const cols = 2;
  const bw = 4.55, bh = 1.02;
  const startX = 0.2, startY = 1.1, gapX = 0.3, gapY = 0.1;
  paintItems.forEach = painItems.forEach;
  painItems.forEach((item, i) => {
    const col = i % cols;
    const row = Math.floor(i / cols);
    const x = startX + col * (bw + gapX);
    const y = startY + row * (bh + gapY);
    s.addShape(pres.ShapeType.rect, { x, y, w: bw, h: bh, fill: { color: OFFWHITE }, line: { color: LIGHTGRAY, width: 0.75 } });
    s.addShape(pres.ShapeType.rect, { x, y, w: 0.1, h: bh, fill: { color: BLACK } });
    s.addText(item.title, { x: x + 0.18, y: y + 0.07, w: bw - 0.3, h: 0.3, fontSize: 12, bold: true, color: BLACK, fontFace: "Arial" });
    s.addText(item.body, { x: x + 0.18, y: y + 0.38, w: bw - 0.3, h: 0.55, fontSize: 10, color: MIDGRAY, fontFace: "Arial" });
  });

  s.addText("S Das - A Manual on Clinical Surgery, 13th Ed., p. 415+", {
    x: 0.3, y: 5.38, w: 9.4, h: 0.2, fontSize: 9, color: LIGHTGRAY, fontFace: "Arial", italic: true
  });
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 7 — PAST HISTORY
// ═══════════════════════════════════════════════════════════════
{
  let s = blackSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 1.0, fill: { color: WHITE } });
  s.addText("03  PAST HISTORY", {
    x: 0.3, y: 0.1, w: 9.4, h: 0.8, fontSize: 18, bold: true, color: BLACK, fontFace: "Arial", valign: "middle"
  });

  const pastItems = [
    { label: "Previous Illnesses",    text: "TB, diabetes, hypertension, jaundice, rheumatic fever, previous attacks of same complaint" },
    { label: "Previous Operations",   text: "Type, site, complications; adhesions post-laparotomy; previous anastomosis or stoma" },
    { label: "Previous Trauma",       text: "H/o fractures, head injuries, internal injuries; relevant to current presentation" },
    { label: "Drug History",          text: "Long-term steroids → immunosuppression + poor wound healing; anticoagulants → bleeding risk; NSAIDs → peptic ulcer" },
    { label: "Allergies",             text: "Drug (penicillin, sulpha), food, latex — critical before administering anaesthesia" },
    { label: "Menstrual & Obstetric", text: "LMP, parity, menopausal status — mandatory in all female patients; ectopic vs appendicitis" },
    { label: "Family History",        text: "FAP (familial adenomatous polyposis), BRCA1/2, MEN syndromes, carcinoma pattern in family" },
    { label: "Social History",        text: "Smoking (Buerger's, Ca lung), alcohol (cirrhosis, pancreatitis), travel history, sexual history" },
  ];

  pastItems.forEach((item, i) => {
    const col = i % 2;
    const row = Math.floor(i / 2);
    const x = col === 0 ? 0.3 : 5.2;
    const y = 1.15 + row * 1.05;
    s.addShape(pres.ShapeType.rect, { x, y, w: 4.6, h: 0.9, fill: { color: DARKGRAY }, line: { color: ACCENTGRAY, width: 0.5 } });
    s.addText(item.label, { x: x + 0.15, y: y + 0.05, w: 4.2, h: 0.3, fontSize: 12, bold: true, color: WHITE, fontFace: "Arial" });
    s.addText(item.text, { x: x + 0.15, y: y + 0.37, w: 4.2, h: 0.48, fontSize: 10, color: LIGHTGRAY, fontFace: "Arial" });
  });

  s.addText("S Das - A Manual on Clinical Surgery, 13th Ed.", {
    x: 0.3, y: 5.38, w: 9.4, h: 0.2, fontSize: 9, color: ACCENTGRAY, fontFace: "Arial", italic: true
  });
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 8 — SYSTEMIC INQUIRY
// ═══════════════════════════════════════════════════════════════
{
  let s = whiteSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 1.0, fill: { color: BLACK } });
  s.addText("04  SYSTEMIC INQUIRY (Review of Systems)", {
    x: 0.3, y: 0.1, w: 9.4, h: 0.8, fontSize: 18, bold: true, color: WHITE, fontFace: "Arial", valign: "middle"
  });

  s.addText("Systematic questioning of each body system to uncover hidden pathology", {
    x: 0.4, y: 1.1, w: 9.2, h: 0.35, fontSize: 13, italic: true, color: MIDGRAY, fontFace: "Arial"
  });

  const systems = [
    { sys: "CVS",        qs: "Chest pain, palpitations, dyspnoea, ankle swelling, orthopnoea" },
    { sys: "Respiratory", qs: "Cough, haemoptysis, dyspnoea, wheeze, night sweats" },
    { sys: "GIT",        qs: "Dysphagia, nausea, vomiting, haematemesis, diarrhoea, malaena, PR bleed, altered bowel habit" },
    { sys: "GUT",        qs: "Dysuria, frequency, haematuria, urethral discharge, renal colic" },
    { sys: "CNS",        qs: "Headache, fits, LOC, weakness, paraesthesia, visual changes, hearing loss" },
    { sys: "Endo/Mets",  qs: "Weight loss, anorexia, night sweats, lumps elsewhere, bone pain — classic features of malignancy" },
    { sys: "Locomotor",  qs: "Joint pain/swelling, restricted movement, morning stiffness — rheumatoid, OA" },
    { sys: "Haematology",qs: "Easy bruising, prolonged bleeding, petechiae, lymph node enlargement" },
  ];

  systems.forEach((item, i) => {
    const col = i % 2;
    const row = Math.floor(i / 2);
    const x = col === 0 ? 0.3 : 5.15;
    const y = 1.55 + row * 0.98;
    s.addShape(pres.ShapeType.rect, { x, y, w: 4.55, h: 0.85, fill: { color: OFFWHITE }, line: { color: LIGHTGRAY, width: 0.75 } });
    s.addShape(pres.ShapeType.rect, { x: x + 4.25, y, w: 0.3, h: 0.85, fill: { color: BLACK } });
    s.addText(item.sys, { x: x + 4.2, y, w: 0.3, h: 0.85, fontSize: 10, bold: true, color: WHITE, fontFace: "Arial", align: "center", valign: "middle", rotate: 270 });
    s.addText(item.qs, { x: x + 0.12, y: y + 0.1, w: 4.0, h: 0.65, fontSize: 10, color: MIDGRAY, fontFace: "Arial" });
  });

  s.addText("S Das - A Manual on Clinical Surgery, 13th Ed.", {
    x: 0.3, y: 5.38, w: 9.4, h: 0.2, fontSize: 9, color: LIGHTGRAY, fontFace: "Arial", italic: true
  });
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 9 — VOMITING (Important Surgical Symptom)
// ═══════════════════════════════════════════════════════════════
{
  let s = blackSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 1.0, fill: { color: WHITE } });
  s.addText("VOMITING — History Analysis", {
    x: 0.3, y: 0.1, w: 9.4, h: 0.8, fontSize: 18, bold: true, color: BLACK, fontFace: "Arial", valign: "middle"
  });

  const vomItems = [
    { q: "Onset",           a: "Sudden → obstruction, raised ICP; Gradual → gastric outlet obstruction" },
    { q: "Relation to food",a: "Immediately after → gastric; 4–6 hrs after → duodenal/pyloric; Unrelated → raised ICP" },
    { q: "Nature of vomit", a: "Bile-stained → obstruction below ampulla of Vater; Faeculent → low intestinal obstruction; Undigested food → achalasia/pharyngeal pouch" },
    { q: "Blood in vomit",  a: "Haematemesis → peptic ulcer, oesophageal varices, Mallory-Weiss; 'coffee ground' → altered blood" },
    { q: "Amount",          a: "Large volume → pyloric stenosis or high small bowel obstruction" },
    { q: "Projectile",      a: "Projectile without nausea → pyloric stenosis (infants), raised ICP" },
    { q: "Associated Sx",   a: "Pain + vomiting → colic; Headache + vomiting → raised ICP; Vertigo + vomiting → Meniere's/labyrinthitis" },
  ];

  vomItems.forEach((item, i) => {
    const y = 1.1 + i * 0.63;
    s.addShape(pres.ShapeType.rect, { x: 0.3, y, w: 2.0, h: 0.52, fill: { color: WHITE } });
    s.addText(item.q, { x: 0.3, y, w: 2.0, h: 0.52, fontSize: 12, bold: true, color: BLACK, fontFace: "Arial", align: "center", valign: "middle" });
    s.addText(item.a, { x: 2.45, y: y + 0.05, w: 7.3, h: 0.45, fontSize: 11, color: LIGHTGRAY, fontFace: "Arial" });
  });

  s.addText("S Das - A Manual on Clinical Surgery, 13th Ed., p. 576+", {
    x: 0.3, y: 5.38, w: 9.4, h: 0.2, fontSize: 9, color: ACCENTGRAY, fontFace: "Arial", italic: true
  });
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 10 — GENERAL CONDITION: HISTORY CLUES
// ═══════════════════════════════════════════════════════════════
{
  let s = whiteSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 1.0, fill: { color: BLACK } });
  s.addText("GENERAL CONDITION — Symptoms from History", {
    x: 0.3, y: 0.1, w: 9.4, h: 0.8, fontSize: 18, bold: true, color: WHITE, fontFace: "Arial", valign: "middle"
  });

  const gcItems = [
    { sym: "Anaemia",    detail: "Ask about pallor, weakness, fatigue, exertional dyspnoea, pica\n→ causes: GI bleed, malignancy, haemolysis, nutritional" },
    { sym: "Jaundice",   detail: "Yellow eyes/skin → obstructive (dark urine, pale stool, pruritus) vs haemolytic vs hepatocellular\nScratch marks = obstructive" },
    { sym: "Cyanosis",   detail: "Central (tongue + lips) = cardiopulmonary; Peripheral (nail beds) = vasospasm/reduced flow\nNot visible in severe anaemia (needs ≥5 g/dL reduced Hb)" },
    { sym: "Oedema",     detail: "Bilateral pitting → cardiac/hypoproteinaemia/renal; Unilateral → DVT, lymphoedema, filariasis\nAsk about puffiness of face (nephrotic)" },
    { sym: "Clubbing",   detail: "H/o chronic lung disease, cyanotic heart disease, IBD, cirrhosis, mesothelioma\nNote: not painful; ask how long nails have looked 'curved'" },
    { sym: "Lymph Nodes",detail: "Painless progressive lymphadenopathy → lymphoma, metastasis\nPainful tender nodes → reactive infection\nAsk about B-symptoms: fever, night sweats, weight loss" },
  ];

  gcItems.forEach((item, i) => {
    const col = i % 2;
    const row = Math.floor(i / 2);
    const x = col === 0 ? 0.25 : 5.2;
    const y = 1.1 + row * 1.45;
    s.addShape(pres.ShapeType.rect, { x, y, w: 4.65, h: 1.3, fill: { color: OFFWHITE }, line: { color: LIGHTGRAY, width: 0.75 } });
    s.addShape(pres.ShapeType.rect, { x, y, w: 4.65, h: 0.38, fill: { color: BLACK } });
    s.addText(item.sym, { x: x + 0.15, y: y + 0.04, w: 4.3, h: 0.3, fontSize: 14, bold: true, color: WHITE, fontFace: "Arial", valign: "middle" });
    s.addText(item.detail, { x: x + 0.12, y: y + 0.42, w: 4.4, h: 0.8, fontSize: 10, color: MIDGRAY, fontFace: "Arial" });
  });

  s.addText("S Das - A Manual on Clinical Surgery, 13th Ed.", {
    x: 0.3, y: 5.38, w: 9.4, h: 0.2, fontSize: 9, color: LIGHTGRAY, fontFace: "Arial", italic: true
  });
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 11 — LUMP HISTORY (S Das criteria)
// ═══════════════════════════════════════════════════════════════
{
  let s = blackSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 1.0, fill: { color: WHITE } });
  s.addText("HISTORY OF A LUMP — 10-Point Analysis", {
    x: 0.3, y: 0.1, w: 9.4, h: 0.8, fontSize: 18, bold: true, color: BLACK, fontFace: "Arial", valign: "middle"
  });

  const lumpPoints = [
    ["1", "Duration",        "When first noticed? Sudden vs gradual onset"],
    ["2", "Onset",           "After trauma? Associated with pregnancy? Spontaneous?"],
    ["3", "Change in size",  "Growing, static, or reducing? Rate of growth → malignancy clue"],
    ["4", "Pain",            "Painful lumps: abscess, hernia strangulation; Painless: lipoma, Ca"],
    ["5", "Discharge",       "Pus (abscess), blood (carcinoma), mucus (fistula)"],
    ["6", "Associated Sx",   "Fever (infection), weight loss (Ca), dysphagia (neck lump → goitre)"],
    ["7", "Multiplicity",    "Single vs multiple — neurofibromatosis, lymphoma, sebaceous cysts"],
    ["8", "Previous lump",   "Recurrence after excision? Site of prior surgery (scar implant)?"],
    ["9", "Similar in family","Familial neurofibromatosis, FAP, MEN syndromes"],
    ["10","Bowel/bladder",   "Change in function associated → intra-abdominal neoplasm"],
  ];

  lumpPoints.forEach((row, i) => {
    const col = i % 2;
    const r = Math.floor(i / 2);
    const x = col === 0 ? 0.3 : 5.2;
    const y = 1.1 + r * 0.88;
    s.addShape(pres.ShapeType.rect, { x, y, w: 0.35, h: 0.75, fill: { color: WHITE } });
    s.addText(row[0], { x, y, w: 0.35, h: 0.75, fontSize: 13, bold: true, color: BLACK, fontFace: "Arial", align: "center", valign: "middle" });
    s.addText(row[1], { x: x + 0.43, y: y + 0.05, w: 4.0, h: 0.28, fontSize: 12, bold: true, color: WHITE, fontFace: "Arial" });
    s.addText(row[2], { x: x + 0.43, y: y + 0.35, w: 4.0, h: 0.35, fontSize: 10, color: LIGHTGRAY, fontFace: "Arial" });
  });

  s.addText("S Das - A Manual on Clinical Surgery, 13th Ed.", {
    x: 0.3, y: 5.38, w: 9.4, h: 0.2, fontSize: 9, color: ACCENTGRAY, fontFace: "Arial", italic: true
  });
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 12 — ULCER HISTORY
// ═══════════════════════════════════════════════════════════════
{
  let s = whiteSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 1.0, fill: { color: BLACK } });
  s.addText("HISTORY OF AN ULCER", {
    x: 0.3, y: 0.1, w: 9.4, h: 0.8, fontSize: 18, bold: true, color: WHITE, fontFace: "Arial", valign: "middle"
  });

  const ulcerItems = [
    { pt: "Duration & Onset",    body: "How long? Sudden (traumatic) vs chronic (venous/neuropathic)" },
    { pt: "Site",                body: "Leg ulcers: medial malleolus (venous), lateral (arterial), sole (neuropathic/diabetic)" },
    { pt: "Pain",                body: "Painless: neuropathic (diabetes, leprosy, tabes dorsalis); Painful: arterial, traumatic" },
    { pt: "Discharge",           body: "Serous (venous), blood-stained (malignant ulcer = Marjolin's), offensive pus (infected)" },
    { pt: "Progress",            body: "Healing, static, spreading, or malignant change? (Marjolin's ulcer = Ca in chronic ulcer)" },
    { pt: "Systemic Causes",     body: "Diabetes, TB, syphilis (gummatous), vasculitis, IBD (pyoderma gangrenosum)" },
    { pt: "Bleeding",            body: "Profuse bleeding from ulcer → carcinomatous change must be suspected" },
    { pt: "Nutritional Status",  body: "Vitamin C deficiency → scurvy ulcers; protein malnutrition → poor healing" },
  ];

  ulcerItems.forEach((item, i) => {
    const col = i % 2;
    const row = Math.floor(i / 2);
    const x = col === 0 ? 0.3 : 5.2;
    const y = 1.1 + row * 1.07;
    s.addShape(pres.ShapeType.rect, { x, y, w: 4.6, h: 0.95, fill: { color: OFFWHITE }, line: { color: LIGHTGRAY, width: 0.75 } });
    s.addShape(pres.ShapeType.rect, { x, y, w: 0.1, h: 0.95, fill: { color: BLACK } });
    s.addText(item.pt, { x: x + 0.2, y: y + 0.07, w: 4.2, h: 0.3, fontSize: 12, bold: true, color: BLACK, fontFace: "Arial" });
    s.addText(item.body, { x: x + 0.2, y: y + 0.4, w: 4.2, h: 0.48, fontSize: 10, color: MIDGRAY, fontFace: "Arial" });
  });

  s.addText("S Das - A Manual on Clinical Surgery, 13th Ed.", {
    x: 0.3, y: 5.38, w: 9.4, h: 0.2, fontSize: 9, color: LIGHTGRAY, fontFace: "Arial", italic: true
  });
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 13 — SECTION DIVIDER: ABDOMINAL COMPLAINTS
// ═══════════════════════════════════════════════════════════════
sectionDivider("ABDOMINAL COMPLAINTS", "Key surgical history points for the abdomen");

// ═══════════════════════════════════════════════════════════════
// SLIDE 14 — BOWEL HABITS & RECTAL SYMPTOMS
// ═══════════════════════════════════════════════════════════════
{
  let s = blackSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 1.0, fill: { color: WHITE } });
  s.addText("BOWEL HABITS & RECTAL SYMPTOMS", {
    x: 0.3, y: 0.1, w: 9.4, h: 0.8, fontSize: 18, bold: true, color: BLACK, fontFace: "Arial", valign: "middle"
  });

  const bowelItems = [
    { h: "Change in bowel habit", d: "Alternating constipation/diarrhoea → Ca colon until proved otherwise; progressive constipation → obstruction" },
    { h: "Constipation",          d: "Duration, onset, absolute vs relative; associated pain → obstruction; drugs (opioids, Ca blockers)" },
    { h: "Diarrhoea",             d: "Frequency, consistency, blood/mucus; night diarrhoea → organic cause; alternating → IBS vs Ca colon" },
    { h: "Rectal Bleeding",       d: "Bright red + tenesmus → haemorrhoids/fissure; mixed with stool → higher source; jet of blood → internal pile" },
    { h: "Malaena",               d: "Tarry black offensive stool = digested blood from upper GI. Must exclude right-sided colon bleeding" },
    { h: "Tenesmus",              d: "Sensation of incomplete evacuation → rectal carcinoma, proctitis, proctalgia fugax" },
    { h: "Mucus PR",              d: "Mucus alone → polyp, villous adenoma; mucus + blood → Ca rectum, ulcerative colitis, amoebic dysentery" },
    { h: "Flatus / Distension",   d: "Unable to pass flatus → complete obstruction; excessive wind → malabsorption, IBS" },
  ];

  bowelItems.forEach((item, i) => {
    const col = i % 2;
    const row = Math.floor(i / 2);
    const x = col === 0 ? 0.3 : 5.2;
    const y = 1.1 + row * 1.06;
    s.addShape(pres.ShapeType.rect, { x, y, w: 4.6, h: 0.93, fill: { color: DARKGRAY }, line: { color: ACCENTGRAY, width: 0.5 } });
    s.addText(item.h, { x: x + 0.15, y: y + 0.06, w: 4.2, h: 0.28, fontSize: 12, bold: true, color: WHITE, fontFace: "Arial" });
    s.addText(item.d, { x: x + 0.15, y: y + 0.38, w: 4.2, h: 0.48, fontSize: 10, color: LIGHTGRAY, fontFace: "Arial" });
  });

  s.addText("S Das - A Manual on Clinical Surgery, 13th Ed.", {
    x: 0.3, y: 5.38, w: 9.4, h: 0.2, fontSize: 9, color: ACCENTGRAY, fontFace: "Arial", italic: true
  });
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 15 — URINARY SYMPTOMS IN SURGICAL HISTORY
// ═══════════════════════════════════════════════════════════════
{
  let s = whiteSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 1.0, fill: { color: BLACK } });
  s.addText("URINARY SYMPTOMS IN SURGICAL HISTORY", {
    x: 0.3, y: 0.1, w: 9.4, h: 0.8, fontSize: 18, bold: true, color: WHITE, fontFace: "Arial", valign: "middle"
  });

  const uriItems = [
    { sym: "Haematuria",    detail: "Painless → transitional cell Ca (bladder/kidney) until proved otherwise\nPainful → calculi, infection. Total haematuria = bladder; terminal = bladder neck/prostate; initial = urethra" },
    { sym: "Frequency",     detail: "Day + night → UTI, BPH; night only (nocturia) → BPH, DM, cardiac failure\nAsk number of times/day and/night" },
    { sym: "Dysuria",       detail: "Burning on micturition → UTI, urethritis; strangury (severe) → calculus in urethra/bladder" },
    { sym: "Poor stream",   detail: "Hesitancy, poor flow, post-void dribbling → BPH, urethral stricture, prostate Ca" },
    { sym: "Retention",     detail: "Inability to void → BPH, Ca prostate, spinal injury, drugs (anticholinergics, epidural)" },
    { sym: "Renal colic",   detail: "Severe loin-to-groin colicky pain ± haematuria → ureteric calculus. N/V + restlessness typical" },
  ];

  uriItems.forEach((item, i) => {
    const col = i % 2;
    const row = Math.floor(i / 2);
    const x = col === 0 ? 0.25 : 5.2;
    const y = 1.1 + row * 1.45;
    s.addShape(pres.ShapeType.rect, { x, y, w: 4.65, h: 1.3, fill: { color: OFFWHITE }, line: { color: LIGHTGRAY, width: 0.75 } });
    s.addShape(pres.ShapeType.rect, { x, y, w: 4.65, h: 0.38, fill: { color: BLACK } });
    s.addText(item.sym, { x: x + 0.15, y: y + 0.04, w: 4.3, h: 0.3, fontSize: 14, bold: true, color: WHITE, fontFace: "Arial", valign: "middle" });
    s.addText(item.detail, { x: x + 0.12, y: y + 0.42, w: 4.4, h: 0.8, fontSize: 10, color: MIDGRAY, fontFace: "Arial" });
  });

  s.addText("S Das - A Manual on Clinical Surgery, 13th Ed.", {
    x: 0.3, y: 5.38, w: 9.4, h: 0.2, fontSize: 9, color: LIGHTGRAY, fontFace: "Arial", italic: true
  });
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 16 — SECTION: SPECIAL SYMPTOMS
// ═══════════════════════════════════════════════════════════════
sectionDivider("SPECIAL SURGICAL SYMPTOMS", "Dysphagia, Jaundice, Itching & More");

// ═══════════════════════════════════════════════════════════════
// SLIDE 17 — DYSPHAGIA
// ═══════════════════════════════════════════════════════════════
{
  let s = blackSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 1.0, fill: { color: WHITE } });
  s.addText("DYSPHAGIA — History Analysis", {
    x: 0.3, y: 0.1, w: 9.4, h: 0.8, fontSize: 18, bold: true, color: BLACK, fontFace: "Arial", valign: "middle"
  });

  const dysItems = [
    { q: "Level",                a: "Patient can usually localise — cervical (pharyngeal pouch, web) vs retrosternal (oesophageal Ca, achalasia)" },
    { q: "Onset & Progression",  a: "Progressive dysphagia: solids first → liquids → Ca oesophagus (obstructive)\nBoth solids & liquids from start → achalasia, motility disorder" },
    { q: "Duration",             a: "Long history (years) → benign stricture, achalasia; Short (months) → carcinoma" },
    { q: "Associated pain",      a: "Odynophagia (pain on swallowing) → oesophagitis, spasm, carcinoma with ulceration" },
    { q: "Regurgitation",        a: "Undigested food (no bile, no acid) → pharyngeal pouch, achalasia\nPartially digested + acid → GORD stricture" },
    { q: "Weight loss",          a: "Marked weight loss with rapid progressive dysphagia → carcinoma of oesophagus" },
    { q: "Voice change",         a: "Hoarseness with dysphagia → recurrent laryngeal nerve involvement → mediastinal spread" },
  ];

  dysItems.forEach((item, i) => {
    const y = 1.1 + i * 0.63;
    s.addShape(pres.ShapeType.rect, { x: 0.3, y, w: 2.4, h: 0.52, fill: { color: WHITE } });
    s.addText(item.q, { x: 0.3, y, w: 2.4, h: 0.52, fontSize: 11, bold: true, color: BLACK, fontFace: "Arial", align: "center", valign: "middle" });
    s.addText(item.a, { x: 2.85, y: y + 0.05, w: 6.8, h: 0.45, fontSize: 10.5, color: LIGHTGRAY, fontFace: "Arial" });
  });

  s.addText("S Das - A Manual on Clinical Surgery, 13th Ed.", {
    x: 0.3, y: 5.38, w: 9.4, h: 0.2, fontSize: 9, color: ACCENTGRAY, fontFace: "Arial", italic: true
  });
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 18 — JAUNDICE (History)
// ═══════════════════════════════════════════════════════════════
{
  let s = whiteSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 1.0, fill: { color: BLACK } });
  s.addText("JAUNDICE — Surgical History", {
    x: 0.3, y: 0.1, w: 9.4, h: 0.8, fontSize: 18, bold: true, color: WHITE, fontFace: "Arial", valign: "middle"
  });

  // 3-column: Obstructive / Hepatocellular / Haemolytic
  const types = [
    {
      type: "OBSTRUCTIVE", col: BLACK, txtCol: WHITE,
      pts: ["Dark urine (bilirubinuria)", "Pale clay-coloured stool", "Pruritus (scratch marks)", "Progressive/painless → Ca head pancreas", "Painful + fever (Charcot triad) → cholangitis", "Right upper quadrant pain → gallstones"]
    },
    {
      type: "HEPATOCELLULAR", col: OFFWHITE, txtCol: BLACK,
      pts: ["H/o alcohol use, viral hepatitis", "Anorexia, nausea, malaise prodrome", "Mild jaundice, dark urine", "No pruritus usually", "Contact with jaundiced person", "Drug history (halothane, paracetamol)"]
    },
    {
      type: "HAEMOLYTIC", col: DARKGRAY, txtCol: WHITE,
      pts: ["Family h/o anaemia/jaundice", "Episodic (sickle cell, G6PD)", "Lemon-yellow tinge (mild)", "Dark urine absent", "Splenomegaly in family", "Gallstones (pigment) in young"]
    },
  ];

  types.forEach((col, i) => {
    const x = 0.25 + i * 3.2;
    s.addShape(pres.ShapeType.rect, { x, y: 1.05, w: 3.0, h: 4.3, fill: { color: col.col }, line: { color: LIGHTGRAY, width: 0.75 } });
    s.addText(col.type, { x, y: 1.05, w: 3.0, h: 0.45, fontSize: 12, bold: true, color: col.txtCol, fontFace: "Arial", align: "center", valign: "middle" });
    s.addShape(pres.ShapeType.rect, { x, y: 1.5, w: 3.0, h: 0.04, fill: { color: LIGHTGRAY } });
    const bulletColor = col.col === OFFWHITE ? MIDGRAY : LIGHTGRAY;
    col.pts.forEach((pt, j) => {
      s.addText(`• ${pt}`, { x: x + 0.1, y: 1.6 + j * 0.56, w: 2.8, h: 0.48, fontSize: 10, color: bulletColor, fontFace: "Arial" });
    });
  });

  s.addText("S Das - A Manual on Clinical Surgery, 13th Ed., p. 221+", {
    x: 0.3, y: 5.38, w: 9.4, h: 0.2, fontSize: 9, color: LIGHTGRAY, fontFace: "Arial", italic: true
  });
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 19 — PROVISIONAL DIAGNOSIS & DIFFERENTIAL
// ═══════════════════════════════════════════════════════════════
{
  let s = blackSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 1.0, fill: { color: WHITE } });
  s.addText("FROM HISTORY TO PROVISIONAL DIAGNOSIS", {
    x: 0.3, y: 0.1, w: 9.4, h: 0.8, fontSize: 18, bold: true, color: BLACK, fontFace: "Arial", valign: "middle"
  });

  s.addText("After taking a complete history, formulate:", {
    x: 0.5, y: 1.15, w: 9.0, h: 0.35, fontSize: 14, color: WHITE, fontFace: "Arial"
  });

  // Arrow flow diagram
  const boxes = [
    { label: "History +\nExamination", x: 0.3, y: 1.65 },
    { label: "Provisional\nDiagnosis",  x: 3.5, y: 1.65 },
    { label: "Differential\nDiagnosis", x: 6.7, y: 1.65 },
  ];
  boxes.forEach((b) => {
    s.addShape(pres.ShapeType.rect, { x: b.x, y: b.y, w: 2.8, h: 1.1, fill: { color: WHITE } });
    s.addText(b.label, { x: b.x, y: b.y, w: 2.8, h: 1.1, fontSize: 15, bold: true, color: BLACK, fontFace: "Arial", align: "center", valign: "middle" });
  });
  // Arrows
  s.addShape(pres.ShapeType.rightArrow, { x: 3.18, y: 1.95, w: 0.28, h: 0.5, fill: { color: LIGHTGRAY } });
  s.addShape(pres.ShapeType.rightArrow, { x: 6.38, y: 1.95, w: 0.28, h: 0.5, fill: { color: LIGHTGRAY } });

  s.addShape(pres.ShapeType.rect, { x: 0.3, y: 3.0, w: 9.4, h: 0.03, fill: { color: ACCENTGRAY } });

  s.addText("Key Principles for Provisional Diagnosis from History:", {
    x: 0.5, y: 3.1, w: 9.0, h: 0.35, fontSize: 13, bold: true, color: WHITE, fontFace: "Arial"
  });

  const principles = [
    "Most common diagnosis compatible with all symptoms comes first",
    "Age + sex + occupation + symptom pattern guide the most likely diagnosis",
    "Duration of symptoms guides acuity: acute vs chronic vs acute-on-chronic",
    "Always think: 'What is the most dangerous diagnosis I must not miss?'",
    "Malignancy must be actively excluded in any patient >40 with vague abdominal complaints",
  ];

  principles.forEach((p, i) => {
    s.addText([
      { text: "▸ ", options: { bold: true, color: WHITE } },
      { text: p, options: { color: LIGHTGRAY } }
    ], { x: 0.5, y: 3.55 + i * 0.37, w: 9.0, h: 0.32, fontSize: 11.5, fontFace: "Arial" });
  });

  s.addText("S Das - A Manual on Clinical Surgery, 13th Ed.", {
    x: 0.3, y: 5.38, w: 9.4, h: 0.2, fontSize: 9, color: ACCENTGRAY, fontFace: "Arial", italic: true
  });
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 20 — SUMMARY / TAKE-HOME POINTS
// ═══════════════════════════════════════════════════════════════
{
  let s = whiteSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 1.0, fill: { color: BLACK } });
  s.addText("TAKE-HOME POINTS", {
    x: 0.3, y: 0.1, w: 9.4, h: 0.8, fontSize: 22, bold: true, color: WHITE, fontFace: "Arial", valign: "middle", charSpacing: 3
  });

  const takeHome = [
    { no: "1", msg: "Always start with patient particulars — age, sex, occupation, religion guide differential diagnoses immediately" },
    { no: "2", msg: "Chief complaints must be in the patient's own words, in chronological order, with duration for each" },
    { no: "3", msg: "Analyse each symptom (SOCRATES) before moving on — do not rush to diagnosis" },
    { no: "4", msg: "Past history, drug history, family history and social history are NOT optional — they change management" },
    { no: "5", msg: "Systemic inquiry uncovers hidden co-morbidities critical for anaesthetic and surgical risk" },
    { no: "6", msg: "In surgical practice: any painless progressive complaint in a patient >40 → suspect malignancy until excluded" },
    { no: "7", msg: "A complete, logical history is the single most important step — investigations only confirm what history suggests" },
  ];

  takeHome.forEach((item, i) => {
    const y = 1.2 + i * 0.6;
    s.addShape(pres.ShapeType.rect, { x: 0.3, y, w: 0.42, h: 0.45, fill: { color: BLACK } });
    s.addText(item.no, { x: 0.3, y, w: 0.42, h: 0.45, fontSize: 14, bold: true, color: WHITE, fontFace: "Arial", align: "center", valign: "middle" });
    s.addText(item.msg, { x: 0.85, y: y + 0.04, w: 8.9, h: 0.38, fontSize: 11.5, color: MIDGRAY, fontFace: "Arial" });
  });

  s.addText("Based on: S Das — A Manual on Clinical Surgery, 13th Edition, Chapters 1-2", {
    x: 0.3, y: 5.38, w: 9.4, h: 0.2, fontSize: 9, color: LIGHTGRAY, fontFace: "Arial", italic: true
  });
}

// ═══════════════════════════════════════════════════════════════
// SLIDE 21 — CLOSING SLIDE
// ═══════════════════════════════════════════════════════════════
{
  let s = blackSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.25, h: 5.625, fill: { color: WHITE } });
  s.addShape(pres.ShapeType.rect, { x: 9.75, y: 0, w: 0.25, h: 5.625, fill: { color: WHITE } });
  s.addText("HISTORY TAKING", { x: 0.6, y: 1.1, w: 8.8, h: 1.0, fontSize: 42, bold: true, color: WHITE, fontFace: "Arial", align: "center", charSpacing: 4 });
  s.addText("IN GENERAL SURGERY", { x: 0.6, y: 2.1, w: 8.8, h: 0.7, fontSize: 22, color: LIGHTGRAY, fontFace: "Arial", align: "center", charSpacing: 3 });
  s.addShape(pres.ShapeType.rect, { x: 3.0, y: 3.0, w: 4.0, h: 0.05, fill: { color: WHITE } });
  s.addText("S Das — A Manual on Clinical Surgery\n13th Edition", {
    x: 0.6, y: 3.2, w: 8.8, h: 0.8, fontSize: 14, color: LIGHTGRAY, fontFace: "Arial", align: "center", italic: true
  });
  s.addText('"Learn this scheme and make it a reflex"\n— S Das', {
    x: 1.0, y: 4.2, w: 8.0, h: 0.8, fontSize: 14, color: ACCENTGRAY, fontFace: "Arial", align: "center", italic: true
  });
}

// ─── WRITE FILE ─────────────────────────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/history-taking-ppt/History_Taking_General_Surgery.pptx" })
  .then(() => console.log("SUCCESS: PPT created"))
  .catch(e => { console.error("ERROR:", e); process.exit(1); });
Running Command

cd /home/daytona/workspace/history-taking-ppt && node create_ppt.js 2>&1

Editing File

~/history-taking-ppt/create_ppt.js

Successfully replaced 1 instance(s) of the string in '/home/daytona/workspace/history-taking-ppt/create_ppt.js'
Running Command

cd /home/daytona/workspace/history-taking-ppt && node create_ppt.js 2>&1

The PPT has been created successfully. Here's your download link:

History Taking General Surgery

Presentation · PPTX


Here's what's inside the 21-slide black and white presentation based on S Das - A Manual on Clinical Surgery (13th Edition):
SlideContent
1Title slide
2General Scheme of Patient Management (6 steps overview)
3Section divider — History Taking
4Particulars of the Patient — Name, Age, Sex, Religion, Occupation, Address (with clinical significance of each)
5Chief Complaints + SOCRATES framework for HPI
6Pain — Detailed Analysis (Site, Onset, Character, Radiation, Severity, Relieving/Aggravating, Associated symptoms, Referred pain)
7Past History — previous illness, operations, trauma, drugs, allergies, menstrual/OB, family, social
8Systemic Inquiry — CVS, Respiratory, GIT, GUT, CNS, Endocrine/Malignancy, Locomotor, Haematology
9Vomiting — Onset, relation to food, nature, blood, amount, projectile, associated symptoms
10General Condition Symptoms — Anaemia, Jaundice, Cyanosis, Oedema, Clubbing, Lymph nodes
11Lump History — 10-point S Das analysis
12Ulcer History — Duration, site, pain, discharge, progress, systemic causes
13Section divider — Abdominal Complaints
14Bowel Habits & Rectal Symptoms — Change in habit, constipation, diarrhoea, PR bleed, malaena, tenesmus, mucus
15Urinary Symptoms — Haematuria, frequency, dysuria, poor stream, retention, renal colic
16Section divider — Special Symptoms
17Dysphagia — Level, progression, duration, odynophagia, regurgitation, weight loss, voice change
18Jaundice — 3-column comparison: Obstructive / Hepatocellular / Haemolytic
19From History to Provisional Diagnosis — flow diagram + key principles
20Take-Home Points (7 key summary points)
21Closing slide with S Das quote
This is a shared conversation. Sign in to Orris to start your own chat.