Sehat Dori is a next-generation maternal healthcare platform designed to save lives in rural areas by intelligently connecting patients, ASHA workers, hospitals, and risk factors using a graph-based approach.
Every year, thousands of maternal deaths occur due to:
- β Missed checkups
- β Poor tracking of patient history
- β Lack of real-time risk identification
- β Fragmented healthcare systems
π Sehat Dori solves this using relationship-driven intelligence.
Instead of storing healthcare data in isolated tables, we model it as a connected graph:
Patient β Visits β Hospital
β Risk Factors
β ASHA Worker
This allows us to:
- Detect high-risk pregnancies in real-time
- Enable priority-based care
- Provide actionable insights to field workers
- Frontend: React + Tailwind CSS + Framer Motion
- Backend: Node.js + Express
- Graph Database: TigerGraph + MongoDB
- Authentication: JWT
React App (ASHA Dashboard)
β
Node.js Backend (API Layer)
β
TigerGraph (Risk Engine)
β
Insights β Alerts β Actions π¨
-
Identifies high-risk pregnancies instantly
-
Combines multiple factors:
- Hemoglobin levels
- Missed visits
- Medical conditions
-
Simple, mobile-friendly UI
-
Shows:
- High-risk patients
- Priority alerts
- Action recommendations
- JWT-based authentication
- Graph queries eliminate complex joins
- Enables real-time healthcare decisions
At the heart of Sehat Dori lies a powerful idea:
π‘ Healthcare is not isolated data β it is a network of relationships.
This is where TigerGraph becomes our core intelligence engine.
Traditional databases store data in tables:
- Patients table
- Visits table
- Hospitals table
To answer a real-world question like:
βWhich pregnant women missed checkups AND have anemia AND are far from hospitals?β
You need:
- Multiple joins
- Complex queries
- Slow execution β
We model everything as a connected graph:
(Patient) ββ HAS_RISK ββ> (Anemia)
β
βββ VISITED ββ> (Visit: missed)
β
βββ ASSIGNED_TO ββ> (ASHA Worker)
π Now, this becomes a simple traversal problem β not a join problem.
We designed a domain-specific healthcare graph:
PatientHospitalVisitUser(for authentication)
Patient β HAS_RISK β RiskFactorPatient β VISITED β VisitVisit β AT β HospitalPatient β ASSIGNED_TO β ASHA_Worker
Each real-world entity is stored as a vertex, and relationships are stored as edges.
Example:
Patient (Sita)
β HAS_RISK β Anemia
β VISITED β Missed Visit
β ASSIGNED_TO β ASHA Worker
Instead of raw queries, we use installed GSQL queries as APIs.
CREATE QUERY highRiskPatients() FOR GRAPH health_graph {
Start = {Patient.*};
HighRisk =
SELECT p
FROM Start:p -(HAS_RISK)-> r
WHERE r.type == "anemia" AND p.hemoglobin < 9;
PRINT HighRisk;
}
We extend logic using accumulators:
CREATE QUERY priorityPatients() FOR GRAPH health_graph {
Start = {Patient.*};
Result =
SELECT p
FROM Start:p -(VISITED)-> v
WHERE v.status == "missed"
ACCUM p.@missed += 1;
HighPriority =
SELECT p
FROM Result:p
WHERE p.@missed >= 2;
PRINT HighPriority;
}
π This allows real-time prioritization based on behavior patterns.
TigerGraph automatically exposes queries as REST APIs:
GET /query/health_graph/highRiskPatients
Our Node.js backend connects using HTTP:
axios.get(
`${TG_HOST}/query/health_graph/highRiskPatients`,
{
headers: {
Authorization: `Bearer ${TG_TOKEN}`
}
}
);π No ORM, no joins β just direct graph intelligence
ASHA App β Node API β TigerGraph Query
β Graph Traversal β Risk Detection
β Response β Alert π¨
| Traditional DB | TigerGraph |
|---|---|
| Heavy joins β | Native traversal β |
| Slower queries β | Real-time insights β |
| Rigid schema β | Flexible relationships β |
With TigerGraph, MomsMagic can:
- β Identify high-risk pregnancies instantly
- β Track patient journeys across multiple touchpoints
- β Enable proactive intervention instead of reactive care
βIn healthcare, relationships matter more than records.β
TigerGraph helps us see those relationships β and act on them.
π© Sita (7 months pregnant)
- Missed 2 checkups
- Hemoglobin = 8.5
- Lives far from hospital
π Sehat Dori flags her as:
π¨ HIGH PRIORITY PATIENT
π ASHA worker gets instant alert β takes action β life saved
GET /api/patients/high-risk
Response:
{
"success": true,
"data": [
{
"name": "Sita",
"risk": "HIGH"
}
]
}git clone https://github.com/your-username/momsmagic.git
cd sehat-doricd backend
npm installCreate .env:
PORT=5000
JWT_SECRET=your_secret
TG_HOST=https://your-instance.tgcloud.io
TG_GRAPH=health_graph
TG_TOKEN=your_api_key
Run server:
npm run devcd frontend
npm install
npm run dev- Signup β User stored in TigerGraph
- Login β JWT issued
- Protected routes β Verified using middleware
Traditional DBs:
- β Struggle with multi-relationship queries
- β Slow joins
TigerGraph:
- β Native graph traversal
- β Real-time insights
- β Perfect for healthcare relationships
SehatDori is not just a project β it's a life-saving system.
- Reduce maternal mortality
- Improve rural healthcare connectivity
- Empower ASHA workers with data
- π€ AI-based risk scoring
- π‘ Offline-first support for rural areas
- πΊοΈ Geo-based emergency routing
Built with β€οΈ for real-world impact.
- Sundaram Katare (Leader)
- Aryan Routela
- Khushi Sharma
- Tanmay Kanchan
βData doesnβt save lives β connected data does.β
Sehat Dori turns connections into care.
β If you like this project, give it a star!