attachment
attachment
attachment
attachment
attachment
attachment
attachment
attachment
attachment
attachment

Liberalise the topic and make me a bulletin of those points

analyse_media
analyse_media
analyse_media
analyse_media
analyse_media
Here is your liberalised, comprehensive bulletin on Transposition of Great Vessels (TGA), TAPVC, Corrected TGA, and Eisenmenger/Obstructive Lesions - drawn directly from the pages you photographed (Essential Pediatrics, Chapter 16):

🫀 CYANOTIC CONGENITAL HEART DISEASE — BULLETIN


🔁 TRANSPOSITION OF GREAT VESSELS (TGA)

What is it?

  • Aorta arises from the right ventricle (RV); pulmonary artery from the left ventricle (LV) — the two circulations run in parallel, not in series
  • Aorta lies anterior and to the right of the pulmonary artery → "D-TGA"
  • Survival depends on the degree of mixing between the two circuits

Classification

TypeDetails
Intact ventricular septumMixing only via PFO/ASD → poor mixing, severe cyanosis
With VSD (± PS)Better mixing at ventricular level; if no PS → like Tetralogy physiology but more cyanotic

Pathophysiology

  • Pulmonary artery saturation > aortic saturation (opposite of normal)
  • VSD improves mixing; pulmonary vasculature regresses → congestive failure (CHF) by 4-10 weeks
  • Survival of heart failure → risk of Eisenmenger physiology early in life

Clinical Features — TGA with Intact Septum

  • Cyanosis at birth (often severe)
  • Rapid breathing + CHF within first few days
  • Findings: normal first sound, single S2, grade 1-2 ejection systolic murmur
  • CXR: "Egg-on-side" appearance (narrow pedicle + cardiomegaly + plethoric lungs)
  • ECG: right axis deviation + RV hypertrophy
  • Thymic shadow often absent

Clinical Features — TGA with VSD

  • Increased pulmonary blood flow → CHF around 4-10 weeks
  • CXR: cardiomegaly, plethoric lungs, pulmonary venous hypertension features
  • Normal or split S2; grade II-IV ejection systolic murmur; possible mid-diastolic rumble
  • ECG: right or left axis; biventricular hypertrophy

Treatment

StepIntervention
Immediate palliationProstaglandin E₁ (keep PDA open), Balloon Atrial Septostomy (BAS)
BAS timingWithin 4-6 weeks; successful up to 6-12 weeks
Definitive surgeryArterial Switch Operation (ASO) — gold standard
ASO timingIdeally within first 4 weeks (while LV can still handle systemic pressure)
TGA + VSD/PDASurgery within 2-3 months; beyond this, irreversible pulmonary vascular changes occur

Arterial Switch Operation (ASO)

  • Pulmonary artery and aorta transected and switched
  • Coronary arteries moved to neo-aortic root
  • Operative mortality: <3%; 20-year survival: >90%
  • Late concerns: aortic root dilation, aortic regurgitation, RVOTO, coronary artery occlusion
  • In infancy (after window): Senning operation (atrial switch) can be done — but right ventricle remains systemic → late RV dysfunction + severe tricuspid regurgitation + atrial arrhythmias

🔄 CORRECTED TGA (L-TGA)

  • Right atrium → LV → Pulmonary artery; Left atrium → RV → Aorta
  • Aorta lies anterior and to the left → "L-TGA"
  • Route of blood is correct but ventricles are inverted
  • Associated anomalies determine clinical features:
    • (i) VSD (with or without pulmonic stenosis)
    • (ii) Left-sided Ebstein anomaly of tricuspid valve → simulates mitral regurgitation
    • (iii) Atrioventricular conduction abnormalities → complete AV block (~65%)
  • Precordial leads: Q wave in V4R, V1, V2 but absent in left precordial leads
  • CXR: smooth left upper border (ascending aorta)
  • Management: complex; must preserve morphologic LV as systemic ventricle

🔃 TOTAL ANOMALOUS PULMONARY VENOUS CONNECTION (TAPVC)

What is it?

All four pulmonary veins drain anomalously to the right atrium instead of the left atrium

Anatomical Types

TypeDrainage
SupracardiacTo left innominate vein or right SVC
CardiacTo coronary sinus or directly to RA
InfracardiacTo portal vein (always obstructed)
MixedCombination

Pathophysiology

  • Complete mixing of systemic + pulmonary venous blood in RA
  • Blood flow to LA via PFO or ASD (right-to-left shunt)
  • Oxygen saturation of pulmonary artery often equals aorta
  • Divided into: (a) with pulmonary venous obstruction vs. (b) without
  • Obstruction → pulmonary arterial hypertension + restricted pulmonary blood flow → presents in first few weeks
  • No obstruction → large pulmonary blood flow → CHF at 4-10 weeks

Clinical Features — Non-obstructive TAPVC

  • Cyanosis + CHF by 4-10 weeks; large flow → cyanosis minimal
  • Irritable, failure to thrive
  • Accentuated S1; widely split + fixed S2; grade 2-4 pulmonary ejection systolic murmur; tricuspid flow murmur
  • Identical to ASD examination
  • Continuous venous hum may be audible at upper left/right sternal border or suprasternal notch

Clinical Features — Obstructive TAPVC

  • Marked cyanosis + CHF within first 1-2 weeks of life
  • Often fatal without treatment
  • Parasternal heave, normal S1, accentuated pulmonic S2, insignificant murmurs
  • Tricuspid regurgitation → cardiomegaly
  • Admit to ICU immediately → emergency corrective surgery

Investigations

FindingObstructiveNon-obstructive
ECGRAD + RV hypertrophyRAD + RV hypertrophy
CXR"Ground glass" lungs (like HMD)"Snowman/Figure of 8" sign (supracardiac)
EchoConfirms diagnosis, defines anatomySame
  • "Snowman" sign on CXR seen only from age 2 years in supracardiac TAPVC (draining to left innominate vein)
  • Infracardiac TAPVC → always obstructed; supracardiac and cardiac may or may not be obstructed

