Make a presentation on a topic which is easy to remember

Asking for Preferences
Reading File
Reading File
Running Command

ls /home/daytona/workspace/ 2>/dev/null || echo "workspace is empty or doesn't exist"

Running Command

mkdir -p /home/daytona/workspace/solar-system-ppt

For bams student of 3rd year

Asking for Preferences
Asking for Preferences
Reading File
Reading File
Finding Sources
Searching the Web

Prameha Ayurveda BAMS Kayachikitsa classification nidana samprapti chikitsa

Reading Web Page

https://africanjournalofbiomedicalresearch.com/index.php/AJB…

Finding Sources
Writing File

~/solar-system-ppt/prameha.js

const pptxgen = require("pptxgenjs");

const pres = new pptxgen();
pres.layout = 'LAYOUT_16x9';
pres.author = 'BAMS 3rd Year';
pres.title = 'Prameha - Kayachikitsa';

// ─── COLOR PALETTE ──────────────────────────────────────────
// Deep navy (dominant), saffron/gold (accent), ivory (text), warm teal (support)
const BG        = "0B1F3A";   // deep navy
const ACCENT    = "E8A020";   // saffron gold
const LIGHT     = "F5F0E8";   // ivory
const TEAL      = "1E7F74";   // teal support
const CARD      = "132B50";   // card/box bg (slightly lighter navy)
const MUTED     = "A8BDD4";   // muted blue-white for secondary text

// ─── HELPERS ────────────────────────────────────────────────
function addBg(slide) {
  slide.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: BG } });
}

function addAccentBar(slide, y = 0.72) {
  slide.addShape(pres.ShapeType.rect, { x: 0.5, y, w: 1.1, h: 0.07, fill: { color: ACCENT }, line: { type: "none" } });
}

function addSlideTitle(slide, title, subtitle = null) {
  slide.addText(title, {
    x: 0.5, y: 0.18, w: 9, h: 0.55,
    fontSize: 22, bold: true, color: LIGHT, fontFace: "Calibri", valign: "middle"
  });
  addAccentBar(slide);
  if (subtitle) {
    slide.addText(subtitle, {
      x: 0.5, y: 0.85, w: 9, h: 0.35,
      fontSize: 13, color: ACCENT, fontFace: "Calibri", italic: true
    });
  }
}

