How krrxh/mlharogyam46 works
AROGYAM is a patient-facing Ayurvedic chronic-care and monthly kit subscription platform, with an AYUSH clinician portal and a server-side AI wellness assistant. The documented journey runs from health intake and pathway matching through daily wellness, clinician review, prescription and kit follow-up, with meal analysis and adherence tracking as supporting capabilities. The graph combines sampled call and routing evidence with README-documented product stages; unsampled route internals and persistence details are not inferred.
Main entry points: index.ts Express API · arogyamDataset.ts Pathway catalog · api.ts Typed API client · AppContext.tsx Patient app state
Components 24
Patient care
- Health intake
client/src/pages/OnboardingPage.tsx - Care dashboard
client/src/pages/DashboardPage.tsx - Meal scanner
client/src/pages/MealScannerPage.tsx - Exercise guidance
client/src/pages/ExercisePage.tsx - Diet guidance
client/src/pages/DietGuidePage.tsx - Daily tracking
client/src/components/DailyTrackingCard.tsx
Clinical and kits
- Consultation
client/src/pages/ConsultationPage.tsx - Doctor portal
client/src/pages/DoctorPortalPage.tsx - Prescription form
client/src/components/DoctorPrescriptionForm.tsx - Kit details
client/src/pages/KitDetailPage.tsx - Subscription
client/src/pages/SubscriptionPage.tsx
Application platform
- Pathway catalog
shared/arogyamDataset.ts - Patient app state
client/src/context/AppContext.tsx - Typed API client
client/src/services/api.ts
API services
- Express API
server/src/index.ts - Kit and doctor routes
server/src/routes/kits.ts - Tracking routes
server/src/routes/tracking.ts - Consultation routes
server/src/routes/consultations.ts - Prescription routes
server/src/routes/prescriptions.ts
AI wellness
- Gemini routes
server/src/routes/gemini.ts - Gemini wellness service
server/src/services/geminiService.ts
Other components
- Patient
- AYUSH clinician
- Google Gemini
Connections 35
- Patient → Health intake: provides health intake
README.md - Health intake → Pathway catalog: matches conditions
client/src/pages/OnboardingPage.tsx - Health intake → Patient app state: updates patient context
client/src/pages/OnboardingPage.tsx - Patient → Care dashboard: reviews care
README.md - Care dashboard → Daily tracking: renders tracking
client/src/App.tsx - Daily tracking → Patient app state: updates adherence
client/src/components/DailyTrackingCard.tsx - Patient app state → Typed API client: records tracking
client/src/context/AppContext.tsx - Patient → Meal scanner: submits meal photo
README.md - Meal scanner → Typed API client: requests meal analysis
client/src/pages/MealScannerPage.tsx - Patient → Exercise guidance: follows routines
README.md - Patient → Diet guidance: uses diet guidance
README.md - AYUSH clinician → Consultation: consults patient
README.md - Consultation → Typed API client: sends consultation messages
client/src/pages/ConsultationPage.tsx - AYUSH clinician → Doctor portal: reviews patient
README.md - Doctor portal → Prescription form: renders prescription form
client/src/pages/DoctorPortalPage.tsx - Prescription form → Typed API client: submits prescription
client/src/components/DoctorPrescriptionForm.tsx - Patient → Kit details: views care kit
README.md - Patient → Subscription: manages subscription
README.md - Kit details → Pathway catalog: reads kit details
client/src/pages/KitDetailPage.tsx - Subscription → Pathway catalog: reads pathway options
client/src/pages/SubscriptionPage.tsx - Patient app state → Pathway catalog: loads demo pathways
client/src/context/AppContext.tsx - Typed API client → Express API: calls REST API
client/src/services/api.ts - Express API → Kit and doctor routes: mounts routes
server/src/index.ts - Express API → Tracking routes: mounts routes
server/src/index.ts - Express API → Consultation routes: mounts routes
server/src/index.ts - Express API → Prescription routes: mounts routes
server/src/index.ts - Express API → Gemini routes: mounts routes
server/src/index.ts - Kit and doctor routes → Pathway catalog: reads pathway data
server/src/routes/kits.ts - Prescription routes → Pathway catalog: uses kit protocols
server/src/routes/prescriptions.ts - Meal scanner → Gemini routes: requests analysis via API
- Gemini routes → Gemini wellness service: delegates wellness analysis
server/src/routes/gemini.ts - Gemini wellness service → Google Gemini: generates AI responses
server/src/services/geminiService.ts - AYUSH clinician → Prescription routes: approves care plan
README.md - Prescription routes → Kit details: documents approved kit
- Tracking routes → Care dashboard: returns tracking summary