Every detail for MBBS level about glaucoma from basics to clinical

Reading File
Now let me search the library for comprehensive glaucoma content across multiple textbooks in parallel.
Finding Sources
Searching PubMed

glaucoma diagnosis management

Excellent - Kanski's Clinical Ophthalmology is the gold standard for glaucoma. Let me now read the primary sources in parallel.
Reading File
Reading File
Reading File
Finding Sources
Now let me read the main Kanski glaucoma chapter - the overview, primary open-angle, and primary angle-closure sections in parallel.
Reading File
Reading File
Finding Sources
Finding Sources
Excellent. Now let me read the core Kanski chapters on POAG and PACG simultaneously, plus the pharmacology and Wills Eye manual sections.
Reading File
Reading File
Reading File
Now let me fetch key images and read more of POAG treatment, PACG treatment, and the pharmacology sections in parallel.
Reading File
Reading File
Reading File
I now have comprehensive data. Let me fetch key clinical images and read the POAG treatment/optic disc sections to complete the picture.
Loading Image
Loading Image
Reading File
I now have extremely rich content. Let me read the POAG treatment section and the acute angle closure treatment to complete the clinical picture.
Reading File
Reading File
I now have all the essential content needed. Let me compose the comprehensive MBBS-level glaucoma guide.

Glaucoma - Complete MBBS Guide

Sources: Kanski's Clinical Ophthalmology 10th ed., Robbins & Kumar Basic Pathology, Katzung's Pharmacology 16th ed., Goodman & Gilman's Pharmacological Basis of Therapeutics, Goldman-Cecil Medicine, Harrison's 22E

1. DEFINITION

Glaucoma is not a single disease but a group of conditions sharing a common final pathway: chronic progressive optic neuropathy with characteristic morphological changes at the optic nerve head (ONH) and retinal nerve fibre layer (RNFL), accompanied by progressive retinal ganglion cell (RGC) death and visual field loss. Intraocular pressure (IOP) is the key modifiable risk factor.
  • Kanski's: "Glaucoma is the term used to describe a group of conditions that have in common a chronic progressive optic neuropathy that results in characteristic morphological changes at the optic nerve head and in the retinal nerve fibre layer."
  • Goal of treatment: to slow progression throughout a patient's lifetime, maintaining visual function and quality of life.
Normal IOP: 10-21 mmHg (mean ~16 mmHg). Sustained IOP >21 mmHg = ocular hypertension.

2. AQUEOUS HUMOR DYNAMICS (Pathophysiology Foundation)

Understanding glaucoma requires understanding aqueous humor (AH) flow:
Aqueous humor dynamics and glaucoma mechanisms
Fig. A: Normal anatomy. B: Normal AH flow through trabecular meshwork into Schlemm's canal. C: Primary angle-closure - pupillary block with iris bombé. D: Neovascular glaucoma with fibrovascular membrane.
Formation: AH is produced by the ciliary body (epithelium) by active secretion (70-80%) and ultrafiltration (20-30%). Rate ~2-3 µL/min.
Drainage pathways:
  1. Trabecular (conventional) pathway (~85%): Posterior chamber → pupil → anterior chamber → trabecular meshwork (TM) → Schlemm's canal → episcleral veins. This is the pressure-dependent route.
  2. Uveoscleral (unconventional) pathway (~15%): Through ciliary muscle bundles to supraciliary/suprachoroidal space. Pressure-independent; enhanced by prostaglandins.
IOP = (Rate of AH production) / (Resistance to outflow) + Episcleral venous pressure
Elevated IOP occurs due to:
  • Increased production (rare)
  • Decreased trabecular outflow (most common)
  • Raised episcleral venous pressure (e.g., Sturge-Weber, AV fistula)

3. CLASSIFICATION

BasisTypes
MechanismOpen-angle vs. Angle-closure
EtiologyPrimary vs. Secondary
Age at onsetCongenital / Infantile / Juvenile / Adult

Full Classification:

GLAUCOMA
├── Primary
│   ├── Primary Open-Angle Glaucoma (POAG)
│   │   └── Normal Tension Glaucoma (NTG) - subset
│   ├── Primary Angle-Closure Glaucoma (PACG)
│   └── Primary Congenital Glaucoma
└── Secondary
    ├── Open-angle: Pigmentary, Pseudoexfoliation, Steroid-induced, Traumatic
    └── Angle-closure: Neovascular, Phacolytic, Phacomorphic, Lens-induced

4. PRIMARY OPEN-ANGLE GLAUCOMA (POAG)

The most common form of glaucoma in people of European and African descent.

Epidemiology

  • Prevalence in >70 years: ~6% in White, ~16% in Black, ~3% in Asian populations
  • Affects both genders equally
  • Most prevalent form globally (60-70% of all glaucoma cases)

Risk Factors

FactorDetails
IOPHigher IOP → greater risk; asymmetry ≥4 mmHg is significant
AgeMore common in older individuals
RaceBlack individuals: 4× more common, earlier onset, harder to control
Family historySiblings: ~4× risk; offspring: ~2× risk
MyopiaAssociated with increased incidence and susceptibility
Thin cornea (CCT)Thin central corneal thickness → risk factor
Large optic discMore vulnerable to damage
Vascular diseaseHTN, cardiovascular disease, vasospasm (migraine), low OPP
Anti-VEGF therapyRepeated intravitreal injections → sustained IOP elevation
β-blockers not a riskSystemic calcium channel blockers may be associated

Pathogenesis

Two main theories:
  1. Mechanical theory: Elevated IOP causes physical distortion of the lamina cribrosa, compressing and damaging RGC axons as they pass through
  2. Vascular theory: Reduced ocular perfusion pressure → ischaemia of the optic nerve head (explains NTG)
In both: progressive loss of RGCs and their axons → RNFL thinning → optic disc cupping → visual field loss.

Clinical Features

Symptoms: Asymptomatic until late stages. Peripheral vision loss often not noticed until >30-40% of RGCs are lost. No pain (key differentiator from angle-closure).
Signs - Optic Disc Changes (The Core Finding):
Optic disc changes in glaucoma - asymmetry and cupping
Fig. B: (A,B) Physiological cupping - normal. (C) Normal disc. (D) Glaucomatous disc. (E) Tilted normal disc. (F) Glaucomatous disc with inferior NRR defect (arrow).
Key optic disc changes to look for:
SignDescription
Increased C/D ratioCup:Disc ratio >0.6 suspicious; >0.7-0.8 highly suspicious; asymmetry >0.2 between eyes
Thinning of NRRNeuroretinal rim (NRR) thinning, especially inferior > superior > nasal > temporal (ISNT rule - normally Inferior is thickest)
Focal NRR notchingParticularly at inferior or superior poles
RNFL defectsWedge-shaped RNFL defects visible with red-free fundus photography
Disc haemorrhagesSplinter/flame-shaped haemorrhages at disc margin (Drance haemorrhages) - more common in NTG
Vessel changesNasalization/baring of circumlinear vessels; "bayonetting" sign at disc margin
Laminar dots signExposed lamina cribrosa pores visible through a deep cup
Parapapillary atrophy (PPA)Zone β (inner) is more significant - adjacent to glaucomatous disc
ISNT Rule: In a normal disc, the NRR width follows the order: Inferior > Superior > Nasal > Temporal. Violation of this rule suggests glaucoma.

Visual Field Defects (in order of progression)

  1. Enlarged blind spot (earliest, but non-specific)
  2. Paracentral scotomas - small depressions, often superonasally
  3. Nasal step - difference in sensitivity above and below horizontal midline in nasal field; bounded by horizontal raphe
  4. Arcuate (Bjerrum) scotoma - arcs from blind spot to nasal horizontal meridian (superior or inferior arcade follows nerve fibre bundle pattern)
  5. Ring scotoma - when superior and inferior arcuates connect
  6. Temporal wedge - less common, similar implications
  7. Advanced loss - only temporal island + central island remaining
  8. Tubular vision (end stage) - only central 5-10° preserved
  9. Total blindness
Note: SAP (standard automated perimetry) is used routinely. 24-2 pattern (tests to 24° temporal, 30° nasal) is the standard; 10-2 for advanced disease with split fixation.

Investigations

InvestigationWhat it shows
Goldmann applanation tonometryGold standard for IOP measurement
GonioscopyDirect visualisation of angle - open angle with visible TM
Pachymetry (CCT)Central corneal thickness - thin CCT underestimates IOP
Automated perimetry (HVF)Visual field defects
OCT (Spectral domain)Quantitative RNFL thickness, GCL analysis, disc parameters
HRT (Heidelberg Retina Tomograph)3D disc morphometry
GDx VCCRNFL thickness by scanning laser polarimetry
Fundus photographyBaseline disc documentation
IOP correction for CCT: For every 10 µm thinner than 545 µm, add ~1 mmHg; for every 10 µm thicker, subtract ~1 mmHg. (Goldmann tonometer calibrated for 520-540 µm)

Diagnosis

Requires ALL of:
  • Open anterior chamber angle on gonioscopy
  • Characteristic optic disc/RNFL changes
  • Characteristic visual field defects (when present)
  • Absence of secondary cause

Treatment of POAG