function addCard(slide, x, y, w, h, title, bullets, titleColor = ACCENT) {
  slide.addShape(pres.ShapeType.rect, { x, y, w, h, fill: { color: CARD }, line: { color: ACCENT, pt: 1 }, rounding: 0.1 });
  slide.addText(title, {
    x: x + 0.15, y: y + 0.1, w: w - 0.3, h: 0.35,
    fontSize: 12, bold: true, color: titleColor, fontFace: "Calibri"
  });
  const items = bullets.map((b, i) => ({
    text: b,
    options: { bullet: { type: "bullet" }, color: LIGHT, fontSize: 10.5, fontFace: "Calibri", breakLine: i < bullets.length - 1 }
  }));
  slide.addText(items, { x: x + 0.15, y: y + 0.48, w: w - 0.3, h: h - 0.6, valign: "top" });
}

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

  // Decorative vertical saffron strip
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.18, h: 5.625, fill: { color: ACCENT }, line: { type: "none" } });

  // Sanskrit shloka strip
  s.addShape(pres.ShapeType.rect, { x: 0.18, y: 0, w: 9.82, h: 0.55, fill: { color: TEAL }, line: { type: "none" } });
  s.addText("प्रभूताविलमूत्रता — Prabhuta Avila Mutrata", {
    x: 0.3, y: 0.08, w: 9.4, h: 0.38,
    fontSize: 13, color: LIGHT, fontFace: "Calibri", italic: true, align: "center"
  });

  // Main title
  s.addText("PRAMEHA", {
    x: 0.5, y: 0.75, w: 9, h: 1.1,
    fontSize: 58, bold: true, color: ACCENT, fontFace: "Calibri",
    align: "center", charSpacing: 8
  });

  // Subtitle
  s.addText("Ayurvedic Perspective on Urinary & Metabolic Disorders", {
    x: 0.5, y: 1.78, w: 9, h: 0.5,
    fontSize: 18, color: LIGHT, fontFace: "Calibri", align: "center"
  });

  // Divider
  s.addShape(pres.ShapeType.rect, { x: 2.5, y: 2.38, w: 5, h: 0.04, fill: { color: ACCENT }, line: { type: "none" } });

  // Info boxes row
  const infos = [
    { label: "Subject", val: "Kayachikitsa" },
    { label: "Course", val: "BAMS 3rd Year" },
    { label: "Reference", val: "Brihattrayi" }
  ];
  infos.forEach((item, i) => {
    const bx = 1.0 + i * 2.8;
    s.addShape(pres.ShapeType.rect, { x: bx, y: 2.55, w: 2.4, h: 0.85, fill: { color: CARD }, line: { color: ACCENT, pt: 1 } });
    s.addText(item.label.toUpperCase(), {
      x: bx + 0.1, y: 2.6, w: 2.2, h: 0.28,
      fontSize: 8, color: ACCENT, bold: true, fontFace: "Calibri", align: "center", charSpacing: 2
    });
    s.addText(item.val, {
      x: bx + 0.1, y: 2.88, w: 2.2, h: 0.42,
      fontSize: 12, color: LIGHT, fontFace: "Calibri", align: "center", bold: true
    });
  });

  // Bottom tag
  s.addText("Ashtamahagada  •  Ashtamaharoga  •  Tridoshaja Vyadhi", {
    x: 0.5, y: 4.95, w: 9, h: 0.4,
    fontSize: 10, color: MUTED, fontFace: "Calibri", align: "center", italic: true
  });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 2 — TABLE OF CONTENTS
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  addBg(s);
  addSlideTitle(s, "Contents at a Glance");

  const topics = [
    ["01", "Introduction & Definition"],
    ["02", "Nidana  (Etiology)"],
    ["03", "Purvarupa  (Prodromal Symptoms)"],
    ["04", "Rupa  (Clinical Features)"],
    ["05", "Samprapti  (Pathogenesis)"],
    ["06", "Classification  (Bheda)"],
    ["07", "Sadhyasadhyata  (Prognosis)"],
    ["08", "Chikitsa  (Treatment)"],
    ["09", "Pathya-Apathya  (Diet & Lifestyle)"],
    ["10", "Modern Correlation"],
  ];

  const cols = 2;
  const rows = Math.ceil(topics.length / cols);
  const startX = 0.5;
  const startY = 1.1;
  const cellW = 4.4;
  const cellH = 0.4;
  const gapX = 0.6;
  const gapY = 0.08;

  topics.forEach(([num, title], idx) => {
    const col = idx % cols;
    const row = Math.floor(idx / cols);
    const x = startX + col * (cellW + gapX);
    const y = startY + row * (cellH + gapY);

    s.addShape(pres.ShapeType.rect, { x, y, w: cellW, h: cellH, fill: { color: CARD }, line: { color: TEAL, pt: 0.5 } });
    s.addText(num, {
      x: x + 0.12, y: y + 0.04, w: 0.45, h: cellH - 0.08,
      fontSize: 13, bold: true, color: ACCENT, fontFace: "Calibri", valign: "middle"
    });
    s.addShape(pres.ShapeType.rect, { x: x + 0.6, y: y + 0.1, w: 0.03, h: cellH - 0.2, fill: { color: ACCENT }, line: { type: "none" } });
    s.addText(title, {
      x: x + 0.7, y: y + 0.04, w: cellW - 0.8, h: cellH - 0.08,
      fontSize: 11.5, color: LIGHT, fontFace: "Calibri", valign: "middle"
    });
  });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 3 — INTRODUCTION & DEFINITION
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  addBg(s);
  addSlideTitle(s, "Introduction & Definition", "What is Prameha?");

  // Etymology box
  s.addShape(pres.ShapeType.rect, { x: 0.5, y: 1.1, w: 9, h: 0.85, fill: { color: TEAL }, line: { type: "none" } });
  s.addText([
    { text: "Etymology: ", options: { bold: true, color: ACCENT, fontSize: 13 } },
    { text: '"Pra" (प्र) + "Meha" (मेह) = Pra (excess/abnormal) + Meha (passing urine)', options: { color: LIGHT, fontSize: 12 } },
  ], { x: 0.7, y: 1.15, w: 8.5, h: 0.7, fontFace: "Calibri", valign: "middle" });

  // Definition cards
  const defs = [
    {
      title: "Charaka Samhita",
      text: "Prabhuta Avila Mutrata — Passage of urine in large quantity and turbid nature.\n(Ch. Ni. 4)"
    },
    {
      title: "Sushruta Samhita",
      text: "Madhura Mootram — Urine with sweet taste. Classified as one of Ashtamahagada.\n(Su. Ni. 6)"
    },
    {
      title: "Ashtanga Hridayam",
      text: "Vagbhata classifies Prameha as one of Ashtamaharoga (eight great diseases).\n(A.H. Ni. 10)"
    }
  ];

  defs.forEach((d, i) => {
    addCard(s, 0.5 + i * 3.1, 2.08, 2.95, 2.9, d.title, [d.text]);
  });

  s.addText("Key Point: Prameha is fundamentally a Kapha-predominant Tridoshaja Vyadhi involving vitiation of all 3 doshas and 10 dushyas.", {
    x: 0.5, y: 5.15, w: 9, h: 0.35,
    fontSize: 10, color: ACCENT, fontFace: "Calibri", italic: true, align: "center"
  });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 4 — NIDANA (ETIOLOGY)
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  addBg(s);
  addSlideTitle(s, "Nidana — Etiology", "Causative Factors");

  const nidanas = [
    {
      title: "Ahara Nidana  (Dietary Causes)",
      items: [
        "Excessive intake of Nava Dhanya (new grains)",
        "Overconsumption of Ikshu Vikaras (sugarcane products)",
        "Excess Dadhi (curd), Milk, Mastu (whey)",
        "Overuse of Mamsa (meat), Masha (black gram)",
        "Excess Sneha (fats/oils) in diet",
        "Guru, Snigdha, Madhura Ahara"
      ]
    },
    {
      title: "Vihara Nidana  (Lifestyle Causes)",
      items: [
        "Divaswapna (day sleeping)",
        "Asya Sukha (sedentary lifestyle)",
        "Avyayama (lack of exercise)",
        "Achamana Panam (excessive drinking)",
        "Avyavaya (no sexual activity)"
      ]
    },
    {
      title: "Manasika & Other Nidana",
      items: [
        "Beeja Dosha (genetic/hereditary factors) — Sahaja Prameha",
        "Chinta, Shoka (mental stress)",
        "Apathyanimittaja — due to improper diet/regimen",
        "Kapha-Medas Sambandha (Kapha-fat interaction)",
        "Avarana of Vata (obstruction of Vata)"
      ]
    }
  ];

  nidanas.forEach((n, i) => {
    addCard(s, 0.5 + i * 3.1, 1.05, 2.95, 3.9, n.title, n.items);
  });

  s.addText("Mnemonic: \"DAMS\" — Divaswapna, Avyayama, Madhura Ahara, Sneha Sevan", {
    x: 0.5, y: 5.12, w: 9, h: 0.35,
    fontSize: 10.5, color: ACCENT, fontFace: "Calibri", bold: true, align: "center"
  });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 5 — PURVARUPA (PRODROMAL SYMPTOMS)
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  addBg(s);
  addSlideTitle(s, "Purvarupa — Prodromal Symptoms", "Early Warning Signs");

  const symptoms = [
    { icon: "👁", label: "Akshi Upadeha", desc: "Stickiness / discharge around eyes" },
    { icon: "👋", label: "Hasta-Pada Daha", desc: "Burning sensation in palms & soles" },
    { icon: "🦟", label: "Pipilika Sanchara", desc: "Sensation of ants crawling on body" },
    { icon: "💧", label: "Shithila Twak", desc: "Looseness of skin" },
    { icon: "😴", label: "Tandra-Alasya", desc: "Drowsiness and lethargy" },
    { icon: "💧", label: "Atisvedam", desc: "Excessive perspiration" },
    { icon: "👃", label: "Mukhya Madhurya", desc: "Sweetness in mouth" },
    { icon: "🌬", label: "Karna Kandu", desc: "Itching in ears" },
    { icon: "🦷", label: "Danta Mala Sanchaya", desc: "Accumulation on teeth" },
    { icon: "🌑", label: "Hrit Spandana", desc: "Palpitations" },
    { icon: "💦", label: "Mootra Mardavam", desc: "Increased frequency of urination" },
    { icon: "🧠", label: "Indriya Gaurava", desc: "Heaviness of sense organs" },
  ];

  // Grid: 4 cols × 3 rows
  symptoms.forEach((sym, i) => {
    const col = i % 4;
    const row = Math.floor(i / 4);
    const x = 0.35 + col * 2.35;
    const y = 1.08 + row * 1.42;
    s.addShape(pres.ShapeType.rect, { x, y, w: 2.15, h: 1.22, fill: { color: CARD }, line: { color: TEAL, pt: 0.8 } });
    s.addText(sym.icon, { x, y: y + 0.08, w: 2.15, h: 0.38, fontSize: 20, align: "center" });
    s.addText(sym.label, { x: x + 0.08, y: y + 0.44, w: 1.99, h: 0.28, fontSize: 9.5, bold: true, color: ACCENT, fontFace: "Calibri", align: "center" });
    s.addText(sym.desc, { x: x + 0.08, y: y + 0.7, w: 1.99, h: 0.42, fontSize: 8.5, color: MUTED, fontFace: "Calibri", align: "center" });
  });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 6 — CLASSIFICATION (BHEDA)
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  addBg(s);
  addSlideTitle(s, "Bheda — Classification", "20 Types of Prameha");

  // Header row
  const headers = ["Doshaja Type", "Count", "Examples"];
  const colW = [3.5, 1.2, 4.5];
  const startX = 0.45;
  const headerY = 1.02;
  let cx = startX;
  headers.forEach((h, i) => {
    s.addShape(pres.ShapeType.rect, { x: cx, y: headerY, w: colW[i], h: 0.38, fill: { color: ACCENT }, line: { type: "none" } });
    s.addText(h, { x: cx + 0.08, y: headerY + 0.04, w: colW[i] - 0.16, h: 0.3, fontSize: 12, bold: true, color: BG, fontFace: "Calibri", valign: "middle" });
    cx += colW[i] + 0.05;
  });

  const rows = [
    ["Kaphaja Prameha", "10 types", "Udaka, Ikshuvalikaprameha, Sandrameha, Sanoha, Shukrameha, Shitameha, Sikatameha, Shanairmeha, Alala, Phenameha"],
    ["Pittaja Prameha", "6 types", "Nilameha, Haritameha, Manjishthameha, Raktameha, Ksharameha, Neelamehaa (Manjishtha colored)"],
    ["Vataja Prameha", "4 types", "Vasameha, Majjameha, Hastimeha, Madhumeha (most severe — Diabetes)"],
  ];
  const rowColors = [CARD, "0F2440", CARD];

  rows.forEach((row, ri) => {
    const y = headerY + 0.43 + ri * 1.18;
    let cx2 = startX;
    row.forEach((cell, ci) => {
      s.addShape(pres.ShapeType.rect, { x: cx2, y, w: colW[ci], h: 1.1, fill: { color: rowColors[ri] }, line: { color: TEAL, pt: 0.5 } });
      s.addText(cell, {
        x: cx2 + 0.1, y: y + 0.06, w: colW[ci] - 0.2, h: 1.0,
        fontSize: ci === 2 ? 9 : 11, color: ci === 0 ? ACCENT : LIGHT,
        fontFace: "Calibri", bold: ci === 0, valign: "middle"
      });
      cx2 += colW[ci] + 0.05;
    });
  });

  // Sushruta classification
  s.addShape(pres.ShapeType.rect, { x: 0.45, y: 4.68, w: 9.1, h: 0.72, fill: { color: TEAL }, line: { type: "none" } });
  s.addText([
    { text: "Sushruta's Classification: ", options: { bold: true, color: ACCENT, fontSize: 11 } },
    { text: "(1) Sahaja Prameha — hereditary/genetic  |  (2) Apathyanimittaja — due to improper diet & lifestyle", options: { color: LIGHT, fontSize: 10.5 } }
  ], { x: 0.6, y: 4.72, w: 8.8, h: 0.6, fontFace: "Calibri", valign: "middle" });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 7 — SAMPRAPTI (PATHOGENESIS)
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  addBg(s);
  addSlideTitle(s, "Samprapti — Pathogenesis", "How Prameha Develops");

  // Flowchart using boxes and arrows
  const steps = [
    { label: "Nidana Sevana", sub: "Guru/Snigdha Ahara, Sedentary life, Genetic factors", color: ACCENT },
    { label: "Kapha + Meda Vriddhi", sub: "Increased Kapha & Medas (fat) in the body", color: TEAL },
    { label: "Kleda Sanchaya", sub: "Accumulation of Kleda (moisture/waste products)", color: "1A5C8A" },
    { label: "Mutravaha Sroto Dushti", sub: "Vitiation of urinary channels (Mutravaha Srotas)", color: TEAL },
    { label: "Prameha Vyakti", sub: "Manifestation: Prabhuta Avila Mutrata", color: ACCENT },
    { label: "Madhumeha (Terminal)", sub: "All untreated Prameha → Vataja Madhumeha", color: "8B2020" },
  ];

  steps.forEach((step, i) => {
    const x = 0.5;
    const y = 1.05 + i * 0.72;
    const w = 7.5;
    const h = 0.55;

    s.addShape(pres.ShapeType.rect, { x, y, w, h, fill: { color: step.color }, line: { type: "none" } });
    s.addText(step.label, {
      x: x + 0.2, y: y + 0.02, w: 2.8, h: h - 0.04,
      fontSize: 12, bold: true, color: BG, fontFace: "Calibri", valign: "middle"
    });
    s.addText(step.sub, {
      x: x + 3.1, y: y + 0.02, w: w - 3.2, h: h - 0.04,
      fontSize: 10, color: LIGHT, fontFace: "Calibri", valign: "middle"
    });

    // Arrow
    if (i < steps.length - 1) {
      s.addText("▼", { x: x + 0.3, y: y + h, w: 0.4, h: 0.17, fontSize: 11, color: MUTED, fontFace: "Calibri", align: "center" });
    }
  });

  // Dushya column
  s.addShape(pres.ShapeType.rect, { x: 8.2, y: 1.05, w: 1.6, h: 4.32, fill: { color: CARD }, line: { color: ACCENT, pt: 1 } });
  s.addText("10 DUSHYAS", { x: 8.2, y: 1.1, w: 1.6, h: 0.3, fontSize: 9, bold: true, color: ACCENT, fontFace: "Calibri", align: "center" });
  const dushyas = ["Rasa", "Rakta", "Mamsa", "Meda", "Asthi", "Majja", "Shukra", "Lasika", "Vasa", "Mutra"];
  dushyas.forEach((d, i) => {
    s.addText(d, {
      x: 8.25, y: 1.42 + i * 0.38, w: 1.5, h: 0.3,
      fontSize: 9, color: i < 4 ? ACCENT : LIGHT, fontFace: "Calibri"
    });
  });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 8 — RUPA (CLINICAL FEATURES)
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  addBg(s);
  addSlideTitle(s, "Rupa — Clinical Features", "Signs & Symptoms of Prameha");

  // Two columns
  const colData = [
    {
      title: "Cardinal Symptoms",
      items: [
        "Prabhuta Mutrata — Polyuria (excess urine)",
        "Avila Mutrata — Turbid/cloudy urine",
        "Madhura Mutrata — Sweet/sticky urine (in Madhumeha)",
        "Atitrishna — Excessive thirst (Polydipsia)",
        "Atikshudha — Excessive hunger (Polyphagia)",
        "Daurbalya — General weakness",
        "Karshya or Sthaulya — Emaciation or Obesity"
      ]
    },
    {
      title: "Upadrava (Complications)",
      items: [
        "Prameha Pidika — Carbuncles / skin infections",
        "Vidradhi — Abscess formation",
        "Akshi Roga — Eye diseases (Retinopathy)",
        "Pada Daha — Burning sensation in feet (Neuropathy)",
        "Hridayopalepa — Cardiac complications",
        "Klaibya — Impotency / sexual dysfunction",
        "Chikitsya Prameha → Madhumeha if neglected"
      ]
    }
  ];

  colData.forEach((col, i) => {
    const x = 0.4 + i * 4.85;
    addCard(s, x, 1.0, 4.55, 4.4, col.title, col.items);
  });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 9 — SADHYASADHYATA (PROGNOSIS)
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  addBg(s);
  addSlideTitle(s, "Sadhyasadhyata — Prognosis", "Treatability of Prameha");

  const types = [
    {
      label: "SADHYA",
      sub: "Curable",
      color: "1E7F3C",
      icon: "✅",
      points: [
        "Kaphaja Prameha — most amenable to treatment",
        "Nava (freshly manifested) Prameha",
        "Sthula (obese) patient with Nava Prameha",
        "Patient with good Bala (strength) and Ojas",
        "Without major Upadravas (complications)"
      ]
    },
    {
      label: "YAPYA",
      sub: "Manageable / Palliable",
      color: "8B6914",
      icon: "⚠️",
      points: [
        "Pittaja Prameha — can be managed but not fully cured",
        "Chronic / Jirna Prameha",
        "Moderate complications present",
        "Repeated relapses common",
        "Lifelong management required"
      ]
    },
    {
      label: "ASADHYA",
      sub: "Incurable",
      color: "8B2020",
      icon: "❌",
      points: [
        "Vataja Prameha (especially Madhumeha)",
        "Sahaja (hereditary/congenital) Prameha",
        "Krusha (emaciated) patient with Madhumeha",
        "Severe Ojakshaya (loss of vitality)",
        "Multiple Upadravas present"
      ]
    }
  ];

  types.forEach((t, i) => {
    const x = 0.4 + i * 3.1;
    s.addShape(pres.ShapeType.rect, { x, y: 1.05, w: 2.92, h: 0.5, fill: { color: t.color }, line: { type: "none" } });
    s.addText(`${t.icon}  ${t.label}`, { x: x + 0.1, y: 1.08, w: 2.7, h: 0.25, fontSize: 13, bold: true, color: LIGHT, fontFace: "Calibri" });
    s.addText(t.sub, { x: x + 0.1, y: 1.33, w: 2.7, h: 0.18, fontSize: 10, color: MUTED, fontFace: "Calibri", italic: true });

    s.addShape(pres.ShapeType.rect, { x, y: 1.6, w: 2.92, h: 3.8, fill: { color: CARD }, line: { color: t.color, pt: 1 } });
    const items = t.points.map((p, pi) => ({
      text: p, options: { bullet: true, breakLine: pi < t.points.length - 1, color: pi === 0 ? ACCENT : LIGHT, fontSize: 10, fontFace: "Calibri" }
    }));
    s.addText(items, { x: x + 0.12, y: 1.7, w: 2.68, h: 3.6, valign: "top" });
  });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 10 — CHIKITSA (TREATMENT)
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  addBg(s);
  addSlideTitle(s, "Chikitsa — Treatment Principles", "Management of Prameha");

  // Treatment approach row
  s.addShape(pres.ShapeType.rect, { x: 0.4, y: 1.05, w: 9.2, h: 0.55, fill: { color: TEAL }, line: { type: "none" } });
  s.addText([
    { text: "Chikitsa Sutra: ", options: { bold: true, color: ACCENT } },
    { text: "Apatarpana (depletion) for Sthula Pramehi  |  Santarpana (nourishment) for Krusha Pramehi  |  Samana for moderate cases", options: { color: LIGHT } }
  ], { x: 0.6, y: 1.08, w: 8.9, h: 0.48, fontSize: 11, fontFace: "Calibri", valign: "middle" });

  const chikitsas = [
    {
      title: "Sanshodhana Chikitsa",
      items: [
        "Vamana (emesis) — for Kaphaja Prameha",
        "Virechana (purgation) — for Pittaja",
        "Basti (enema) — for Vataja / Madhumeha",
        "Udwartana — dry powder massage"
      ]
    },
    {
      title: "Dravya Chikitsa (Key Herbs)",
      items: [
        "Shilajatu — chief drug for Prameha",
        "Guduchi (Tinospora), Haridra",
        "Nimba (Neem), Karela (Bitter gourd)",
        "Triphala, Vijayasara, Meshashringi",
        "Chandraprabha Vati — classical formulation"
      ]
    },
    {
      title: "Adravya Chikitsa",
      items: [
        "Vyayama (exercise) — essential daily",
        "Divaswapna strictly prohibited",
        "Yoga: Surya Namaskar, Pranayama",
        "Mental peace — avoid Chinta & Shoka"
      ]
    }
  ];

  chikitsas.forEach((c, i) => {
    addCard(s, 0.4 + i * 3.1, 1.72, 2.92, 3.62, c.title, c.items);
  });

  s.addText("Classical Yoga: Chandraprabha Vati • Nishamalaki • Vasanta Kusumakar Rasa • Trivanga Bhasma", {
    x: 0.4, y: 5.28, w: 9.2, h: 0.28,
    fontSize: 9.5, color: MUTED, fontFace: "Calibri", italic: true, align: "center"
  });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 11 — PATHYA-APATHYA
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  addBg(s);
  addSlideTitle(s, "Pathya-Apathya — Diet & Lifestyle", "Do's and Don'ts in Prameha");

  // PATHYA
  s.addShape(pres.ShapeType.rect, { x: 0.4, y: 1.05, w: 0.08, h: 4.2, fill: { color: TEAL }, line: { type: "none" } });
  s.addText("✅  PATHYA (Beneficial)", { x: 0.6, y: 1.05, w: 4, h: 0.38, fontSize: 14, bold: true, color: TEAL, fontFace: "Calibri" });

  const pathya = [
    "Purana Dhanya — old grains (Yava/barley is best)",
    "Takra (buttermilk), Mudga (green gram)",
    "Bitter vegetables: Karela, Patola, Neem",
    "Madhavika, Jambu (Indian gooseberry)",
    "Light, dry, non-fatty food",
    "Warm water for drinking",
    "Regular physical exercise (Vyayama)",
    "Udwartana with dry powders"
  ];
  pathya.forEach((p, i) => {
    s.addText([
      { text: "• ", options: { color: TEAL, bold: true } },
      { text: p, options: { color: LIGHT } }
    ], { x: 0.6, y: 1.48 + i * 0.45, w: 4.3, h: 0.38, fontSize: 10.5, fontFace: "Calibri" });
  });

  // Divider
  s.addShape(pres.ShapeType.rect, { x: 5.0, y: 1.05, w: 0.05, h: 4.5, fill: { color: ACCENT }, line: { type: "none" } });

  // APATHYA
  s.addText("❌  APATHYA (Harmful)", { x: 5.2, y: 1.05, w: 4.5, h: 0.38, fontSize: 14, bold: true, color: "C0392B", fontFace: "Calibri" });
  const apathya = [
    "Nava Dhanya — new/fresh grains",
    "Ikshu Vikara — sugarcane products, jaggery, sugar",
    "Guru, Abhishyandi Ahara (heavy food)",
    "Dadhi (curd), Payasa (milk preparations)",
    "Masha, Urad dal, oily fried foods",
    "Divaswapna (day sleeping) — strictly avoided",
    "Sedentary lifestyle, lack of exercise",
    "Alcohol, Maireya (fermented drinks)"
  ];
  apathya.forEach((a, i) => {
    s.addText([
      { text: "• ", options: { color: "C0392B", bold: true } },
      { text: a, options: { color: LIGHT } }
    ], { x: 5.2, y: 1.48 + i * 0.45, w: 4.5, h: 0.38, fontSize: 10.5, fontFace: "Calibri" });
  });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 12 — MODERN CORRELATION
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  addBg(s);
  addSlideTitle(s, "Modern Correlation", "Prameha ↔ Diabetes Mellitus & Metabolic Syndrome");

  // Correlation table
  const headers = ["Ayurvedic Concept", "Modern Equivalent"];
  const tableRows = [
    ["Prameha (all 20 types)", "Urinary disorders + Metabolic Syndrome"],
    ["Madhumeha (Vataja)", "Diabetes Mellitus (Type 1 & Type 2)"],
    ["Sahaja Prameha / Jatah Pramehi", "Type 1 Diabetes Mellitus (Juvenile)"],
    ["Apathyanimittaja Prameha", "Type 2 Diabetes Mellitus (Lifestyle-induced)"],
    ["Sthaulya + Prameha", "Obesity + Metabolic Syndrome"],
    ["Ojameha / Shukrameha", "Proteinuria / Glycosuria states"],
    ["Prameha Pidika", "Diabetic carbuncles / skin infections"],
    ["Dhatukshyaja Madhumeha", "Type 1 DM (Insulin deficiency state)"],
    ["Avaranajanya Madhumeha", "Type 2 DM (Insulin resistance state)"],
  ];

  const tStartY = 1.08;
  const tRowH = 0.42;
  const colWidths = [4.2, 4.7];
  const tStartX = 0.45;

  // Header
  let hx = tStartX;
  headers.forEach((h, i) => {
    s.addShape(pres.ShapeType.rect, { x: hx, y: tStartY, w: colWidths[i], h: 0.38, fill: { color: ACCENT }, line: { type: "none" } });
    s.addText(h, { x: hx + 0.1, y: tStartY + 0.04, w: colWidths[i] - 0.2, h: 0.3, fontSize: 12, bold: true, color: BG, fontFace: "Calibri", valign: "middle" });
    hx += colWidths[i] + 0.1;
  });

  tableRows.forEach((row, ri) => {
    const y = tStartY + 0.42 + ri * tRowH;
    const bg = ri % 2 === 0 ? CARD : "0E2540";
    let rx = tStartX;
    row.forEach((cell, ci) => {
      s.addShape(pres.ShapeType.rect, { x: rx, y, w: colWidths[ci], h: tRowH - 0.03, fill: { color: bg }, line: { color: TEAL, pt: 0.3 } });
      s.addText(cell, {
        x: rx + 0.1, y: y + 0.04, w: colWidths[ci] - 0.2, h: tRowH - 0.1,
        fontSize: 10, color: ci === 0 ? ACCENT : LIGHT, fontFace: "Calibri", valign: "middle"
      });
      rx += colWidths[ci] + 0.1;
    });
  });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 13 — SUMMARY / QUICK REVISION
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  addBg(s);
  addSlideTitle(s, "Quick Revision — Remember This!", "High-Yield Points for Exams");

  const points = [
    { num: "1", text: "Prameha = 20 types (10 Kaphaja + 6 Pittaja + 4 Vataja). Madhumeha is most severe." },
    { num: "2", text: "Dushyas = 10 (Rasa, Rakta, Mamsa, Meda, Asthi, Majja, Shukra, Lasika, Vasa, Mutra)" },
    { num: "3", text: "Sahaja Prameha = Type 1 DM | Apathyanimittaja Prameha = Type 2 DM" },
    { num: "4", text: "Sthula Pramehi → Apatarpana Chikitsa | Krusha Pramehi → Santarpana Chikitsa" },
    { num: "5", text: "Chief drug: Shilajatu. Classical formula: Chandraprabha Vati." },
    { num: "6", text: "Vataja Prameha = Asadhya | Kaphaja = Sadhya | Pittaja = Yapya" },
    { num: "7", text: "Mnemonic for Nidana: DAMS (Divaswapna, Avyayama, Madhura Ahara, Sneha)" },
    { num: "8", text: "Yava (barley) is the BEST Pathya grain in Prameha." },
  ];

  points.forEach((p, i) => {
    const col = i % 2;
    const row = Math.floor(i / 2);
    const x = 0.4 + col * 4.85;
    const y = 1.05 + row * 1.1;
    s.addShape(pres.ShapeType.rect, { x, y, w: 4.65, h: 0.95, fill: { color: CARD }, line: { color: ACCENT, pt: 0.8 } });
    s.addShape(pres.ShapeType.rect, { x, y, w: 0.42, h: 0.95, fill: { color: ACCENT }, line: { type: "none" } });
    s.addText(p.num, { x, y: y + 0.26, w: 0.42, h: 0.42, fontSize: 14, bold: true, color: BG, fontFace: "Calibri", align: "center" });
    s.addText(p.text, {
      x: x + 0.5, y: y + 0.08, w: 4.1, h: 0.8,
      fontSize: 10, color: LIGHT, fontFace: "Calibri", valign: "middle"
    });
  });
}

