Description
The community health dashboard at /dashboard/community currently uses 200 mock-generated records with randomized symptoms and Nigerian city data instead of real aggregated assessment data from local assessments.
Current State
src/routes/_app.dashboard.community.tsx — Generates 200 fake reports with randomized cities and symptoms
- Map and charts show mock data only
- No aggregation from real IndexedDB assessment data
Required Changes
- Create an aggregation utility that reads from the local IndexedDB assessments table
- Aggregate by location (using GPS coordinates or village codes from patient records)
- Aggregate by condition/diagnosis for condition breakdown charts
- Replace the mock data generation with real data aggregation
- Keep the data anonymized (no patient-identifiable information)
- Add a fallback/empty state when there is no data yet
Acceptance Criteria
Description
The community health dashboard at
/dashboard/communitycurrently uses 200 mock-generated records with randomized symptoms and Nigerian city data instead of real aggregated assessment data from local assessments.Current State
src/routes/_app.dashboard.community.tsx— Generates 200 fake reports with randomized cities and symptomsRequired Changes
Acceptance Criteria