Management

  • Surgery as early as possible — 80% of infants without surgery die within first 3 months
  • Obstructed TAPVC needs surgery at short notice
  • Results good at modern centers; small proportion develop progressive pulmonary venous obstruction after repair

⚡ ADDITIONAL CYANOTIC CONDITIONS WITH HIGH PULMONARY FLOW

Includes:
  • Single ventricle without pulmonic stenosis
  • Persistent truncus arteriosus
  • Tricuspid atresia without obstruction to pulmonary blood flow
  • Double outlet RV without pulmonic stenosis
All present in the neonatal period with cyanosis, cardiomegaly, failure to thrive. ~80% die within 3 months without surgery. Refer early to specialized centers.

🫁 EISENMENGER SYNDROME (Cyanotic CHD with Pulmonary Arterial Hypertension)

Definition

  • Severe pulmonary arterial hypertension (PAH) due to pulmonary vascular obstructive disease (PVOD)
  • Results in right-to-left shunt at atrial, ventricular, or pulmonary artery level
  • Classic complex: PAH + VSD providing the R→L shunt

Hemodynamics

  • PAH cannot be overcome by the RV → R→L shunt decompresses RV
  • RV has only concentric hypertrophy (no significant dilation)
  • In PDA: R→L shunt directed into descending aortadifferential cyanosis (lower limbs blue, upper limbs pink)
  • In ASD: R→L shunt reaches ascending aorta → equal cyanosis of fingers and toes

Clinical Features

  • History: cyanosis, fatigue, effort intolerance, dyspnea; repeated chest infections in childhood
  • Physical: cyanosis + clubbing
  • Auscultation (see summary diagram in Fig. 16.35):
    • S1: Normal
    • S2: Single in VSD; normally split in PDA; widely split + fixed in ASD
    • P2: Accentuated (louder than A2)
    • X (constant click): in ASD
    • Murmurs: Pulmonary regurgitation (Graham-Steell) + ejection systolic ± S4 in ASD
    • Early diastolic murmur in some

ECG and CXR

  • ECG: Right axis deviation + RV hypertrophy; P pulmonale may be present
  • CXR: Prominent pulmonary arterial segment, large right and left main pulmonary arteries; peripheral lung fields are oligemic (pruning)
  • Hilar enlargement + peripheral oligemia = hallmark

Treatment

  • Prevention is ideal - early diagnosis and correction of all CHD with high pulmonary blood flow
  • Patients with cyanosis + increased pulmonary flow should be operated by 2-3 months before Eisenmenger develops
  • Medical: pulmonary hypertension medications available - may improve symptoms and survival
  • Once Eisenmenger physiology established → surgical closure is contraindicated

🩺 AORTIC STENOSIS (Obstructive Lesion)

Types

TypeSite
ValvarAt valve level (unicuspid/bicuspid) → most common
SupravalvarAbove valve, in root of aorta (Williams syndrome)
SubvalvarBelow valve: membranous, fibromuscular, or muscular (HOCM)

Hemodynamics

  • LV raises systolic pressure → concentric hypertrophy (powerful but stiff LV)
  • Prolonged ejection → delayed A2
  • Typical murmur: diamond-shaped ejection systolic starting after S1, ending before A2 with mid-systolic peak
  • Pulse: slow-rising, sustained, low-amplitude with slow fall
  • Severe AS: LV diastolic pressure rises → LA pressure must rise to fill stiff LV

Source: Essential Pediatrics, Chapter 16 — Disorders of the Cardiovascular System (pp. 449-453)

Lose the ppt….only make bulletin points

CYANOTIC CONGENITAL HEART DISEASE — BULLETIN


TRANSPOSITION OF GREAT VESSELS (TGA)

Definition & Anatomy
  • Aorta arises from RV; pulmonary artery from LV
  • Aorta lies anterior and to the right of pulmonary artery (D-TGA)
  • Two circulations run in parallel, not in series
  • Survival depends entirely on the degree of mixing between circuits
Classification
  • With intact ventricular septum - mixing only via PFO/ASD, very poor
  • With VSD (with or without pulmonic stenosis) - better mixing at ventricular level
Pathophysiology
  • Pulmonary artery saturation is always higher than aortic saturation
  • VSD improves mixing but as fetal pulmonary vasculature regresses, blood flow increases and leads to CHF at 4-10 weeks
  • Failing LV + markedly increased pulmonary blood flow → left atrial pressure rises → pulmonary venous hypertension
  • Survivors of heart failure develop Eisenmenger physiology early in life
Clinical Features - Intact Septum
  • Cyanotic at birth due to poor mixing
  • Rapid breathing + CHF within first few days of life
  • Normal first sound, single S2, insignificant grade 1-2 ejection systolic murmur
  • ECG: right axis deviation + right ventricular hypertrophy
  • CXR: "egg-on-side" appearance (narrow pedicle + cardiomegaly + plethoric lungs); thymic shadow often absent
Clinical Features - With VSD
  • CHF around 4-10 weeks
  • Normal or split S2; grade II-IV ejection systolic murmur; possible mid-diastolic rumble
  • CXR: cardiomegaly, plethoric lungs, features of pulmonary venous hypertension
  • ECG: right or biventricular hypertrophy; right or left axis
