Endophthalmitis (intraocular infection)
VISION-DESTROYING-EMERGENCY intraocular-infection engine — the routing TARGET of ophtho.acute-red-eye.core.v1 and the endophthalmitis arm reciprocal with ophtho.microbial-keratitis.core.v1; it recognises then routes OUT the orbital/panophthalmitis arm to ophtho.orbital-cellulitis.core.v1 and the systemic arm of endogenous disease to id.sepsis.core.v1 (with workup.candidemia / workup.endocarditis). ≥3 reciprocal cross-engine edges, bidirectional carryover. Hard guardrails authored as contraindication_rules + severity_triggers: tap-and-inject empiric intravitreal vancomycin + ceftazidime within hours WITHOUT awaiting culture; intravitreal amikacin only if ceftazidime unsuitable (macular-infarction caution); vitrectomy if presenting vision is light-perception only (EVS); NO routine systemic antibiotics for post-cataract disease (EVS null) but systemic therapy + source control IS mandatory for endogenous/bleb/trauma; intravitreal dexamethasone DEBATED and withheld if fungal/atypical; voriconazole teratogenic — amphotericin B substituted in pregnancy. RxCUIs validated live against RxNav 2026-05-17 (REST /rxcui.json?name=&search=2): vancomycin 11124, ceftazidime 2191, amikacin 641, voriconazole 121243, amphotericin B 732, dexamethasone 3264 — all RxNav-verified-live; vitreous/aqueous tap, pars-plana vitrectomy, IOFB removal/globe repair, intracameral-cefuroxime/povidone-iodine prophylaxis, injection antisepsis and the source-control/systemic-route actions are non_pharm (procedural / systemic-arm / preventive — no single stable pharmacologic RxCUI for the intraocular procedure itself). Bayesian linkage (infectious-vs-sterile/TASS pretest prior by latency + pain + vitritis; LR for hypopyon, vitritis, loss of red reflex, pain-disproportion, bilaterality; tap-and-inject decision threshold = treat empirically immediately, do not await culture; EVS vision-criterion vitrectomy fork; cross-engine routing edges by engine_id) is documented in the co-located _design-brief.md + _research-bundle.md; first-class TS LR fields remain schema-blocked (same constraint as the sibling ophtho engines). Effect sizes (≥5): EVS vitrectomy in light-perception-only eyes — 20/40 in 33% vs 11% (~3×), severe vision loss 20% vs 47%, ≥20/100 in 56% vs 30% (EVS Results PMID 7487614); EVS systemic-antibiotic visual benefit null (PMID 7487614); EVS organism prognosis — ≥20/100 in coag-neg staph 84% vs streptococci 30% vs enterococci 14% (PMID 8956638); ESCRS intracameral cefuroxime OR 4.59 (95% CI 1.74-12.08), ~5-fold reduction (PMID 16631047); post-cataract incidence ~0.03-0.1% and post-intravitreal-injection incidence ~0.007-0.05% (Morioka PMID 33335269; Bates PMID 40158626); post-traumatic Bacillus cereus OR 11.25 / fungus OR 14 (Gupta PMID 17671943); endogenous EE poor visual outcome with bilateral-fungal independently predicting higher mortality (Chuang PMID 40584198).
Entry points (5)
- symptomPain + rapidly decreasing vision within ~6 weeks of cataract / intraocular surgery — acute postoperative endophthalmitis until excluded (EVS Results Arch Ophthalmol 1995 PMID 7487614)pain_and_rapidly_decreasing_vision_after_eye_surgery
- historyPain / redness / floaters / vision loss days after an intravitreal anti-VEGF injection — post-injection endophthalmitis (Morioka Sci Rep 2020 PMID 33335269; Bates Ophthalmol Retina 2025 PMID 40158626)pain_redness_vision_loss_after_intravitreal_injection
- historyOpen-globe injury or retained intraocular foreign body with developing pain, hypopyon, vitritis — post-traumatic endophthalmitis; Bacillus cereus fulminant risk (Silpa-Archa Int J Ophthalmol 2020 PMID 33344198; Gupta Eur J Ophthalmol 2007 PMID 17671943)open_globe_or_intraocular_foreign_body_trauma
- symptomPainful red eye with hypopyon, dense vitritis, and a lost/dim red reflex — endophthalmitis until proven otherwise (EVS microbiologic factors Am J Ophthalmol 1996 PMID 8956638)painful_red_eye_with_hypopyon_and_loss_of_red_reflex
- problem_listCandidemia / bacteremia / IVDU / indwelling line / Klebsiella liver abscess / endocarditis with new ocular symptoms or a chorioretinal lesion — endogenous endophthalmitis (Chuang Taiwan J Ophthalmol 2025 PMID 40584198; Rodríguez-Adrián Medicine 2003 PMID 12792305)candidemia_or_bacteremia_with_ocular_symptoms
Required inputs (16)
- vision_loss_tempo_and_severityrequiredsymptom • used at ENTRYRapidly progressive vision loss over hours-to-days defines the emergency; presenting acuity (light-perception-only vs hand-motions-or-better) is THE EVS treatment-fork variable (EVS Results Arch Ophthalmol 1995 PMID 7487614)
- recent_intraocular_surgery_or_injection_or_traumarequiredhistory • used at CONTEXTLatency from cataract surgery / intravitreal injection / open-globe trauma / glaucoma-bleb surgery sets the category and pathogen prior and separates infection from sterile post-op inflammation/TASS (EVS Results PMID 7487614; Barry ESCRS J Cataract Refract Surg 2006 PMID 16631047)
- pain_severity_and_disproportionrequiredsymptom • used at CONTEXTPain disproportionate to early signs + fulminant course suggests virulent organisms (Bacillus in trauma, streptococci in bleb/injection); painless/mild favours TASS or chronic/saccular disease (Gupta Eur J Ophthalmol 2007 PMID 17671943)
- hypopyon_and_anterior_chamber_reactionrequiredsymptom • used at CONTEXTHypopyon + dense AC cellular reaction is a cardinal sign; its presence with vitritis after surgery/injection drives immediate tap-and-inject (EVS microbiologic factors Am J Ophthalmol 1996 PMID 8956638)
- vitritis_and_red_reflex_statusrequiredsymptom • used at CONTEXTVitritis and a lost/dim red reflex localise infection to the vitreous and are the pivot separating endophthalmitis from severe anterior uveitis / keratitis-with-hypopyon (EVS Results PMID 7487614)
- glaucoma_filtering_blebrequiredhistory • used at CONTEXTA filtering/leaking bleb shifts the prior to virulent streptococci/Haemophilus bleb-associated endophthalmitis with a worse prognosis and a distinct, often delayed, presentation
- systemic_infection_source_candidemia_bacteremiarequiredhistory • used at CONTEXTCandidemia / bacteremia / IVDU / central line / Klebsiella liver abscess / endocarditis defines ENDOGENOUS disease — a systemic-source process needing systemic therapy + source control (Chuang Taiwan J Ophthalmol 2025 PMID 40584198; Yang Ophthalmic Res 2020 PMID 31940653)
- bilateral_ocular_involvementrequiredsymptom • used at RED_FLAGSBilateral disease is almost never exogenous — it strongly implies an endogenous (esp. fungal) source and mandates a systemic work-up + bilateral treatment (Chuang Taiwan J Ophthalmol 2025 PMID 40584198)
- visual_acuity_each_eyerequireddemographic • used at RED_FLAGSLight-perception-only vs hand-motions-or-better is the EVS vitrectomy decision threshold and the primary prognostic anchor (EVS Results Arch Ophthalmol 1995 PMID 7487614)
- orbital_or_panophthalmitis_featuresrequiredsymptom • used at RED_FLAGSProptosis, restricted/painful motility, lid tightness, or scleral/orbital extension = panophthalmitis/orbital cellulitis — recognise then route the orbital arm OUT (Chuang Taiwan J Ophthalmol 2025 PMID 40584198)
- immunocompromise_or_ivduhistory • used at CONTEXTImmunosuppression / IVDU / neutropenia broadens the endogenous spectrum (Candida, atypical fungi, Bacillus in IVDU) and worsens prognosis (Rodríguez-Adrián Medicine 2003 PMID 12792305)
- pregnancyhistory • used at TREATMENTSystemic antifungal/antibiotic safety gating for endogenous disease (voriconazole teratogenic; amphotericin/echinocandin and aminoglycoside considerations) (Rodríguez-Adrián Medicine 2003 PMID 12792305)
- vitreous_tap_gram_stain_and_culturerequiredlab • used at INITIAL_WORKUPVitreous (± aqueous) tap for Gram/Giemsa/KOH + bacterial & fungal culture is obtained AT the tap-and-inject; empiric intravitreal antibiotics are given immediately without waiting for it (EVS Results PMID 7487614; EVS microbiologic factors PMID 8956638)
- blood_cultures_and_systemic_workuplab • used at INITIAL_WORKUPFor endogenous (or any unexplained) disease: blood cultures, urine/line/abdominal source hunt, echocardiography for endocarditis — drives the systemic arm and route-out (Chuang Taiwan J Ophthalmol 2025 PMID 40584198; Yang Ophthalmic Res 2020 PMID 31940653)
- b_scan_ultrasoundimaging • used at BRANCHING_WORKUPB-scan when the fundus view is obscured by vitritis — vitreous opacities/membranes, retinal/choroidal status, retained IOFB, and a baseline to track response (Silpa-Archa Int J Ophthalmol 2020 PMID 33344198)
- creatininelab • used at TREATMENTRenal dosing of systemic antibacterial/antifungal agents in endogenous/bleb/trauma disease (vancomycin, ceftazidime, amphotericin, voriconazole) (Chuang Taiwan J Ophthalmol 2025 PMID 40584198)
12-phase flow (12)
- 1FRAMEFrame as a VISION-DESTROYING intraocular-infection EMERGENCY whose prognosis is measured in hours — the EVS tap-and-inject spine, NOT undifferentiated red-eye triage (that is ophtho.acute-red-eye.core.v1, which routes here). Set the five-category partition (post-cataract / post-injection / post-trauma / bleb-associated / endogenous) and the hard rules: empiric intravitreal vancomycin + ceftazidime BEFORE culture; vitrectomy if light-perception-only; no routine systemic abx for post-cataract; systemic therapy + source hunt for endogenous. Orbital/panophthalmitis extension is recognised then routed OUT.advance: endophthalmitis emergency scope confirmed; upstream-triage and orbital concerns delineated by engine_id
- 2ENTRYRecognise the four exogenous entries (post-cataract, post-injection, post-trauma, bleb) vs the endogenous entry (candidemia/bacteremia/IVDU/line/liver-abscess/endocarditis with ocular symptoms); capture vision-loss tempo and severity up front (presenting acuity is the EVS treatment fork).inputs: vision_loss_tempo_and_severityadvance: entry trigger present; vision-loss tempo + severity recorded
- 3CONTEXTBuild the category + pathogen prior: latency from surgery/injection/trauma/bleb-surgery; pain disproportion (Bacillus/strep); hypopyon + AC reaction; vitritis + red-reflex status; filtering bleb; systemic infective source; immunocompromise/IVDU. This phase assigns post-cataract vs post-injection vs post-trauma vs bleb vs endogenous and separates infection from sterile post-op inflammation/TASS.inputs: recent_intraocular_surgery_or_injection_or_trauma, pain_severity_and_disproportion, hypopyon_and_anterior_chamber_reaction, vitritis_and_red_reflex_status, glaucoma_filtering_bleb, systemic_infection_source_candidemia_bacteremia, immunocompromise_or_ivduactions: workup.acute_vision_lossadvance: category + pretest pathogen prior assigned; TASS/uveitis pivot considered
- 4RED_FLAGSThe whole disease is a red flag — stratify the within-hours actions: light-perception-only vision → emergent vitrectomy (EVS); fulminant post-trauma → Bacillus cover + IOFB removal; bilateral / endogenous → systemic work-up + route to sepsis/candidemia/endocarditis engines; bleb-associated → virulent-strep cover; orbital/panophthalmitis extension → route OUT to ophtho.orbital-cellulitis.core.v1. These mandate same-hour vitreoretinal ophthalmology and tap-and-inject.inputs: bilateral_ocular_involvement, visual_acuity_each_eye, orbital_or_panophthalmitis_featuresactions: calc.qsofa, workup.acute_vision_loss, workup.endocarditisadvance: vision-criterion, fulminant, endogenous, bleb and orbital red flags screened and routed by engine_id if positive
- 5INITIAL_WORKUPTAP-AND-INJECT NOW: vitreous (± aqueous) tap for Gram/Giemsa/KOH + bacterial & fungal culture obtained AT the same sitting as immediate empiric intravitreal vancomycin + ceftazidime — do NOT await culture. For endogenous/unexplained disease in parallel: blood cultures, source hunt (urine, line, abdomen, echocardiography), CBC/inflammation/CMP baseline, creatinine for systemic dosing. B-scan if the fundus is obscured.inputs: vitreous_tap_gram_stain_and_culture, blood_cultures_and_systemic_workup, creatinineactions: panel.cbc, panel.inflammation, panel.cmp, workup.candidemiaadvance: tap obtained AND empiric intravitreal antibiotics injected; systemic cultures sent if endogenous
- 6BRANCHING_WORKUPCategory-driven branch: post-trauma → CT/B-scan for retained IOFB, add Bacillus-active cover; endogenous → blood/urine/line cultures, abdominal imaging for Klebsiella liver abscess, transthoracic→transoesophageal echo for endocarditis, fungal markers (β-D-glucan); bilateral/chorioretinal lesion → systemic Candida work-up; bleb → bleb-leak (Seidel) assessment. Send vitreous PCR / fungal culture when smear negative but course atypical/non-resolving.inputs: b_scan_ultrasoundactions: workup.candidemia, workup.endocarditis, workup.acute_vision_lossadvance: category-specific source/organism work-up dispatched and routed
- 7DIFFERENTIALTerminal differential with pivot findings: endophthalmitis vs sterile post-op inflammation / TASS (latency + pain + vitritis pivot — TASS = early <24-48 h, limbus-to-limbus corneal oedema, AC reaction WITHOUT significant vitritis, painless, steroid-responsive) vs severe anterior uveitis (cell/flare WITHOUT vitritis or red-reflex loss pivot) vs microbial keratitis with hypopyon (sterile reactive hypopyon over a corneal infiltrate, no true vitritis — route reciprocally to ophtho.microbial-keratitis.core.v1) vs retained lens fragment (post-cataract granulomatous reaction, indolent, lens material in AC/vitreous pivot) vs masquerade (intraocular lymphoma / necrotic tumour / old vitreous haemorrhage — indolent, steroid-refractory, no source).advance: single best diagnosis selected; infectious-vs-sterile pivot documented; co-existence (keratitis → endophthalmitis) flagged
- 8RISK_STRATIFICATIONStratify by the EVS vision criterion (light-perception-only → vitrectomy; hand-motions-or-better → tap-and-inject), organism virulence (EVS microbiologic spectrum — coag-neg staph favourable; strep/enterococci/gram-negative/Bacillus/fungal unfavourable), category (post-trauma/bleb/endogenous worse than post-cataract coag-neg-staph), bilaterality, and systemic illness severity (qSOFA for the septic endogenous patient).inputs: visual_acuity_each_eye, bilateral_ocular_involvementactions: calc.qsofa, calc.news2, calc.sirsadvance: EVS vision tier + organism/category/systemic-severity overlay assigned
- 9TREATMENTIMMEDIATE intravitreal vancomycin 1 mg/0.1 mL (gram-positive incl. MRSA) + ceftazidime 2.25 mg/0.1 mL (gram-negative incl. Pseudomonas) at the tap; amikacin 0.4 mg/0.1 mL only if ceftazidime unsuitable (macular-infarction caution). Pars-plana VITRECTOMY if presenting vision is light-perception only (EVS — 3× the ≥20/40 rate). NO routine systemic antibiotics for post-cataract disease (EVS null). Intravitreal dexamethasone DEBATED — withhold if fungal/atypical. ENDOGENOUS: systemic antibacterial (bacteraemia/Klebsiella) or antifungal (Candida — systemic ± intravitreal voriconazole/amphotericin B) + SOURCE CONTROL, and route the systemic arm to sepsis/candidemia/endocarditis engines. Trauma: add Bacillus-active cover (vancomycin covers; ± systemic) + IOFB removal. Pregnancy: voriconazole teratogenic — substitute amphotericin B.inputs: vitreous_tap_gram_stain_and_culture, creatinine, pregnancyadvance: tap-and-inject delivered; vitrectomy decision by EVS vision criterion; endogenous systemic therapy + source control + route-out initiated
- 10DISPOSITIONEvery endophthalmitis is admitted or managed under same-hour vitreoretinal ophthalmology with capacity for repeat tap/inject and possible vitrectomy. Endogenous → admit under medicine/ID with the eye co-managed; route the systemic arm to id.sepsis.core.v1 / workup.candidemia / workup.endocarditis. Orbital/panophthalmitis extension → route OUT to ophtho.orbital-cellulitis.core.v1. A confirmed sterile look-alike (TASS / retained lens fragment / reactive keratitis hypopyon / masquerade) is taken off empiric anti-infectives and managed/routed accordingly.inputs: visual_acuity_each_eye, bilateral_ocular_involvementadvance: disposition + route-out/route-back engine_id documented; repeat-tap/vitrectomy capability confirmed
- 11MONITORINGRe-examine within 24-48 h: hypopyon/AC reaction, vitritis density, red reflex, B-scan, and acuity vs the baseline map. Worsening or non-improvement at 48-72 h → repeat tap + re-inject, reconsider fungal/atypical/Bacillus, and escalate to vitrectomy. Endogenous: track blood-culture clearance, source control, and systemic-therapy response with the medicine/ID team.inputs: vitreous_tap_gram_stain_and_cultureactions: panel.inflammationadvance: objective improvement by 48-72 h, OR repeat-tap/vitrectomy/re-evaluation triggered
- 12FOLLOWUPTrack final visual outcome (EVS prognostic anchors), retinal/vitreous sequelae (RD, epiretinal membrane, macular damage), and silicone-oil/secondary-surgery needs. PREVENTION (a core deliverable): povidone-iodine antisepsis + intracameral cefuroxime for cataract surgery (ESCRS ~5-fold reduction); meticulous injection antisepsis (antibiotic prophylaxis does NOT help); prompt open-globe repair + IOFB removal; bleb-leak surveillance and patient education on the bleb-endophthalmitis lifetime risk; treat the systemic source and screen the fellow eye in endogenous disease.inputs: recent_intraocular_surgery_or_injection_or_traumaadvance: visual-outcome + sequelae tracked; category-specific prevention plan documented; systemic source treated for endogenous