Diabetic retinopathy and diabetic macular edema
Chronic + acute-on-chronic DR + DME engine. Staging by ICDR; OCT central subfield thickness drives DME treatment; intravitreal anti-VEGF (faricimab 2591519, aflibercept 1232150, ranibizumab 595060, bevacizumab 253337 off-label, brolucizumab 2204915) is first-line for centre-involving DME and is an alternative to PRP for PDR per Protocol S; PRP remains standard for high-risk PDR with adherence concerns; steroid implants (dexamethasone Ozurdex, fluocinolone Iluvien) reserved for pseudophakic or anti-VEGF-incomplete-response cases; vitrectomy for non-clearing haemorrhage / tractional detachment. Guidelines reconciled 2026-05-26 against ADA Standards of Care in Diabetes 2026 (retinopathy screening section, currency floor) and AAO PPP DR 2025 cycle. Protocol S (PMID 26565927) and YOSEMITE/RHINE (PMID 35085503) re-verified live via PubMed MCP this session; titles, journals, years, and effect sizes match the claims. RxCUIs verified live against RxNav 2026-05-26 (forward name->cui + reverse cui->RxNorm Name): faricimab 2591519, aflibercept 1232150, ranibizumab 595060, bevacizumab 253337, brolucizumab 2204915. Dexamethasone Ozurdex and fluocinolone Iluvien encoded as non-pharm device/procedure entries. Safety guardrails: (a) rapid HbA1c drop >2 percentage points / 6 months in severe pre-existing DR risks early worsening — tighter follow-up cadence + consider expedited intervention; (b) pregnancy accelerates DR — pre-conception treatment of severe NPDR/PDR and q1-3-month screen; (c) intravitreal corticosteroid implants cause cataract and IOP rise — restrict to pseudophakic / steroid-non-responder patients; (d) post-injection endophthalmitis routes OUT to ophtho.endophthalmitis.core.v1 same-day. All encoded in severity_triggers and contraindication_rules. Effect sizes (anchored): Protocol S (PMID 26565927) — 2-year mean BCVA letter change +2.8 (ranibizumab) vs +0.2 (PRP); mean peripheral VF sensitivity loss -23 dB vs -422 dB; vitrectomy 4% vs 15%; DME development 9% vs 28%. YOSEMITE & RHINE (PMID 35085503) — faricimab non-inferior to aflibercept on 1-year BCVA; YOSEMITE faricimab q8wk adjusted mean +10.7 letters vs aflibercept +10.9 (difference -0.2, 97.52% CI -2.0 to 1.6); >60% of personalised-treatment-interval faricimab patients extended to >=q12 wk and many to q16 wk.
Entry points (5)
- historyDiabetes mellitus due for screening — T1DM >=5 y from diagnosis or at puberty; T2DM at diagnosis; q1-2 y thereafter; pregnancy pre-conception or first trimester (ADA Standards 2026; AAO PPP DR 2025)diabetes_due_for_screening
- symptomPainless blurred / distorted central vision in a patient with diabetes — diabetic macular oedema (DME) is the dominant cause of vision loss in DR (AAO PPP DR 2025)painless_blurred_or_distorted_vision
- symptomSudden vision loss, dense floaters, or visual curtain in a known diabetic — pre-retinal / vitreous haemorrhage or tractional retinal detachment from PDR (AAO PPP DR 2025)sudden_vision_loss_floaters_curtain
- historyRapid HbA1c drop (>2 percentage points / 6 months), new SGLT2/GLP-1 therapy, pregnancy or pre-conception planning — early-worsening DR risk (ADA Standards 2026)rapid_glycemic_correction_or_pregnancy
- symptomMicroaneurysms, dot/blot haemorrhages, hard exudates, cotton-wool spots, venous beading, IRMA, or neovascularisation on fundus examination — staging entry to the DR engine (AAO PPP DR 2025)fundus_examination_findings_dr
Required inputs (11)
- diabetes_type_duration_a1crequiredhistory • used at ENTRYType (T1/T2), duration, and most recent HbA1c set the pretest map and screening cadence (ADA Standards 2026; UKPDS)
- dilated_fundus_examination_or_widefieldrequiredimaging • used at INITIAL_WORKUPDilated fundus (or ultra-widefield) examination is the diagnostic substrate — stage by ETDRS / ICDR scale (no DR / mild / moderate / severe NPDR / PDR) (AAO PPP DR 2025)
- oct_macula_center_subfield_thicknessrequiredimaging • used at INITIAL_WORKUPSD-OCT identifies and quantifies macular oedema (centre-involving vs non-centre-involving); central subfield thickness is the primary anti-VEGF treatment trigger and monitoring metric (AAO PPP DR 2025)
- fluorescein_angiography_or_oct_aimaging • used at BRANCHING_WORKUPFA / OCT-A maps ischaemia and neovascularisation (NVD/NVE), informs PRP vs anti-VEGF decision in PDR (AAO PPP DR 2025; Protocol S)
- hba1c_and_glycemic_trendrequiredlab • used at CONTEXTHbA1c and trend gates the early-worsening risk; rapid drop >2 percentage points / 6 months merits earlier follow-up (ADA Standards 2026)
- blood_pressure_and_lipid_profilerequiredlab • used at CONTEXTHypertension and dyslipidaemia accelerate DR; BP <130/80 and statin therapy are part of the disease-modifying treatment (ADA Standards 2026; ACCORD-Eye fenofibrate signal)
- renal_function_egfrlab • used at CONTEXTDiabetic nephropathy commonly co-progresses with DR; eGFR also gates renally-cleared concurrent therapies (CKD-EPI 2021)
- pregnancy_or_planning_conceptionrequiredhistory • used at CONTEXTPregnancy itself can accelerate DR; treat pre-existing severe NPDR / PDR before conception where possible; screen first trimester then q1-3 months (ADA Standards 2026)
- recent_intensification_sglt2_glp1_insulinrequiredhistory • used at CONTEXTRapid glycemic intensification (new GLP-1 / SGLT2 / insulin start, bariatric surgery) can precipitate early DR worsening — schedule follow-up sooner (ADA Standards 2026)
- lens_status_phakic_pseudophakichistory • used at TREATMENTCataract risk from intravitreal corticosteroid implants is major in phakic eyes; pseudophakic patients are reasonable steroid-implant candidates (AAO PPP DR 2025)
- baseline_iop_for_steroid_implantimaging • used at TREATMENTBaseline IOP gates intravitreal corticosteroid implant decisions; steroid-responder OAG complicates triamcinolone / dex / fluocinolone implants (AAO PPP DR 2025)
12-phase flow (12)
- 1FRAMEFrame as a microvascular complication of diabetes producing capillary dropout, microaneurysms, IRMA, macular oedema, and (proliferative) neovascularisation with risk of vitreous haemorrhage and tractional detachment. Engine drives ETDRS / ICDR staging, OCT-based DME assessment, and a tiered anti-VEGF / PRP / steroid / vitrectomy ladder. Early-worsening with rapid glycemic correction or pregnancy is the over-arching guardrail (ADA Standards 2026; AAO PPP DR 2025).advance: DR framing + early-worsening guardrail set
- 2ENTRYMost entries are routine screening per ADA cadence; minority arrive with painless central blur (DME) or sudden vision loss with floaters (PDR vitreous haemorrhage). Establish diabetes type, duration, latest HbA1c, BP, lipids, and recent therapy intensification.inputs: diabetes_type_duration_a1c, hba1c_and_glycemic_trendadvance: diabetes baseline + entry trigger documented
- 3CONTEXTCalibrate disease-acceleration risk: BP, lipid panel, eGFR, pregnancy / pre-conception status, recent SGLT2/GLP-1 start, bariatric surgery, recent insulin intensification. ACCORD-Eye signal: intensive glycaemic + fenofibrate adjunct slowed DR progression. Pregnancy + rapid-correction = early-worsening risk → shorter follow-up interval (ADA Standards 2026).inputs: blood_pressure_and_lipid_profile, pregnancy_or_planning_conception, recent_intensification_sglt2_glp1_insulinadvance: systemic risk + early-worsening triggers captured
- 4RED_FLAGSSudden visual loss + dense floaters + known PDR → vitreous haemorrhage / tractional RD — same-day vitreoretinal referral. Pain + redness + hypopyon after recent intravitreal injection → endophthalmitis — route OUT to ophtho.endophthalmitis.core.v1 (vitreous tap + intravitreal antibiotics).advance: red flag routes confirmed
- 5INITIAL_WORKUPDilated fundus / ultra-widefield examination — stage by ICDR (no DR / mild NPDR / moderate / severe NPDR by 4-2-1 / PDR). SD-OCT macula — centre-involving vs non-centre-involving DME with central subfield thickness; intraretinal cysts / subretinal fluid / DRIL. Fundus photography for baseline documentation (AAO PPP DR 2025).inputs: dilated_fundus_examination_or_widefield, oct_macula_center_subfield_thicknessadvance: ICDR stage + DME centre-involvement documented
- 6BRANCHING_WORKUPFA / OCT-A to characterise capillary non-perfusion and neovascularisation, especially in severe NPDR → PDR transition and when planning targeted PRP vs anti-VEGF (Protocol S). B-scan ultrasonography if vitreous haemorrhage obscures the fundus (rule out tractional detachment behind the blood).inputs: fluorescein_angiography_or_oct_aadvance: NV / non-perfusion mapped; ischaemia-guided plan set
- 7DIFFERENTIALTerminal differential: diabetic retinopathy (microaneurysms, dot/blot haemorrhages, exudates, NV in a diabetic) vs retinal vein occlusion (sectoral haemorrhage + cotton-wool spots in the venous territory) vs hypertensive retinopathy (arteriolar narrowing, AV nicking, no microaneurysms early) vs radiation retinopathy (history) vs OIS (carotid stenosis with mid-peripheral haemorrhages and pain) vs sickle retinopathy (sea-fan NV) (AAO PPP DR 2025).advance: DR confirmed and look-alikes excluded
- 8RISK_STRATIFICATIONICDR stage + DME centre-involvement + HbA1c trend + BP / lipids + pregnancy + visual acuity together set treatment urgency. Severe NPDR has ~50% 1-year progression to PDR by ICDR/ETDRS; pregnancy + rapid HbA1c drop accelerates. Centre-involving DME with vision loss triggers anti-VEGF.inputs: hba1c_and_glycemic_trend, pregnancy_or_planning_conceptionadvance: risk tier + treatment urgency set
- 9TREATMENT(A) SYSTEMIC: optimise HbA1c, BP (<130/80), and lipids (statin; consider fenofibrate adjunct per ACCORD-Eye if eligible). Avoid abrupt large HbA1c drops where DR already severe; co-manage pregnancy with maternal-fetal medicine. (B) MILD-MODERATE NPDR without DME: observation + systemic optimisation + return per cadence. (C) SEVERE NPDR: consider intravitreal anti-VEGF (PANORAMA-class signal) or PRP if poor adherence to anti-VEGF visits; tighten follow-up. (D) CENTRE-INVOLVING DME with vision loss: first-line intravitreal anti-VEGF (faricimab YOSEMITE/RHINE PMID 35085503 with q4 to q16-wk personalised treatment interval; aflibercept 2 mg or 8 mg PHOTON; ranibizumab; bevacizumab off-label per Protocol T). Intravitreal corticosteroid implants (dexamethasone Ozurdex / fluocinolone Iluvien) for anti-VEGF-incomplete-response or pseudophakic patients — cataract and IOP risk. (E) PDR: intravitreal anti-VEGF (Protocol S Gross JAMA 2015 PMID 26565927 — ranibizumab non-inferior to PRP at 2 y with less peripheral VF loss, less DME, more visits) OR PRP (DRS / ETDRS); vitrectomy for non-clearing vitreous haemorrhage or tractional detachment.inputs: lens_status_phakic_pseudophakic, baseline_iop_for_steroid_implantadvance: stage-appropriate tier started; systemic optimisation co-engaged
- 10DISPOSITIONRoutine outpatient ophthalmology. Same-day vitreoretinal referral for: PDR with vitreous haemorrhage or tractional RD; suspected post-injection endophthalmitis (→ ophtho.endophthalmitis.core.v1). Pregnant patient with severe NPDR / PDR → expedited treatment + maternal-fetal-medicine co-management (ADA Standards 2026).advance: disposition + referral pathway set
- 11MONITORINGOCT central subfield thickness and visual acuity at each anti-VEGF visit; ICDR stage and presence/extent of NV at each examination. After PRP: monitor regression of NV at 4-6 weeks then 3-monthly. After steroid implant: IOP at 2-6 weeks and 3-monthly (steroid-responder IOP rise / open-angle glaucoma risk). HbA1c, BP, lipids per ADA cadence.advance: visit-by-visit OCT + VA + IOP + ICDR re-grade running
- 12FOLLOWUPLifelong screening + treatment arc. Adjust cadence by ICDR stage: q12-24 mo no DR, q12 mo mild, q6-12 mo moderate/severe NPDR, q1-4 mo PDR / DME on therapy. Pregnancy: pre-conception baseline then q1-3 months. Co-manage cataract surgery (DME can worsen post-op — peri-operative anti-VEGF or steroid). Low-vision rehabilitation for irreversible field loss / advanced disease (AAO PPP DR 2025; ADA Standards 2026).advance: stage-appropriate cadence + cataract / pregnancy / low-vision planning documented