Clinical Commander

All dossiers
ophtho.endophthalmitis.core.v1

Endophthalmitis (intraocular infection)

general_internal_medicineacutesubacuteadultpediatricacuteoutpatientinpatient

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)

  • symptom
    Pain + 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
  • history
    Pain / 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
  • history
    Open-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
  • symptom
    Painful 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_list
    Candidemia / 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_severityrequired
    symptom • used at ENTRY
    Rapidly 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_traumarequired
    history • used at CONTEXT
    Latency 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_disproportionrequired
    symptom • used at CONTEXT
    Pain 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_reactionrequired
    symptom • used at CONTEXT
    Hypopyon + 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_statusrequired
    symptom • used at CONTEXT
    Vitritis 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_blebrequired
    history • used at CONTEXT
    A 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_bacteremiarequired
    history • used at CONTEXT
    Candidemia / 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_involvementrequired
    symptom • used at RED_FLAGS
    Bilateral 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_eyerequired
    demographic • used at RED_FLAGS
    Light-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_featuresrequired
    symptom • used at RED_FLAGS
    Proptosis, 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_ivdu
    history • used at CONTEXT
    Immunosuppression / IVDU / neutropenia broadens the endogenous spectrum (Candida, atypical fungi, Bacillus in IVDU) and worsens prognosis (Rodríguez-Adrián Medicine 2003 PMID 12792305)
  • pregnancy
    history • used at TREATMENT
    Systemic 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_culturerequired
    lab • used at INITIAL_WORKUP
    Vitreous (± 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_workup
    lab • used at INITIAL_WORKUP
    For 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_ultrasound
    imaging • used at BRANCHING_WORKUP
    B-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)
  • creatinine
    lab • used at TREATMENT
    Renal 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)

  1. 1FRAME
    Frame 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
  2. 2ENTRY
    Recognise 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_severity
    advance: entry trigger present; vision-loss tempo + severity recorded
  3. 3CONTEXT
    Build 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_ivdu
    actions: workup.acute_vision_loss
    advance: category + pretest pathogen prior assigned; TASS/uveitis pivot considered
  4. 4RED_FLAGS
    The 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_features
    actions: calc.qsofa, workup.acute_vision_loss, workup.endocarditis
    advance: vision-criterion, fulminant, endogenous, bleb and orbital red flags screened and routed by engine_id if positive
  5. 5INITIAL_WORKUP
    TAP-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, creatinine
    actions: panel.cbc, panel.inflammation, panel.cmp, workup.candidemia
    advance: tap obtained AND empiric intravitreal antibiotics injected; systemic cultures sent if endogenous
  6. 6BRANCHING_WORKUP
    Category-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_ultrasound
    actions: workup.candidemia, workup.endocarditis, workup.acute_vision_loss
    advance: category-specific source/organism work-up dispatched and routed
  7. 7DIFFERENTIAL
    Terminal 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
  8. 8RISK_STRATIFICATION
    Stratify 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_involvement
    actions: calc.qsofa, calc.news2, calc.sirs
    advance: EVS vision tier + organism/category/systemic-severity overlay assigned
  9. 9TREATMENT
    IMMEDIATE 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, pregnancy
    advance: tap-and-inject delivered; vitrectomy decision by EVS vision criterion; endogenous systemic therapy + source control + route-out initiated
  10. 10DISPOSITION
    Every 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_involvement
    advance: disposition + route-out/route-back engine_id documented; repeat-tap/vitrectomy capability confirmed
  11. 11MONITORING
    Re-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_culture
    actions: panel.inflammation
    advance: objective improvement by 48-72 h, OR repeat-tap/vitrectomy/re-evaluation triggered
  12. 12FOLLOWUP
    Track 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_trauma
    advance: visual-outcome + sequelae tracked; category-specific prevention plan documented; systemic source treated for endogenous