SwasthyaSetu AI.
Connecting district health operations.
SwasthyaSetu AI is a district health-operations demonstration that combines administrator views, medicine inventory, patient and bed records, maps, and forecasting helpers. It explores how operational information could be organized across a district rather than presenting isolated data screens.
The source separates a Next.js web interface, an Express API, and a FastAPI service. MongoDB is part of the data stack, and Docker Compose supports running the services together. Forecasting code uses linear regression with a statistical fallback. This is a software prototype: clinical suitability and predictive accuracy have not been established.
Why this build exists.
District health administration involves inventory, patient records, beds, attendance, and reporting across facilities. This prototype explores a shared management interface and separate forecasting helpers for those workflows.
My role & attribution
The repository implementation was reviewed, but a module-by-module personal ownership record was not available. The implementation details below describe the project; they do not imply sole authorship of every component.
What went
into it.
Project work & contribution
- The repository separates the web interface, Express API, and FastAPI service. Forecasting code uses linear regression with a statistical fallback.
Technology stack
- Frontend
- Next.js
- Backend
- Express and FastAPI
- Data
- MongoDB
- Forecasting
- Python regression and statistical helpers
- Delivery
- Docker Compose; Vercel web deployment
Follow the architecture.
Select a component. Use arrow keys to move.
Web client / Next.js
Administrator interfaces. Runs separately from the checked-in backend Compose stack.
Application API / Express
Configured with MongoDB storage, frontend CORS origin, and a Python service URL.
Data store / MongoDB
Application persistence through the mongo service and its named volume.
Forecast helpers / FastAPI
Separate Python service for forecasting and recommendations; predictive quality is unvalidated.
Read all 3 connections
- Web client → Application APIFrontend/API boundary described in the README
- Application API → Data storeConfigured data connection
- Application API → Forecast helpersConfigured Python service URL
Service boundaries from the README and Compose source reviewed 21 Oct 2026. The Next.js client runs separately. Connections describe configuration, not verified deployed integrations.
Inside the implementation.
- 01
The repository separates a Next.js client, an Express API with MongoDB, and a Python FastAPI service. The frontend has district and primary-health-center administrator views.
- 02
The Express service is configured to reach MongoDB and the Python service using Compose service names. MongoDB data is stored in a named volume.
- 03
The checked-in Compose file starts MongoDB, Express, and the Python service. The Next.js client is run separately; the frontend is not a service in that Compose file.
Challenges & tradeoffs
- Configuration crosses frontend, API, database, and forecasting boundaries. Frontend origin, API URLs, and service availability need checking independently.
- The checked-in container environment is oriented toward development. Secrets and production hardening need separate configuration before deployment.
- Forecasting and generated summaries are demonstration helpers; the source review does not validate predictive or clinical quality.
What was checked.
Reviewed the README and Compose configuration on 21 Oct 2026. Service separation and local startup instructions are documented. Automated test results, role enforcement in a live deployment, and forecast validation were not established by this review.
From code to deployment.
The checked-in Compose file runs MongoDB, Express, and the FastAPI helper service. The Next.js frontend runs separately and has a retained Vercel web link. The Compose configuration uses development settings; a hardened cloud rollout and backend connectivity have not been verified.
Service boundaries, data stores, configuration, and deployment workflows.
The current boundary.
A health-operations prototype. No clinical decision support validation, real patient deployment, production security assessment, or forecasting-accuracy claim is made. A live frontend link does not confirm the Express and Python services are connected.