Treatment
  • Prostaglandin E₁ to keep PDA open and reduce cyanosis in selected cases
  • Balloon atrial septostomy (BAS) - interim palliation, effective up to 6-12 weeks
  • BAS can be done in catheterization lab or ICU under echocardiographic guidance
  • Arterial switch operation (ASO) is the definitive treatment of choice for all TGA
  • In ASO: pulmonary artery and aorta transected and switched; distal aorta anastomosed to proximal pulmonary stump (neo-aortic root); coronary arteries moved to neo-aortic root
  • ASO must be done within first 4 weeks (LV adapts to systemic vascular resistance via hyperplasia of muscle; after this, LV regresses and cannot adapt)
  • If sizable PDA or VSD present, no early LV regression occurs; however, surgery window for TGA-VSD and TGA-PDA still limited due to risk of accelerated Eisenmenger development
  • TGA-VSD: closure of VSD along with arterial switch, ideally within 2-3 months
  • Beyond 3 months, increasing proportion of infants show irreversible pulmonary vascular changes
  • Most centers seek to operate within the first month
  • Operative mortality: <3%; 20-year survival: >90%
  • Late concerns after ASO: aortic root dilation, aortic regurgitation, RVOTO, coronary artery occlusion
  • Senning operation (atrial switch) - alternative in infancy if ASO window is missed; not ideal long-term as RV remains the systemic ventricle leading to eventual RV dysfunction, severe tricuspid regurgitation, and atrial rhythm disturbances
  • LV can be trained over 1-2 weeks using ductal stenting or pulmonary artery band + BT shunt, then ASO performed

CORRECTED TGA (L-TGA)

  • Right atrium connected to LV; LV gives rise to pulmonary artery; RV gives rise to aorta
  • Aorta lies anterior and to the left of pulmonary artery (L-TGA)
  • Route of blood is physiologically corrected but ventricles are inverted
  • Blood flow is normal so it is the associated anomalies that determine clinical features
  • Most common associated anomalies:
    • VSD with or without pulmonic stenosis
    • Left-sided Ebstein anomaly of tricuspid valve (clinically simulates mitral regurgitation)
    • AV conduction abnormalities including complete AV block in approximately 65%
  • Precordial leads V4R, V1, V2 may show a Q wave that is absent in left precordial leads
  • CXR: smooth left upper border corresponding to ascending aorta
  • Diagnosis depends on echocardiographic identification of ventricular inversion plus associated anomalies
  • Surgical management complex - need to retain morphologic LV as systemic ventricle

TOTAL ANOMALOUS PULMONARY VENOUS CONNECTION (TAPVC)

Definition
  • All pulmonary veins drain anomalously into the right atrium instead of the left atrium
  • Anatomical types: supracardiac, cardiac, infracardiac, mixed
Supracardiac
  • Pulmonary veins join to form a common pulmonary vein draining to left innominate vein or right SVC
Cardiac
  • Veins join the coronary sinus or enter right atrium directly
Infracardiac
  • Common pulmonary vein drains into portal vein - always obstructed
Pathophysiology
  • Pulmonary venous blood reaches right atrium which also receives systemic venous blood
  • Almost complete mixing of both venous returns
  • Blood flow to left atrium via PFO or ASD (right-to-left shunt)
  • Oxygen saturation of pulmonary artery often identical to aorta due to complete mixing
  • Two groups: (a) with pulmonary venous obstruction; (b) without obstruction
  • Obstruction invariably causes pulmonary arterial hypertension + restriction to pulmonary blood flow; presents in first few weeks
  • Without obstruction: large pulmonary blood flow, cardiac failure at 4-10 weeks; infracardiac type always obstructed; supracardiac and cardiac types may or may not be obstructed
Clinical Features - Non-obstructive TAPVC
  • Cyanosis + CHF onset around 4-10 weeks; with large flow, cyanosis may be minimal or not recognizable
  • Patients irritable, failure to thrive
  • Accentuated S1, widely split and fixed S2, grade 2-4 pulmonary ejection systolic murmur, tricuspid flow murmur
  • Physical findings identical to ASD
  • Presence of systemic desaturation + CHF at this age suggests TAPVC
  • Continuous venous hum may be audible at upper left or right sternal border or suprasternal notch
Clinical Features - Obstructive TAPVC
  • Marked cyanosis + CHF typically within first 1-2 weeks of life
  • Often fatal without treatment
  • Parasternal heave, normal S1, accentuated pulmonic component of S2, insignificant murmurs
  • Tricuspid regurgitation can occur → cardiomegaly
  • Severely compromised infants need ICU admission and emergency corrective surgery
Investigations
  • ECG (both types): right axis deviation + right ventricular hypertrophy
  • CXR non-obstructive: cardiomegaly with plethoric lungs; "snowman" or figure-of-8 configuration in supracardiac type (seen only after age 2 years, draining to left innominate vein)
  • CXR obstructive: normal-sized heart with severe pulmonary venous hypertension; "ground glass" appearance of lungs resembling hyaline membrane disease
  • Echocardiography: confirms diagnosis, defines anatomy, identifies individual pulmonary veins, assesses site of obstruction, quantifies pulmonary artery pressure; echo alone is usually adequate for surgical planning
Diagnosis Points
  • Obstructive TAPVC: neonate with cyanosis + normal-sized heart + "ground glass" lungs
  • Non-obstructive TAPVC: suspect if auscultatory features of ASD are associated with cyanosis with or without CHF in first 2-3 months of life
Management
  • Surgery as early as possible - 80% of infants without surgery die within first 3 months
  • Obstructed TAPVC needs surgery at short notice
  • Results of surgery good in most modern centers
  • Newborns and infants with obstructed TAPVC sometimes need long recovery time after surgery
  • Small proportion develop progressive pulmonary venous obstruction after repair of TAPVC that is often not easy to correct
  • Mortality of unoperated patients is high; Eisenmenger syndrome develops early; refer all patients with cyanosis + increased pulmonary blood flow to specialized centers early
  • Surgical treatment dictated by specific anatomy

ADDITIONAL CONDITIONS WITH CYANOSIS AND HIGH PULMONARY FLOW

  • Single ventricle without obstruction to pulmonary blood flow
  • Persistent truncus arteriosus
  • Tricuspid atresia without obstruction to pulmonary blood flow
  • Double outlet right ventricle without pulmonic stenosis
  • All present with cyanosis, cardiomegaly, failure to thrive in the neonatal period
  • Almost 80% die within 3 months due to congestive cardiac failure or pulmonary infection
  • Survivors develop pulmonary arterial hypertension due to PVOD
  • Echocardiography required for specific diagnosis
  • Mortality of unoperated patients is high and Eisenmenger develops early in life
  • All patients with cyanosis + increased pulmonary blood flow must be referred to specialized centers as early as possible
  • Surgical treatment dictated by specific anatomy

