How stellaroneai/easymed-healthcare-platform works
EasyMedPro is a multi-role Indian healthcare platform. Users authenticate by OTP or administrator login, then enter role-specific dashboards; the patient dashboard brings together clinical data, ABHA, family, telemedicine, insurance, monitoring, education, and AI/voice experiences. Vercel API functions provide server-side authentication and healthcare data access, backed by MongoDB. The README documents multilingual support and planned ABDM/ABHA integration. Several dashboard and API implementations are unsampled, so their capabilities are included but uncertain internal links are omitted.
Main entry points: PatientDashboard.tsx Patient dashboard · App.tsx App shell · api Clinical data APIs · authz.ts Authorization
Components 31
User experience
- App shell
src/App.tsx - Login
src/components/LoginPage.tsx - Patient dashboard
src/pages/PatientDashboard.tsx - Role dashboards
src/components/dashboards - Language context
src/contexts/LanguageContext.tsx - Translations
src/translations.ts
Identity and ABHA
- Auth service
src/services/realAuthService.ts - ABHA context
src/contexts/ABHAContext.tsx - ABHA service
src/services/abhaService.ts
Clinical workflows
- ABHA integration
src/components/ABHAIntegration.tsx - Patient features
src/pages/PatientDashboard.tsx - Family management
src/components/FamilyManagement.tsx - Clinical data service
src/services/clinicalDataService.ts - Telemedicine
src/components/TelemedicineConsultation.tsx - Insurance claims
src/components/InsuranceClaims.tsx - Remote monitoring
src/components/RemotePatientMonitoring.tsx - Patient education
src/components/PatientEducationLibrary.tsx - Voice assistant
src/components/VoiceAssistant.tsx - AI health experiences
src/components/AIChatAssistant.tsx
Server APIs
- Authentication APIs
api/auth - ABHA proxy
api/abha/proxy.ts - Clinical data APIs
api - AI APIs
api/ai - Admin team API
api/admin/team.ts
Server foundations
- Twilio Verify
api/_lib/twilio.ts - Session cookies
api/_lib/session.ts - MongoDB access
api/_lib/mongo.ts - Authorization
api/_lib/authz.ts - Audit logging
api/_lib/audit.ts - API responses
api/_lib/response.ts
Other components
- Platform users
Connections 35
- Platform users → App shell: opens
src/App.tsx - App shell → Login: renders
src/App.tsx - Login → Auth service: authenticates through
src/components/LoginPage.tsx - Auth service → Authentication APIs: calls
src/services/realAuthService.ts - Auth service → Twilio Verify: sends OTP through
src/services/realAuthService.ts - Authentication APIs → Twilio Verify: uses
api/auth/verify-otp.ts - Authentication APIs → Session cookies: creates sessions
api/auth/verify-otp.ts - App shell → Patient dashboard: routes patients to
src/App.tsx - App shell → Role dashboards: routes other roles to
src/App.tsx - App shell → Language context: provides
src/App.tsx - Language context → Translations: reads
src/contexts/LanguageContext.tsx - Patient dashboard → Patient features: renders
src/pages/PatientDashboard.tsx - Patient dashboard → Clinical data service: loads clinical data through
src/pages/PatientDashboard.tsx - Patient dashboard → ABHA integration: renders
src/pages/PatientDashboard.tsx - Patient dashboard → Family management: renders
src/pages/PatientDashboard.tsx - Patient dashboard → Telemedicine: renders
src/pages/PatientDashboard.tsx - Patient dashboard → Insurance claims: renders
src/pages/PatientDashboard.tsx - Patient dashboard → Remote monitoring: renders
src/pages/PatientDashboard.tsx - Patient dashboard → Patient education: renders
src/pages/PatientDashboard.tsx - Patient dashboard → Voice assistant: renders
src/pages/PatientDashboard.tsx - Patient dashboard → AI health experiences: renders
src/pages/PatientDashboard.tsx - ABHA integration → ABHA service: uses
src/components/ABHAIntegration.tsx - ABHA context → ABHA service: uses
src/contexts/ABHAContext.tsx - ABHA service → ABHA proxy: requests through
src/services/abhaService.ts - AI health experiences → AI APIs: server-side AI capability
README.md - Clinical data service → Clinical data APIs: API linkage
- Clinical data APIs → MongoDB access: reads and writes
api/appointments/me.ts - Clinical data APIs → Authorization: checks access with
api/appointments/me.ts - Clinical data APIs → Audit logging: records access with
api/appointments/me.ts - Authorization → Session cookies: verifies
api/_lib/authz.ts - Authorization → API responses: returns errors with
api/_lib/authz.ts - Audit logging → MongoDB access: writes logs to
api/_lib/audit.ts - Admin team API → Authorization: checks access with
api/admin/team.ts - Admin team API → MongoDB access: reads and writes
api/admin/team.ts - Admin team API → Audit logging: records actions with
api/admin/team.ts