// ═══════════════════════════════════════════════════════════
// SLIDE 14 — THANK YOU
// ═══════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  addBg(s);

  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 1.8, fill: { color: TEAL }, line: { type: "none" } });
  s.addShape(pres.ShapeType.rect, { x: 0, y: 4.8, w: 10, h: 0.825, fill: { color: ACCENT }, line: { type: "none" } });

  s.addText("धन्यवाद", {
    x: 0.5, y: 0.3, w: 9, h: 1.1,
    fontSize: 52, bold: true, color: ACCENT, fontFace: "Calibri", align: "center"
  });

  s.addText("Thank You", {
    x: 0.5, y: 1.9, w: 9, h: 0.65,
    fontSize: 32, bold: true, color: LIGHT, fontFace: "Calibri", align: "center"
  });

  s.addShape(pres.ShapeType.rect, { x: 2.5, y: 2.65, w: 5, h: 0.05, fill: { color: ACCENT }, line: { type: "none" } });

  s.addText([
    { text: "Prameha", options: { bold: true, color: ACCENT, fontSize: 18 } },
    { text: "  —  Kayachikitsa, BAMS 3rd Year", options: { color: LIGHT, fontSize: 15 } }
  ], { x: 0.5, y: 2.82, w: 9, h: 0.5, fontFace: "Calibri", align: "center" });

  s.addText('"स्वस्थस्य स्वास्थ्य रक्षणं, आतुरस्य विकार प्रशमनं च"', {
    x: 0.5, y: 3.45, w: 9, h: 0.55,
    fontSize: 13, color: MUTED, fontFace: "Calibri", italic: true, align: "center"
  });
  s.addText("Preserve the health of the healthy; cure the diseases of the sick  — Charaka Samhita", {
    x: 0.5, y: 3.95, w: 9, h: 0.38,
    fontSize: 10, color: MUTED, fontFace: "Calibri", italic: true, align: "center"
  });

  s.addText("References: Charaka Samhita (Nidana 4, Chikitsa 6)  |  Sushruta Samhita (Nidana 6, Chikitsa 11–13)  |  Ashtanga Hridayam (Nidana 10)", {
    x: 0.5, y: 4.84, w: 9, h: 0.35,
    fontSize: 9, color: BG, fontFace: "Calibri", align: "center", bold: true
  });
}