CYANOTIC HEART DISEASE WITH PULMONARY ARTERIAL HYPERTENSION (EISENMENGER SYNDROME)

Definition
  • Severe PAH resulting in a right-to-left shunt at atrial, ventricular, or pulmonary arterial level
  • Eisenmenger complex: PAH with VSD providing the right-to-left shunt
Hemodynamics
  • PAH due to pulmonary vascular obstructive disease
  • Communication present → RV pressure cannot exceed systemic pressure
  • Right-to-left shunt decompresses the RV
  • RV has only concentric hypertrophy without significant increase in size
  • In PDA: right-to-left shunt directed downward into descending aorta → differential cyanosis (lower limbs + toes cyanosed; upper limbs pink)
  • In ASD at atrial level: right-to-left shunt reaches ascending aorta → equal cyanosis of fingers and toes
  • In VSD or PDA patients: only mild parasternal heave without significant increase in size
  • In patients without VSD or PDA: right ventricle dilates; right-to-left shunt at atrial level is an indication of right ventricular failure to accommodate volume
  • Patients of Eisenmenger syndrome with communication at the atrial level only: exhibit parasternal heave and cardiac enlargement; RV pressure may be even higher than systemic pressure
Clinical Features
  • History: cyanosis, fatigue, effort intolerance, dyspnea
  • History of repeated chest infections in childhood
  • Cyanosis and clubbing on examination
  • Differential cyanosis separates patients who have PDA from those with VSD or ASD
  • Features of pulmonary arterial hypertension: parasternal impulse and palpable S2
  • Pulmonary component of S2 is accentuated and louder than aortic component
  • Splitting of S2 remains wide and fixed in ASD
  • Due to superimposition of A2 and P2: S2 is single in patients with VSD
  • Patients with PDA continue to have normally split S2
  • Constant pulmonary ejection click (unlike valvar pulmonic stenosis): well heard both during inspiration and expiration at the second left interspace
  • Harsh, high-pitched early diastolic pulmonary regurgitation murmur (Graham-Steell) along the left sternal border
  • Patients with ASD in whom Eisenmenger physiology is uncommon can develop tricuspid regurgitation
  • ECG: right axis deviation and right ventricular hypertrophy; P pulmonale may be present
  • CXR: characteristic appearance showing prominence of pulmonary arterial segment; large right and left main pulmonary arteries and their branches; peripheral lung fields oligemic (pruning); hilar area suggests pulmonary artery enlargement
Treatment
  • Ideally, pulmonary vascular obstructive disease should be prevented
  • This means early diagnosis and correction of all CHD associated with increased pulmonary blood flow
  • Patients with cyanosis and increased pulmonary blood flow develop Eisenmenger physiology very early and often need to be operated by 2-3 months of age
  • Medications available for pulmonary hypertension management - may help reduce symptoms and improve survival in Eisenmenger patients

AORTIC STENOSIS (OBSTRUCTIVE LESION)

Sites of Obstruction
  • At the valve level (valvar) - results from unicuspid or bicuspid aortic valve; rarely the aortic valve annulus itself may be small
  • Above the valve level (supravalvar) - obstruction in root of aorta, above the aortic valve; as in Williams syndrome
  • Below the valve level (subvalvar) - may be discrete (membranous), fibromuscular, or muscular (hypertrophic obstructive cardiomyopathy)
Hemodynamics
  • Valvar obstruction overcome by raising systolic pressure of LV → concentric hypertrophy
  • LV is powerful and muscular; emptying is complete but duration of systole is prolonged
  • Prolongation of LV ejection causes delayed closure of aortic valve → delayed A2
  • Flow across obstruction produces the characteristic diamond-shaped ejection systolic murmur: starting after S1, ending before the aortic component of S2, with a mid-systolic peak
  • Systolic murmur always palpable as a thrill at second right interspace, suprasternal notch, and carotid vessels
  • Powerful LV can maintain normal forward cardiac output
  • Prolonged ejection produces characteristic pulse: slowly rising to a peak, sustained, then has a slow slowdown-slope; peak is low so pulse is of low amplitude and prolonged duration
  • Concentric hypertrophy → decreased distensibility of LV in diastole → reduced compliance
  • In severe AS with marked LV hypertrophy: LV diastolic pressure rises; with increase in LV diastolic pressure, LA pressure must also rise to fill the LV during diastole

Source: Essential Pediatrics, Chapter 16 - Disorders of the Cardiovascular System, pp. 449-453

Now make it a ppt file

Reading File
Reading File
Running Command

mkdir -p /tmp/workspace/chd-ppt && ls /tmp/workspace/chd-ppt/

Writing File

~/chd-ppt/make_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

