Make ppt on raktatisara and its ayurvedic management
Raktatisara Ayurvedic management definition causes symptoms treatment
https://www.easyayurveda.com/dysentery-causes-symptoms-ayurv…
Raktatisara samprapti nidana lakshana aushadhi Charaka Sushruta chikitsa pitta rakta dosha
ls -la /home/daytona/workspace/ 2>/dev/null || mkdir -p /home/daytona/workspace
mkdir -p /home/daytona/workspace/raktatisara-ppt && ls /home/daytona/workspace/raktatisara-ppt
~/raktatisara-ppt/raktatisara.js
const pptxgen = require("pptxgenjs");
let pres = new pptxgen();
pres.layout = 'LAYOUT_WIDE';
pres.title = 'Raktatisara and its Ayurvedic Management';
// ─── COLOR PALETTE ───────────────────────────────────────────────────────────
const C = {
deepRed: "8B0000", // dominant (dark red / rakta)
saffron: "C45F00", // accent (ayurvedic saffron)
cream: "FFF8F0", // light bg
ivory: "FAF3E0", // card bg
gold: "D4AF37", // headings accent
charcoal: "2D2D2D", // body text
white: "FFFFFF",
lightRed: "FDECEA",
midRed: "C0392B",
};
// ─── HELPER: dark slide background ───────────────────────────────────────────
function darkBg(slide) {
slide.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: "100%", h: "100%",
fill: { color: C.deepRed },
line: { color: C.deepRed },
});
}
// ─── HELPER: section accent bar ──────────────────────────────────────────────
function accentBar(slide, y = 0.55, color = C.gold) {
slide.addShape(pres.ShapeType.rect, {
x: 0.4, y, w: 12.5, h: 0.04,
fill: { color },
line: { color },
});
}
// ─── HELPER: content card ────────────────────────────────────────────────────
function card(slide, x, y, w, h, fillColor = C.ivory) {
slide.addShape(pres.ShapeType.roundRect, {
x, y, w, h,
fill: { color: fillColor },
line: { color: C.saffron, pt: 1.5 },
rectRadius: 0.12,
shadow: { type: "outer", color: "999999", blur: 6, offset: 2, angle: 45 },
});
}
// ─── HELPER: title header bar ────────────────────────────────────────────────
function headerBar(slide, title, subtitle = "") {
// top bar
slide.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: "100%", h: 1.0,
fill: { color: C.deepRed },
line: { color: C.deepRed },
});
slide.addText(title, {
x: 0.4, y: 0.05, w: 12, h: 0.85,
fontSize: 28, bold: true, color: C.gold, fontFace: "Georgia",
valign: "middle", align: "left", margin: 0,
});
if (subtitle) {
slide.addText(subtitle, {
x: 0.4, y: 0.62, w: 12, h: 0.38,
fontSize: 13, color: C.white, fontFace: "Calibri",
valign: "middle", align: "left", margin: 0,
});
}
accentBar(slide, 0.98, C.saffron);
}
// ═══════════════════════════════════════════════════════════════════════════════
// SLIDE 1: TITLE
// ═══════════════════════════════════════════════════════════════════════════════
{
let s = pres.addSlide();
darkBg(s);
// decorative circle motif
s.addShape(pres.ShapeType.ellipse, {
x: 9.8, y: -1.0, w: 5, h: 5,
fill: { color: "9B1010", transparency: 40 },
line: { color: "9B1010" },
});
s.addShape(pres.ShapeType.ellipse, {
x: -1.5, y: 3.5, w: 4, h: 4,
fill: { color: "6B0000", transparency: 40 },
line: { color: "6B0000" },
});
// Sanskrit / Devanagari-style ornamental bar
s.addShape(pres.ShapeType.rect, {
x: 0.5, y: 1.6, w: 0.08, h: 2.4,
fill: { color: C.gold }, line: { color: C.gold },
});
s.addText("रक्तातिसार", {
x: 0.8, y: 1.5, w: 11, h: 1.0,
fontSize: 40, bold: true, color: C.gold, fontFace: "Georgia",
align: "left", valign: "middle", margin: 0,
});
s.addText("RAKTATISARA", {
x: 0.8, y: 2.4, w: 11, h: 0.7,
fontSize: 32, bold: true, color: C.white, fontFace: "Georgia",
charSpacing: 6, align: "left", valign: "middle", margin: 0,
});
s.addText("Hemorrhagic Diarrhoea — An Ayurvedic Perspective", {
x: 0.8, y: 3.1, w: 10, h: 0.5,
fontSize: 17, color: "FFCCAA", fontFace: "Calibri",
align: "left", italic: true, margin: 0,
});
// subtitle band
s.addShape(pres.ShapeType.rect, {
x: 0, y: 4.0, w: "100%", h: 0.8,
fill: { color: C.saffron, transparency: 20 },
line: { color: C.saffron },
});
s.addText("Nidana • Samprapti • Lakshana • Chikitsa • Aushadhi", {
x: 0.5, y: 4.0, w: 12, h: 0.8,
fontSize: 14, color: C.white, fontFace: "Calibri",
align: "center", valign: "middle", charSpacing: 3, margin: 0,
});
// footer
s.addText("Based on Charaka Samhita, Sushruta Samhita & Ashtanga Hridayam", {
x: 0.5, y: 5.0, w: 12, h: 0.4,
fontSize: 10, color: "CCBBAA", fontFace: "Calibri",
align: "center", italic: true, margin: 0,
});
}
// ═══════════════════════════════════════════════════════════════════════════════
// SLIDE 2: OVERVIEW / DEFINITION
// ═══════════════════════════════════════════════════════════════════════════════
{
let s = pres.addSlide();
s.background = { color: C.cream };
headerBar(s, "What is Raktatisara?", "Definition & Classical Context");
// Main card
card(s, 0.4, 1.15, 12.2, 1.55);
s.addText([
{ text: "Raktatisara (Raktaja Atisara) ", options: { bold: true, color: C.deepRed } },
{ text: "is a type of hemorrhagic diarrhoea characterised by the passage of blood-mixed stools, caused by vitiation of ", options: { color: C.charcoal } },
{ text: "Pitta and Rakta doshas", options: { bold: true, color: C.saffron } },
{ text: ". It is described in Charaka Samhita (Chikitsa Sthana, Ch. 19), Sushruta Samhita and Ashtanga Hridayam under the chapter on Atisara (diarrhoea).", options: { color: C.charcoal } },
], { x: 0.6, y: 1.2, w: 11.8, h: 1.4, fontSize: 14, fontFace: "Calibri", valign: "middle", margin: 8 });
// three info boxes
const boxes = [
{ title: "Classical Reference", body: "Charaka Samhita — Chikitsa Sthana, Ch. 19\nSushruta Samhita — Uttara Tantra\nAshtanga Hridayam — Chikitsa Sthana" },
{ title: "Dosha Involved", body: "Pitta Pradhana — Primary\nRakta Dushti — Blood vitiation\nVata (secondary) — in complicated cases" },
{ title: "Modern Correlation", body: "Ulcerative Colitis\nHemorrhagic / Bloody Diarrhoea\nInfective Dysentery (Raktaja Pravahika)" },
];
boxes.forEach((b, i) => {
let x = 0.4 + i * 4.1;
card(s, x, 2.85, 3.8, 2.4, C.white);
s.addShape(pres.ShapeType.rect, {
x, y: 2.85, w: 3.8, h: 0.5,
fill: { color: C.deepRed }, line: { color: C.deepRed },
rectRadius: 0.1,
});
s.addText(b.title, {
x: x + 0.1, y: 2.85, w: 3.6, h: 0.5,
fontSize: 12, bold: true, color: C.white, fontFace: "Calibri",
align: "center", valign: "middle", margin: 0,
});
s.addText(b.body, {
x: x + 0.15, y: 3.4, w: 3.5, h: 1.8,
fontSize: 11.5, color: C.charcoal, fontFace: "Calibri",
valign: "top", align: "left", margin: 6,
});
});
}
// ═══════════════════════════════════════════════════════════════════════════════
// SLIDE 3: NIDANA (CAUSES)
// ═══════════════════════════════════════════════════════════════════════════════
{
let s = pres.addSlide();
s.background = { color: C.cream };
headerBar(s, "Nidana — Causative Factors", "Etiological factors for Raktatisara");
// Two columns
const col1 = [
["Aahara Nidana (Dietary)", [
"Amla (sour) food in excess",
"Lavana (salty) food in excess",
"Katu (pungent) & Teekshna (sharp) food",
"Kshaara (alkaline) & Ushna (hot) food",
"Vidahi (corrosive / irritant) food",
"Spicy, fried, processed food",
]],
["Vihara Nidana (Lifestyle)", [
"Atapa Sevana — excessive sun exposure",
"Agni Sevana — excessive heat exposure",
"Ushna Vayu — exposure to hot air/wind",
"Ratri Jagaran — late night working",
"Physical & emotional stress",
]],
];
const col2 = [
["Manasika Nidana (Mental)", [
"Krodha — anger",
"Irshya — jealousy",
"Chinta — anxiety / worry",
"Emotional turbulence aggravating Pitta",
]],
["Purvarupa Progression", [
"Neglected or undertreated Pittatisara",
"Progressive Pitta-Rakta vitiation",
"Rakta Dushti (blood impurity) ensues",
"Involvement of Purishavaha Srotas",
"Damage to Annavaha Srotas lining",
]],
];
[[col1, 0.4], [col2, 6.8]].forEach(([cols, startX]) => {
let y = 1.15;
cols.forEach(([title, items]) => {
card(s, startX, y, 6.0, 0.4 + items.length * 0.33 + 0.2);
s.addShape(pres.ShapeType.rect, {
x: startX, y, w: 6.0, h: 0.4,
fill: { color: C.saffron }, line: { color: C.saffron },
});
s.addText(title, {
x: startX + 0.1, y, w: 5.8, h: 0.4,
fontSize: 13, bold: true, color: C.white, fontFace: "Calibri",
align: "left", valign: "middle", margin: 6,
});
items.forEach((item, idx) => {
s.addText([
{ text: "▸ ", options: { color: C.saffron, bold: true } },
{ text: item, options: { color: C.charcoal } },
], {
x: startX + 0.2, y: y + 0.42 + idx * 0.33, w: 5.6, h: 0.32,
fontSize: 11.5, fontFace: "Calibri", valign: "middle", margin: 0,
});
});
y += 0.42 + items.length * 0.33 + 0.35;
});
});
}
// ═══════════════════════════════════════════════════════════════════════════════
// SLIDE 4: SAMPRAPTI (PATHOGENESIS)
// ═══════════════════════════════════════════════════════════════════════════════
{
let s = pres.addSlide();
s.background = { color: C.cream };
headerBar(s, "Samprapti — Pathogenesis", "Shat Kriyakala & Dosha Dushya Sammurchana");
// Flow chart steps
const steps = [
{ n: "1", label: "Nidana Sevana", desc: "Intake of Pitta aggravating diet & lifestyle" },
{ n: "2", label: "Pitta Prakopa", desc: "Pitta dosha gets vitiated (Sanchaya → Prakopa)" },
{ n: "3", label: "Rakta Dushti", desc: "Vitiated Pitta corrupts Rakta (blood) — Pitta-Rakta Sammurchana" },
{ n: "4", label: "Srotas Dushti", desc: "Annavaha & Purishavaha Srotas get affected — mucosal damage" },
{ n: "5", label: "Pittaatisara", desc: "Yellow/green stools, burning — Pittaja Atisara stage" },
{ n: "6", label: "Raktatisara", desc: "Progression: blood-mixed stools — Raktaja Atisara (Raktatisara)" },
];
steps.forEach((st, i) => {
let col = i % 3;
let row = Math.floor(i / 3);
let x = 0.4 + col * 4.2;
let y = 1.2 + row * 1.85;
// circle number
s.addShape(pres.ShapeType.ellipse, {
x: x, y: y, w: 0.55, h: 0.55,
fill: { color: C.deepRed }, line: { color: C.deepRed },
});
s.addText(st.n, {
x: x, y: y, w: 0.55, h: 0.55,
fontSize: 14, bold: true, color: C.white, fontFace: "Georgia",
align: "center", valign: "middle", margin: 0,
});
card(s, x + 0.65, y, 3.4, 1.4);
s.addText(st.label, {
x: x + 0.75, y: y + 0.05, w: 3.2, h: 0.45,
fontSize: 13, bold: true, color: C.deepRed, fontFace: "Georgia",
align: "left", valign: "middle", margin: 4,
});
s.addText(st.desc, {
x: x + 0.75, y: y + 0.48, w: 3.2, h: 0.85,
fontSize: 11, color: C.charcoal, fontFace: "Calibri",
align: "left", valign: "top", margin: 4,
});
// Arrow between steps (within each row)
if (col < 2 && i < steps.length - 1 && Math.floor(i / 3) === Math.floor((i + 1) / 3)) {
s.addShape(pres.ShapeType.rect, {
x: x + 0.65 + 3.4, y: y + 0.6, w: 0.55, h: 0.08,
fill: { color: C.saffron }, line: { color: C.saffron },
});
}
});
// Row connector arrow
s.addShape(pres.ShapeType.rect, {
x: 6.5, y: 3.0, w: 0.08, h: 0.3,
fill: { color: C.saffron }, line: { color: C.saffron },
});
}
// ═══════════════════════════════════════════════════════════════════════════════
// SLIDE 5: LAKSHANA (SYMPTOMS)
// ═══════════════════════════════════════════════════════════════════════════════
{
let s = pres.addSlide();
s.background = { color: C.cream };
headerBar(s, "Lakshana — Clinical Features", "Signs & Symptoms of Raktatisara");
const symptoms = [
{ icon: "🩸", name: "Rakta Srava", desc: "Passage of blood-mixed stools (principal feature)" },
{ icon: "🔥", name: "Gudapaaka", desc: "Burning sensation in the rectum and anus" },
{ icon: "😣", name: "Shula", desc: "Colicky abdominal pain (Udara Shula)" },
{ icon: "💧", name: "Trishna", desc: "Excessive thirst (due to fluid loss)" },
{ icon: "🌡️", name: "Jwara", desc: "Low-grade fever associated with inflammation" },
{ icon: "😰", name: "Daurbalya", desc: "General weakness and debility" },
{ icon: "😵", name: "Moorcha / Bhrama", desc: "Giddiness or fainting (in severe cases)" },
{ icon: "🟤", name: "Picchila Mala", desc: "Slimy / mucous mixed stools with foul odour" },
{ icon: "⚡", name: "Pravahana", desc: "Tenesmus — painful straining at stool" },
{ icon: "😟", name: "Aruchi", desc: "Loss of appetite and nausea" },
{ icon: "💔", name: "Hridaya Shoola", desc: "Palpitations or cardiac discomfort (severe cases)" },
{ icon: "🔴", name: "Rakta Varna Mutra", desc: "Reddish urine due to systemic Rakta vitiation" },
];
symptoms.forEach((sym, i) => {
let col = i % 3;
let row = Math.floor(i / 3);
let x = 0.3 + col * 4.3;
let y = 1.15 + row * 1.05;
card(s, x, y, 4.1, 0.9, C.white);
s.addShape(pres.ShapeType.rect, {
x, y, w: 0.55, h: 0.9,
fill: { color: C.deepRed }, line: { color: C.deepRed },
});
s.addText(sym.icon, {
x: x, y: y, w: 0.55, h: 0.9,
fontSize: 20, align: "center", valign: "middle", margin: 0,
});
s.addText(sym.name, {
x: x + 0.6, y: y + 0.03, w: 3.4, h: 0.36,
fontSize: 12, bold: true, color: C.deepRed, fontFace: "Georgia",
align: "left", valign: "middle", margin: 2,
});
s.addText(sym.desc, {
x: x + 0.6, y: y + 0.38, w: 3.4, h: 0.48,
fontSize: 10, color: C.charcoal, fontFace: "Calibri",
align: "left", valign: "top", margin: 2,
});
});
}
// ═══════════════════════════════════════════════════════════════════════════════
// SLIDE 6: BHEDA (TYPES / CLASSIFICATION)
// ═══════════════════════════════════════════════════════════════════════════════
{
let s = pres.addSlide();
s.background = { color: C.cream };
headerBar(s, "Bheda — Classification of Atisara", "Six classical types with Raktatisara highlighted");
const types = [
{ name: "Vataja Atisara", color: "2980B9", desc: "Frothy, thin, cold stools; rumbling; Vata dominant", highlight: false },
{ name: "Pittaja Atisara", color: "E67E22", desc: "Yellow/green, hot, foul-smelling stools; burning; Pitta dominant", highlight: false },
{ name: "Kaphaja Atisara", color: "27AE60", desc: "Slimy, pale, heavy stools; Kapha dominant", highlight: false },
{ name: "Raktatisara ★", color: C.deepRed, desc: "Blood-mixed stools; burning; Pitta-Rakta vitiation — FOCUS TOPIC", highlight: true },
{ name: "Sannipataja Atisara", color: "8E44AD", desc: "All three Doshas vitiated; multicoloured stools; most severe", highlight: false },
{ name: "Amatisara", color: "7F8C8D", desc: "Diarrhoea caused by Ama (undigested material); foul smell; initial stage", highlight: false },
];
types.forEach((t, i) => {
let col = i % 3;
let row = Math.floor(i / 3);
let x = 0.4 + col * 4.2;
let y = 1.15 + row * 2.0;
let fillC = t.highlight ? C.lightRed : C.white;
let borderC = t.highlight ? C.deepRed : C.saffron;
card(s, x, y, 3.9, 1.75, fillC);
if (t.highlight) {
s.addShape(pres.ShapeType.rect, {
x, y, w: 3.9, h: 1.75,
fill: { color: "00000000", transparency: 100 },
line: { color: C.deepRed, pt: 2.5 },
});
}
s.addShape(pres.ShapeType.rect, {
x, y, w: 3.9, h: 0.48,
fill: { color: t.color }, line: { color: t.color },
});
s.addText(t.name, {
x: x + 0.08, y, w: 3.74, h: 0.48,
fontSize: t.highlight ? 13 : 12, bold: true, color: C.white, fontFace: "Georgia",
align: "left", valign: "middle", margin: 6,
});
s.addText(t.desc, {
x: x + 0.12, y: y + 0.52, w: 3.66, h: 1.15,
fontSize: 11, color: C.charcoal, fontFace: "Calibri",
align: "left", valign: "top", margin: 4,
});
});
}
// ═══════════════════════════════════════════════════════════════════════════════
// SLIDE 7: CHIKITSA SIDDHANTA (TREATMENT PRINCIPLES)
// ═══════════════════════════════════════════════════════════════════════════════
{
let s = pres.addSlide();
s.background = { color: C.cream };
headerBar(s, "Chikitsa Siddhanta — Treatment Principles", "General therapeutic approach in Raktatisara");
const principles = [
{
num: "1", title: "Nidana Parivarjana",
body: "First and foremost — eliminate all causative factors (dietary & lifestyle). Stop intake of Pitta-Rakta aggravating foods and avoid heat exposure.",
},
{
num: "2", title: "Deepana-Pachana",
body: "Kindle Agni (digestive fire) and digest Ama before any Stambhana (anti-diarrhoel) treatment. Use drugs like Musta, Chitrakadi Vati.",
},
{
num: "3", title: "Pitta-Rakta Shamana",
body: "Cool and pacify vitiated Pitta and Rakta. Use Sheeta (cold), Madhura (sweet), Tikta (bitter) dravyas — e.g. Draksha, Guduchi, Ushira.",
},
{
num: "4", title: "Stambhana Chikitsa",
body: "Anti-diarrhoeal therapy ONLY after Deepana-Pachana. Use astringent (Kashaya rasa) drugs: Lodhra, Kutaja, Nagakeshara.",
},
{
num: "5", title: "Rakta Stambhana",
body: "Stop bleeding: haemostatic herbs — Nagakeshara, Lodhra, Dhataki, Yavasa. These have Rakta Stambhaka karma.",
},
{
num: "6", title: "Basti Chikitsa",
body: "Piccha Basti (unctuous enema with mucilaginous drugs) is described in Charaka Samhita for Raktatisara — heals mucosal ulceration.",
},
];
principles.forEach((p, i) => {
let col = i % 2;
let row = Math.floor(i / 2);
let x = 0.4 + col * 6.4;
let y = 1.15 + row * 1.5;
card(s, x, y, 6.1, 1.35);
s.addShape(pres.ShapeType.ellipse, {
x: x + 0.1, y: y + 0.35, w: 0.6, h: 0.6,
fill: { color: C.deepRed }, line: { color: C.deepRed },
});
s.addText(p.num, {
x: x + 0.1, y: y + 0.35, w: 0.6, h: 0.6,
fontSize: 16, bold: true, color: C.white, fontFace: "Georgia",
align: "center", valign: "middle", margin: 0,
});
s.addText(p.title, {
x: x + 0.85, y: y + 0.06, w: 5.1, h: 0.42,
fontSize: 13, bold: true, color: C.saffron, fontFace: "Georgia",
align: "left", valign: "middle", margin: 0,
});
s.addText(p.body, {
x: x + 0.85, y: y + 0.46, w: 5.1, h: 0.82,
fontSize: 10.5, color: C.charcoal, fontFace: "Calibri",
align: "left", valign: "top", margin: 0,
});
});
}
// ═══════════════════════════════════════════════════════════════════════════════
// SLIDE 8: AUSHADHI — SINGLE DRUGS
// ═══════════════════════════════════════════════════════════════════════════════
{
let s = pres.addSlide();
s.background = { color: C.cream };
headerBar(s, "Aushadhi — Single Drugs (Ekakala Dravya)", "Key herbs used in Raktatisara management");
const drugs = [
{ name: "Kutaja", latin: "Holarrhena antidysenterica", karma: "Grahi, Atisara Nashaka, anti-dysenteric" },
{ name: "Nagakeshara", latin: "Mesua ferrea", karma: "Raktatisara Nashaka, Raktasthambhaka, haemostatic" },
{ name: "Lodhra", latin: "Symplocos racemosa", karma: "Rakta Stambhaka — checks bleeding; astringent" },
{ name: "Musta", latin: "Cyperus rotundus", karma: "Amapachana, Agnideepana, Grahi — reduces bowel frequency" },
{ name: "Draksha", latin: "Vitis vinifera", karma: "Pitta-Rakta Shamaka, Trishna Nashaka, cooling" },
{ name: "Guduchi", latin: "Tinospora cordifolia", karma: "Pitta Shamaka, immunomodulator, Rasayana" },
{ name: "Ushira", latin: "Vetiveria zizanioides", karma: "Sheeta, Pitta Rakta Shamaka, diuretic" },
{ name: "Nimba", latin: "Azadirachta indica", karma: "Krimighna, Pitta Shamaka, anti-inflammatory" },
{ name: "Dhataki", latin: "Woodfordia fruticosa", karma: "Rakta Stambhaka, Grahi, checks bleeding" },
{ name: "Mocharasa", latin: "Salmalia malabarica (Bombax)", karma: "Astringent, haemostatic, mucosal healing" },
];
drugs.forEach((d, i) => {
let col = i % 2;
let row = Math.floor(i / 2);
let x = 0.4 + col * 6.4;
let y = 1.12 + row * 0.84;
card(s, x, y, 6.1, 0.75, col === 0 ? C.white : C.ivory);
s.addText(d.name, {
x: x + 0.12, y: y + 0.04, w: 1.8, h: 0.35,
fontSize: 12, bold: true, color: C.deepRed, fontFace: "Georgia",
align: "left", valign: "middle", margin: 0,
});
s.addText(d.latin, {
x: x + 0.12, y: y + 0.38, w: 2.5, h: 0.3,
fontSize: 9, italic: true, color: "888888", fontFace: "Calibri",
align: "left", valign: "middle", margin: 0,
});
s.addShape(pres.ShapeType.rect, {
x: x + 2.2, y: y + 0.12, w: 0.04, h: 0.55,
fill: { color: C.saffron }, line: { color: C.saffron },
});
s.addText(d.karma, {
x: x + 2.4, y: y + 0.05, w: 3.55, h: 0.65,
fontSize: 10.5, color: C.charcoal, fontFace: "Calibri",
align: "left", valign: "middle", margin: 2,
});
});
}
// ═══════════════════════════════════════════════════════════════════════════════
// SLIDE 9: CLASSICAL FORMULATIONS
// ═══════════════════════════════════════════════════════════════════════════════
{
let s = pres.addSlide();
s.background = { color: C.cream };
headerBar(s, "Yoga / Formulations — Classical Preparations", "Multi-drug Ayurvedic formulations for Raktatisara");
const formulations = [
{
name: "Kutajarishtam",
type: "Arishta (fermented decoction)",
use: "Chief formulation — strongly indicated in Raktaja Atisara; anti-dysenteric, astringent",
dose: "15–20 ml with equal water after meals",
},
{
name: "Kutaja Ghan Vati",
type: "Ghan Vati (solid extract tablet)",
use: "Kutaja-based concentrated extract; Atisara Nashaka, Grahi, anti-infective",
dose: "250–500 mg twice daily",
},
{
name: "Mustaarishtam",
type: "Arishta",
use: "Ama Pachana + Stambhana; reduces bowel frequency, anti-inflammatory",
dose: "15 ml twice daily with water",
},
{
name: "Nagakeshara Churna",
type: "Churna (powder)",
use: "Raktatisara Nashaka — direct haemostatic action; reduces rectal bleeding",
dose: "1–3 g with honey/buttermilk",
},
{
name: "Piccha Basti",
type: "Basti (medicated enema)",
use: "Charaka's recommendation for Raktatisara — Udumbara kwatha-based enema heals colon ulcers, Stambhana",
dose: "80–100 ml per session (Anuvasana/Niruha)",
},
{
name: "Bilwadi Churna",
type: "Churna",
use: "Bilwa + Kutaja + Musta; Deepana Pachana + Stambhana; first-line for Ama + Raktatisara",
dose: "3–5 g twice daily with buttermilk",
},
{
name: "Chandanasava",
type: "Asava (fermented)",
use: "Pitta-Rakta Shamaka; cooling, anti-inflammatory; used in burning & bleeding",
dose: "15–20 ml after meals",
},
{
name: "Dhatri Lauha",
type: "Lauha (iron preparation)",
use: "Amalaki + iron — corrects anaemia from chronic Raktatisara; Pitta Shamaka",
dose: "250–500 mg twice daily with honey",
},
];
formulations.forEach((f, i) => {
let col = i % 2;
let row = Math.floor(i / 2);
let x = 0.4 + col * 6.4;
let y = 1.12 + row * 1.08;
card(s, x, y, 6.1, 0.97);
s.addShape(pres.ShapeType.rect, {
x, y, w: 2.2, h: 0.97,
fill: { color: row % 2 === 0 ? C.deepRed : C.saffron },
line: { color: row % 2 === 0 ? C.deepRed : C.saffron },
});
s.addText(f.name, {
x: x + 0.08, y: y + 0.04, w: 2.05, h: 0.42,
fontSize: 12, bold: true, color: C.white, fontFace: "Georgia",
align: "left", valign: "middle", margin: 2,
});
s.addText(f.type, {
x: x + 0.08, y: y + 0.48, w: 2.05, h: 0.42,
fontSize: 9, italic: true, color: "FFE0CC", fontFace: "Calibri",
align: "left", valign: "middle", margin: 2,
});
s.addText([
{ text: f.use + " ", options: { color: C.charcoal } },
{ text: "Dose: " + f.dose, options: { color: C.saffron, bold: true } },
], {
x: x + 2.3, y: y + 0.06, w: 3.65, h: 0.85,
fontSize: 10.5, fontFace: "Calibri",
align: "left", valign: "middle", margin: 4,
});
});
}
// ═══════════════════════════════════════════════════════════════════════════════
// SLIDE 10: PATHYA-APATHYA (DIET)
// ═══════════════════════════════════════════════════════════════════════════════
{
let s = pres.addSlide();
s.background = { color: C.cream };
headerBar(s, "Pathya-Apathya — Dietary Guidelines", "What to take and what to avoid in Raktatisara");
// Pathya column
card(s, 0.4, 1.15, 5.9, 4.1, C.white);
s.addShape(pres.ShapeType.rect, {
x: 0.4, y: 1.15, w: 5.9, h: 0.5,
fill: { color: "27AE60" }, line: { color: "27AE60" },
});
s.addText("✅ PATHYA — Beneficial", {
x: 0.5, y: 1.15, w: 5.7, h: 0.5,
fontSize: 14, bold: true, color: C.white, fontFace: "Calibri",
align: "left", valign: "middle", margin: 4,
});
const pathya = [
"Peya (thin rice gruel / rice water)",
"Yavagu (thick rice gruel) — light & easy to digest",
"Takra (buttermilk) — deepana, grahi",
"Draksha (grapes / raisin water) — cooling",
"Pomegranate juice (Dadima) — Pitta Shamaka",
"Moong dal soup (Mudga) — easy digestion",
"Banana (Kadali) — astringent, cooling",
"Coconut water — Sheeta, electrolyte replacement",
"Bael fruit (Bilwa) — Grahi, anti-diarrhoeal",
"Light, bland, freshly cooked food",
];
pathya.forEach((item, idx) => {
s.addText([
{ text: "● ", options: { color: "27AE60", bold: true } },
{ text: item, options: { color: C.charcoal } },
], {
x: 0.55, y: 1.73 + idx * 0.34, w: 5.6, h: 0.32,
fontSize: 11, fontFace: "Calibri", valign: "middle", margin: 0,
});
});
// Apathya column
card(s, 6.8, 1.15, 5.9, 4.1, C.lightRed);
s.addShape(pres.ShapeType.rect, {
x: 6.8, y: 1.15, w: 5.9, h: 0.5,
fill: { color: C.deepRed }, line: { color: C.deepRed },
});
s.addText("❌ APATHYA — To Avoid", {
x: 6.9, y: 1.15, w: 5.7, h: 0.5,
fontSize: 14, bold: true, color: C.white, fontFace: "Calibri",
align: "left", valign: "middle", margin: 4,
});
const apathya = [
"Amla (sour) foods — curd, tamarind, vinegar",
"Lavana (excess salt) — aggravates Pitta-Rakta",
"Katu (spicy / pungent) foods — chilli, pepper",
"Fried, processed, oily foods",
"Meat / non-vegetarian (especially Abhishyandi)",
"Alcohol — direct Pitta aggravant",
"Maida / refined flour products",
"Ice-cold / refrigerated foods",
"Excessive raw vegetables and legumes",
"Late-night eating, heavy meals",
];
apathya.forEach((item, idx) => {
s.addText([
{ text: "● ", options: { color: C.deepRed, bold: true } },
{ text: item, options: { color: C.charcoal } },
], {
x: 6.95, y: 1.73 + idx * 0.34, w: 5.55, h: 0.32,
fontSize: 11, fontFace: "Calibri", valign: "middle", margin: 0,
});
});
}
// ═══════════════════════════════════════════════════════════════════════════════
// SLIDE 11: SADHYA-ASADHYATA (PROGNOSIS)
// ═══════════════════════════════════════════════════════════════════════════════
{
let s = pres.addSlide();
s.background = { color: C.cream };
headerBar(s, "Sadhya-Asadhyata — Prognosis", "Treatability criteria as per classical texts");
const sections = [
{
title: "Sadhya (Curable)", color: "27AE60",
items: [
"Recent onset (Nava Roga) — less than 2 weeks",
"Patient with good Bala (strength) and Agni",
"Single Dosha involvement",
"No systemic complications",
"Responds to initial Deepana-Pachana",
"Young, otherwise healthy individual",
]
},
{
title: "Kashta Sadhya (Difficult)", color: "E67E22",
items: [
"Chronic / longstanding Raktatisara",
"Involvement of 2 Doshas (Pitta + Vata)",
"Associated Grahani (malabsorption)",
"Moderate anaemia / weakness",
"Recurrent relapses on treatment",
]
},
{
title: "Asadhya (Incurable / Complications)", color: C.deepRed,
items: [
"Passage of flesh-like material (Mamsavat Mala)",
"Extreme emaciation — Mamsa-Rakta Kshaya",
"All three Doshas vitiated (Sannipataja)",
"Severe Agni Naasha (digestive failure)",
"Moorcha, Bhrama — severe systemic involvement",
"Non-response to all treatments",
]
},
];
sections.forEach((sec, i) => {
let x = 0.4 + i * 4.2;
card(s, x, 1.15, 3.9, 4.0, C.white);
s.addShape(pres.ShapeType.rect, {
x, y: 1.15, w: 3.9, h: 0.5,
fill: { color: sec.color }, line: { color: sec.color },
});
s.addText(sec.title, {
x: x + 0.1, y: 1.15, w: 3.7, h: 0.5,
fontSize: 13, bold: true, color: C.white, fontFace: "Georgia",
align: "center", valign: "middle", margin: 0,
});
sec.items.forEach((item, idx) => {
s.addText([
{ text: "▸ ", options: { color: sec.color, bold: true } },
{ text: item, options: { color: C.charcoal } },
], {
x: x + 0.15, y: 1.72 + idx * 0.52, w: 3.6, h: 0.48,
fontSize: 11, fontFace: "Calibri", valign: "top", margin: 0,
});
});
});
}
// ═══════════════════════════════════════════════════════════════════════════════
// SLIDE 12: MODERN CORRELATION
// ═══════════════════════════════════════════════════════════════════════════════
{
let s = pres.addSlide();
s.background = { color: C.cream };
headerBar(s, "Modern Correlation", "Raktatisara in contemporary medical perspective");
// Central comparison
card(s, 0.4, 1.15, 5.8, 4.1, C.white);
s.addShape(pres.ShapeType.rect, {
x: 0.4, y: 1.15, w: 5.8, h: 0.5,
fill: { color: C.deepRed }, line: { color: C.deepRed },
});
s.addText("Raktatisara (Ayurveda)", {
x: 0.5, y: 1.15, w: 5.6, h: 0.5,
fontSize: 14, bold: true, color: C.white, fontFace: "Georgia",
align: "center", valign: "middle", margin: 0,
});
const ayurveda = [
"Pitta-Rakta vitiation causing mucosal inflammation",
"Purishavaha Srotas & Annavaha Srotas involved",
"Healed by Pitta Shamana + Basti therapy",
"Grahi / Stambhana herbs — astringent mucosal healing",
"Deepana-Pachana for Ama clearance",
"Kutajarishtam — chief formulation",
"Piccha Basti — medicated enema",
"Pathya: light cooling diet, Takra, Draksha",
];
ayurveda.forEach((item, idx) => {
s.addText([
{ text: "◆ ", options: { color: C.deepRed, bold: true } },
{ text: item, options: { color: C.charcoal } },
], {
x: 0.55, y: 1.72 + idx * 0.42, w: 5.5, h: 0.38,
fontSize: 11, fontFace: "Calibri", valign: "middle", margin: 0,
});
});
card(s, 6.8, 1.15, 5.9, 4.1, C.ivory);
s.addShape(pres.ShapeType.rect, {
x: 6.8, y: 1.15, w: 5.9, h: 0.5,
fill: { color: C.saffron }, line: { color: C.saffron },
});
s.addText("Modern Medicine Correlation", {
x: 6.9, y: 1.15, w: 5.7, h: 0.5,
fontSize: 14, bold: true, color: C.white, fontFace: "Georgia",
align: "center", valign: "middle", margin: 0,
});
const modern = [
"Ulcerative Colitis (UC) — chronic IBD with rectal bleeding",
"Hemorrhagic Dysentery (Shigella, E. coli)",
"Ischemic colitis, infectious colitis",
"Managed with 5-ASA, steroids, immunosuppressants",
"Colonoscopy reveals mucosal ulceration / erythema",
"Ayurvedic drugs show anti-inflammatory, mucosal-healing properties",
"Kutaja alkaloids — proven anti-dysenteric action",
"Piccha Basti ~ local drug delivery to colon",
];
modern.forEach((item, idx) => {
s.addText([
{ text: "◆ ", options: { color: C.saffron, bold: true } },
{ text: item, options: { color: C.charcoal } },
], {
x: 6.95, y: 1.72 + idx * 0.42, w: 5.6, h: 0.38,
fontSize: 11, fontFace: "Calibri", valign: "middle", margin: 0,
});
});
}
// ═══════════════════════════════════════════════════════════════════════════════
// SLIDE 13: SUMMARY / CONCLUSION
// ═══════════════════════════════════════════════════════════════════════════════
{
let s = pres.addSlide();
darkBg(s);
s.addShape(pres.ShapeType.ellipse, {
x: 9.5, y: -0.8, w: 5, h: 5,
fill: { color: "9B1010", transparency: 50 },
line: { color: "9B1010" },
});
s.addText("Key Takeaways", {
x: 0.5, y: 0.2, w: 12, h: 0.7,
fontSize: 28, bold: true, color: C.gold, fontFace: "Georgia",
align: "left", valign: "middle", margin: 0,
});
accentBar(s, 0.88, C.saffron);
const points = [
{ icon: "🔴", text: "Raktatisara = Raktaja Atisara — hemorrhagic diarrhoea caused by Pitta-Rakta vitiation; correlates with ulcerative colitis / hemorrhagic dysentery." },
{ icon: "⚡", text: "Nidana: excess spicy, hot, sour food; heat exposure; anger; neglected Pittatisara is the primary precursor." },
{ icon: "🔬", text: "Samprapti: Pitta → Rakta dushti → Srotas damage → blood in stools (Raktatisara)." },
{ icon: "💊", text: "Chikitsa sequence: Nidana Parivarjana → Deepana-Pachana → Pitta-Rakta Shamana → Stambhana → Basti." },
{ icon: "🌿", text: "Key drugs: Kutaja (chief), Nagakeshara, Lodhra, Musta, Draksha, Guduchi; formulations: Kutajarishtam, Kutaja Ghan Vati, Piccha Basti." },
{ icon: "🥗", text: "Pathya: Peya, Yavagu, Takra, Dadima, Bilwa. Apathya: Spicy, sour, fried, alcohol." },
{ icon: "📊", text: "Prognosis: Sadhya (curable) if recent & single Dosha; Asadhya if chronic with Mamsa-Rakta Kshaya and Sannipataja." },
];
points.forEach((pt, i) => {
s.addShape(pres.ShapeType.rect, {
x: 0.4, y: 1.0 + i * 0.6, w: "94%", h: 0.52,
fill: { color: i % 2 === 0 ? "6B0000" : "5A0000", transparency: 30 },
line: { color: C.saffron, pt: 0.5 },
});
s.addText(pt.icon + " " + pt.text, {
x: 0.55, y: 1.0 + i * 0.6, w: 12.1, h: 0.52,
fontSize: 11.5, color: C.white, fontFace: "Calibri",
align: "left", valign: "middle", margin: 4,
});
});
s.addText("रोगस्य मूलं नास्ति — सम्यक् चिकित्सेन सर्वे रोगाः जीयन्ते।", {
x: 0.5, y: 5.15, w: 12, h: 0.35,
fontSize: 11, italic: true, color: "FFCCAA", fontFace: "Calibri",
align: "center", margin: 0,
});
}
// ─── Write file ───────────────────────────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/raktatisara-ppt/Raktatisara_Ayurvedic_Management.pptx" })
.then(() => console.log("SUCCESS: Presentation saved."))
.catch(err => { console.error("ERROR:", err); process.exit(1); });
cd /home/daytona/workspace/raktatisara-ppt && node raktatisara.js
ls -lh /home/daytona/workspace/raktatisara-ppt/Raktatisara_Ayurvedic_Management.pptx
Raktatisara Ayurvedic Management
Presentation · PPTX
| Slide | Content |
|---|---|
| 1 | Title Slide — Dark red theme with Sanskrit (रक्तातिसार) and English title |
| 2 | Definition & Overview — Classical references, Dosha involved, modern correlation |
| 3 | Nidana (Causes) — Dietary, lifestyle, mental causes; role of neglected Pittatisara |
| 4 | Samprapti (Pathogenesis) — 6-step flowchart from Nidana to Raktatisara |
| 5 | Lakshana (Symptoms) — 12 symptoms with icons: Rakta Srava, Gudapaaka, Shula, Trishna, Jwara, Pravahana, etc. |
| 6 | Bheda (Classification) — All 6 types of Atisara; Raktatisara highlighted |
| 7 | Chikitsa Siddhanta — 6 treatment principles: Nidana Parivarjana → Deepana-Pachana → Pitta Shamana → Stambhana → Rakta Stambhana → Basti |
| 8 | Single Drugs (Aushadhi) — 10 herbs with Latin names and Karma (Kutaja, Nagakeshara, Lodhra, Musta, Draksha, etc.) |
| 9 | Classical Formulations — 8 formulations with dosage (Kutajarishtam, Piccha Basti, Kutaja Ghan Vati, etc.) |
| 10 | Pathya-Apathya — Side-by-side diet chart (what to eat vs. avoid) |
| 11 | Prognosis — Sadhya / Kashta Sadhya / Asadhya classification |
| 12 | Modern Correlation — Ayurvedic vs. modern medicine comparison (UC, hemorrhagic dysentery) |
| 13 | Summary — Key takeaways on dark background with Sanskrit quote |