// ─── SAVE ─────────────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/solar-system-ppt/Prameha_Kayachikitsa_BAMS3.pptx" })
  .then(() => console.log("✅ Saved: Prameha_Kayachikitsa_BAMS3.pptx"))
  .catch(err => { console.error("❌ Error:", err); process.exit(1); });
Running Command

cd /home/daytona/workspace/solar-system-ppt && node prameha.js 2>&1

Running Command

ls -lh /home/daytona/workspace/solar-system-ppt/Prameha_Kayachikitsa_BAMS3.pptx

Your presentation is ready! Download it here:

Prameha Kayachikitsa BAMS3

Presentation · PPTX


Presentation Overview — 14 Slides

#SlideContent
1Title SlidePrameha — BAMS 3rd Year, Kayachikitsa, with Sanskrit shloka
2Contents10-topic index with numbered navigation
3Introduction & DefinitionEtymology, Charaka / Sushruta / Vagbhata definitions
4NidanaAhara, Vihara, Manasika causes + DAMS mnemonic
5Purvarupa12 prodromal symptoms in a visual icon grid
6Bheda (Classification)Table of all 20 types + Sushruta's classification
7SampraptiStepwise pathogenesis flowchart + 10 Dushyas
8RupaCardinal symptoms + Upadravas (complications)
9SadhyasadhyataSadhya / Yapya / Asadhya — colour-coded prognosis
10ChikitsaShodhana, Dravya, Adravya chikitsa + classical formulas
11Pathya-ApathyaDo's & Don'ts side-by-side layout
12Modern CorrelationPrameha ↔ DM Type 1/2, Metabolic Syndrome table
13Quick Revision8 high-yield exam points with mnemonic
14Thank YouCharaka Samhita shloka + references
Design: Deep navy background with saffron/gold accents — professional Ayurveda aesthetic suited for academic presentations.

