How viraj-akili/anemia-detection works
PRAHARI is a frontline-worker screening application for early warning of anemia and malnutrition. Its principal flow collects beneficiary and screening inputs, captures an optical image, combines model output with anthropometry and context in a risk assessment, then presents safety-bounded recommendations and supports follow-up. The repository also includes longitudinal views, clinical question tools, role dashboards, localization, and offline queueing. Some capabilities are documented but their wiring is not shown in the excerpts, so uncertain connections are omitted.
Main entry points: App.tsx PRAHARI app · localizationService.ts Localization · NewScreeningWorkflow.tsx New screening · screeningService.ts Risk screening
Components 18
Screening workflow
- PRAHARI app
src/App.tsx - New screening
src/components/aww/NewScreeningWorkflow.tsx - Optical capture
src/components/scanner/OpticalCaptureZone.tsx
Risk and clinical tools
- Risk screening
src/services/screeningService.ts - Anemia model
src/services/anemiaModelService.ts - Nutrition assistant
src/components/chat/MalnutritionAIChatbot.tsx - Clinical doubt
src/components/doubt/ClinicalDoubtAssistant.tsx
Beneficiary care
- Beneficiary list
src/components/aww/BeneficiaryList.tsx - Beneficiary profile
src/components/aww/BeneficiaryProfile.tsx - Follow-up list
src/components/aww/FollowUpList.tsx - Longitudinal trends
src/components/aww/LongitudinalTrendView.tsx - AWW home
src/components/aww/AWWHome.tsx
Program oversight
- Supervisor dashboard
src/components/supervisor/SupervisorDashboard.tsx - District dashboard
src/components/admin/DistrictAdminDashboard.tsx
Offline and shared
- Offline sync queue
src/services/syncService.ts - Localization
src/services/localizationService.ts - Screening data types
src/types/index.ts
Other components
- Frontline worker
Connections 16
- Frontline worker → PRAHARI app: uses
README.md - PRAHARI app → Risk screening: calls
src/App.tsx - PRAHARI app → Nutrition assistant: renders
src/App.tsx - PRAHARI app → Clinical doubt: renders
src/App.tsx - PRAHARI app → Optical capture: renders
src/App.tsx - PRAHARI app → New screening: offers workflow
- New screening → Risk screening: calls
src/components/aww/NewScreeningWorkflow.tsx - New screening → Offline sync queue: queues offline
src/components/aww/NewScreeningWorkflow.tsx - Risk screening → Anemia model: runs inference
src/services/screeningService.ts - AWW home → Localization: uses translations
src/components/aww/AWWHome.tsx - Beneficiary list → Localization: uses translations
src/components/aww/BeneficiaryList.tsx - Beneficiary profile → Localization: uses translations
src/components/aww/BeneficiaryProfile.tsx - Follow-up list → Localization: uses translations
src/components/aww/FollowUpList.tsx - Longitudinal trends → Localization: uses translations
src/components/aww/LongitudinalTrendView.tsx - Supervisor dashboard → Localization: uses translations
src/components/supervisor/SupervisorDashboard.tsx - District dashboard → Localization: uses translations
src/components/admin/DistrictAdminDashboard.tsx