Target IOP: Generally aim for 30% reduction from untreated baseline, but must be individualized. Lower target for advanced disease (e.g., 12-15 mmHg) or NTG.
Step 1 - Medical (Eye drops first line):
Drug ClassExampleMechanismReduction in IOP
Prostaglandin analoguesLatanoprost, Bimatoprost, Travoprost, Tafluprost↑ Uveoscleral outflow (act at FP receptor)25-35%
β-blockersTimolol 0.5% (non-selective), Betaxolol (β1-selective)↓ AH production (reduce cAMP in ciliary body)20-30%
α2-agonistsBrimonidine, Apraclonidine↓ AH production + ↑ uveoscleral outflow20-25%
Carbonic anhydrase inhibitors (CAI)Dorzolamide, Brinzolamide (topical); Acetazolamide (oral)↓ AH production (inhibit CA-II in ciliary body)15-25%
Miotics (cholinergics)Pilocarpine↑ Trabecular outflow (ciliary muscle contraction opens TM spaces)20-25%
Rho kinase inhibitorsNetarsudil↑ Trabecular outflow15-20%
First-line: Prostaglandin analogues (once daily, most efficacious, good tolerance) or β-blockers (if PGA contraindicated or not tolerated).
Prostaglandin adverse effects: Iris hyperpigmentation (irreversible), periocular skin darkening, eyelash growth (hypertrichosis), CME in aphakic/pseudophakic eyes, rarely periocular fat atrophy.
β-blocker contraindications: Asthma, COPD, heart block, bradycardia. Timolol absorbed systemically - can cause bronchospasm, bradycardia. Betaxolol is β1-selective (less bronchospasm).
Oral acetazolamide adverse effects: Paraesthesias, metabolic acidosis, sulfonamide allergy, renal calculi, Stevens-Johnson syndrome, bone marrow suppression (rare).
Step 2 - Laser:
  • Selective Laser Trabeculoplasty (SLT): Can be used as first-line (LiGHT trial: non-inferior to drops). 532 nm frequency-doubled Nd:YAG laser targets pigmented TM cells. 80 laser spots over 360°. Repeatable. 25-30% IOP reduction.
  • Argon Laser Trabeculoplasty (ALT): Older modality, not repeatable.
Step 3 - Surgery:
  • Trabeculectomy (guarded filtration surgery): Creates a fistula between anterior chamber and subconjunctival space. MMC (mitomycin C) or 5-FU used to prevent scarring. Gold standard surgical procedure.
  • Glaucoma Drainage Devices (GDD/Tube shunts): Ahmed, Baerveldt, Molteno devices - for complex cases/failed trabeculectomy.
  • Minimally Invasive Glaucoma Surgery (MIGS): iStent, Hydrus, OMNI - less risk but less IOP reduction. Best combined with cataract surgery.
  • Cyclodestructive procedures: Diode laser cyclodiode ablation - reduces AH production by destroying ciliary body. Reserved for end-stage/blind painful eyes.

5. NORMAL TENSION GLAUCOMA (NTG)

  • IOP consistently ≤21 mmHg but glaucomatous disc and field damage present
  • ~30-40% of POAG patients have NTG
  • Pathogenesis: Vascular insufficiency (vasospasm, nocturnal hypotension, sleep apnoea, autoimmune) predominates over mechanical
  • Disc haemorrhages more frequent; more localised, deeper scotomas closer to fixation
  • Associations: Flammer syndrome, obstructive sleep apnoea, autoimmune diseases
  • Treatment: Same drugs as POAG (aim lower target IOP); treat systemic vascular risk factors; CCBs (nifedipine) in selected patients

6. PRIMARY ANGLE-CLOSURE GLAUCOMA (PACG)

Overview

  • "Angle closure" = occlusion of TM by peripheral iris (iridotrabecular contact, ITC)
  • PACG may cause up to half of all glaucoma globally and is particularly prevalent in Asia (East and South)
  • Progresses rapidly, more likely to cause visual loss than POAG

Anatomical Predisposition

Small, crowded anterior segment:
  • Shallow anterior chamber
  • Short axial length (hypermetropia)
  • Anterior lens position (increases with age as lens thickens)
  • Small corneal diameter
  • Thick peripheral iris

Mechanisms (from anterior to posterior)

MechanismDescription
Pupillary block (most common, ~75%)Aqueous cannot pass from posterior → anterior chamber through pupil → pressure builds posteriorly → iris bombé → peripheral iris pushed against TM
Plateau irisAnteriorly rotated ciliary processes hold peripheral iris forward - angle closes even after iridotomy
PhacomorphicSwollen/thick lens pushes iris forward
Malignant (ciliolenticular block)Aqueous misdirection into vitreous - posterior; often post-surgical

Gonioscopy - Shaffer Grading System

GradeAngleStructures visible
Grade 4 (35-45°)Wide openCiliary body visible
Grade 3 (25-35°)OpenScleral spur visible
Grade 2 (20°)NarrowTrabeculum visible, NOT scleral spur
Grade 1 (10°)Very narrowOnly Schwalbe line ± top of TM
SlitExtremely narrowNo structures, but no contact
Grade 0 (0°)ClosedIridocorneal contact
Grades 0-1 are at risk of closure. Indentation gonioscopy distinguishes appositional (opens with pressure) from synechial (permanent PAS, does not open) closure.
Van Herick Method (slit-lamp estimation of angle depth):
  • Slit beam at limbus, compare anterior chamber depth to peripheral corneal thickness
  • Ratio <1/4 → narrow angle → formal gonioscopy needed

PACG Spectrum (Terminology)

TermDefinition
PACS (Suspect)ITC in ≥2 quadrants on gonioscopy, no PAS, no elevated IOP, no disc/field damage
PACITC + elevated IOP and/or PAS, but NO glaucomatous damage
PACGPAC + glaucomatous optic disc/field damage
Acute congestive attackSudden symptomatic IOP elevation due to acute angle closure

ACUTE ANGLE-CLOSURE ATTACK (Clinical Emergency)

Precipitating factors:
  • Mydriasis: dim lighting, anticholinergics (e.g., atropine, antihistamines, TCAs), sympathomimetics, motion sickness patches
  • Topiramate (causes anterior rotation of ciliary body - unusual mechanism)
  • Prone position (reading)
  • Emotional stress
Symptoms:
  • Sudden severe unilateral eye pain
  • Blurred vision with coloured halos around lights (corneal oedema causing diffraction)
  • Frontal headache, nausea, vomiting (may mimic acute abdomen/migraine)
  • Photophobia