Give some high highlights on each slide

Here are the key highlights for each slide:

📑 Slide 1 — Title Slide

  • Opens with the Sanskrit phrase "Prabhuta Avila Mutrata" — the classical definition of Prameha
  • Establishes the 3 key tags: Ashtamahagada (Sushruta), Ashtamaharoga (Vagbhata), Tridoshaja Vyadhi
  • Sets the academic context: Kayachikitsa, BAMS 3rd Year, Brihattrayi references

📑 Slide 2 — Contents

  • 10 topics covered end-to-end following the Nidana Panchaka framework
  • Mirrors the exact structure used in BAMS exam answers and viva questions
  • Useful as a roadmap to flip back to during presentation

📑 Slide 3 — Introduction & Definition

  • Etymology: Pra (excess) + Meha (urination) — easy to remember
  • Three Brihattrayi definitions side by side:
    • Charaka → Prabhuta Avila Mutrata
    • Sushruta → Madhura Mootram
    • Vagbhata → Ashtamaharoga
  • Key point: Fundamentally a Kapha-predominant disease, but involves all 3 Doshas

📑 Slide 4 — Nidana (Etiology)

  • 3 categories: Ahara (dietary), Vihara (lifestyle), Manasika (mental/genetic)
  • Most important causes to remember: Ikshu Vikara, Divaswapna, Avyayama, Beeja Dosha
  • DAMS mnemonic — Divaswapna, Avyayama, Madhura Ahara, Sneha Sevan (exam favourite)