# Colors
DARK_BLUE   = RGBColor(0x1B, 0x3A, 0x6B)   # header / title bg
MID_BLUE    = RGBColor(0x2E, 0x6D, 0xA4)   # accent bar
LIGHT_BG    = RGBColor(0xF0, 0xF5, 0xFA)   # slide background
WHITE       = RGBColor(0xFF, 0xFF, 0xFF)
DARK_TEXT   = RGBColor(0x1A, 0x1A, 0x2E)
BULLET_CLR  = RGBColor(0x2E, 0x6D, 0xA4)
SUBHEAD_CLR = RGBColor(0x1B, 0x3A, 0x6B)

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):
    from pptx.util import Inches
    shape = slide.shapes.add_shape(
        1,  # MSO_SHAPE_TYPE.RECTANGLE
        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_textbox(slide, x, y, w, h, text, font_size, bold=False,
                color=DARK_TEXT, align=PP_ALIGN.LEFT, italic=False, wrap=True):
    tb = slide.shapes.add_textbox(Inches(x), Inches(y), Inches(w), Inches(h))
    tf = tb.text_frame
    tf.word_wrap = wrap
    tf.margin_left = Inches(0.05)
    tf.margin_right = Inches(0.05)
    tf.margin_top = Inches(0.02)
    tf.margin_bottom = Inches(0.02)
    p = tf.paragraphs[0]
    p.alignment = align
    run = p.add_run()
    run.text = text
    run.font.size = Pt(font_size)
    run.font.bold = bold
    run.font.italic = italic
    run.font.color.rgb = color
    run.font.name = "Calibri"
    return tf

def add_bullet_slide(title_text, section_label, bullet_groups):
    """
    bullet_groups: list of (subheading_or_None, [bullet strings])
    """
    slide = prs.slides.add_slide(blank)

    # Background
    add_rect(slide, 0, 0, 13.333, 7.5, LIGHT_BG)

    # Left accent bar
    add_rect(slide, 0, 0, 0.08, 7.5, MID_BLUE)

    # Header bar
    add_rect(slide, 0.08, 0, 13.253, 1.0, DARK_BLUE)

    # Section label (top right)
    add_textbox(slide, 8.5, 0.05, 4.7, 0.4,
                section_label, 9, bold=False, color=RGBColor(0xB0, 0xC8, 0xE8),
                align=PP_ALIGN.RIGHT)

    # Title
    add_textbox(slide, 0.3, 0.08, 12.7, 0.82,
                title_text, 22, bold=True, color=WHITE, align=PP_ALIGN.LEFT)

    # Content area — build one big textbox with all bullets
    tb = slide.shapes.add_textbox(Inches(0.3), Inches(1.1), Inches(12.8), Inches(6.15))
    tf = tb.text_frame
    tf.word_wrap = True
    tf.margin_left  = Inches(0.05)
    tf.margin_right = Inches(0.05)
    tf.margin_top   = Inches(0.05)
    tf.margin_bottom= Inches(0.05)

    first_para = True
    for (subhead, bullets) in bullet_groups:
        if subhead:
            p = tf.paragraphs[0] if first_para else tf.add_paragraph()
            first_para = False
            p.space_before = Pt(6)
            r = p.add_run()
            r.text = subhead
            r.font.bold = True
            r.font.size = Pt(13)
            r.font.color.rgb = SUBHEAD_CLR
            r.font.name = "Calibri"
            p.alignment = PP_ALIGN.LEFT

        for b in bullets:
            p = tf.paragraphs[0] if first_para else tf.add_paragraph()
            first_para = False
            p.space_before = Pt(2)
            # Bullet dot
            r0 = p.add_run()
            r0.text = "• "
            r0.font.size = Pt(11)
            r0.font.color.rgb = BULLET_CLR
            r0.font.bold = True
            r0.font.name = "Calibri"
            # Bullet text
            r1 = p.add_run()
            r1.text = b
            r1.font.size = Pt(11)
            r1.font.color.rgb = DARK_TEXT
            r1.font.name = "Calibri"
            r1.font.bold = False
            p.alignment = PP_ALIGN.LEFT

    return slide


# ─────────────────────────────────────────────
# SLIDE 1 — TITLE SLIDE
# ─────────────────────────────────────────────
slide = prs.slides.add_slide(blank)
add_rect(slide, 0, 0, 13.333, 7.5, DARK_BLUE)
add_rect(slide, 0, 0, 0.15, 7.5, MID_BLUE)
add_rect(slide, 0.15, 2.9, 13.183, 0.07, MID_BLUE)
add_textbox(slide, 0.4, 1.2, 12.5, 1.5,
            "Cyanotic Congenital Heart Disease", 40, bold=True,
            color=WHITE, align=PP_ALIGN.LEFT)
add_textbox(slide, 0.4, 2.8, 12.5, 0.7,
            "TGA • Corrected TGA • TAPVC • Eisenmenger Syndrome • Aortic Stenosis",
            16, bold=False, color=RGBColor(0xB0, 0xC8, 0xE8), align=PP_ALIGN.LEFT)
add_textbox(slide, 0.4, 3.6, 12.5, 0.6,
            "Essential Pediatrics — Chapter 16: Disorders of the Cardiovascular System",
            13, bold=False, color=RGBColor(0x90, 0xB0, 0xD0), align=PP_ALIGN.LEFT)


# ─────────────────────────────────────────────
# SLIDE 2 — TGA: Definition & Classification
# ─────────────────────────────────────────────
add_bullet_slide(
    "Transposition of Great Vessels (TGA) — Definition & Classification",
    "TGA",
    [
        ("Definition & Anatomy", [
            "Aorta arises from RV; pulmonary artery arises from LV",
            "Aorta lies anterior and to the right of pulmonary artery → D-TGA",
            "Two circulations run in parallel, not in series",
            "Survival depends entirely on the degree of mixing between the two circuits",
            "Best mixing site with intact ventricular septum = atrial communication (usually PFO)",
            "PFO is small → mixing is very poor → neonates become symptomatic soon after birth",
        ]),
        ("Classification", [
            "(a) With intact ventricular septum — mixing only via PFO/ASD; very poor",
            "(b) With VSD — further subdivided into with and without pulmonic stenosis",
            "TGA + VSD + PS resembles Tetralogy physiology but with more intense cyanosis",
        ]),
    ]
)

# ─────────────────────────────────────────────
# SLIDE 3 — TGA: Pathophysiology
# ─────────────────────────────────────────────
add_bullet_slide(
    "TGA — Pathophysiology",
    "TGA",
    [
        ("Circulation", [
            "Pulmonary artery saturation is always higher than aortic saturation",
            "Oxygenated pulmonary venous blood recirculates in the lungs",
            "Systemic venous blood recirculates in the systemic circulation",
        ]),
        ("Effect of VSD", [
            "VSD of adequate size improves mixing",
            "As fetal pulmonary vasculature regresses, pulmonary blood flow increases",
            "Results in congestive failure around 4–10 weeks of age",
            "Failing LV + markedly increased pulmonary blood flow → raised left atrial pressure → pulmonary venous hypertension",
            "Survivors of heart failure develop Eisenmenger physiology early in life",
        ]),
    ]
)

# ─────────────────────────────────────────────
# SLIDE 4 — TGA: Clinical Features (Intact Septum)
# ─────────────────────────────────────────────
add_bullet_slide(
    "TGA — Clinical Features: Intact Ventricular Septum",
    "TGA",
    [
        ("Symptoms", [
            "Cyanotic at birth due to poor intra-atrial mixing",
            "Rapid breathing and congestive failure within first few days of life",
            "Severe hypoxemia secondary to poor mixing",
        ]),
        ("Physical Examination", [
            "Severe cyanosis, congestive failure",
            "Normal first sound, single second sound",
            "Insignificant grade 1–2 ejection systolic murmur",
        ]),
        ("Investigations", [
            "ECG: right axis deviation + right ventricular hypertrophy",
            "CXR: cardiomegaly with narrow base + plethoric lung fields",
            "Cardiac silhouette may have 'egg-on-side' appearance",
            "Thymic shadow often absent",
        ]),
    ]
)

# ─────────────────────────────────────────────
# SLIDE 5 — TGA: Clinical Features (With VSD)
# ─────────────────────────────────────────────
add_bullet_slide(
    "TGA — Clinical Features: With VSD",
    "TGA",
    [
        ("Symptoms", [
            "Mixing at ventricular level determines severity of cyanosis",
            "Congestive failure develops around 4–10 weeks of age",
        ]),
        ("Physical Examination", [
            "Cyanosis, cardiomegaly, congestive failure",
            "Normal first sound; single or normally split second sound",
            "Grade II–IV ejection systolic murmur",
            "Apical third sound gallop or mid-diastolic rumble may be present",
        ]),
        ("Investigations", [
            "ECG: right axis deviation; biventricular, right ventricular, or left ventricular hypertrophy",
            "CXR: cardiomegaly, plethoric lung fields, features of pulmonary venous hypertension",
        ]),
    ]
)

# ─────────────────────────────────────────────
# SLIDE 6 — TGA: Treatment
# ─────────────────────────────────────────────
add_bullet_slide(
    "TGA — Treatment",
    "TGA",
    [
        ("Immediate Palliation", [
            "Prostaglandin E₁ — keeps PDA open, helps reduce cyanosis in selected cases",
            "Balloon Atrial Septostomy (BAS) — interim palliation; allows better mixing, reduces left atrial pressure",
            "BAS done in cath lab or ICU under echocardiographic guidance",
            "Septostomy successful only up to 6–12 weeks of age",
        ]),
        ("Definitive Surgery — Arterial Switch Operation (ASO)", [
            "Treatment of choice; most modern centers aim for neonatal ASO",
            "Pulmonary artery and aorta transected; distal aorta anastomosed to proximal pulmonary stump (neo-aortic root)",
            "Pulmonary artery to proximal aortic stump (neo-pulmonary artery)",
            "Coronary arteries moved along with cuff of aortic tissue to neo-aortic root",
            "Must be done within first 4 weeks — LV regresses rapidly after pulmonary vascular resistance falls",
            "Operative mortality <3%; 20-year survival >90%",
            "Late concerns: aortic root dilation, aortic regurgitation, RVOTO, coronary artery occlusion",
        ]),
        ("Timing for TGA + VSD / PDA", [
            "No early LV regression because PA pressures are elevated",
            "Window for surgery still limited — accelerated Eisenmenger development",
            "Surgical correction involves arterial switch + closure of VSD/PDA",
            "Ideally within 2–3 months of age; most centers operate within the first month",
        ]),
        ("Alternative — Senning Operation (Atrial Switch)", [
            "Considered if ASO window missed (infancy, after 1–2 months)",
            "Not ideal long-term: RV remains the systemic ventricle",
            "Over time: RV dysfunction, severe tricuspid regurgitation, atrial rhythm disturbances",
            "LV can be trained for 1–2 weeks via ductal stenting or pulmonary artery band + BT shunt, then ASO performed",
        ]),
    ]
)

# ─────────────────────────────────────────────
# SLIDE 7 — Corrected TGA
# ─────────────────────────────────────────────
add_bullet_slide(
    "Corrected TGA (L-TGA)",
    "Corrected TGA",
    [
        ("Anatomy", [
            "Right atrium connected to LV; LV gives rise to pulmonary artery",
            "Left atrium connected to RV; RV gives rise to aorta",
            "Aorta lies anterior and to the LEFT of pulmonary artery → L-TGA",
            "Route of blood flow is physiologically corrected but ventricles are inverted",
            "Ascending aorta forms the left upper border of cardiac silhouette",
        ]),
        ("Associated Anomalies (determine clinical features)", [
            "(i) VSD with or without pulmonic stenosis",
            "(ii) Left-sided Ebstein anomaly of tricuspid valve — clinically simulates mitral regurgitation",
            "(iii) AV conduction abnormalities including complete AV block — in ~65% of cases",
        ]),
        ("Investigations", [
            "Precordial leads V4R, V1, V2 may show Q wave absent in left precordial leads",
            "CXR: smooth left upper border corresponding to ascending aorta",
            "Diagnosis: echocardiographic identification of ventricular inversion + associated anomalies",
        ]),
        ("Management", [
            "Depends on type of associated anomalies",
            "Need to retain morphologic LV as the systemic ventricle",
            "Makes surgical management complex",
        ]),
    ]
)

# ─────────────────────────────────────────────
# SLIDE 8 — TAPVC: Definition & Types
# ─────────────────────────────────────────────
add_bullet_slide(
    "Total Anomalous Pulmonary Venous Connection (TAPVC) — Overview",
    "TAPVC",
    [
        ("Definition", [
            "All pulmonary veins drain anomalously into the right atrium instead of the left atrium",
            "Anatomical classification: supracardiac, cardiac, infracardiac, and mixed",
        ]),
        ("Supracardiac", [
            "Pulmonary veins join to form a common pulmonary vein",
            "Drains to left innominate vein or right superior vena cava",
        ]),
        ("Cardiac", [
            "Veins join the coronary sinus or enter the right atrium directly",
        ]),
        ("Infracardiac", [
            "Common pulmonary vein drains into the portal vein",
            "Always obstructed — key feature",
        ]),
        ("Key Determinant", [
            "Whether or not the pulmonary venous drainage via the common pulmonary vein is obstructed",
            "Infracardiac = always obstructed",
            "Supracardiac and cardiac types = may or may not be obstructed",
        ]),
    ]
)

# ─────────────────────────────────────────────
# SLIDE 9 — TAPVC: Pathophysiology
# ─────────────────────────────────────────────
add_bullet_slide(
    "TAPVC — Pathophysiology",
    "TAPVC",
    [
        ("Circulation", [
            "Pulmonary venous blood reaches right atrium along with systemic venous blood",
            "Almost complete mixing of both venous returns in right atrium",
            "Blood flow to left atrium via PFO or ASD (right-to-left shunt)",
            "Oxygen saturation of pulmonary artery often identical to aorta due to mixing",
        ]),
        ("Without Obstruction", [
            "Pulmonary blood flow is large",
            "Results in cardiac failure between 4–10 weeks of age",
        ]),
        ("With Obstruction", [
            "Pulmonary venous obstruction invariably causes pulmonary arterial hypertension",
            "Restriction to pulmonary blood flow; presents in first few weeks after birth",
        ]),
    ]
)

# ─────────────────────────────────────────────
# SLIDE 10 — TAPVC: Clinical Features
# ─────────────────────────────────────────────
add_bullet_slide(
    "TAPVC — Clinical Features",
    "TAPVC",
    [
        ("Non-obstructive TAPVC", [
            "Cyanosis + CHF onset around 4–10 weeks; with large flow, cyanosis may be minimal or unrecognizable",
            "Patients irritable, failure to thrive",
            "Accentuated S1; widely split and FIXED S2; grade 2–4 pulmonary ejection systolic murmur; tricuspid flow murmur",
            "Physical findings identical to ASD",
            "Presence of systemic desaturation + CHF at this age strongly suggests TAPVC",
            "Continuous venous hum may be audible at upper left or right sternal border or suprasternal notch",
        ]),
        ("Obstructive TAPVC", [
            "Marked cyanosis + CHF within first 1–2 weeks of life",
            "Often FATAL without treatment",
            "Parasternal heave, normal S1, accentuated pulmonic S2, insignificant murmurs",
            "Tricuspid regurgitation can occur → cardiomegaly",
            "These infants are severely compromised — need ICU and emergency corrective surgery",
        ]),
    ]
)

# ─────────────────────────────────────────────
# SLIDE 11 — TAPVC: Investigations & Management
# ─────────────────────────────────────────────
add_bullet_slide(
    "TAPVC — Investigations & Management",
    "TAPVC",
    [
        ("Investigations", [
            "ECG (both types): right axis deviation + right ventricular hypertrophy",
            "CXR non-obstructive: cardiomegaly + plethoric lungs; 'Snowman/Figure-of-8' sign (supracardiac, seen after age 2 years)",
            "CXR obstructive: normal-sized heart + severe pulmonary venous hypertension + 'ground glass' appearance (resembles HMD)",
            "Echo: confirms diagnosis, defines anatomy, identifies individual pulmonary veins, assesses obstruction; usually adequate for surgical planning",
        ]),
        ("Diagnosis Clues", [
            "Obstructive TAPVC: neonate with cyanosis + normal-sized heart + ground glass lungs",
            "Non-obstructive TAPVC: ASD auscultatory features associated with cyanosis ± CHF in first 2–3 months",
        ]),
        ("Management", [
            "Surgery as early as possible — 80% die within 3 months without surgery",
            "Obstructed TAPVC needs surgery at SHORT notice",
            "Results good at modern centers",
            "Small proportion develop progressive pulmonary venous obstruction after repair — often not easy to correct",
            "Refer all patients with cyanosis + increased pulmonary blood flow to specialized centers early",
        ]),
    ]
)

# ─────────────────────────────────────────────
# SLIDE 12 — Additional Cyanotic Conditions (High Pulmonary Flow)
# ─────────────────────────────────────────────
add_bullet_slide(
    "Additional Cyanotic Conditions with High Pulmonary Flow",
    "Cyanotic CHD",
    [
        ("Conditions", [
            "Single ventricle without obstruction to pulmonary blood flow",
            "Persistent truncus arteriosus",
            "Tricuspid atresia without obstruction to pulmonary blood flow",
            "Double outlet right ventricle without pulmonic stenosis",
        ]),
        ("Clinical Presentation", [
            "All present in neonatal period with cyanosis, cardiomegaly, and failure to thrive",
            "~80% die within 3 months due to congestive cardiac failure or pulmonary infection",
            "Survivors develop pulmonary arterial hypertension due to pulmonary vascular obstructive disease",
        ]),
        ("Investigations & Management", [
            "Echocardiography required to arrive at specific diagnosis",
            "Mortality of unoperated patients is high; Eisenmenger syndrome develops early in life",
            "Refer ALL patients with cyanosis + increased pulmonary blood flow to specialized centers as early as possible",
            "Surgical treatment dictated by the specific anatomy",
        ]),
    ]
)

# ─────────────────────────────────────────────
# SLIDE 13 — Eisenmenger Syndrome: Definition & Hemodynamics
# ─────────────────────────────────────────────
add_bullet_slide(
    "Eisenmenger Syndrome — Definition & Hemodynamics",
    "Eisenmenger",
    [
        ("Definition", [
            "Severe pulmonary arterial hypertension (PAH) due to pulmonary vascular obstructive disease (PVOD)",
            "Results in right-to-left shunt at atrial, ventricular, or pulmonary arterial level",
            "Eisenmenger complex: PAH with VSD providing the right-to-left shunt",
        ]),
        ("Hemodynamics", [
            "PAH is due to PVOD; once communication present, RV pressure cannot exceed systemic pressure",
            "Right-to-left shunt decompresses RV → RV only develops concentric hypertrophy, no significant dilation",
            "PDA: right-to-left shunt directed into descending aorta → DIFFERENTIAL CYANOSIS (lower limbs + toes cyanosed; upper limbs pink)",
            "ASD/VSD: right-to-left shunt reaches ascending aorta → EQUAL CYANOSIS of fingers and toes",
            "Patients with VSD or PDA: only mild parasternal heave",
            "Patients without VSD/PDA (right-to-left at atrial level): right ventricle also dilates",
            "Atrial level Eisenmenger: parasternal heave + cardiac enlargement; RV pressure may exceed systemic",
        ]),
    ]
)

# ─────────────────────────────────────────────
# SLIDE 14 — Eisenmenger Syndrome: Clinical Features
# ─────────────────────────────────────────────
add_bullet_slide(
    "Eisenmenger Syndrome — Clinical Features",
    "Eisenmenger",
    [
        ("Symptoms", [
            "Cyanosis, fatigue, effort intolerance, dyspnea",
            "History of repeated chest infections in childhood",
        ]),
        ("Examination", [
            "Cyanosis and clubbing",
            "Differential cyanosis (lower limbs) separates PDA from VSD/ASD",
            "Parasternal impulse and palpable S2 (features of PAH)",
            "Pulmonary component of S2 accentuated and louder than aortic component",
        ]),
        ("Auscultation", [
            "S2 is SINGLE in VSD (A2 and P2 superimposed)",
            "S2 is NORMALLY SPLIT in PDA",
            "S2 is WIDELY SPLIT AND FIXED in ASD",
            "Constant pulmonary ejection click in ASD (heard in both inspiration and expiration)",
            "Harsh, high-pitched early diastolic Graham-Steell murmur (pulmonary regurgitation) along left sternal border",
            "Patients with ASD may develop tricuspid regurgitation",
        ]),
        ("Investigations", [
            "ECG: right axis deviation + right ventricular hypertrophy; P pulmonale may be present",
            "CXR: prominent pulmonary arterial segment; large right and left main pulmonary arteries; peripheral lung fields oligemic ('pruning')",
        ]),
    ]
)

# ─────────────────────────────────────────────
# SLIDE 15 — Eisenmenger: Treatment
# ─────────────────────────────────────────────
add_bullet_slide(
    "Eisenmenger Syndrome — Treatment",
    "Eisenmenger",
    [
        ("Prevention (Ideal)", [
            "Prevent PVOD by early diagnosis and correction of ALL CHD with increased pulmonary blood flow",
            "Patients with cyanosis + increased pulmonary flow develop Eisenmenger physiology very early",
            "Need to be operated by 2–3 months of age",
        ]),
        ("Medical Management", [
            "Medications available for pulmonary hypertension management",
            "May help reduce symptoms and improve survival in Eisenmenger patients",
        ]),
        ("Important Note", [
            "Once Eisenmenger physiology is established, surgical closure of the defect is CONTRAINDICATED",
            "All patients with cyanosis + high pulmonary blood flow must be referred to specialized centres early",
        ]),
    ]
)

# ─────────────────────────────────────────────
# SLIDE 16 — Aortic Stenosis
# ─────────────────────────────────────────────
add_bullet_slide(
    "Aortic Stenosis (Obstructive Lesion)",
    "Aortic Stenosis",
    [
        ("Types", [
            "Valvar — at valve level; results from unicuspid or bicuspid aortic valve; rarely small aortic valve annulus",
            "Supravalvar — obstruction in root of aorta, above the valve; as in Williams syndrome",
            "Subvalvar — below valve: discrete (membranous), fibromuscular, or muscular (HOCM)",
        ]),
        ("Hemodynamics", [
            "Valvar obstruction overcome by raising LV systolic pressure → concentric LV hypertrophy",
            "LV is powerful and muscular; emptying is complete but systole is prolonged",
            "Prolongation of LV ejection → delayed closure of aortic valve → delayed A2",
            "Flow across obstruction produces characteristic DIAMOND-SHAPED ejection systolic murmur",
            "Murmur: starts after S1, ends before A2, mid-systolic peak; always palpable as a thrill at 2nd right interspace, suprasternal notch, carotids",
            "Pulse: slow-rising to a sustained peak, then slow slowdown-slope; low amplitude and prolonged duration",
            "Powerful LV can maintain normal forward cardiac output",
        ]),
        ("Severe Aortic Stenosis", [
            "Concentric hypertrophy → decreased LV diastolic distensibility → reduced compliance",
            "LV diastolic pressure rises → LA pressure must also rise to fill LV during diastole",
        ]),
    ]
)

# ─────────────────────────────────────────────
# SAVE
# ─────────────────────────────────────────────
output_path = "/tmp/workspace/chd-ppt/Cyanotic_CHD.pptx"
buf = BytesIO()
prs.save(buf)
with open(output_path, "wb") as f:
    f.write(buf.getvalue())
print(f"Saved: {output_path}")
Running Command

python /tmp/workspace/chd-ppt/make_ppt.py

Your presentation is ready - 16 slides in total with a clean dark-blue medical theme.

Cyanotic CHD

Presentation · PPTX

What's inside:
  • Slide 1 — Title slide
  • Slides 2–6 — TGA (definition, classification, pathophysiology, clinical features for intact septum + VSD, full treatment)
  • Slide 7 — Corrected TGA (L-TGA)
  • Slides 8–11 — TAPVC (overview, pathophysiology, clinical features, investigations + management)
  • Slide 12 — Additional cyanotic conditions with high pulmonary flow
  • Slides 13–15 — Eisenmenger Syndrome (hemodynamics, clinical features, treatment)
  • Slide 16 — Aortic Stenosis
This is a shared conversation. Sign in to Orris to start your own chat.