Signs:
  • Ciliary/circumcorneal congestion (perilimbal injection)
  • Corneal oedema (steamy, hazy cornea)
  • Shallow anterior chamber (Oblique illumination test / van Herick)
  • Mid-dilated, fixed, oval (vertically oval) pupil - key sign
  • High IOP (often 40-80 mmHg)
  • Corneal endothelial oedema (Haab's striae in congenital)
  • Optic disc congestion
Risk to fellow eye: Prophylactic laser iridotomy mandatory to the fellow eye.

Management of Acute Attack

Immediate (Emergency - lower IOP fast):
  1. Topical medications (instill with 3-5 min interval):
    • Apraclonidine 0.5-1% (α2-agonist)
    • Timolol 0.5% (β-blocker)
    • Prednisolone 1% or dexamethasone 0.1% (reduce inflammation)
  2. Pilocarpine 2%: 1 drop to affected eye, repeat after 30 min; 1% to fellow eye. Note: Do NOT repeat if IOP >40 mmHg (ischaemia renders iris sphincter unresponsive)
  3. Analgesia + antiemetic
  4. Systemic hyperosmotic agents (if topical insufficient):
    • Mannitol 20%: 1-2 g/kg IV over 1 hour
    • Oral glycerol 50%: 1 g/kg
    • Oral isosorbide: 1-1.5 g/kg
    • These raise serum osmolality → draw fluid from vitreous → reduce IOP
  5. Oral/IV acetazolamide 250-500 mg (CAI - reduces AH production)
Resistant cases:
  • Corneal indentation (force aqueous posteriorly to open angle)
  • 50% topical glycerol to clear corneal oedema before laser
  • Paracentesis (rapid IOP reduction, small risk)
  • Early laser iridotomy/iridoplasty once cornea clears
Definitive treatment:
  • Laser peripheral iridotomy (LPI): Creates a full-thickness hole in peripheral iris → equalizes pressure between posterior and anterior chambers → relieves pupillary block → angle opens. Bilateral (fellow eye prophylactically). Gold standard.
  • Lens extraction (phacoemulsification): Particularly if significant phacomorphic component; increasingly favoured (EAGLE trial showed superior outcomes over LPI alone)
  • Trabeculectomy: If persistent IOP elevation despite patent iridotomy
Post-attack:
  • Continue pilocarpine 2% QDS; topical steroid for inflammation
  • Repeat gonioscopy to confirm angle is open
  • Low threshold for cataract surgery

7. PRIMARY CONGENITAL GLAUCOMA (PCG)

  • Autosomal recessive (CYP1B1 gene mutation most common)
  • Due to trabeculodysgenesis (maldevelopment of angle structures)
  • Presents from birth to age 3 (most within first year)

Classic Triad:

  1. Epiphora (watering, photophobia)
  2. Blepharospasm (squinting in light)
  3. Corneal cloudiness (oedema)

Signs:

  • Buphthalmos (ox eye): enlarged globe, due to scleral stretching in infants (sclera is distensible)
  • Haab's striae: breaks in Descemet's membrane, horizontal or concentric, from distension
  • Elevated IOP
  • Deep, large cup

Treatment:

  • Medical treatment is inadequate alone as a long-term measure
  • Goniotomy (internal incision of angle, requires clear cornea) or Trabeculotomy (external approach): first-line surgical options
  • Trabeculectomy + MMC: if above fail
  • GDD: best for long-term IOP control if surgery fails

8. SECONDARY GLAUCOMAS

8a. Pseudoexfoliation (PXF) Glaucoma

  • Deposition of grey-white fibrillar material on anterior segment structures (lens surface, TM, zonules)
  • Leads to TM blockage and reduced outflow
  • Associated with zonular weakness → cataract surgery complications (phacodonesis)
  • Most common identifiable cause of secondary OAG worldwide
  • More aggressive than POAG; responds less well to medications

8b. Pigment Dispersion Syndrome / Pigmentary Glaucoma

  • Reversed pupillary block: concave iris bows backwards, rubbing against zonular packets → pigment dispersed into AH → deposited on TM → obstructs outflow
  • Classic triad: Krukenberg spindle (vertical fusiform pigment on corneal endothelium), Sampaolesi line (TM pigment band), Spoke-wheel iris TID (transillumination defects)
  • Young, myopic males
  • Exercise/dilation can precipitate acute IOP spikes
  • Treatment: pilocarpine (re-deepens AC, moves iris forward), laser iridotomy for reverse pupillary block

8c. Neovascular Glaucoma (NVG)

  • New vessels grow on iris (rubeosis iridis) and angle
  • Fibrovascular membrane contracts → PAS → closed angle
  • Causes: central retinal vein occlusion (most common), diabetic retinopathy, CRAO, carotid occlusive disease ("hypoxic ocular syndrome")
  • Treatment: anti-VEGF injections, panretinal photocoagulation (PRP), + surgical IOP control

8d. Steroid-Induced Glaucoma

  • Topical > systemic > inhaled > nasal steroids
  • Mechanism: Steroids increase TM resistance by accumulation of extracellular material (fibronectin, proteoglycans) and inhibition of phagocytosis in TM
  • Steroid responder: Defined as IOP rise of ≥6-10 mmHg with steroids
  • POAG patients and their relatives are particularly susceptible
  • Management: Discontinue steroid; use IOP-lowering drops; may need surgery

8e. Phacolytic Glaucoma

  • Hypermature cataract releases lens proteins through intact capsule
  • Macrophages engulf proteins → engorged cells block TM
  • Open-angle mechanism; severe inflammation
  • Treatment: Urgent cataract extraction

8f. Phacomorphic Glaucoma

  • Swollen/intumescent cataract pushes iris-lens diaphragm forward → angle closure
  • Angle-closure mechanism
  • Treatment: medical IOP reduction followed by urgent cataract extraction; iridotomy may help temporarily

8g. Traumatic Glaucoma

  • Angle recession (from blunt trauma): rupture of ciliary body face → RGC damage, TM fibrosis over years
  • Hyphaema → blood blocks TM
  • Ghost cell glaucoma: degenerated RBCs from old vitreous haemorrhage block TM
  • Lens dislocation → pupillary block
  • Long-term monitoring needed after blunt ocular trauma

9. PHARMACOLOGY OF GLAUCOMA DRUGS (Detailed)

DrugClassMOADoseKey Side EffectsContraindications
LatanoprostPGA (FP agonist)↑ Uveoscleral outflow1 drop OD (night)Iris pigmentation (irreversible), lash growth, CME, periocular fat atrophyAphakia, uveitic glaucoma (relative)
BimatoprostProstamide↑ Both outflow pathways1 drop ODSame as above; most potentSame
TravoprostPGA↑ Uveoscleral outflow1 drop ODSame as aboveSame
TimololNon-selective β-blocker↓ AH production (↓ cAMP)0.5% BDBradycardia, bronchospasm, depression, sexual dysfunction, masking of hypoglycaemiaAsthma, COPD, heart block, bradycardia, heart failure
Betaxololβ1-selective blocker↓ AH production0.5% BDLess bronchospasm than timololHeart block, severe heart failure
BrimonidineSelective α2-agonist↓ AH production + ↑ uveoscleral outflow + possible neuroprotection0.2% TDSAllergy, dry mouth, fatigue, CNS depression in infantsInfants (<2 yrs - fatal apnoea), MAOIs
Apraclonidineα2-agonist↓ AH production0.5-1% TDSAllergy (up to 40%), tachyphylaxisShort-term use only
DorzolamideTopical CAI↓ AH production (inhibits CA-II)2% TDSStinging, superficial punctate keratitis, metallic tasteSulfonamide allergy (relative)
BrinzolamideTopical CAISame1% TDSLess stinging than dorzolamideSame
AcetazolamideSystemic CAI↓ AH production250 mg QID or SR 500 mg BDParaesthesias (most common), metabolic acidosis, kidney stones, sulfa allergy, aplastic anaemia (rare)Sulfonamide allergy, kidney/liver failure, sickle cell
PilocarpineMuscarinic agonist↑ Trabecular outflow (ciliary muscle contraction)2-4% QIDMiosis, brow ache, accommodative spasm, retinal detachment risk (myopes)Acute asthma, recent MI
NetarsudilRho-kinase inhibitor↑ Trabecular outflow + ↓ AH production + ↓ episcleral venous pressure0.02% ODConjunctival hyperaemia, cornea verticillata-
Fixed combinations (improves compliance):
  • Latanoprost + Timolol (Xalacom)
  • Dorzolamide + Timolol (Cosopt)
  • Brimonidine + Timolol (Combigan)
  • Bimatoprost + Timolol (Ganfort)

10. GLAUCOMA SURGERY

Trabeculectomy

  • Creates a guarded fistula under a scleral flap allowing AH to drain into subconjunctival space (bleb)
  • Antifibrotics: 5-fluorouracil (5-FU) or Mitomycin C (MMC) applied to bleb area to inhibit fibroblast proliferation and prevent bleb scarring
  • Complications: Hypotony, bleb leak, blebitis/endophthalmitis, choroidal effusion/haemorrhage, cataract progression, failure

Glaucoma Drainage Devices (GDD)

  • Ahmed (FP7/S2), Baerveldt, Molteno
  • Tube in anterior chamber → plate sutured to episclera posteriorly
  • Used for: failed trabeculectomy, neovascular glaucoma, post-vitreoretinal surgery

MIGS (Minimally Invasive Glaucoma Surgery)

  • iStent/iStent inject: Titanium stent through TM into Schlemm's canal
  • Hydrus Microstent: Scaffold within Schlemm's canal
  • OMNI: Viscodilation + trabeculotomy
  • XEN Gel Stent: Gelatin stent from AC to subconjunctival space
  • Lower risk profile than trabeculectomy; best combined with phaco; moderate IOP reduction

Cyclodestructive Procedures

  • Diode laser cyclophotocoagulation (CPC): Transscleral delivery; damages ciliary processes → ↓ AH production
  • Reserved for refractory/end-stage/blind painful eyes
  • Risks: Phthisis bulbi, hypotony, pain

11. OCULAR HYPERTENSION (OHT)

  • IOP consistently >21 mmHg with normal optic disc, normal visual fields, and open angles
  • NOT the same as glaucoma; only ~9.5% convert to POAG over 5 years (OHTS study)
  • Treatment reduces conversion to 4.4% (OHTS)
  • Treat if: IOP ≥30 mmHg (>40% 5-year risk), or high-risk profile (thin CCT, large C/D ratio, older age, Black ethnicity)
  • Monitoring acceptable for lower-risk individuals

12. OPTIC NERVE HEAD IMAGING (OCT)

Spectral domain OCT provides:
  • RNFL thickness map (TSNIT: Temporal-Superior-Nasal-Inferior-Temporal pattern)
  • Loss typically starts inferiorly and superiorly (corresponding to superior/inferior arcuate field defects)
  • Ganglion Cell Layer (GCL) analysis: Macula GCL thinning mirrors RNFL loss
  • Serial OCT critical for progression analysis
  • OCT detects structural damage earlier than visual field loss (structural precedes functional)

13. GLAUCOMA IN PHACOMATOSES

  • Sturge-Weber syndrome: Glaucoma in ~30% ipsilateral to facial haemangioma; 60% develop before age 2 (buphthalmos). Mechanism: trabeculodysgenesis (early) + raised episcleral venous pressure from AV communication (late). Goniotomy/trabeculotomy for early-onset; GDD for others. High risk of choroidal effusion/haemorrhage during filtration surgery.
  • Neurofibromatosis type 1: Rare; when present, usually unilateral and congenital. Association with plexiform neurofibroma of upper eyelid. Mechanisms: angle anomaly, ectropion uveae.

14. QUICK REVISION TABLE: POAG vs PACG

FeaturePOAGPACG (Acute)
OnsetInsidiousSudden
SymptomsAsymptomatic (late field loss)Severe pain, halos, vomiting
IOPElevated (variable)Very high (40-80 mmHg)
CorneaClearOedematous (steamy)
Anterior chamberNormal/deepShallow
PupilNormalMid-dilated, fixed, oval
Angle (gonioscopy)OpenClosed
FundusDisc changes when advancedDisc congested/normal early
Race predilectionBlack > WhiteAsian
GenderM = FF > M
RefractionMyopia associationHypermetropia association
Definitive treatmentIOP-lowering drops/SLT/surgeryLaser iridotomy; phaco

15. EXAM HIGH-YIELD POINTS

  1. Normal IOP: 10-21 mmHg; Goldmann applanation is the gold standard tonometer
  2. POAG is chronic and painless; asymptomatic until late - "sneak thief of sight"
  3. Visual field defect starts peripherally in POAG (ring scotoma, then tunnel vision); in NTG, defects are closer to fixation
  4. Prostaglandin analogues are first-line medical therapy for POAG
  5. Acute angle closure is an emergency: mid-dilated fixed oval pupil + rocky hard eye + corneal oedema
  6. Pilocarpine is contraindicated when IOP >40 mmHg in acute attack (ischaemic iris fails to respond)
  7. Laser peripheral iridotomy is the definitive treatment for pupillary block angle closure
  8. Congenital glaucoma triad: epiphora + photophobia/blepharospasm + corneal cloudiness; buphthalmos is pathognomonic
  9. ISNT rule: Normal NRR is Inferior > Superior > Nasal > Temporal; violation = glaucoma
  10. Neovascular glaucoma: Think ischaemic conditions - CRVO, PDR, carotid occlusion
  11. Steroid-induced glaucoma: Any route of steroid administration; especially risky in POAG patients
  12. Acetazolamide: Most common side effect is paraesthesias (tingling of hands/feet)
  13. Timolol: Contraindicated in asthma (bronchospasm), heart block
  14. SLT is repeatable (unlike ALT); can be used as primary therapy (LiGHT trial)
  15. Trabeculectomy + MMC: Gold standard surgery; bleb complications are major concern
  16. NTG diagnosis requires: IOP always ≤21 mmHg + glaucomatous damage + exclude other causes (pituitary tumour compressing optic chiasm, etc.)
  17. C/D ratio >0.7 or asymmetry >0.2 warrants full glaucoma workup
  18. Brimonidine is absolutely contraindicated in infants (<2 years) - causes CNS depression and apnoea
  19. OCT shows structural damage before visual field loss - structural-functional correlation
  20. EAGLE trial: Lens extraction superior to laser iridotomy as initial treatment for PAC/PACG

All information compiled from: Kanski's Clinical Ophthalmology 10th Edition, Robbins & Kumar Basic Pathology, Katzung's Basic and Clinical Pharmacology 16th Edition, Goodman & Gilman's Pharmacological Basis of Therapeutics, Goldman-Cecil Medicine, Harrison's Principles of Internal Medicine 22E

Make a pharmacology table (PPT) on all glaucoma medications with dosing and contraindications

Reading File
Reading File
Reading File
Reading File
Now I have everything I need. Let me build the PPT.
Running Command

ls /home/daytona/workspace/ 2>/dev/null && echo "---" && ls /home/daytona/workspace/glaucoma-ppt/ 2>/dev/null || echo "directory not found"

Running Command

mkdir -p /home/daytona/workspace/glaucoma-ppt

Writing File

~/glaucoma-ppt/build.js

const pptxgen = require("pptxgenjs");

const pres = new pptxgen();
pres.layout = "LAYOUT_WIDE"; // 13.3" x 7.5"
pres.title = "Glaucoma Pharmacology";
pres.author = "Orris Medical";

// ─── PALETTE ───────────────────────────────────────────────────────────────
const C = {
  navy:    "0A1E3C",   // dominant dark
  teal:    "0D7377",   // primary accent
  tealLt:  "14AFAA",   // lighter teal
  sky:     "E0F4F4",   // very light teal bg
  white:   "FFFFFF",
  gray1:   "F4F8F9",   // table row alt
  gray2:   "DDE8EC",   // table border / divider
  gray3:   "8BA6B0",   // muted text
  orange:  "E85D04",   // warning / CI highlight
  amber:   "FFF3CD",   // warning row bg
  green:   "1A7A4A",   // go / 1st-line
  red:     "C0392B",   // contraindicated
  text:    "1C2A35",   // body text
  thead:   "0A1E3C",   // table header bg
  theadFg: "FFFFFF",
};

// ─── HELPERS ─────────────────────────────────────────────────────────────
function titleBar(slide, title, sub) {
  // dark navy bar top
  slide.addShape(pres.shapes.RECTANGLE, {
    x: 0, y: 0, w: 13.3, h: 1.0,
    fill: { color: C.navy }, line: { color: C.navy }
  });
  // teal accent stripe
  slide.addShape(pres.shapes.RECTANGLE, {
    x: 0, y: 0.95, w: 13.3, h: 0.06,
    fill: { color: C.teal }, line: { color: C.teal }
  });
  slide.addText(title, {
    x: 0.35, y: 0, w: 12.6, h: 0.78, margin: 0,
    fontSize: 22, bold: true, color: C.white, valign: "middle"
  });
  if (sub) {
    slide.addText(sub, {
      x: 0.35, y: 0.72, w: 12, h: 0.28, margin: 0,
      fontSize: 10.5, color: C.tealLt, italic: true, valign: "top"
    });
  }
  // light background for content area
  slide.addShape(pres.shapes.RECTANGLE, {
    x: 0, y: 1.01, w: 13.3, h: 6.49,
    fill: { color: C.white }, line: { color: C.white }
  });
}

function footer(slide, pageNum, total) {
  slide.addShape(pres.shapes.RECTANGLE, {
    x: 0, y: 7.22, w: 13.3, h: 0.28,
    fill: { color: C.navy }, line: { color: C.navy }
  });
  slide.addText("Glaucoma Pharmacology  ·  MBBS Reference", {
    x: 0.3, y: 7.23, w: 10, h: 0.24, margin: 0,
    fontSize: 8, color: C.gray3, valign: "middle"
  });
  slide.addText(`${pageNum} / ${total}`, {
    x: 12.0, y: 7.23, w: 1.0, h: 0.24, margin: 0,
    fontSize: 8, color: C.gray3, align: "right", valign: "middle"
  });
}

// addTable wrapper: cols = [{label, w}], rows = [[cell,...]]
// options: headerBg, altRow, startY, rowH, fontSize
function addTable(slide, cols, rows, opts = {}) {
  const {
    startY = 1.15, rowH = 0.42, fontSize = 9.5,
    headerBg = C.thead, altBg = C.gray1, altBg2 = C.white
  } = opts;

  const totalW = cols.reduce((s, c) => s + c.w, 0);
  const startX = (13.3 - totalW) / 2;

  // Header row
  let xPos = startX;
  cols.forEach(col => {
    slide.addShape(pres.shapes.RECTANGLE, {
      x: xPos, y: startY, w: col.w, h: rowH,
      fill: { color: headerBg }, line: { color: C.gray2, pt: 0.5 }
    });
    slide.addText(col.label, {
      x: xPos, y: startY, w: col.w, h: rowH, margin: [0,4,0,4],
      fontSize: fontSize - 0.5, bold: true, color: C.white,
      valign: "middle", align: "center", wrap: true
    });
    xPos += col.w;
  });

  // Data rows
  rows.forEach((row, ri) => {
    const bg = ri % 2 === 0 ? altBg : altBg2;
    const yPos = startY + rowH * (ri + 1);
    xPos = startX;
    row.forEach((cell, ci) => {
      const cellBg = cell.bg || bg;
      slide.addShape(pres.shapes.RECTANGLE, {
        x: xPos, y: yPos, w: cols[ci].w, h: rowH,
        fill: { color: cellBg }, line: { color: C.gray2, pt: 0.5 }
      });
      slide.addText(cell.text || cell, {
        x: xPos, y: yPos, w: cols[ci].w, h: rowH, margin: [0,4,0,4],
        fontSize: cell.fs || fontSize,
        bold: cell.bold || false,
        color: cell.color || C.text,
        valign: "middle", align: cell.align || "left", wrap: true
      });
      xPos += cols[ci].w;
    });
  });
}

// ─── TOTAL SLIDES ────────────────────────────────────────────────────────
const TOTAL = 9;

// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 1: COVER
// ═══════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  // Full navy background
  s.addShape(pres.shapes.RECTANGLE, {
    x:0, y:0, w:13.3, h:7.5, fill:{color:C.navy}, line:{color:C.navy}
  });
  // Decorative teal side bar
  s.addShape(pres.shapes.RECTANGLE, {
    x:0, y:0, w:0.22, h:7.5, fill:{color:C.teal}, line:{color:C.teal}
  });
  // Large teal accent block
  s.addShape(pres.shapes.RECTANGLE, {
    x:0.22, y:2.8, w:13.08, h:0.08, fill:{color:C.tealLt}, line:{color:C.tealLt}
  });
  s.addShape(pres.shapes.RECTANGLE, {
    x:0.22, y:4.55, w:13.08, h:0.06, fill:{color:C.teal}, line:{color:C.teal}
  });

  // Eye icon text (unicode)
  s.addText("👁", {
    x: 0.8, y: 0.7, w: 1.2, h: 1.2, fontSize: 60, align: "center"
  });

  s.addText("GLAUCOMA", {
    x: 0.5, y: 1.1, w: 12.3, h: 1.1,
    fontSize: 54, bold: true, color: C.tealLt,
    align: "center", charSpacing: 8
  });
  s.addText("PHARMACOLOGY", {
    x: 0.5, y: 2.1, w: 12.3, h: 0.75,
    fontSize: 38, bold: true, color: C.white,
    align: "center", charSpacing: 4
  });
  s.addText("Complete Drug Reference with Dosing, Mechanisms & Contraindications", {
    x: 1.5, y: 2.95, w: 10.3, h: 0.55,
    fontSize: 14, color: C.tealLt, align: "center", italic: true
  });

  const badges = [
    { label: "6 Drug Classes", x: 1.2 },
    { label: "18+ Agents", x: 4.0 },
    { label: "MBBS Level", x: 6.8 },
    { label: "Exam Ready", x: 9.6 },
  ];
  badges.forEach(b => {
    s.addShape(pres.shapes.ROUNDED_RECTANGLE, {
      x: b.x, y: 3.7, w: 2.4, h: 0.48,
      fill: { color: C.teal }, line: { color: C.tealLt }, rectRadius: 0.08
    });
    s.addText(b.label, {
      x: b.x, y: 3.7, w: 2.4, h: 0.48, margin: 0,
      fontSize: 11.5, bold: true, color: C.white, align: "center", valign: "middle"
    });
  });

  s.addText("Sources: Kanski's Clinical Ophthalmology 10e  ·  Katzung's Pharmacology 16e  ·  Goodman & Gilman's", {
    x: 0.5, y: 4.75, w: 12.3, h: 0.3,
    fontSize: 9, color: C.gray3, align: "center"
  });

  // Slide list
  const slideTopics = [
    "Overview & Classification", "Prostaglandin Analogues", "Beta-Blockers",
    "Alpha-2 Agonists", "Carbonic Anhydrase Inhibitors", "Miotics & Rho-Kinase Inhibitors",
    "Hyperosmotic Agents", "Drug Comparison & First-Line Summary"
  ];
  slideTopics.forEach((t, i) => {
    const col = i < 4 ? 0 : 1;
    const row = i % 4;
    s.addText(`${i+1}. ${t}`, {
      x: 1.2 + col * 6.0, y: 5.2 + row * 0.44, w: 5.6, h: 0.38, margin: 0,
      fontSize: 10, color: C.gray3
    });
  });
}

// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 2: OVERVIEW & CLASSIFICATION
// ═══════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  titleBar(s, "Overview of Glaucoma Drug Classes", "Mechanism-based classification of all IOP-lowering agents");
  footer(s, 2, TOTAL);

  const cols = [
    { label: "Drug Class", w: 2.6 },
    { label: "Examples", w: 3.0 },
    { label: "Primary Mechanism", w: 3.2 },
    { label: "IOP Reduction", w: 1.5 },
    { label: "Route / Freq.", w: 1.5 },
    { label: "First Line?", w: 1.2 },
  ];

  const rows = [
    [
      { text: "Prostaglandin Analogues", bold: true, color: C.navy },
      "Latanoprost, Bimatoprost, Travoprost, Tafluprost",
      "↑ Uveoscleral outflow (FP receptor agonism)",
      { text: "25–35%", bold: true, color: C.green },
      "Topical / OD (nocte)",
      { text: "✔ YES", bold: true, color: C.green }
    ],
    [
      { text: "Beta-Blockers", bold: true, color: C.navy },
      "Timolol, Betaxolol, Levobunolol, Carteolol",
      "↓ Aqueous humor production (↓ cAMP in ciliary body)",
      { text: "20–30%", bold: true, color: C.teal },
      "Topical / BD",
      { text: "✔ YES", bold: true, color: C.green }
    ],
    [
      { text: "Alpha-2 Agonists", bold: true, color: C.navy },
      "Brimonidine 0.2%, Apraclonidine 0.5–1%",
      "↓ AH production + ↑ uveoscleral outflow",
      { text: "20–25%", bold: true, color: C.teal },
      "Topical / BD–TDS",
      { text: "✔ YES*", bold: true, color: C.green }
    ],
    [
      { text: "Carbonic Anhydrase Inhibitors", bold: true, color: C.navy },
      "Dorzolamide, Brinzolamide (topical); Acetazolamide (oral)",
      "↓ AH production (inhibit CA-II in ciliary epithelium)",
      { text: "15–25%", bold: true, color: C.teal },
      "Topical TDS / Oral",
      { text: "✔ Add-on", bold: true, color: C.teal }
    ],
    [
      { text: "Miotics (Cholinergics)", bold: true, color: C.navy },
      "Pilocarpine 1–4%, Carbachol",
      "↑ Trabecular outflow (ciliary muscle contraction opens TM)",
      { text: "20–25%", bold: true, color: C.teal },
      "Topical / QDS",
      { text: "Limited now", color: C.gray3 }
    ],
    [
      { text: "Rho-Kinase Inhibitors", bold: true, color: C.navy },
      "Netarsudil 0.02%",
      "↑ Trabecular outflow + ↓ AH production + ↓ episcleral VP",
      { text: "15–20%", bold: true, color: C.teal },
      "Topical / OD",
      { text: "Add-on / newer", color: C.gray3 }
    ],
    [
      { text: "Hyperosmotic Agents", bold: true, color: C.navy },
      "Mannitol 20% IV, Glycerol 50% oral, Isosorbide oral",
      "↑ Plasma osmolality → draw fluid from vitreous → ↓ IOP",
      { text: "30–50%", bold: true, color: C.orange },
      "IV / Oral (acute)",
      { text: "Acute only", bold: true, color: C.orange }
    ],
  ];

  addTable(s, cols, rows, { startY: 1.15, rowH: 0.6, fontSize: 9 });

  s.addText("* Brimonidine absolutely contraindicated in infants <2 years (apnoea risk)", {
    x: 0.3, y: 6.85, w: 12, h: 0.25, margin: 0,
    fontSize: 8.5, color: C.orange, italic: true
  });
}

// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 3: PROSTAGLANDIN ANALOGUES
// ═══════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  titleBar(s, "Prostaglandin Analogues (PGA)", "First-line IOP-lowering therapy — most efficacious class");
  footer(s, 3, TOTAL);

  // Class badge
  s.addShape(pres.shapes.ROUNDED_RECTANGLE, {
    x: 9.5, y: 1.1, w: 3.5, h: 0.45,
    fill: { color: C.green }, line: { color: C.green }, rectRadius: 0.07
  });
  s.addText("FIRST-LINE THERAPY", {
    x: 9.5, y: 1.1, w: 3.5, h: 0.45, margin: 0,
    fontSize: 10, bold: true, color: C.white, align: "center", valign: "middle"
  });

  const cols = [
    { label: "Drug", w: 1.8 },
    { label: "Concentration", w: 1.5 },
    { label: "Dose & Frequency", w: 2.0 },
    { label: "Mechanism", w: 2.8 },
    { label: "Adverse Effects", w: 2.5 },
    { label: "Contraindications", w: 2.4 },
  ];

  const rows = [
    [
      { text: "Latanoprost", bold: true, color: C.teal },
      "0.005%",
      "1 drop OD\n(evening/night)",
      "FP receptor agonist → ↑ uveoscleral outflow via MMP-mediated remodelling of ciliary body ECM",
      "Iris hyperpigmentation (irreversible), ↑ eyelash growth, periocular skin darkening, CME",
      { text: "Aphakia, pseudophakia with torn capsule, active uveitis (relative)", color: C.red }
    ],
    [
      { text: "Bimatoprost", bold: true, color: C.teal },
      "0.01%, 0.03%",
      "1 drop OD\n(evening)",
      "Prostamide receptor + FP receptor → ↑ both uveoscleral AND trabecular outflow",
      "Same as above; most potent; most lash growth (cosmetic use for hypotrichosis)",
      { text: "Same as latanoprost", color: C.red }
    ],
    [
      { text: "Travoprost", bold: true, color: C.teal },
      "0.004%",
      "1 drop OD\n(evening)",
      "Highly selective FP agonist → ↑ uveoscleral outflow",
      "Same class effects; preserved formulation may irritate",
      { text: "Same as latanoprost; preservative-free available", color: C.red }
    ],
    [
      { text: "Tafluprost", bold: true, color: C.teal },
      "0.0015%",
      "1 drop OD\n(evening)",
      "FP receptor agonist; preservative-free single-dose unit",
      "Fewer local side effects due to preservative-free formulation",
      { text: "Same class; preferred in dry eye patients", color: C.red }
    ],
  ];

  addTable(s, cols, rows, { startY: 1.63, rowH: 0.7, fontSize: 8.8 });

  // Key notes box
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0.25, y: 6.45, w: 12.8, h: 0.68,
    fill: { color: C.sky }, line: { color: C.teal, pt: 1 }
  });
  s.addText([
    { text: "Class Notes:  ", options: { bold: true, color: C.navy } },
    { text: "All PGAs act at FP (prostanoid F) receptor.  ", options: { color: C.text } },
    { text: "IOP reduction 25–35%.  ", options: { color: C.text } },
    { text: "Once-daily dosing (nocte) — increases compliance.  ", options: { color: C.text } },
    { text: "Iris pigmentation changes are IRREVERSIBLE — warn patient.  ", options: { bold: true, color: C.orange } },
    { text: "Avoid in CME-prone eyes (aphakia, uveitis).", options: { color: C.text } },
  ], { x: 0.4, y: 6.47, w: 12.5, h: 0.64, margin: [0,4,0,4], fontSize: 8.5, valign: "middle" });
}

// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 4: BETA-BLOCKERS
// ═══════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  titleBar(s, "Beta-Adrenergic Blockers", "Reduce aqueous humor production — first-line alternative to PGAs");
  footer(s, 4, TOTAL);

  s.addShape(pres.shapes.ROUNDED_RECTANGLE, {
    x: 9.5, y: 1.1, w: 3.5, h: 0.45,
    fill: { color: C.green }, line: { color: C.green }, rectRadius: 0.07
  });
  s.addText("FIRST-LINE (if PGA CI)", {
    x: 9.5, y: 1.1, w: 3.5, h: 0.45, margin: 0,
    fontSize: 10, bold: true, color: C.white, align: "center", valign: "middle"
  });

  const cols = [
    { label: "Drug", w: 1.9 },
    { label: "Selectivity", w: 1.6 },
    { label: "Concentration / Dose", w: 2.2 },
    { label: "Mechanism", w: 2.5 },
    { label: "Systemic Adverse Effects", w: 2.5 },
    { label: "Contraindications", w: 2.3 },
  ];

  const rows = [
    [
      { text: "Timolol", bold: true, color: C.navy },
      { text: "Non-selective\n(β1 + β2)", color: C.text },
      "0.25%, 0.5%\nBD; gel OD",
      "↓ cAMP in ciliary body → ↓ aqueous secretion by ~40–50%",
      { text: "Bradycardia, bronchospasm, heart block, hypotension, depression, sexual dysfunction, masking of hypoglycaemia", color: C.red },
      { text: "Asthma, COPD, 2°/3° heart block, bradycardia (<50), decompensated HF, SSSS syndrome", bg: C.amber, color: C.red }
    ],
    [
      { text: "Betaxolol", bold: true, color: C.navy },
      { text: "β1-selective\n(cardioselective)", color: C.green },
      "0.25%, 0.5%\nBD",
      "↓ aqueous production; β1-selective reduces systemic β2 effects; possible neuroprotection",
      "Less bronchospasm than timolol; bradycardia still possible; still can worsen pulmonary sx",
      { text: "2°/3° heart block, bradycardia, decompensated HF; use cautiously in asthma (still not truly safe)", color: C.orange }
    ],
    [
      { text: "Levobunolol", bold: true, color: C.navy },
      { text: "Non-selective\n(β1 + β2)", color: C.text },
      "0.25%, 0.5%\nOD or BD",
      "Same as timolol; levoisomer form",
      "Same systemic risks as timolol",
      { text: "Same as timolol", color: C.red }
    ],
    [
      { text: "Carteolol", bold: true, color: C.navy },
      { text: "Non-selective\n(ISA)", color: C.text },
      "1%, 2%\nBD",
      "Non-selective β-block + intrinsic sympathomimetic activity (ISA) → less bradycardia",
      "Less effect on heart rate due to ISA; bronchospasm still possible",
      { text: "Same as timolol; ISA may reduce cardiac side effects slightly", color: C.orange }
    ],
    [
      { text: "Metipranolol", bold: true, color: C.navy },
      { text: "Non-selective", color: C.text },
      "0.1%, 0.3%\nBD",
      "Same mechanism as timolol; lower potency",
      "Same class effects; uveitis reported rarely",
      { text: "Same as timolol", color: C.red }
    ],
  ];

  addTable(s, cols, rows, { startY: 1.63, rowH: 0.6, fontSize: 8.5 });

  s.addShape(pres.shapes.RECTANGLE, {
    x: 0.25, y: 6.45, w: 12.8, h: 0.68,
    fill: { color: C.amber }, line: { color: C.orange, pt: 1 }
  });
  s.addText([
    { text: "⚠ Systemic Absorption Warning:  ", options: { bold: true, color: C.red } },
    { text: "Topical timolol 0.5% delivers systemic dose sufficient to cause bradycardia/bronchospasm.  ", options: { color: C.text } },
    { text: "Nasolacrimal occlusion (NLO) after instillation reduces systemic absorption.  ", options: { color: C.text } },
    { text: "Timolol + verapamil → increased risk of complete heart block.  ", options: { bold: true, color: C.red } },
    { text: "Maximum local dose ~1 mg/day (tiny vs. oral 10–60 mg).", options: { color: C.text } },
  ], { x: 0.4, y: 6.47, w: 12.5, h: 0.64, margin: [0,4,0,4], fontSize: 8.5, valign: "middle" });
}

// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 5: ALPHA-2 AGONISTS
// ═══════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  titleBar(s, "Alpha-2 Adrenergic Agonists", "Dual mechanism: ↓ aqueous production + ↑ uveoscleral outflow");
  footer(s, 5, TOTAL);

  const cols = [
    { label: "Drug", w: 1.9 },
    { label: "Concentration / Dose", w: 2.0 },
    { label: "Mechanism", w: 3.0 },
    { label: "Adverse Effects", w: 2.5 },
    { label: "Contraindications", w: 2.2 },
    { label: "Notes", w: 1.7 },
  ];

  const rows = [
    [
      { text: "Brimonidine", bold: true, color: C.teal },
      "0.1%, 0.15%, 0.2%\nBD–TDS",
      "Selective α2 agonist → ↓ AH production (↓ cAMP) + ↑ uveoscleral outflow. Possible neuroprotective effect on RGCs",
      "Ocular allergy (10–20%), follicular conjunctivitis, dry mouth, fatigue, headache, drowsiness, CNS depression",
      { text: "INFANTS <2 yrs (FATAL apnoea/CNS depression — absolute CI), MAOIs, severe CV disease", bg: C.amber, color: C.red, bold: true },
      { text: "Drug of choice for add-on; neuroprotection still being studied", color: C.gray3 }
    ],
    [
      { text: "Apraclonidine", bold: true, color: C.teal },
      "0.5%, 1%\nTDS (0.5%) or single dose (1%)",
      "Less selective α2 agonist (also mild α1) → ↓ AH production; useful for prevention of IOP spike post-laser",
      { text: "HIGH allergy rate (up to 40% long-term), tachyphylaxis (loses efficacy), lid retraction, dry mouth, blanching", color: C.orange },
      "MAOIs, tricyclics; NOT suitable for chronic use",
      { text: "Short-term use only; pre/post laser treatment; NOT for chronic glaucoma management", color: C.orange, bold: false }
    ],
  ];

  addTable(s, cols, rows, { startY: 1.65, rowH: 1.3, fontSize: 9.5 });

  // Comparison panel
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0.25, y: 4.55, w: 6.1, h: 1.65,
    fill: { color: C.sky }, line: { color: C.teal, pt: 1 }
  });
  s.addText("Brimonidine vs. Apraclonidine", {
    x: 0.4, y: 4.6, w: 5.8, h: 0.35, margin: 0,
    fontSize: 11, bold: true, color: C.navy
  });
  const compItems = [
    "Brimonidine: more selective α2, longer-term use, neuroprotection",
    "Apraclonidine: less selective, tachyphylaxis limits long-term use",
    "Both reduce IOP by ~20–25%",
    "Brimonidine preferred for chronic management",
  ];
  compItems.forEach((item, i) => {
    s.addText([
      { text: "• ", options: { color: C.teal, bold: true } },
      { text: item, options: { color: C.text } }
    ], {
      x: 0.4, y: 5.0 + i * 0.28, w: 5.8, h: 0.28, margin: [0,4,0,4], fontSize: 9
    });
  });

  // MBBS key fact
  s.addShape(pres.shapes.RECTANGLE, {
    x: 6.65, y: 4.55, w: 6.4, h: 1.65,
    fill: { color: C.amber }, line: { color: C.orange, pt: 1.2 }
  });
  s.addText("⚠ EXAM HIGH-YIELD", {
    x: 6.8, y: 4.6, w: 6.0, h: 0.35, margin: 0,
    fontSize: 11, bold: true, color: C.red
  });
  const examItems = [
    "Brimonidine is ABSOLUTELY CONTRAINDICATED in infants <2 years",
    "Causes fatal CNS depression and apnoea in neonates/infants",
    "Apraclonidine: use only acutely (pre/post-laser) — tachyphylaxis",
    "Both contraindicated with MAOIs (hypertensive crisis risk)",
  ];
  examItems.forEach((item, i) => {
    s.addText([
      { text: "⚡ ", options: { color: C.red, bold: true } },
      { text: item, options: { color: C.text } }
    ], {
      x: 6.8, y: 5.0 + i * 0.28, w: 6.0, h: 0.28, margin: [0,4,0,4], fontSize: 9
    });
  });

  footer(s, 5, TOTAL);
}

// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 6: CARBONIC ANHYDRASE INHIBITORS
// ═══════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  titleBar(s, "Carbonic Anhydrase Inhibitors (CAIs)", "Inhibit CA-II in ciliary epithelium → ↓ aqueous humor secretion by 40–50%");
  footer(s, 6, TOTAL);

  const cols = [
    { label: "Drug", w: 1.8 },
    { label: "Route", w: 0.9 },
    { label: "Concentration / Dose", w: 2.1 },
    { label: "Mechanism", w: 2.6 },
    { label: "Adverse Effects", w: 2.7 },
    { label: "Contraindications", w: 2.5 },
  ];

  const rows = [
    [
      { text: "Dorzolamide", bold: true, color: C.teal },
      { text: "TOPICAL", color: C.green, bold: true },
      "2%\nTDS (alone) or BD (combo with timolol)",
      "Inhibits CA-II in ciliary epithelium → ↓ HCO3− formation → ↓ Na+/fluid secretion → ↓ AH production",
      "Ocular stinging/burning (on instillation), superficial punctate keratitis, blurred vision, bitter metallic taste",
      { text: "Sulfonamide allergy (cross-reactivity), severe renal impairment (accumulation), corneal endothelial disease", color: C.red }
    ],
    [
      { text: "Brinzolamide", bold: true, color: C.teal },
      { text: "TOPICAL", color: C.green, bold: true },
      "1%\nTDS",
      "Same as dorzolamide; suspension formulation — less stinging due to near-neutral pH",
      "Less stinging than dorzolamide (pH 7.5 vs 5.6); blurred vision more common (suspension); bitter taste",
      { text: "Same as dorzolamide; slightly better tolerated", color: C.orange }
    ],
    [
      { text: "Acetazolamide", bold: true, color: C.navy },
      { text: "ORAL / IV", color: C.orange, bold: true },
      "250 mg QID (oral)\nor SR 500 mg BD\nor 500 mg IV (acute)",
      "Systemic CA inhibition → ↓ AH production. Used in acute angle closure attack. Not for long-term use",
      { text: "Paraesthesias (most common — tingling hands/feet), metabolic acidosis, hypokalaemia, polyuria, renal calculi, aplastic anaemia (rare), Stevens-Johnson syndrome", color: C.red, bold: false },
      { text: "Sulfonamide allergy (absolute), severe hepatic/renal failure, Addison's disease, hypokalaemia, sickle cell anaemia (acidosis risk), first trimester pregnancy", bg: C.amber, color: C.red }
    ],
    [
      { text: "Methazolamide", bold: true, color: C.navy },
      { text: "ORAL", color: C.orange, bold: true },
      "25–50 mg BD–TDS",
      "Less potent systemic CA inhibitor; fewer renal side effects than acetazolamide",
      "Similar to acetazolamide but milder; paraesthesias, fatigue, GI upset",
      { text: "Same as acetazolamide", color: C.red }
    ],
  ];

  addTable(s, cols, rows, { startY: 1.65, rowH: 0.78, fontSize: 8.5 });

  s.addShape(pres.shapes.RECTANGLE, {
    x: 0.25, y: 6.48, w: 12.8, h: 0.62,
    fill: { color: C.sky }, line: { color: C.teal, pt: 1 }
  });
  s.addText([
    { text: "Key Fact: ", options: { bold: true, color: C.navy } },
    { text: "Topical CAIs (dorzolamide/brinzolamide) preferred for chronic use — fewer systemic effects.  ", options: { color: C.text } },
    { text: "Oral acetazolamide reserved for acute attacks and short-term use.  ", options: { color: C.text } },
    { text: "Paraesthesias (tingling) = most common side effect of acetazolamide.  ", options: { bold: true, color: C.orange } },
    { text: "Both dorzolamide and brinzolamide can be combined with timolol (Cosopt / Azarga).", options: { color: C.text } },
  ], { x: 0.4, y: 6.5, w: 12.5, h: 0.58, margin: [0,4,0,4], fontSize: 8.5, valign: "middle" });
}

// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 7: MIOTICS + RHO-KINASE INHIBITORS
// ═══════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  titleBar(s, "Miotics (Cholinergics) & Rho-Kinase Inhibitors", "Enhance trabecular outflow via different mechanisms");
  footer(s, 7, TOTAL);

  // --- MIOTICS section header ---
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0.25, y: 1.15, w: 12.8, h: 0.32,
    fill: { color: C.teal }, line: { color: C.teal }
  });
  s.addText("MIOTICS — Muscarinic (Cholinergic) Agonists", {
    x: 0.4, y: 1.15, w: 12.5, h: 0.32, margin: 0,
    fontSize: 10, bold: true, color: C.white, valign: "middle"
  });

  const miCols = [
    { label: "Drug", w: 1.8 },
    { label: "Concentration / Dose", w: 2.0 },
    { label: "Mechanism", w: 3.0 },
    { label: "Adverse Effects", w: 3.2 },
    { label: "Contraindications", w: 2.8 },
  ];

  const miRows = [
    [
      { text: "Pilocarpine", bold: true, color: C.navy },
      "1–4%\nQDS (chronic) / 2% acute angle closure",
      "M3 receptor agonist → ciliary muscle contraction → opens trabecular meshwork spaces → ↑ conventional outflow. Also constricts pupil (miosis) → used in angle closure",
      "Miosis (dim vision in elderly), accommodative spasm (brow ache), blurred vision, retinal detachment risk in high myopes, systemic: sweating, salivation, bronchospasm",
      { text: "Acute asthma, recent MI, anterior uveitis (pupil constriction worsens synechiae), high myopia (relative — RD risk), iritis", color: C.red }
    ],
    [
      { text: "Carbachol", bold: true, color: C.navy },
      "0.75–3%\nBD–TDS",
      "Direct cholinergic + indirect (anticholinesterase) → stronger and longer action than pilocarpine",
      "Same as pilocarpine; more potent systemic muscarinic effects",
      { text: "Same as pilocarpine; rarely used topically now", color: C.red }
    ],
  ];

  addTable(s, miCols, miRows, { startY: 1.47, rowH: 0.75, fontSize: 8.8 });

  // --- ROKI section header ---
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0.25, y: 3.1, w: 12.8, h: 0.32,
    fill: { color: C.navy }, line: { color: C.navy }
  });
  s.addText("RHO-KINASE (ROCK) INHIBITORS — Novel Class", {
    x: 0.4, y: 3.1, w: 12.5, h: 0.32, margin: 0,
    fontSize: 10, bold: true, color: C.tealLt, valign: "middle"
  });

  const rkCols = [
    { label: "Drug", w: 1.8 },
    { label: "Concentration / Dose", w: 2.0 },
    { label: "Mechanism", w: 3.5 },
    { label: "Adverse Effects", w: 3.2 },
    { label: "Contraindications / Notes", w: 2.3 },
  ];

  const rkRows = [
    [
      { text: "Netarsudil", bold: true, color: C.teal },
      "0.02%\nOD (evening)",
      "Rho-kinase inhibitor: ↑ trabecular meshwork outflow by relaxing TM and Schlemm's canal cells + ↓ episcleral venous pressure + ↓ AH production. Triple mechanism",
      "Conjunctival hyperaemia (very common ~50%), conjunctival haemorrhage, cornea verticillata (whirl-like deposits — reversible), corneal staining",
      { text: "No absolute CI listed; use in combination when other drugs insufficient. Not established in pregnancy", color: C.gray3 }
    ],
    [
      { text: "Ripasudil", bold: true, color: C.teal },
      "0.4%\nBD",
      "ROCK1 and ROCK2 inhibitor → same TM relaxation mechanism; also used in corneal endothelial disease",
      "Conjunctival hyperaemia, blepharitis, allergic conjunctivitis",
      { text: "Limited availability; used in Japan; emerging data", color: C.gray3 }
    ],
  ];

  addTable(s, rkCols, rkRows, { startY: 3.42, rowH: 0.78, fontSize: 8.8 });

  s.addShape(pres.shapes.RECTANGLE, {
    x: 0.25, y: 5.1, w: 12.8, h: 0.5,
    fill: { color: C.amber }, line: { color: C.orange, pt: 1 }
  });
  s.addText([
    { text: "Pilocarpine in Acute Angle Closure: ", options: { bold: true, color: C.red } },
    { text: "Do NOT repeat pilocarpine if IOP >40 mmHg — ischaemia of iris sphincter makes it unresponsive. ", options: { color: C.text } },
    { text: "Pilocarpine 2% drops to affected eye, 1% to fellow eye prophylactically.", options: { color: C.text } },
  ], { x: 0.4, y: 5.12, w: 12.5, h: 0.46, margin: [0,4,0,4], fontSize: 9, valign: "middle" });
}

// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 8: HYPEROSMOTIC AGENTS
// ═══════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  titleBar(s, "Hyperosmotic Agents", "Emergency IOP reduction in acute angle closure — NOT for chronic use");
  footer(s, 8, TOTAL);

  s.addShape(pres.shapes.ROUNDED_RECTANGLE, {
    x: 9.5, y: 1.1, w: 3.5, h: 0.45,
    fill: { color: C.orange }, line: { color: C.orange }, rectRadius: 0.07
  });
  s.addText("ACUTE EMERGENCY USE ONLY", {
    x: 9.5, y: 1.1, w: 3.5, h: 0.45, margin: 0,
    fontSize: 9.5, bold: true, color: C.white, align: "center", valign: "middle"
  });

  const cols = [
    { label: "Drug", w: 1.8 },
    { label: "Route", w: 0.9 },
    { label: "Dose", w: 2.0 },
    { label: "Mechanism", w: 2.8 },
    { label: "Adverse Effects", w: 2.5 },
    { label: "Contraindications", w: 2.3 },
  ];

  const rows = [
    [
      { text: "Mannitol 20%", bold: true, color: C.navy },
      { text: "IV", bold: true, color: C.orange },
      "1–2 g/kg over 1 hour\n(typical: 250–500 mL of 20% solution)",
      "↑ Plasma osmolality → osmotic gradient draws fluid from vitreous into bloodstream → ↓ vitreous volume → ↓ IOP by 30–50%",
      { text: "Headache, nausea, pulmonary oedema (fluid overload), hyponatraemia, renal failure with repeated doses, urinary retention, hyperosmolar state", color: C.orange },
      { text: "Anuria/severe renal failure (cannot excrete), congestive heart failure, pulmonary oedema, severe dehydration, intracranial bleeding (↑ osmolality may worsen)", color: C.red }
    ],
    [
      { text: "Glycerol 50%", bold: true, color: C.navy },
      { text: "ORAL", bold: true, color: C.green },
      "1–1.5 g/kg oral\n(~180 mL of 50% solution, chilled with lemon)",
      "Osmotic agent — same mechanism. Metabolised to glucose so caloric load",
      "Nausea, vomiting (limits use if already vomiting), hyperglycaemia (metabolised to glucose), headache",
      { text: "Diabetes mellitus (metabolised to glucose → severe hyperglycaemia), severe dehydration, anuria", color: C.red }
    ],
    [
      { text: "Isosorbide", bold: true, color: C.navy },
      { text: "ORAL", bold: true, color: C.green },
      "1–1.5 g/kg oral",
      "Osmotic agent — NOT metabolised to glucose, so safe in diabetics",
      "Nausea, headache, less vomiting than glycerol",
      { text: "Anuria; preferred over glycerol in diabetic patients (not converted to glucose)", color: C.orange }
    ],
    [
      { text: "Urea 30%", bold: true, color: C.gray3 },
      { text: "IV", bold: true, color: C.orange },
      "1–1.5 g/kg IV",
      "Osmotic diuretic — less commonly used; penetrates blood-brain barrier → rebound IOP rise",
      "Rebound IOP elevation (BBB penetration), haemolysis, phlebitis at injection site",
      { text: "Severe renal/hepatic disease; largely replaced by mannitol", color: C.red }
    ],
  ];

  addTable(s, cols, rows, { startY: 1.65, rowH: 0.82, fontSize: 8.5 });

  s.addShape(pres.shapes.RECTANGLE, {
    x: 0.25, y: 6.48, w: 12.8, h: 0.62,
    fill: { color: C.sky }, line: { color: C.teal, pt: 1 }
  });
  s.addText([
    { text: "Clinical Pearl: ", options: { bold: true, color: C.navy } },
    { text: "In acute angle closure, hyperosmotic agents are used when topical drops + oral acetazolamide fail to break the attack.  ", options: { color: C.text } },
    { text: "Mannitol is given IV while patient is lying flat.  ", options: { color: C.text } },
    { text: "Glycerol is contraindicated in DM (use isosorbide instead).  ", options: { bold: true, color: C.orange } },
    { text: "Goal: rapidly reduce IOP to allow corneal clearing for definitive laser iridotomy.", options: { color: C.text } },
  ], { x: 0.4, y: 6.5, w: 12.5, h: 0.58, margin: [0,4,0,4], fontSize: 8.5, valign: "middle" });
}