📑 Slide 5 — Purvarupa (Prodromal Symptoms)

  • 12 prodromal signs displayed in an icon grid — visually easy to memorize
  • Most high-yield ones: Pipilika Sanchara (ants crawling), Hasta-Pada Daha (burning palms/soles), Mukhya Madhurya (sweetness in mouth)
  • These appear before actual Prameha manifests — key for early diagnosis

📑 Slide 6 — Bheda (Classification)

  • 20 types total: 10 Kaphaja + 6 Pittaja + 4 Vataja — in a clear table
  • Madhumeha (Vataja) = most severe, terminal stage
  • Sushruta's separate classification: Sahaja vs Apathyanimittaja — directly correlates with Type 1 vs Type 2 DM

📑 Slide 7 — Samprapti (Pathogenesis)

  • Step-by-step flowchart: Nidana → Kapha+Meda Vriddhi → Kleda Sanchaya → Mutravaha Sroto Dushti → Prameha → Madhumeha
  • 10 Dushyas listed on the side (Rasa to Mutra) — first 4 are most commonly involved
  • Key concept: Avaranajanya (Vata obstruction) vs Dhatukshayajanya (tissue depletion) Madhumeha

📑 Slide 8 — Rupa (Clinical Features)

  • Cardinal triad: Polyuria + Turbid urine + Excessive thirst
  • Complications (Upadrava) are high-yield for exams: Prameha Pidika, Akshi Roga, Pada Daha (map to diabetic carbuncles, retinopathy, neuropathy)
  • Untreated Prameha of any type → terminates in Madhumeha

