How shiauryatripathi/drishtiiiii works
DRishtii is a local-first tele-ophthalmology workstation for diabetic-retinopathy screening. Its main workflow registers or selects a patient, captures/uploads a fundus image, runs local preprocessing and inference, and presents grading with an explainable clinical dossier for referral and follow-up. The app also supports patient queues, longitudinal review and multi-device SSE updates. The README documents the optical pipeline and diagnostic capabilities; sampled source confirms the scanner, inference engine, MATLAB fallback, and XAI components. Other unsampled capabilities are represented only where documented, with uncertain implementation links omitted.
Main entry points: App.tsx Workstation UI · matlabEngine.ts DR inference · Scanner.tsx Scan capture · Patients.tsx Patient records
Components 20
Clinical workflow
- Workstation UI
src/App.tsx - Patient records
src/components/Patients.tsx - Scan capture
src/components/Scanner.tsx - Fundus image
Edge diagnostics
- Image preprocessing
src/server/matlabEngine.ts - DR inference
src/server/matlabEngine.ts - MATLAB pipeline
matlab/run_pipeline.m - ONNX engine
src/server/matlabEngine.ts - Explainable analysis
src/server/xaiEngine.ts - Graded scan
Clinical review
- Clinical dossier
src/components/ExplainableAIDossier.tsx - Confidence display
src/components/ConfidenceGauge.tsx - Care recommendations
src/components/Advisor.tsx - Longitudinal review
src/components/LongitudinalTimeline.tsx - Screening dashboard
src/components/Dashboard.tsx
Local coordination
- SSE client
src/lib/useRealtimeSync.ts - API and event server
server.ts - Local records
retiscan_db.json
Other components
- PHC staff
- Other workstations
Connections 23
- PHC staff → Workstation UI: uses
README.md - Workstation UI → Patient records: routes to
src/App.tsx - Workstation UI → Scan capture: routes to
src/App.tsx - PHC staff → Scan capture: captures scan
README.md - Scan capture → Fundus image: uploads
src/components/Scanner.tsx - Fundus image → Image preprocessing: submits
README.md - Image preprocessing → DR inference: prepares image
README.md - DR inference → ONNX engine: runs locally
src/server/matlabEngine.ts - DR inference → MATLAB pipeline: falls back to
src/server/matlabEngine.ts - DR inference → Graded scan: produces grade
README.md - Graded scan → Explainable analysis: informs analysis
- Explainable analysis → Clinical dossier: supplies report
- Scan capture → Clinical dossier: renders result
src/components/Scanner.tsx - Clinical dossier → Confidence display: renders score
src/components/ExplainableAIDossier.tsx - Workstation UI → Screening dashboard: routes to
src/App.tsx - Workstation UI → Care recommendations: routes to
src/App.tsx - Patient records → Longitudinal review: opens history
src/components/Patients.tsx - Screening dashboard → SSE client: subscribes
src/components/Dashboard.tsx - Patient records → SSE client: subscribes
src/components/Patients.tsx - SSE client → API and event server: opens SSE
src/lib/useRealtimeSync.ts - Other workstations → API and event server: coordinates by SSE
README.md - API and event server → Local records: reads and writes
- DR inference → Explainable analysis: generates clinical report