Make a ppt on birth injury according to to modern and Ayurveda
birth injury Ayurveda Jatakahara Sharira Sthana treatment neonatal
https://www.carakasamhitaonline.com/index.php/Neonatal_care
mkdir -p /tmp/workspace/birth-injury-ppt && ls /tmp/workspace/
~/birth-injury-ppt/create_ppt.py
from pptx import Presentation
from pptx.util import Inches, Pt, Emu
from pptx.dml.color import RGBColor
from pptx.enum.text import PP_ALIGN, MSO_ANCHOR
from pptx.util import Inches, Pt
from io import BytesIO
# Color palette
DEEP_GREEN = RGBColor(0x1A, 0x5C, 0x3A) # Ayurveda / dark green
MED_BLUE = RGBColor(0x0A, 0x3D, 0x7A) # Modern medicine blue
GOLD = RGBColor(0xC8, 0x9B, 0x2A) # Accent gold
LIGHT_GREEN = RGBColor(0xE8, 0xF5, 0xEE) # Ayurveda light bg
LIGHT_BLUE = RGBColor(0xE8, 0xF0, 0xFB) # Modern light bg
WHITE = RGBColor(0xFF, 0xFF, 0xFF)
DARK_GRAY = RGBColor(0x33, 0x33, 0x33)
MID_GRAY = RGBColor(0x66, 0x66, 0x66)
CREAM = RGBColor(0xFD, 0xF6, 0xE8)
ACCENT_RED = RGBColor(0xC0, 0x39, 0x2B)
prs = Presentation()
prs.slide_width = Inches(13.333)
prs.slide_height = Inches(7.5)
blank = prs.slide_layouts[6]
def add_rect(slide, x, y, w, h, color, alpha=None):
shape = slide.shapes.add_shape(1, Inches(x), Inches(y), Inches(w), Inches(h))
shape.fill.solid()
shape.fill.fore_color.rgb = color
shape.line.fill.background()
return shape
def add_text(slide, text, x, y, w, h, size, color, bold=False, align=PP_ALIGN.LEFT, wrap=True, italic=False):
tb = slide.shapes.add_textbox(Inches(x), Inches(y), Inches(w), Inches(h))
tf = tb.text_frame
tf.word_wrap = wrap
tf.margin_left = 0; tf.margin_right = 0; tf.margin_top = 0; tf.margin_bottom = 0
p = tf.paragraphs[0]
p.alignment = align
r = p.add_run()
r.text = text
r.font.size = Pt(size)
r.font.color.rgb = color
r.font.bold = bold
r.font.italic = italic
return tb
def add_multiline_text(slide, lines, x, y, w, h, size, color, bold=False, align=PP_ALIGN.LEFT, line_spacing=1.0):
tb = slide.shapes.add_textbox(Inches(x), Inches(y), Inches(w), Inches(h))
tf = tb.text_frame
tf.word_wrap = True
tf.margin_left = Pt(2); tf.margin_right = Pt(2); tf.margin_top = Pt(2); tf.margin_bottom = Pt(2)
from pptx.oxml.ns import qn
from lxml import etree
first = True
for line in lines:
if first:
p = tf.paragraphs[0]
first = False
else:
p = tf.add_paragraph()
p.alignment = align
p.space_before = Pt(2)
r = p.add_run()
r.text = line
r.font.size = Pt(size)
r.font.color.rgb = color
r.font.bold = bold
return tb
# ─────────────────────────────────────────────────────────────────
# SLIDE 1 — TITLE
# ─────────────────────────────────────────────────────────────────
slide = prs.slides.add_slide(blank)
# Background gradient simulation: left half green, right half blue
add_rect(slide, 0, 0, 6.7, 7.5, DEEP_GREEN)
add_rect(slide, 6.7, 0, 6.7, 7.5, MED_BLUE)
# Gold divider line
add_rect(slide, 6.55, 0.5, 0.15, 6.5, GOLD)
# Title
add_text(slide, "BIRTH INJURY", 0.6, 1.2, 12, 1.5, 54, WHITE, bold=True, align=PP_ALIGN.CENTER)
# Subtitle
add_text(slide, "A Dual Perspective: Modern Medicine & Ayurveda", 0.6, 2.8, 12, 0.8, 22, GOLD, bold=False, align=PP_ALIGN.CENTER, italic=True)
# Divider
add_rect(slide, 2.5, 3.7, 8.3, 0.04, GOLD)
# Left label
add_text(slide, "🌿 AYURVEDIC APPROACH", 0.5, 4.0, 5.5, 0.6, 16, WHITE, bold=True, align=PP_ALIGN.CENTER)
add_text(slide, "Sushruta Samhita • Charaka Samhita\nKashyapa Samhita", 0.5, 4.6, 5.5, 0.8, 12, RGBColor(0xCC, 0xFF, 0xCC), align=PP_ALIGN.CENTER, italic=True)
# Right label
add_text(slide, "🏥 MODERN APPROACH", 7.5, 4.0, 5.0, 0.6, 16, WHITE, bold=True, align=PP_ALIGN.CENTER)
add_text(slide, "Obstetrics • Neonatology\nPediatric Surgery", 7.5, 4.6, 5.0, 0.8, 12, RGBColor(0xCC, 0xDD, 0xFF), align=PP_ALIGN.CENTER, italic=True)
# Footer
add_text(slide, "Department of Kaumarbhritya / Pediatrics", 0.5, 6.8, 12.3, 0.5, 11, RGBColor(0xBB, 0xBB, 0xBB), align=PP_ALIGN.CENTER, italic=True)
# ─────────────────────────────────────────────────────────────────
# SLIDE 2 — DEFINITION & OVERVIEW
# ─────────────────────────────────────────────────────────────────
slide = prs.slides.add_slide(blank)
add_rect(slide, 0, 0, 13.333, 7.5, RGBColor(0xF8, 0xF9, 0xFA))
add_rect(slide, 0, 0, 13.333, 1.15, DARK_GRAY)
add_text(slide, "DEFINITION & OVERVIEW", 0.4, 0.22, 12, 0.7, 28, WHITE, bold=True)
add_rect(slide, 0, 1.15, 13.333, 0.06, GOLD)
# Left card - Modern
add_rect(slide, 0.3, 1.5, 5.9, 5.6, LIGHT_BLUE)
add_rect(slide, 0.3, 1.5, 5.9, 0.5, MED_BLUE)
add_text(slide, "🏥 MODERN DEFINITION", 0.45, 1.55, 5.6, 0.4, 13, WHITE, bold=True)
modern_lines = [
"Birth injury (birth trauma) refers to impairment of the newborn's body function or structure due to adverse influences during labor and delivery.",
"",
"• Incidence: ~2–7 per 1,000 live births",
"• Major contributor to neonatal morbidity",
"• Can involve soft tissue, bones, nerves, or internal organs",
"• Associated with: macrosomia, prematurity, prolonged labor, malpresentation, instrumental delivery",
"",
"Risk factors include:",
"• Shoulder dystocia • Forceps / vacuum delivery",
"• Cephalopelvic disproportion • Diabetes in mother",
"• Breech presentation",
]
add_multiline_text(slide, modern_lines, 0.45, 2.1, 5.6, 4.8, 11.5, DARK_GRAY)
# Right card - Ayurveda
add_rect(slide, 6.9, 1.5, 6.1, 5.6, LIGHT_GREEN)
add_rect(slide, 6.9, 1.5, 6.1, 0.5, DEEP_GREEN)
add_text(slide, "🌿 AYURVEDIC CONCEPT", 7.05, 1.55, 5.8, 0.4, 13, WHITE, bold=True)
ayur_lines = [
"In Ayurveda, complications during birth are described under:",
"\"Jatakahara\" (birth-related harms) &",
"\"Mudhagarbha\" (obstructed/malpresented fetus)",
"",
"Key classical references:",
"• Sushruta Samhita – Sharira Sthana (Ch. 10)",
"• Charaka Samhita – Sharira Sthana (Ch. 8)",
"• Kashyapa Samhita – Lekhana & Sutra Sthana",
"",
"Ayurveda attributes birth complications to:",
"• Vitiation of Vata dosha (governs movement)",
"• Dosha imbalance in mother (Garbhini Paricharya neglect)",
"• Improper Sutika (postnatal) care",
"• Dushta Yoni (uterine anomalies)",
]
add_multiline_text(slide, ayur_lines, 7.05, 2.1, 5.8, 4.8, 11.5, DARK_GRAY)
# ─────────────────────────────────────────────────────────────────
# SLIDE 3 — TYPES / CLASSIFICATION (MODERN)
# ─────────────────────────────────────────────────────────────────
slide = prs.slides.add_slide(blank)
add_rect(slide, 0, 0, 13.333, 7.5, RGBColor(0xF0, 0xF4, 0xFF))
add_rect(slide, 0, 0, 13.333, 1.1, MED_BLUE)
add_text(slide, "MODERN CLASSIFICATION OF BIRTH INJURIES", 0.4, 0.22, 12.5, 0.7, 26, WHITE, bold=True)
add_rect(slide, 0, 1.1, 13.333, 0.06, GOLD)
categories = [
{
"title": "HEAD & SCALP",
"color": RGBColor(0x1A, 0x6E, 0xB5),
"items": ["Caput Succedaneum\n(edema crossing sutures)", "Cephalohematoma\n(subperiosteal bleed)", "Subgaleal Hemorrhage\n(life-threatening)"],
"x": 0.3
},
{
"title": "NERVE INJURIES",
"color": RGBColor(0x7B, 0x1F, 0xA2),
"items": ["Brachial Plexus Palsy\n(Erb's / Klumpke's)", "Facial Nerve Palsy\n(forceps injury)", "Phrenic Nerve Palsy\n(diaphragm paralysis)", "Spinal Cord Injury"],
"x": 3.6
},
{
"title": "BONE FRACTURES",
"color": ACCENT_RED,
"items": ["Clavicle (most common)", "Humerus fracture", "Femur fracture", "Depressed skull\nfracture"],
"x": 6.9
},
{
"title": "SOFT TISSUE / VISCERAL",
"color": RGBColor(0x1B, 0x6B, 0x41),
"items": ["Liver / Spleen rupture", "Adrenal hemorrhage", "Subcutaneous fat\nnecrosis", "Lacerations / abrasions"],
"x": 10.1
},
]
for cat in categories:
w = 2.9
add_rect(slide, cat["x"], 1.35, w, 0.55, cat["color"])
add_text(slide, cat["title"], cat["x"]+0.05, 1.4, w-0.1, 0.45, 11.5, WHITE, bold=True, align=PP_ALIGN.CENTER)
y = 2.0
for item in cat["items"]:
add_rect(slide, cat["x"], y, w, 0.85, RGBColor(0xF4, 0xF8, 0xFF))
add_text(slide, "▶ " + item, cat["x"]+0.1, y+0.08, w-0.2, 0.7, 10.5, DARK_GRAY)
y += 0.93
# Bottom note
add_rect(slide, 0.3, 6.85, 12.7, 0.45, RGBColor(0xD0, 0xE8, 0xFF))
add_text(slide, "Note: Intracranial hemorrhage (epidural, subdural, subarachnoid) is also a serious birth injury — more common after instrumental delivery", 0.5, 6.88, 12.4, 0.4, 10.5, MED_BLUE, italic=True)
# ─────────────────────────────────────────────────────────────────
# SLIDE 4 — SPECIFIC MODERN INJURIES IN DETAIL
# ─────────────────────────────────────────────────────────────────
slide = prs.slides.add_slide(blank)
add_rect(slide, 0, 0, 13.333, 7.5, RGBColor(0xFA, 0xFA, 0xFD))
add_rect(slide, 0, 0, 13.333, 1.1, MED_BLUE)
add_text(slide, "KEY MODERN BIRTH INJURIES — CLINICAL FEATURES & MANAGEMENT", 0.4, 0.22, 12.5, 0.7, 22, WHITE, bold=True)
add_rect(slide, 0, 1.1, 13.333, 0.06, GOLD)
injuries = [
{
"name": "Erb's Palsy (C5–C6)",
"features": "Arm: adducted, internally rotated — 'waiter's tip' posture. Absent Moro & biceps reflex. Grasp intact.",
"mgmt": "Passive ROM exercises; refer to physiotherapy. 80–90% resolve spontaneously in 3–6 months.",
"color": RGBColor(0x1A, 0x6E, 0xB5),
},
{
"name": "Clavicle Fracture",
"features": "Most common birth fracture. Pseudoparalysis, crepitus, decreased arm movement. Palpable deformity.",
"mgmt": "Immobilize arm (pin sleeve to shirt). Heals in 7–10 days. Reassure parents.",
"color": ACCENT_RED,
},
{
"name": "Cephalohematoma",
"features": "Does NOT cross suture lines. Firm swelling over parietal bone. Appears hours after birth. Risk: jaundice, rare calcification.",
"mgmt": "Observation — resolves in weeks to months. No aspiration (risk of infection).",
"color": RGBColor(0x7B, 0x1F, 0xA2),
},
{
"name": "Facial Nerve Palsy",
"features": "Asymmetric crying face. Eye cannot close. Lower lip drooping. Usually unilateral from forceps pressure.",
"mgmt": "Artificial tears to protect cornea. Most resolve in 1–2 months. Surgery rarely needed.",
"color": RGBColor(0xD0, 0x6B, 0x00),
},
{
"name": "Subgaleal Hemorrhage",
"features": "Diffuse, boggy scalp swelling crossing sutures. Can hold up to 260 mL blood — life-threatening shock.",
"mgmt": "Urgent: IV access, fluid resuscitation, blood transfusion, ICU monitoring. Serial head circumference.",
"color": RGBColor(0xC0, 0x20, 0x20),
},
{
"name": "Spinal Cord Injury",
"features": "Flaccid paralysis below injury level. Absent reflexes. Bladder/bowel dysfunction. Often from excessive traction.",
"mgmt": "MRI for diagnosis. Supportive care. High cervical lesions may need ventilatory support.",
"color": RGBColor(0x1B, 0x6B, 0x41),
},
]
col_w = 4.1
for i, inj in enumerate(injuries):
col = i % 3
row = i // 3
x = 0.25 + col * 4.35
y = 1.3 + row * 2.85
add_rect(slide, x, y, col_w, 0.42, inj["color"])
add_text(slide, inj["name"], x+0.1, y+0.05, col_w-0.2, 0.35, 12, WHITE, bold=True)
add_rect(slide, x, y+0.42, col_w, 2.3, RGBColor(0xF5, 0xF7, 0xFF))
add_text(slide, "Clinical Features:", x+0.12, y+0.46, col_w-0.25, 0.25, 10, inj["color"], bold=True)
add_text(slide, inj["features"], x+0.12, y+0.7, col_w-0.25, 1.0, 10, DARK_GRAY, wrap=True)
add_text(slide, "Management:", x+0.12, y+1.68, col_w-0.25, 0.25, 10, inj["color"], bold=True)
add_text(slide, inj["mgmt"], x+0.12, y+1.9, col_w-0.25, 0.8, 10, DARK_GRAY, wrap=True)
# ─────────────────────────────────────────────────────────────────
# SLIDE 5 — COMPARISON TABLE: CAPUT vs CEPHALOHEMATOMA vs SUBGALEAL
# ─────────────────────────────────────────────────────────────────
slide = prs.slides.add_slide(blank)
add_rect(slide, 0, 0, 13.333, 7.5, RGBColor(0xF5, 0xF0, 0xFF))
add_rect(slide, 0, 0, 13.333, 1.1, RGBColor(0x4A, 0x1A, 0x8C))
add_text(slide, "BIRTH-RELATED EXTRACRANIAL FLUID COLLECTIONS — COMPARISON", 0.4, 0.22, 12.5, 0.7, 22, WHITE, bold=True)
add_rect(slide, 0, 1.1, 13.333, 0.06, GOLD)
headers = ["Feature", "Caput Succedaneum", "Cephalohematoma", "Subgaleal Hemorrhage"]
col_widths = [2.4, 3.3, 3.3, 3.6]
col_starts = [0.2]
for cw in col_widths[:-1]:
col_starts.append(col_starts[-1] + cw + 0.05)
header_color = RGBColor(0x4A, 0x1A, 0x8C)
for i, (h, w, xs) in enumerate(zip(headers, col_widths, col_starts)):
add_rect(slide, xs, 1.25, w, 0.5, header_color)
add_text(slide, h, xs+0.05, 1.3, w-0.1, 0.4, 12, WHITE, bold=True, align=PP_ALIGN.CENTER)
rows = [
["Location", "Presenting part; crosses sutures", "Over parietal bone; does NOT cross sutures", "Beneath epicranial aponeurosis; may extend widely"],
["Onset", "Present at birth", "Appears hours after birth", "Hours after birth; can expand rapidly"],
["Borders", "Ill-defined, pitting edema", "Well-defined, firm", "Diffuse, boggy, fluctuant"],
["Crosses Sutures?", "YES", "NO", "YES"],
["Blood Loss Risk", "Minimal", "Low (jaundice risk)", "SEVERE — life-threatening hemorrhage"],
["Treatment", "Observation; resolves in days", "Observation; resolves in weeks–months", "ICU, fluids, blood transfusion"],
["Association", "Prolonged labor, vacuum", "Vacuum, forceps delivery", "Vacuum extraction, coagulopathy"],
]
row_colors = [RGBColor(0xF2, 0xEB, 0xFF), RGBColor(0xE8, 0xDF, 0xF8)]
y = 1.82
for ri, row in enumerate(rows):
bg = row_colors[ri % 2]
for i, (cell, w, xs) in enumerate(zip(row, col_widths, col_starts)):
add_rect(slide, xs, y, w, 0.63, bg)
cell_color = ACCENT_RED if ("SEVERE" in cell or "NO" == cell) else (DEEP_GREEN if cell == "YES" else DARK_GRAY)
add_text(slide, cell, xs+0.06, y+0.04, w-0.12, 0.56, 10, cell_color, bold=(i==0), wrap=True)
y += 0.66
# ─────────────────────────────────────────────────────────────────
# SLIDE 6 — AYURVEDIC PERSPECTIVE: BIRTH INJURIES
# ─────────────────────────────────────────────────────────────────
slide = prs.slides.add_slide(blank)
add_rect(slide, 0, 0, 13.333, 7.5, CREAM)
add_rect(slide, 0, 0, 13.333, 1.1, DEEP_GREEN)
add_text(slide, "AYURVEDIC PERSPECTIVE ON BIRTH INJURIES", 0.4, 0.22, 12.5, 0.7, 26, WHITE, bold=True)
add_rect(slide, 0, 1.1, 13.333, 0.06, GOLD)
# Left: Causes in Ayurveda
add_rect(slide, 0.25, 1.3, 5.8, 0.45, DEEP_GREEN)
add_text(slide, "CAUSES (NIDANA)", 0.4, 1.35, 5.5, 0.35, 13, WHITE, bold=True)
causes = [
"Mudhagarbha — malpresentation (transverse, footling, shoulder)",
"Garbhavakranti dosha — developmental anomalies in utero",
"Vitiated Vata — governs movement; Apana Vayu disturbance leads to abnormal fetal descent",
"Neglect of Garbhini Paricharya (antenatal care regimens)",
"Dushta Ahara (improper diet) causing weak dhatu formation",
"Ati-bala Prasava (excessive traction by birth attendant)",
"Balavan Vata aggravation during labor — causes undue torsion / traction",
]
add_multiline_text(slide, ["• " + c for c in causes], 0.3, 1.8, 5.7, 5.0, 10.5, DARK_GRAY)
# Right: Mudhagarbha types
add_rect(slide, 6.5, 1.3, 6.5, 0.45, DEEP_GREEN)
add_text(slide, "MUDHAGARBHA (OBSTRUCTED LABOR) — CLASSICAL TYPES", 6.65, 1.35, 6.2, 0.35, 11, WHITE, bold=True)
mudha_types = [
("Uttanagarbha", "Face/brow presentation"),
("Tiryaggarbha", "Transverse lie"),
("Adhomukha Garbha", "Breech / footling"),
("Ekahasta Prasar Garbha", "Arm presentation"),
("Kukshi Stha Garbha", "Fetus locked in uterus"),
]
y = 1.83
for name, desc in mudha_types:
add_rect(slide, 6.5, y, 6.5, 0.52, RGBColor(0xE8, 0xF5, 0xEE))
add_rect(slide, 6.5, y, 0.12, 0.52, GOLD)
add_text(slide, name, 6.73, y+0.05, 2.8, 0.25, 11.5, DEEP_GREEN, bold=True)
add_text(slide, desc, 9.58, y+0.05, 3.3, 0.4, 11, MID_GRAY, italic=True)
y += 0.58
# Tridosha box
add_rect(slide, 6.5, 4.85, 6.5, 2.3, RGBColor(0xD4, 0xED, 0xDA))
add_rect(slide, 6.5, 4.85, 6.5, 0.4, DEEP_GREEN)
add_text(slide, "DOSHA INVOLVEMENT IN BIRTH INJURIES", 6.65, 4.88, 6.2, 0.34, 11, WHITE, bold=True)
dosha_lines = [
"VATA (primary) — abnormal fetal movements, nerve injuries, fractures",
"PITTA — hemorrhagic complications, fever, soft tissue inflammation",
"KAPHA — edema (caput-like swellings), mucus accumulation in airway",
"Pranavayu disturbance → asphyxia, birth depression",
"Apana Vayu vitiation → abnormal fetal descent, obstructed labor",
]
add_multiline_text(slide, ["▪ " + d for d in dosha_lines], 6.6, 5.3, 6.25, 1.75, 10.5, DARK_GRAY)
# ─────────────────────────────────────────────────────────────────
# SLIDE 7 — AYURVEDIC MANAGEMENT
# ─────────────────────────────────────────────────────────────────
slide = prs.slides.add_slide(blank)
add_rect(slide, 0, 0, 13.333, 7.5, CREAM)
add_rect(slide, 0, 0, 13.333, 1.1, DEEP_GREEN)
add_text(slide, "AYURVEDIC MANAGEMENT OF BIRTH INJURIES", 0.4, 0.22, 12.5, 0.7, 26, WHITE, bold=True)
add_rect(slide, 0, 1.1, 13.333, 0.06, GOLD)
sections = [
{
"title": "IMMEDIATE NEONATAL CARE (Prana Pratyagamana)",
"color": DEEP_GREEN,
"x": 0.25, "y": 1.25, "w": 6.0,
"items": [
"Clear airways — gentle nasal & oral suction",
"Stimulation of newborn — gentle tapping of soles (analogous to modern IPPV stimulus)",
"Ghee + Honey (Madhu-Ghrita) feeding for first nutrition and resuscitation",
"Gold-processed preparation per Sushruta for brain nourishment",
"Keeping neonate warm (Ushna Sparsha — warmth maintenance)",
"Umbilical cord tied and cut with proper Vedic rites (Jatakarma Samskara)",
]
},
{
"title": "SNEHANA & ABHYANGA (Oil Massage Therapy)",
"color": RGBColor(0x2E, 0x7D, 0x32),
"x": 0.25, "y": 3.95, "w": 6.0,
"items": [
"Bala Taila (Sida cordifolia oil) — applied from Day 1",
"Promotes weight gain, immunity, pain relief, neuromuscular development",
"Useful in birth fractures — gentle massage around fracture site to reduce Vata",
"Sesame oil + herbs for brachial palsy — local Vata-pacifying effect",
]
},
{
"title": "HERBS & FORMULATIONS",
"color": RGBColor(0x1B, 0x5E, 0x20),
"x": 6.6, "y": 1.25, "w": 6.5,
"items": [
"Ashwagandha (Withania somnifera) — nerve tonic, promotes muscle recovery",
"Bala (Sida cordifolia) — strengthens musculoskeletal system",
"Brahmi (Bacopa monnieri) — neuroprotective, brain tonic",
"Yashtimadhu (Glycyrrhiza glabra) — anti-inflammatory, mucosal healing",
"Shatavari (Asparagus racemosus) — strengthens neonatal immune function",
"Punarnava (Boerhavia diffusa) — anti-edema (useful for swellings)",
"Ksheerabala taila — nerve injuries, brachial palsy (nasya/massage)",
]
},
{
"title": "PANCHAKARMA & EXTERNAL THERAPIES",
"color": RGBColor(0x33, 0x69, 0x1E),
"x": 6.6, "y": 4.1, "w": 6.5,
"items": [
"Nasya (nasal medication) — brain & nerve injury recovery",
"Anuvasana Basti — oil enema for Vata-dominant nerve injuries",
"Pinda Sweda — fomentation therapy for bone/joint injuries",
"Matra Basti — small oil enema; safe for neonates in reduced doses",
"Agni Karma — cautery for severe soft-tissue complications (rarely in neonates)",
]
},
]
for sec in sections:
h = 2.55 if sec["y"] < 2.0 else 3.2
add_rect(slide, sec["x"], sec["y"], sec["w"], 0.42, sec["color"])
add_text(slide, sec["title"], sec["x"]+0.08, sec["y"]+0.06, sec["w"]-0.15, 0.32, 10.5, WHITE, bold=True)
add_rect(slide, sec["x"], sec["y"]+0.42, sec["w"], h, RGBColor(0xEF, 0xF8, 0xEF))
add_multiline_text(slide, ["• " + it for it in sec["items"]], sec["x"]+0.15, sec["y"]+0.48, sec["w"]-0.25, h-0.1, 10, DARK_GRAY)
# ─────────────────────────────────────────────────────────────────
# SLIDE 8 — SIDE-BY-SIDE MODERN vs AYURVEDA MANAGEMENT
# ─────────────────────────────────────────────────────────────────
slide = prs.slides.add_slide(blank)
add_rect(slide, 0, 0, 13.333, 7.5, RGBColor(0xF8, 0xF8, 0xF8))
add_rect(slide, 0, 0, 13.333, 1.1, DARK_GRAY)
add_text(slide, "COMPARATIVE MANAGEMENT — MODERN vs AYURVEDA", 0.4, 0.22, 12.5, 0.7, 24, WHITE, bold=True)
add_rect(slide, 0, 1.1, 13.333, 0.06, GOLD)
# Column headers
add_rect(slide, 0.2, 1.25, 2.6, 0.45, DARK_GRAY)
add_text(slide, "CONDITION", 0.3, 1.3, 2.5, 0.35, 12, WHITE, bold=True, align=PP_ALIGN.CENTER)
add_rect(slide, 2.9, 1.25, 4.8, 0.45, MED_BLUE)
add_text(slide, "🏥 MODERN MANAGEMENT", 3.0, 1.3, 4.6, 0.35, 12, WHITE, bold=True, align=PP_ALIGN.CENTER)
add_rect(slide, 7.8, 1.25, 5.3, 0.45, DEEP_GREEN)
add_text(slide, "🌿 AYURVEDIC MANAGEMENT", 7.9, 1.3, 5.1, 0.35, 12, WHITE, bold=True, align=PP_ALIGN.CENTER)
compare_rows = [
("Brachial Plexus Palsy", "Physiotherapy, ROM exercises\nSurgery if no recovery by 3 months\n(nerve grafting/transfer)", "Ksheerabala Taila massage (Abhyanga)\nBala + Ashwagandha oral administration\nAnu Taila Nasya for nerve nourishment"),
("Clavicle Fracture", "Immobilization (pin sleeve to shirt)\nHeals in 7–10 days\nAnalgesia if needed", "Bala Taila gentle application\nAsthi-shrinkhala (Cissus quad.) herb\nLaghu Pinda Sweda (mild fomentation)"),
("Cephalohematoma", "Observation only\nMonitor for jaundice\nPhototherapy if hyperbilirubinemia", "Punarnava kwath (anti-edema)\nSoft local application of cool herbs\nMonitor for Kamala (jaundice)"),
("Facial Palsy", "Artificial tears, eye patch\nPhysiotherapy\nMost resolve spontaneously", "Brahmi Ghrita local application\nNasya therapy\nGentle facial Abhyanga"),
("Birth Asphyxia", "Neonatal resuscitation (NRP protocol)\nCPAP/Ventilation\nTherapeutic hypothermia (36–72h)", "Prana Pratyagamana Vidhi\nGhee + Honey stimulation\nMrudu Tapa (gentle warmth)"),
("Subgaleal Hemorrhage", "ICU, IV fluids, blood transfusion\nSerial head circumference\nSurgical evacuation if needed", "Rakta-Stambhaka herbs (Lodhra, Nagkeshar)\nCool compresses\nModern care takes PRIORITY here"),
]
row_alt = [RGBColor(0xF0, 0xF4, 0xFF), RGBColor(0xE8, 0xF5, 0xEE)]
y = 1.78
for ri, (cond, mod, ayur) in enumerate(compare_rows):
h = 0.84
bg = row_alt[ri % 2]
add_rect(slide, 0.2, y, 2.6, h, bg)
add_text(slide, cond, 0.3, y+0.06, 2.45, h-0.12, 10.5, DARK_GRAY, bold=True, wrap=True)
add_rect(slide, 2.9, y, 4.8, h, RGBColor(0xF0, 0xF4, 0xFF))
add_text(slide, mod, 3.0, y+0.04, 4.6, h-0.1, 10, MED_BLUE, wrap=True)
add_rect(slide, 7.8, y, 5.3, h, RGBColor(0xEE, 0xF7, 0xF0))
add_text(slide, ayur, 7.9, y+0.04, 5.1, h-0.1, 10, DEEP_GREEN, wrap=True)
y += h + 0.04
# ─────────────────────────────────────────────────────────────────
# SLIDE 9 — PREVENTION
# ─────────────────────────────────────────────────────────────────
slide = prs.slides.add_slide(blank)
add_rect(slide, 0, 0, 13.333, 7.5, RGBColor(0xF5, 0xFD, 0xF5))
add_rect(slide, 0, 0, 13.333, 1.1, DEEP_GREEN)
add_text(slide, "PREVENTION OF BIRTH INJURIES", 0.4, 0.22, 12.5, 0.7, 28, WHITE, bold=True)
add_rect(slide, 0, 1.1, 13.333, 0.06, GOLD)
# Modern prevention
add_rect(slide, 0.25, 1.3, 5.9, 0.48, MED_BLUE)
add_text(slide, "🏥 MODERN PREVENTIVE MEASURES", 0.4, 1.36, 5.6, 0.36, 13, WHITE, bold=True)
modern_prev = [
"Antenatal screening for macrosomia (USS biometry)",
"Proper management of gestational diabetes",
"Trained skilled birth attendants (SBAs)",
"Appropriate use of oxytocin — avoid uterine hyperstimulation",
"Elective cesarean section for known cephalopelvic disproportion",
"McRoberts maneuver + suprapubic pressure for shoulder dystocia",
"Controlled traction during delivery — avoid excessive force",
"Neonatal resuscitation team readiness at every delivery",
"Vacuum/forceps use only by trained operators",
"Continuous fetal heart rate monitoring in high-risk pregnancies",
]
add_multiline_text(slide, ["✓ " + m for m in modern_prev], 0.3, 1.84, 5.8, 5.0, 10.5, DARK_GRAY)
# Ayurveda prevention
add_rect(slide, 6.8, 1.3, 6.2, 0.48, DEEP_GREEN)
add_text(slide, "🌿 AYURVEDIC PREVENTIVE MEASURES", 6.95, 1.36, 5.9, 0.36, 13, WHITE, bold=True)
ayur_prev = [
"Garbhini Paricharya — strict antenatal regimen (diet, lifestyle, herbs)",
"Masanumasika Aushadha — month-wise herbal medicines during pregnancy",
"Shatavari + Ashwagandha — strengthen uterus, promote fetal growth",
"Sutika Paricharya — postnatal care starting immediately after birth",
"Ghee consumption in last trimester — lubrication of birth canal (Snehana)",
"Yoga Asanas — Vakrasana, Bhadrasana for optimal fetal positioning",
"Avoid Vata-aggravating diet/activities in late pregnancy",
"Abhyanga (oil massage) for the mother from 7th month",
"Proper Dhatri (midwife) training in Prasava Karma (delivery techniques)",
"Jatakarma samskara — immediate postnatal Vedic birth rites",
]
add_multiline_text(slide, ["✓ " + a for a in ayur_prev], 6.9, 1.84, 6.05, 5.0, 10.5, DARK_GRAY)
# ─────────────────────────────────────────────────────────────────
# SLIDE 10 — CONCLUSION
# ─────────────────────────────────────────────────────────────────
slide = prs.slides.add_slide(blank)
add_rect(slide, 0, 0, 13.333, 7.5, DARK_GRAY)
# Gold accent band
add_rect(slide, 0, 0, 13.333, 1.2, RGBColor(0x1A, 0x1A, 0x2E))
add_rect(slide, 0, 1.2, 13.333, 0.08, GOLD)
add_text(slide, "CONCLUSION & INTEGRATIVE APPROACH", 0.4, 0.28, 12.5, 0.65, 26, WHITE, bold=True, align=PP_ALIGN.CENTER)
conclusions = [
("Shared Goal", "Both modern medicine and Ayurveda aim to ensure safe delivery and healthy neonatal outcomes with zero preventable birth injuries."),
("Complementary Strengths", "Modern medicine excels in acute interventional management (surgical, ICU, NRP). Ayurveda offers holistic preventive strategies and rehabilitation via herbs and therapies."),
("Ayurvedic Validity", "Practices like oil massage (Abhyanga), ghee-honey feeding, and herbal nerve tonics (Ksheerabala) are supported by emerging clinical evidence for neonatal outcomes."),
("Integrated Model", "Combining Garbhini Paricharya (antenatal Ayurvedic care) with modern obstetric monitoring can significantly reduce birth injury incidence."),
("Research Need", "Controlled trials on Ayurvedic protocols for brachial palsy and neonatal bone healing are warranted to validate classical texts with modern evidence."),
]
y = 1.5
for i, (title, body) in enumerate(conclusions):
add_rect(slide, 0.5, y, 12.3, 0.9, RGBColor(0x28, 0x28, 0x40))
add_rect(slide, 0.5, y, 0.15, 0.9, GOLD)
add_text(slide, title + ":", 0.8, y+0.08, 2.8, 0.35, 11.5, GOLD, bold=True)
add_text(slide, body, 3.65, y+0.1, 9.0, 0.72, 10.5, RGBColor(0xDD, 0xDD, 0xDD), wrap=True)
y += 1.0
add_text(slide, '"Prevention is better than cure — Charaka Samhita | Primum non nocere — Hippocrates"',
0.5, 6.65, 12.3, 0.5, 12, GOLD, italic=True, align=PP_ALIGN.CENTER)
# ─────────────────────────────────────────────────────────────────
# SLIDE 11 — REFERENCES
# ─────────────────────────────────────────────────────────────────
slide = prs.slides.add_slide(blank)
add_rect(slide, 0, 0, 13.333, 7.5, RGBColor(0xF9, 0xF9, 0xF9))
add_rect(slide, 0, 0, 13.333, 1.1, DARK_GRAY)
add_text(slide, "REFERENCES", 0.4, 0.22, 12.5, 0.7, 28, WHITE, bold=True)
add_rect(slide, 0, 1.1, 13.333, 0.06, GOLD)
refs_modern = [
"1. Creasy & Resnik's Maternal-Fetal Medicine, 8th Ed (2022) — Birth Injury Section",
"2. The Harriet Lane Handbook, 23rd Ed (2021) — Birth Trauma, Ch. 18",
"3. Campbell's Operative Orthopaedics, 15th Ed (2026) — Birth Injuries",
"4. Medscape: Birth Trauma — Overview, Etiology, Management (2024)",
"5. Cloherty & Stark's Manual of Neonatal Care, 8th Ed",
"6. AAP Neonatal Resuscitation Program (NRP), 8th Ed (2021)",
"7. WHO Guidelines for Intrapartum Care (2018)",
]
refs_ayur = [
"8. Charaka Samhita — Sharira Sthana, Chapter 8 (Jatisutriya Sharira)",
"9. Sushruta Samhita — Sharira Sthana, Chapter 10",
"10. Kashyapa Samhita — Lekhana Sthana",
"11. Ashtanga Hridayam — Uttara Sthana, Balachikitsa",
"12. Lohith Kumar AS et al. — Navajata Shishu Paricharya in Ayurveda: Review. JAHM 2019",
"13. PMC7329719 — Neonatal hyperbilirubinemia: Ayurvedic perspective (2020)",
"14. Carakasamhitaonline.com — Neonatal Care (Navajata shishu paricharya)",
]
add_rect(slide, 0.25, 1.25, 5.9, 0.4, MED_BLUE)
add_text(slide, "MODERN REFERENCES", 0.4, 1.28, 5.6, 0.32, 12, WHITE, bold=True)
add_multiline_text(slide, refs_modern, 0.3, 1.7, 5.85, 5.5, 10, DARK_GRAY)
add_rect(slide, 6.8, 1.25, 6.2, 0.4, DEEP_GREEN)
add_text(slide, "AYURVEDIC REFERENCES", 6.95, 1.28, 5.9, 0.32, 12, WHITE, bold=True)
add_multiline_text(slide, refs_ayur, 6.85, 1.7, 6.1, 5.5, 10, DARK_GRAY)
# ─────────────────────────────────────────────────────────────────
# SAVE
# ─────────────────────────────────────────────────────────────────
out_path = "/tmp/workspace/birth-injury-ppt/Birth_Injury_Modern_Ayurveda.pptx"
prs.save(out_path)
print("Saved:", out_path)
cd /tmp/workspace/birth-injury-ppt && python create_ppt.py
python -c " from pptx import Presentation prs = Presentation('/tmp/workspace/birth-injury-ppt/Birth_Injury_Modern_Ayurveda.pptx') print(f'Slides: {len(prs.slides)}') for i, slide in enumerate(prs.slides, 1): texts = [s.text_frame.text.strip()[:60] for s in slide.shapes if s.has_text_frame and s.text_frame.text.strip()] print(f' Slide {i}: {texts[0] if texts else \"(no text)\"}') "
Birth Injury Modern Ayurveda
Presentation · PPTX
| Slide | Title |
|---|---|
| 1 | Title Slide — split green/blue design |
| 2 | Definition & Overview (Modern + Ayurvedic concepts) |
| 3 | Modern Classification (Head/Scalp, Nerve, Bone, Soft Tissue) |
| 4 | Key Modern Injuries — Clinical Features & Management (6 injury cards) |
| 5 | Comparison Table: Caput Succedaneum vs Cephalohematoma vs Subgaleal Hemorrhage |
| 6 | Ayurvedic Perspective — Nidana (causes), Mudhagarbha types, Dosha involvement |
| 7 | Ayurvedic Management — Prana Pratyagamana, Abhyanga, Herbs, Panchakarma |
| 8 | Side-by-side Comparative Management Table (6 conditions) |
| 9 | Prevention — Modern vs Ayurvedic measures |
| 10 | Conclusion & Integrative Approach |
| 11 | References (Modern + Ayurvedic classical texts) |