// ═══════════════════════════════════════════════════════════════════════════
// SLIDE 9: SUMMARY — FIRST-LINE, COMBINATIONS & EXAM MNEMONICS
// ═══════════════════════════════════════════════════════════════════════════
{
  const s = pres.addSlide();
  titleBar(s, "Summary: First-Line Choices, Fixed Combinations & Exam Points", "Quick-reference for clinical decision-making");
  footer(s, 9, TOTAL);

  // Left panel — First-line treatment algorithm
  s.addShape(pres.shapes.RECTANGLE, {
    x: 0.25, y: 1.15, w: 4.1, h: 5.8,
    fill: { color: C.sky }, line: { color: C.teal, pt: 1 }
  });
  s.addText("TREATMENT ALGORITHM\n(POAG)", {
    x: 0.3, y: 1.18, w: 4.0, h: 0.45, margin: 0,
    fontSize: 11, bold: true, color: C.navy, align: "center", valign: "middle"
  });

  const steps = [
    { step: "STEP 1", label: "Monotherapy", drug: "Prostaglandin Analogue\n(Latanoprost OD)", color: C.green },
    { step: "STEP 1b", label: "If PGA CI/intolerant", drug: "Timolol 0.5% BD\nor Brimonidine 0.2% BD", color: C.teal },
    { step: "STEP 2", label: "Add-on (if target not met)", drug: "+ CAI (Dorzolamide TDS)\nor + β-blocker", color: C.teal },
    { step: "STEP 3", label: "Triple therapy", drug: "PGA + β-blocker + CAI\n(or fixed combinations)", color: C.orange },
    { step: "STEP 4", label: "Laser / Surgery", drug: "SLT → Trabeculectomy\n→ GDD → CPC", color: C.red },
  ];

  steps.forEach((st, i) => {
    s.addShape(pres.shapes.RECTANGLE, {
      x: 0.35, y: 1.68 + i * 0.88, w: 3.8, h: 0.8,
      fill: { color: C.white }, line: { color: st.color, pt: 2 }
    });
    s.addShape(pres.shapes.RECTANGLE, {
      x: 0.35, y: 1.68 + i * 0.88, w: 1.0, h: 0.8,
      fill: { color: st.color }, line: { color: st.color }
    });
    s.addText(st.step, {
      x: 0.35, y: 1.68 + i * 0.88, w: 1.0, h: 0.8, margin: 0,
      fontSize: 8.5, bold: true, color: C.white, align: "center", valign: "middle"
    });
    s.addText(st.label, {
      x: 1.38, y: 1.68 + i * 0.88, w: 2.75, h: 0.28, margin: [0,3,0,3],
      fontSize: 7.8, bold: true, color: st.color, valign: "bottom"
    });
    s.addText(st.drug, {
      x: 1.38, y: 1.96 + i * 0.88, w: 2.75, h: 0.48, margin: [0,3,0,3],
      fontSize: 7.5, color: C.text, valign: "top"
    });
  });

  // Middle panel — Fixed combinations
  s.addShape(pres.shapes.RECTANGLE, {
    x: 4.6, y: 1.15, w: 4.0, h: 2.85,
    fill: { color: C.white }, line: { color: C.gray2, pt: 1 }
  });
  s.addShape(pres.shapes.RECTANGLE, {
    x: 4.6, y: 1.15, w: 4.0, h: 0.38,
    fill: { color: C.navy }, line: { color: C.navy }
  });
  s.addText("FIXED COMBINATION DROPS", {
    x: 4.6, y: 1.15, w: 4.0, h: 0.38, margin: 0,
    fontSize: 9.5, bold: true, color: C.white, align: "center", valign: "middle"
  });

  const combos = [
    ["Xalacom", "Latanoprost 0.005% + Timolol 0.5%", "OD"],
    ["Ganfort", "Bimatoprost 0.03% + Timolol 0.5%", "OD"],
    ["DuoTrav", "Travoprost 0.004% + Timolol 0.5%", "OD"],
    ["Cosopt", "Dorzolamide 2% + Timolol 0.5%", "BD"],
    ["Azarga", "Brinzolamide 1% + Timolol 0.5%", "BD"],
    ["Combigan", "Brimonidine 0.2% + Timolol 0.5%", "BD"],
    ["Simbrinza", "Brinzolamide 1% + Brimonidine 0.2%", "TDS"],
  ];

  const comboCols = [
    { label: "Brand", w: 1.2 },
    { label: "Components", w: 2.1 },
    { label: "Freq", w: 0.5 },
  ];

  // header
  let xc = 4.7;
  comboCols.forEach(c => {
    s.addShape(pres.shapes.RECTANGLE, {
      x: xc, y: 1.53, w: c.w, h: 0.28,
      fill: { color: C.teal }, line: { color: C.gray2, pt: 0.5 }
    });
    s.addText(c.label, {
      x: xc, y: 1.53, w: c.w, h: 0.28, margin: [0,3,0,3],
      fontSize: 8, bold: true, color: C.white, align: "center", valign: "middle"
    });
    xc += c.w;
  });

  combos.forEach((row, ri) => {
    const bg = ri % 2 === 0 ? C.gray1 : C.white;
    const ys = 1.81 + ri * 0.28;
    xc = 4.7;
    comboCols.forEach((c, ci) => {
      s.addShape(pres.shapes.RECTANGLE, {
        x: xc, y: ys, w: c.w, h: 0.28,
        fill: { color: bg }, line: { color: C.gray2, pt: 0.5 }
      });
      s.addText(row[ci], {
        x: xc, y: ys, w: c.w, h: 0.28, margin: [0,3,0,3],
        fontSize: ci === 0 ? 8.5 : 8,
        bold: ci === 0,
        color: ci === 0 ? C.teal : C.text,
        valign: "middle"
      });
      xc += c.w;
    });
  });

  // Right panel — Contraindication summary
  s.addShape(pres.shapes.RECTANGLE, {
    x: 8.85, y: 1.15, w: 4.2, h: 5.8,
    fill: { color: "FEF2F2" }, line: { color: C.red, pt: 1 }
  });
  s.addShape(pres.shapes.RECTANGLE, {
    x: 8.85, y: 1.15, w: 4.2, h: 0.38,
    fill: { color: C.red }, line: { color: C.red }
  });
  s.addText("⚠ KEY CONTRAINDICATIONS", {
    x: 8.85, y: 1.15, w: 4.2, h: 0.38, margin: 0,
    fontSize: 9.5, bold: true, color: C.white, align: "center", valign: "middle"
  });

  const ciData = [
    { drug: "Timolol", ci: "Asthma, COPD, 2°/3° heart block, bradycardia, heart failure" },
    { drug: "Brimonidine", ci: "Infants <2 yrs (fatal apnoea), MAOIs" },
    { drug: "Apraclonidine", ci: "MAOIs; chronic use (tachyphylaxis)" },
    { drug: "Pilocarpine", ci: "Active uveitis, asthma; IOP >40 mmHg in acute AC" },
    { drug: "Acetazolamide", ci: "Sulfa allergy, renal/hepatic failure, sickle cell, hypokalaemia" },
    { drug: "PGAs", ci: "Aphakia, active uveitis, CME-prone eyes" },
    { drug: "Glycerol", ci: "Diabetes mellitus (↑ glucose)" },
    { drug: "Mannitol", ci: "Anuria, CCF, pulmonary oedema" },
    { drug: "Dorzolamide", ci: "Sulfa allergy, corneal endothelial disease" },
  ];

  ciData.forEach((item, i) => {
    const ys = 1.6 + i * 0.57;
    s.addShape(pres.shapes.RECTANGLE, {
      x: 8.95, y: ys, w: 4.0, h: 0.52,
      fill: { color: i % 2 === 0 ? "FFF5F5" : "FFFFFF" }, line: { color: "FECACA", pt: 0.5 }
    });
    s.addText(item.drug, {
      x: 8.95, y: ys, w: 4.0, h: 0.22, margin: [0,5,0,5],
      fontSize: 8.5, bold: true, color: C.red, valign: "bottom"
    });
    s.addText(item.ci, {
      x: 8.95, y: ys + 0.22, w: 4.0, h: 0.28, margin: [0,5,0,5],
      fontSize: 7.8, color: C.text, valign: "top", wrap: true
    });
  });

  // Bottom middle panel — exam mnemonics
  s.addShape(pres.shapes.RECTANGLE, {
    x: 4.6, y: 4.18, w: 4.0, h: 2.78,
    fill: { color: C.white }, line: { color: C.gray2, pt: 1 }
  });
  s.addShape(pres.shapes.RECTANGLE, {
    x: 4.6, y: 4.18, w: 4.0, h: 0.35,
    fill: { color: C.teal }, line: { color: C.teal }
  });
  s.addText("EXAM HIGH-YIELD FACTS", {
    x: 4.6, y: 4.18, w: 4.0, h: 0.35, margin: 0,
    fontSize: 9.5, bold: true, color: C.white, align: "center", valign: "middle"
  });

  const facts = [
    "1st-line POAG = Prostaglandin analogue (OD, nocte)",
    "Most IOP reduction = Bimatoprost (PGA)",
    "Paraesthesias = Most common SE of Acetazolamide",
    "Iris colour change = PGAs (irreversible)",
    "NO repeat pilocarpine if IOP >40 mmHg",
    "Timolol CI = Asthma + Heart block",
    "Brimonidine CI = Infants <2 yrs (apnoea)",
    "Glycerol CI = Diabetes (use isosorbide instead)",
    "Cornea verticillata = Netarsudil SE",
    "SLT = Selective Laser Trabeculoplasty (repeatable)",
  ];

  facts.forEach((fact, i) => {
    s.addText([
      { text: "• ", options: { color: C.teal, bold: true } },
      { text: fact, options: { color: C.text } }
    ], {
      x: 4.7, y: 4.57 + i * 0.235, w: 3.8, h: 0.235, margin: [0,4,0,4], fontSize: 8.3, valign: "middle"
    });
  });
}

// ─── WRITE ─────────────────────────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/glaucoma-ppt/Glaucoma_Pharmacology.pptx" })
  .then(() => console.log("✅ Done: /home/daytona/workspace/glaucoma-ppt/Glaucoma_Pharmacology.pptx"))
  .catch(e => { console.error("ERROR:", e); process.exit(1); });
Running Command

cd /home/daytona/workspace/glaucoma-ppt && node build.js 2>&1

Running Command

ls -lh /home/daytona/workspace/glaucoma-ppt/Glaucoma_Pharmacology.pptx

Your presentation is ready!

Glaucoma Pharmacology

Presentation · PPTX


9 slides, wide format (13.3" × 7.5"), navy/teal color theme:
SlideContent
1Cover - title, badge highlights, contents list
2Overview table - all 6 drug classes, mechanisms, IOP reduction %, first-line status
3Prostaglandin Analogues - Latanoprost, Bimatoprost, Travoprost, Tafluprost
4Beta-Blockers - Timolol, Betaxolol, Levobunolol, Carteolol, Metipranolol
5Alpha-2 Agonists - Brimonidine vs. Apraclonidine with exam warning box
6Carbonic Anhydrase Inhibitors - Dorzolamide, Brinzolamide, Acetazolamide, Methazolamide
7Miotics + Rho-Kinase Inhibitors - Pilocarpine, Netarsudil, Ripasudil
8Hyperosmotic Agents - Mannitol, Glycerol, Isosorbide, Urea (acute emergency use)
9Summary - Treatment algorithm, fixed combinations (Cosopt, Xalacom, etc.), contraindication panel, 10 exam high-yield facts
Every table includes: drug name, concentration, dosing frequency, mechanism of action, adverse effects, and contraindications. Amber/red highlights flag critical contraindications throughout.

Create a case based study document with 5 rabies clinical scenarios bro

Reading File
Reading File
Good - I have both skill files. Let me search the medical library for rabies content to ground the cases in textbook accuracy, and simultaneously check the docx skill details.
Finding Sources
Reading File
Now let me read the best rabies sources in parallel - Bradley's Neurology, Goldman-Cecil, and Harrison's.
Reading File
Reading File
Reading File
Your credits are exhausted. You can purchase a top-up or subscribe to a plan to continue using Orris. If you're already subscribed, your daily credits will reset tomorrow.
This is a shared conversation. Sign in to Orris to start your own chat.