📑 Slide 9 — Sadhyasadhyata (Prognosis)

  • Colour-coded 3-column layout — green (Sadhya), amber (Yapya), red (Asadhya)
  • Critical rule: Kaphaja = Curable | Pittaja = Manageable | Vataja = Incurable
  • Sahaja Prameha is always Asadhya — genetic, cannot be cured, only managed
  • Ojakshaya is the deciding factor for severity

📑 Slide 10 — Chikitsa (Treatment)

  • Core principle: Body type decides treatment — Sthula (obese) → Apatarpana; Krusha (thin) → Santarpana
  • Shodhana: Vamana for Kaphaja, Virechana for Pittaja, Basti for Vataja
  • Shilajatu = chief single drug; Chandraprabha Vati = chief classical formulation
  • Adravya (non-drug) treatment is equally essential — Vyayama, Udwartana

📑 Slide 11 — Pathya-Apathya

  • Yava (barley) = best grain — always the answer in exams
  • Divaswapna is strictly prohibited — increases Kapha and Meda
  • Bitter tastes (Tikta rasa) are most beneficial — Karela, Nimba, Patola
  • Ikshu Vikara (sugarcane, sugar, jaggery) = worst food group to avoid

📑 Slide 12 — Modern Correlation

  • Full mapping table — Ayurvedic concept ↔ Modern disease equivalent
  • Most important correlations:
    • Sahaja Prameha = Type 1 DM
    • Apathyanimittaja = Type 2 DM
    • Avaranajanya Madhumeha = Insulin resistance
    • Dhatukshayajanya Madhumeha = Insulin deficiency
  • Prameha Pidika = Diabetic carbuncles/skin infections

📑 Slide 13 — Quick Revision

  • 8 exam-ready bullet points — designed to be read 10 minutes before viva
  • Covers the most commonly asked facts: 20 types count, Sadhyasadhyata rules, chief drug, best Pathya, treatment principles
  • DAMS mnemonic reinforced again for retention

📑 Slide 14 — Thank You

  • Closes with Charaka's foundational goal: "Preserve health of the healthy; cure the sick"
  • References all three Brihattrayi with exact chapter numbers — ready to cite in exams and seminars
  • Clean, professional ending with Sanskrit and transliteration

Exam tip: Slides 6 (Classification), 7 (Samprapti), 9 (Sadhyasadhyata), and 12 (Modern Correlation) are the most frequently asked topics in BAMS 3rd year written papers and viva.
This is a shared conversation. Sign in to Orris to start your own chat.