How sricharansairi/project-samanvaya works
Project Samanvaya is a healthcare access and clinical-support platform, with patient and hospital-facing workflows spanning intake, clinical assessment, document processing, decision support, and care-program tools. The README is empty, and most source excerpts are partial, so the graph includes major capabilities indicated by the tree while limiting internal call edges to wiring visible in sampled source.
Main entry points: main.py Backend API · ocr/route.ts Prescription OCR · translate-clinical/route.ts Clinical Translation · rag_router.py Guideline Search
Components 26
Patient Access
- Patient Portal
frontend/app/patient/page.tsx - Hospital Portal
frontend/app/his/page.tsx
Clinical Encounter
- Registration Flow
frontend/components/Step2_Identify.tsx - Consent Flow
frontend/components/Step3_Consent.tsx - Symptom Triage
backend/app/services/triage_service.py - Voice Services
backend/app/services/audio_service.py - Document Ingestion
frontend/app/api/patient/ingest-document/route.ts - Prescription OCR
frontend/app/api/vision/ocr/route.ts
Clinical Intelligence
- Clinical Translation
frontend/app/api/nlp/translate-clinical/route.ts - Clinical NLP
frontend/services/clinical_nlp.ts - Medical RAG
frontend/services/medical_rag.ts - Guideline Search
backend/app/services/rag_router.py - Visual RAG
frontend/services/visual_rag_engine.ts - Longitudinal Analytics
backend/app/services/longitudinal_clinical_engine.py - Drug Safety Audit
backend/app/services/longitudinal_clinical_engine.py
Care Programs
- Antimicrobial Audit
frontend/app/api/antimicrobial/audit/route.ts - Scheme Eligibility
frontend/app/api/schemes/evaluate/route.ts - AYUSH Assessment
frontend/services/ayush_engine.ts - Tele-MANAS
frontend/app/api/tele-manas/evaluate/route.ts - Generic Savings
frontend/services/janaushadhi_engine.ts
Service Platform
- Backend API
backend/app/main.py - Database Service
backend/app/services/db.py
Other components
- Patient
- Hospital Staff
- Supabase
- AI Providers
Connections 17
- Patient → Patient Portal: uses
- Hospital Staff → Hospital Portal: uses
- Patient Portal → Registration Flow: starts intake
- Registration Flow → Consent Flow: collects consent
- Backend API → Symptom Triage: calls
- Backend API → Voice Services: calls
- Backend API → Document Ingestion: supports ingestion
- Clinical Translation → Clinical NLP: translates with
- Clinical Translation → AI Providers: requests inference
- Prescription OCR → Medical RAG: queries
- Prescription OCR → Generic Savings: analyzes savings
- Guideline Search → Database Service: queries
- Database Service → Supabase: reads
- Guideline Search → AI Providers: embeds query
- Visual RAG → AI Providers: requests inference
- Antimicrobial Audit → AI Providers: audits with
- Tele-MANAS → AI Providers: evaluates with