Infectious keratitis (corneal ulcer)
DEFINITIVE-MANAGEMENT keratitis engine — the routing TARGET of ophtho.acute-red-eye.core.v1, ophtho.acute-conjunctivitis.core.v1 and ophtho.corneal-abrasion.core.v1. It owns the pathogen-stratified scrape→culture→hourly-topical pathway + the SCUT steroid gate; it recognises then routes OUT perforation/endophthalmitis to ophtho.acute-vision-loss.core.v1. ≥3 reciprocal cross-engine edges, bidirectional carryover. Hard guardrails authored as contraindication_rules + severity_triggers: scrape/culture BEFORE broad empiric fortified antibiotics for significant ulcers; NEVER patch an infected cornea; NEVER dispense a take-home topical anaesthetic; NO empiric topical steroid until infection controlled AND HSV/fungus/Acanthamoeba excluded (SCUT); NO contact-lens wear; oral voriconazole NOT a routine adjunct (MUTT II). RxCUIs validated live against RxNav 2026-05-17 (REST /rxcui.json?name=&search=2): moxifloxacin 139462, ciprofloxacin 2551, natamycin 7268, voriconazole 121243, aciclovir 281, valaciclovir 73645. RxNav returned 7268 for natamycin and 73645 for valaciclovir (not the speculative 7401/39542 in the build prompt) — verified ingredient CUIs used; fortified vancomycin/tobramycin, PHMB/chlorhexidine, propamidine/hexamidine, scrape, confocal, keratoplasty and decision gates are non_pharm (compounded / procedural — no single stable RxCUI). Bayesian linkage (bacterial-vs-fungal-vs-Acanthamoeba-vs-HSV pretest priors by risk factor; LR for pain-out-of-proportion/ring infiltrate, feathery margins/satellites, dendrite, hypopyon; scrape/culture decision thresholds; 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): SCUT adjunct steroid no overall 3-mo BSCVA benefit (−0.009 logMAR, 95% CI −0.085 to 0.068, P=.82) but central-ulcer subgroup 0.20 logMAR better (95% CI −0.37 to −0.04, P=.02) (Srinivasan PMID 21987582); MUTT I natamycin vs voriconazole 3-mo BSCVA 0.18 logMAR better (95% CI 0.05-0.30, P=.006), perforation/TPK OR 0.42 (95% CI 0.22-0.80), Fusarium perforation OR 0.06 (Prajna PMID 23710492); MUTT II oral voriconazole perforation/TPK HR 0.82 (95% CI 0.57-1.18) with ~2× adverse events (Prajna PMID 27787540); HEDS oral acyclovir cut recurrent ocular HSV 32%→19% and stromal 28%→14% (P<.001) (PMID 9696640); contact-lens microbial keratitis annualised incidence 1.9/10,000 daily-wear soft vs 19.5-25.4/10,000 overnight, vision loss 0.6/10,000 wearers/yr (Stapleton PMID 18538404); Acanthamoeba ~3× higher with reusable vs daily-disposable lenses (OR 3.84, 95% CI 1.75-8.43) and ~30-62% of cases preventable by switching (Carnt PMID 35952937); microbial keratitis >2 million cases/yr globally, bacterial-predominant developed vs fungal-predominant developing (Ung PMID 30590103). All 11 evidence.pmids are real, PubMed-verified keratitis anchors.
Entry points (5)
- symptomPainful red eye with a visible corneal opacity / white infiltrate ± epithelial defect on fluorescein — the defining microbial-keratitis presentation (AAO Bacterial Keratitis PPP (2018) PMID 30366799; Ung Surv Ophthalmol 2019 PMID 30590103)painful_red_eye_with_corneal_opacity_or_infiltrate
- historyContact-lens wearer with an acute painful red eye — keratitis until excluded; Pseudomonas-skewed bacterial / Acanthamoeba risk (Stapleton Ophthalmology 2008 PMID 18538404; Carnt Ophthalmology 2022 PMID 35952937)contact_lens_wearer_with_acute_painful_red_eye
- historyCorneal trauma with vegetative / organic matter (branch, plant, crop, soil) — filamentous fungal keratitis prior, esp. warm climate (Prajna MUTT I JAMA Ophthalmol 2013 PMID 23710492; Ung 2019 PMID 30590103)vegetative_or_agricultural_corneal_trauma
- historyPrior herpetic eye disease, current dendritic ulcer, or zoster vesicular rash in V1 (Hutchinson sign) — herpetic keratitis pathway (HEDS NEJM 1998 PMID 9696640)prior_hsv_keratitis_or_dendrite
- symptomSevere pain out of proportion to slit-lamp signs ± ring infiltrate in a lens wearer with water exposure — Acanthamoeba until excluded (Carnt Br J Ophthalmol 2018 PMID 30232172)pain_out_of_proportion_or_ring_infiltrate
Required inputs (16)
- contact_lens_use_and_hygienerequiredhistory • used at CONTEXTContact-lens wear is THE dominant microbial-keratitis risk factor and shifts the pathogen prior to Pseudomonas / Acanthamoeba; overnight wear, water exposure, poor case hygiene each escalate risk (Stapleton Ophthalmology 2008 PMID 18538404; Carnt Ophthalmology 2022 PMID 35952937)
- mechanism_of_trauma_vegetative_matterrequiredhistory • used at CONTEXTVegetative / agricultural / organic-matter trauma is the dominant filamentous-fungal prior; metallic/abrasive trauma reframes toward bacterial (Prajna MUTT I 2013 PMID 23710492; Ung 2019 PMID 30590103)
- water_exposure_lens_in_waterrequiredhistory • used at CONTEXTTap-water / shower / pool / hot-tub exposure while wearing lenses is the strongest Acanthamoeba pointer; pain-out-of-proportion + this history demands amoebic work-up (Carnt Br J Ophthalmol 2018 PMID 30232172)
- prior_hsv_or_zoster_ocular_diseaserequiredhistory • used at CONTEXTPrior HSV keratitis / recurrent dendrites / V1 zoster shifts the prior to herpetic and gates the STEROID and ANTIVIRAL decisions (HEDS NEJM 1998 PMID 9696640)
- pain_severity_relative_to_signsrequiredsymptom • used at CONTEXTPain markedly out of proportion to slit-lamp signs is the cardinal Acanthamoeba discriminator; pain proportional/less than signs favours bacterial/fungal (Carnt Br J Ophthalmol 2018 PMID 30232172)
- infiltrate_morphology_marginrequiredsymptom • used at CONTEXTFeathery margins + satellite lesions + endothelial plaque → fungal; dense suppurative + mucopurulent → bacterial; ring infiltrate / radial perineuritis → Acanthamoeba; branching dendrite → HSV (AAO Bacterial Keratitis PPP (2018) PMID 30366799; Prajna MUTT I 2013 PMID 23710492)
- epithelial_defect_and_fluorescein_patternrequiredsymptom • used at CONTEXTOverlying epithelial defect (staining) + stromal infiltrate defines a corneal ulcer; a branching terminal-bulb dendrite favours HSV; pseudodendrite favours VZV (AAO Bacterial Keratitis PPP (2018) PMID 30366799)
- hypopyon_and_anterior_chamber_reactionrequiredsymptom • used at RED_FLAGSHypopyon / dense AC reaction marks a severe/virulent ulcer (Pseudomonas, Streptococcus, fungal) and raises the perforation/endophthalmitis prior — drives admission + scrape (AAO Bacterial Keratitis PPP (2018) PMID 30366799)
- infiltrate_size_and_central_locationrequiredsymptom • used at RED_FLAGSUlcer ≥ ~3 mm, central, or with deep stromal involvement defines a vision-threatening ulcer mandating scrape/culture and intensive therapy; baseline severity predicts SCUT steroid subgroup benefit (Srinivasan SCUT Arch Ophthalmol 2012 PMID 21987582)
- corneal_thinning_or_perforation_signsrequiredsymptom • used at RED_FLAGSDescemetocele / frank perforation / Seidel-positive leak is a surgical emergency and an endophthalmitis route-out (recognised, not managed here) (AAO Bacterial Keratitis PPP (2018) PMID 30366799)
- visual_acuity_each_eyerequireddemographic • used at INITIAL_WORKUPBaseline best-corrected acuity per eye is the primary outcome anchor and a SCUT subgroup modifier (counting-fingers-or-worse benefits from later steroid) (Srinivasan SCUT 2012 PMID 21987582)
- immunocompromise_or_ocular_surface_diseasehistory • used at CONTEXTImmunosuppression, prior keratoplasty, dry-eye / neurotrophic / chronic ocular-surface disease broaden the pathogen spectrum (Candida, atypical) and worsen prognosis (Ung Surv Ophthalmol 2019 PMID 30590103)
- pregnancyhistory • used at TREATMENTAntiviral / antifungal systemic-safety gating (oral voriconazole teratogenic; valaciclovir/aciclovir pregnancy category considerations) (Prajna MUTT II JAMA Ophthalmol 2016 PMID 27787540)
- corneal_scrape_smear_and_culturerequiredlab • used at INITIAL_WORKUPSmear (Gram/Giemsa/KOH/calcofluor) + culture (blood/chocolate/Sabouraud/non-nutrient agar with E. coli for Acanthamoeba) BEFORE broad empiric therapy for significant ulcers — the diagnostic spine (Ung Surv Ophthalmol 2019 PMID 30590103; AAO Bacterial Keratitis PPP (2018) PMID 30366799)
- confocal_microscopy_or_pcrimaging • used at BRANCHING_WORKUPIn-vivo confocal microscopy / PCR for Acanthamoeba cysts and fungal hyphae when smear/culture negative but disease atypical or non-resolving (Carnt Br J Ophthalmol 2018 PMID 30232172)
- creatininelab • used at TREATMENTRenal dosing for systemic antiviral (aciclovir/valaciclovir) and systemic antifungal where used (HEDS NEJM 1998 PMID 9696640; Prajna MUTT II 2016 PMID 27787540)
12-phase flow (12)
- 1FRAMEFrame as a SIGHT-THREATENING established corneal ulcer requiring pathogen-stratified work-up + intensive topical therapy — NOT undifferentiated red-eye triage (that is ophtho.acute-red-eye.core.v1, which routes here). The four-pathogen partition (bacterial / fungal / Acanthamoeba / herpetic) and the scrape-before-empiric / no-patch / no-empiric-steroid spine are set here. Perforation → endophthalmitis is recognised then routed OUT.advance: definitive-keratitis scope confirmed; upstream-triage and endophthalmitis concerns delineated by engine_id
- 2ENTRYRecognise the presenting pattern: painful red eye + corneal infiltrate/opacity; contact-lens red eye; vegetative-trauma ulcer; prior-HSV dendrite/zoster; or pain-out-of-proportion ± ring infiltrate. Capture which routing engine sent the patient (acute-red-eye / conjunctivitis / corneal-abrasion) and carry over their findings.actions: workup.acute_red_eyeadvance: keratitis entry pattern recognised; upstream carryover state ingested
- 3CONTEXTBuild the pathogen prior: contact-lens wear + hygiene + water exposure (Pseudomonas / Acanthamoeba); vegetative/organic trauma (filamentous fungal); prior HSV / V1 zoster (herpetic); immunocompromise / ocular-surface disease (Candida, atypical); pain severity relative to signs; infiltrate morphology + margin; epithelial-defect/fluorescein pattern. This phase assigns the bacterial-vs-fungal-vs-Acanthamoeba-vs-HSV pretest distribution.inputs: contact_lens_use_and_hygiene, mechanism_of_trauma_vegetative_matter, water_exposure_lens_in_water, prior_hsv_or_zoster_ocular_disease, pain_severity_relative_to_signs, infiltrate_morphology_margin, epithelial_defect_and_fluorescein_pattern, immunocompromise_or_ocular_surface_diseaseactions: workup.acute_vision_lossadvance: pathogen pretest prior assigned by risk factor + morphology
- 4RED_FLAGSRecognise the ulcer that needs same-hour ophthalmology + admission: hypopyon / dense AC reaction; ≥3 mm / central / deep stromal vision-threatening ulcer; impending or actual perforation (descemetocele, Seidel-positive) — perforation → endophthalmitis arm routed OUT to ophtho.acute-vision-loss.core.v1; severe pain-out-of-proportion (Acanthamoeba); rapidly destructive contact-lens ulcer (Pseudomonas). These mandate scrape-before-empiric, hourly therapy, and disposition escalation.inputs: hypopyon_and_anterior_chamber_reaction, infiltrate_size_and_central_location, corneal_thinning_or_perforation_signsactions: calc.qsofa, workup.acute_vision_lossadvance: perforation / endophthalmitis / vision-threat / Acanthamoeba red flags screened and routed by engine_id if positive
- 5INITIAL_WORKUPCORNEAL SCRAPE + smear (Gram, Giemsa, KOH/calcofluor white) + culture (blood, chocolate, Sabouraud dextrose; non-nutrient agar overlaid with E. coli for Acanthamoeba) BEFORE starting broad empiric fortified topical antibiotics for any significant / central / large / atypical / non-resolving ulcer. Document baseline acuity each eye, infiltrate size with a measured diagram/photo, and AC reaction. Small peripheral non-vision-threatening ulcer may be treated empirically with monotherapy fluoroquinolone without scrape per AAO PPP — the size/location/atypia threshold is explicit.inputs: corneal_scrape_smear_and_culture, visual_acuity_each_eyeactions: panel.cbc, panel.inflammation, panel.cmpadvance: scrape/culture obtained for significant ulcer (or documented threshold for empiric monotherapy); baseline acuity + infiltrate map recorded
- 6BRANCHING_WORKUPPathogen decision tree: feathery margins + satellites + endothelial plaque + vegetative trauma → fungal (KOH/calcofluor, Sabouraud); pain-out-of-proportion + ring infiltrate + lens-in-water → Acanthamoeba (non-nutrient agar + in-vivo confocal microscopy / PCR — low threshold given diagnostic-delay-driven prognosis); branching terminal-bulb dendrite / prior HSV → herpetic (clinical ± PCR); dense suppurative mucopurulent contact-lens ulcer → Pseudomonas-skewed bacterial. Repeat scrape / biopsy / confocal if smear-culture negative but non-resolving.inputs: confocal_microscopy_or_pcractions: workup.acute_vision_lossadvance: pathogen class assigned (organism-directed or empiric-by-prior); Acanthamoeba/fungal actively excluded if any pointer
- 7DIFFERENTIALTerminal differential with pivot findings: microbial keratitis vs corneal abrasion (epithelial defect WITHOUT stromal infiltrate / no AC reaction pivot — route back to ophtho.corneal-abrasion.core.v1); vs sterile / marginal infiltrate (small, peripheral, sub-epithelial, intact epithelium, lid-margin staph hypersensitivity, minimal pain pivot); vs recurrent corneal erosion (recurrent on-waking pain, prior abrasion, no infiltrate pivot); Acanthamoeba vs HSV stromal (pain-out-of-proportion + ring + lens-in-water vs dendrite + prior HSV + reduced corneal sensation pivot); vs anterior uveitis (deep ciliary ache + cell/flare WITHOUT a corneal infiltrate or epithelial defect pivot — route ophtho.acute-red-eye.core.v1 / uveitis arm).advance: single best diagnosis selected; abrasion/sterile-infiltrate/uveitis look-alikes excluded or routed; co-infection (bacterial-on-fungal, polymicrobial) flagged
- 8RISK_STRATIFICATIONSeverity → disposition: vision-threatening ulcer = central, ≥3 mm, deep stromal, hypopyon, perforation risk, monocular patient, immunocompromised, contact-lens Pseudomonas, fungal/Acanthamoeba, or non-resolving on empiric — each lowers the admission / same-hour-ophthalmology threshold. Baseline counting-fingers-or-worse acuity and completely central ulcer are the SCUT steroid-benefit subgroup markers (Srinivasan SCUT 2012 PMID 21987582).inputs: infiltrate_size_and_central_location, visual_acuity_each_eyeactions: calc.news2advance: vision-threat severity tier + SCUT steroid-eligibility subgroup assigned
- 9TREATMENTPathogen-stratified intensive topical ladder (regimen_axes): (1) empiric broad fortified / fluoroquinolone topical HOURLY around-the-clock after scrape; (2) bacterial-targeted by smear/culture; (3) fungal → topical natamycin 5% (filamentous, esp. Fusarium — MUTT I) ± voriconazole, oral antifungal NOT routinely (MUTT II); (4) Acanthamoeba → biguanide (PHMB / chlorhexidine) + diamidine, prolonged; (5) herpetic → topical ganciclovir / oral aciclovir-valaciclovir, debridement for dendrite; (6) adjunct topical steroid ONLY after infection controlled (≥48 h appropriate antibiotic) AND HSV/fungal/Acanthamoeba excluded (SCUT — no overall benefit, subgroup only). NEVER patch; NO topical anaesthetic; cycloplegic for comfort; stop contact-lens wear. Therapeutic/tectonic keratoplasty for perforation (non_pharm).inputs: corneal_scrape_smear_and_culture, pregnancy, creatinineadvance: pathogen-appropriate hourly topical therapy started; steroid gate enforced; no-patch/no-anaesthetic guardrails documented; surgery arranged if perforating
- 10DISPOSITIONVision-threatening ulcer (central / ≥3 mm / hypopyon / fungal / Acanthamoeba / contact-lens Pseudomonas / monocular / non-resolving) → admit or same-hour ophthalmology with ability to deliver hourly topical therapy + daily review. Perforation / suspected endophthalmitis → emergent ophthalmology and route OUT to ophtho.acute-vision-loss.core.v1. Small peripheral non-vision-threatening ulcer on reliable empiric monotherapy → close outpatient ophthalmology review within 24-48 h. Benign look-alike confirmed (abrasion / sterile infiltrate) → route back to ophtho.corneal-abrasion.core.v1 / manage as sterile.inputs: visual_acuity_each_eyeadvance: disposition + route-out/route-back engine_id documented; hourly-therapy capability confirmed for admitted ulcers
- 11MONITORINGDaily slit-lamp review while severe: infiltrate size, epithelial-defect area, AC reaction, thinning — measured against the baseline map. Expect slow change; clinical worsening at 48-72 h on appropriate therapy mandates re-scrape / culture review / consider fungal-Acanthamoeba-polymicrobial / adjust regimen — NOT silent escalation of the same agent. Re-image (confocal) if non-resolving. Watch corneal thinning → perforation route-out.inputs: infiltrate_size_and_central_location, corneal_thinning_or_perforation_signsactions: panel.inflammationadvance: objective improvement (shrinking infiltrate, re-epithelialisation, quieter AC) OR non-response re-evaluation triggered
- 12FOLLOWUPTaper topical therapy with re-epithelialisation; manage residual scar / irregular astigmatism affecting acuity (corneal-scar density + irregular astigmatism are the dominant residual-VA drivers — Menda JAMA Ophthalmol 2020 PMID 31804657) with rigid-lens trial / referral for optical or therapeutic keratoplasty. HERPETIC: long-term oral aciclovir 400 mg BID ×12 mo prophylaxis halves recurrence, esp. stromal (HEDS NEJM 1998 PMID 9696640). CONTACT-LENS: hygiene re-education (no overnight wear, no water exposure, replace case, switch to daily disposables) — the dominant preventable driver (Stapleton Ophthalmology 2008 PMID 18538404; Carnt Ophthalmology 2022 PMID 35952937). Counsel contralateral-eye risk.inputs: prior_hsv_or_zoster_ocular_disease, contact_lens_use_and_hygieneadvance: scar/astigmatism plan + HSV-prophylaxis decision + contact-lens prevention counselling documented