How 1at24cs054-rgb/smarthealth_360 works
SmartHealth 360 is a React healthcare-management simulation. Users enter a shared health dashboard, navigate reports, prescriptions, doctors, wellness, and history, and can ask the AI Companion for health guidance that may change the active section. The shared context holds the user’s health state and implements simulated report analysis and chat behavior; sample records supply initial and reference data. README-described OCR, medication safety, emergency, and refill capabilities are represented as product features, not verified external services. Source excerpts are partial, so uncertain internal connections are omitted.
Main entry points: App.jsx App router · HealthContext.jsx Health context · main.jsx React entry · Doctors.jsx Doctor network
Components 13
Application shell
- React entry
src/main.jsx - App router
src/App.jsx - Sidebar navigation
src/components/Sidebar.jsx - AI Companion
src/components/AICompanion.jsx
Health state
- Health context
src/context/HealthContext.jsx
Care workflows
- Health dashboard
src/pages/Dashboard.jsx - Report synthesis
src/pages/Reports.jsx - Prescription records
src/pages/Prescriptions.jsx - Doctor network
src/pages/Doctors.jsx - Wellness plans
src/pages/Wellness.jsx - Health history
src/pages/History.jsx
Reference data
- Mock health data
src/data/mockData.js
Other components
- User
Connections 22
- User → React entry: opens app
README.md - React entry → Health context: provides state
src/main.jsx - React entry → App router: renders
src/main.jsx - App router → Sidebar navigation: renders
src/App.jsx - App router → AI Companion: renders
src/App.jsx - App router → Health dashboard: routes to
src/App.jsx - App router → Report synthesis: routes to
src/App.jsx - App router → Prescription records: routes to
src/App.jsx - App router → Doctor network: routes to
src/App.jsx - App router → Wellness plans: routes to
src/App.jsx - App router → Health history: routes to
src/App.jsx - Sidebar navigation → Health context: updates page
src/components/Sidebar.jsx - AI Companion → Health context: sends messages
src/components/AICompanion.jsx - Health context → Mock health data: initializes from
src/context/HealthContext.jsx - Health dashboard → Health context: reads health state
src/pages/Dashboard.jsx - Report synthesis → Health context: uses report state
src/pages/Reports.jsx - Prescription records → Health context: manages prescriptions
src/pages/Prescriptions.jsx - Doctor network → Health context: books appointments
src/pages/Doctors.jsx - Doctor network → Mock health data: reads listings
src/pages/Doctors.jsx - Wellness plans → Health context: reads wellness state
src/pages/Wellness.jsx - Wellness plans → Mock health data: reads remedies
src/pages/Wellness.jsx - Health history → Health context: reads history
src/pages/History.jsx