How bhargavbhat18/vital-java works
VitalGuard is a real-time health-monitoring and emergency-response platform, with patient/family and healthcare-facing clients backed by a Spring Boot service. The documented core workflow ingests patient vitals and coordinates, assesses risk, and, for critical cases, routes to hospital resources, dispatches an ambulance, and broadcasts tracking and family updates. The graph includes the documented web clients and backend capabilities; the README supplies most cross-system evidence, while sampled source confirms selected authentication, notification, and ambulance behavior. Several client and backend subsystems are represented by their exact enclosing directories because their implementation files were not sampled.
Main entry points: WebSocketConfig.java WebSocket broker · EmergencyService.java Emergency workflow · App.jsx Web application · medical Risk assessment
Components 17
Patient and operations clients
- Web application
frontend/src/App.jsx - Patient dashboard
frontend/src/pages/UserDashboard.jsx - Healthcare dashboard
frontend/src/pages/HealthcareDashboard.jsx - Patient Android app
android_apps/patient_app/app/src/main/java/com/vitaguard/patient_app - Healthcare Android app
android_apps/healthcare_app/app/src/main/java/com/vitaguard/healthcare_app - Live map
frontend/src/components/MapComponent.jsx
Identity and health assessment
- Authentication
backend-java/src/main/java/com/vitaguard/backend_java/auth/AuthService.java - Risk assessment
backend-java/src/main/java/com/vitaguard/backend_java/medical - Vitals ingestion
backend-java/src/main/java/com/vitaguard/backend_java/user
Emergency response
- Emergency workflow
backend-java/src/main/java/com/vitaguard/backend_java/emergency/EmergencyService.java - Hospital routing
backend-java/src/main/java/com/vitaguard/backend_java/hospital - Ambulance dispatch
backend-java/src/main/java/com/vitaguard/backend_java/ambulance/AmbulanceService.java - Family notifications
backend-java/src/main/java/com/vitaguard/backend_java/user/FamilyNotificationService.java
Realtime and persistence
- WebSocket broker
backend-java/src/main/java/com/vitaguard/backend_java/config/WebSocketConfig.java - MySQL database
Other components
- Patient / family
- Care staff
Connections 19
- Patient / family → Patient dashboard: uses
README.md - Care staff → Healthcare dashboard: uses
README.md - Web application → Patient dashboard: routes to
frontend/src/App.jsx - Web application → Healthcare dashboard: routes to
frontend/src/App.jsx - Patient / family → Vitals ingestion: sends vitals
README.md - Vitals ingestion → Risk assessment: assesses
README.md - Risk assessment → MySQL database: stores critical events
README.md - Risk assessment → Emergency workflow: triggers critical response
README.md - Emergency workflow → Hospital routing: routes to capability
README.md - Emergency workflow → Ambulance dispatch: dispatches
README.md - Emergency workflow → Family notifications: initiates alerts
- Family notifications → WebSocket broker: broadcasts
backend-java/src/main/java/com/vitaguard/backend_java/user/FamilyNotificationService.java - Ambulance dispatch → WebSocket broker: streams updates
README.md - WebSocket broker → Patient / family: sends tracking
README.md - WebSocket broker → Care staff: sends case updates
README.md - WebSocket broker → Live map: updates coordinates
README.md - Patient Android app → Authentication: authenticates
- Healthcare Android app → Authentication: authenticates
- Web application → Authentication: authenticates