How asmee27/healthvault works
HVault is a healthcare-records and care-coordination product with separate patient and doctor web apps backed by a Spring service. The patient workflow covers account access, health dashboard, records and uploads, prescriptions, profile, and an AI assistant; doctors scan patient IDs, review records, and create prescriptions. Backend capabilities also include appointments, QR identity, medicine reminders, and push notifications. The README is only a placeholder, and many controllers and screens were not sampled, so some subsystem links are intentionally omitted rather than inferred.
Main entry points: src/App.jsx Patient routes · src/App.jsx Doctor routes · MedicalReportService.java Report handling · PrescriptionService.java Prescription handling
Components 31
Patient app
- Patient routes
Frontend/Patient/src/App.jsx - Access screens
Frontend/Patient/src/screens/LoginScreen.jsx - Health dashboard
Frontend/Patient/src/screens/DashboardScreen.jsx - Records and uploads
Frontend/Patient/src/screens/RecordsScreen.jsx - Prescriptions
Frontend/Patient/src/screens/PrescriptionsScreen.jsx - Patient profile
Frontend/Patient/src/screens/ProfileScreen.jsx - AI assistant
Frontend/Patient/src/screens/AIHealthAssistant.jsx - Push notifications
Frontend/Patient/src/services/pushNotificationService.js
Doctor app
- Doctor routes
Frontend/Doctor/src/App.jsx - Scan patient ID
Frontend/Doctor/src/screens/ScanPatientID.jsx - Patient overview
Frontend/Doctor/src/screens/PatientOverview.jsx - Write prescription
Frontend/Doctor/src/screens/AddPrescription.jsx
Backend services
- Authentication
Backend/hvault-backend/src/main/java/com/hvault/backend/service/AuthService.java - Report API
Backend/hvault-backend/src/main/java/com/hvault/backend/controller/MedicalReportController.java - Report handling
Backend/hvault-backend/src/main/java/com/hvault/backend/service/MedicalReportService.java - Prescription API
Backend/hvault-backend/src/main/java/com/hvault/backend/controller/PrescriptionController.java - Prescription handling
Backend/hvault-backend/src/main/java/com/hvault/backend/service/PrescriptionService.java - Push subscription API
Backend/hvault-backend/src/main/java/com/hvault/backend/controller/PushSubscriptionController.java - Web push delivery
Backend/hvault-backend/src/main/java/com/hvault/backend/service/WebPushService.java - AI service
Backend/hvault-backend/src/main/java/com/hvault/backend/service/AIService.java - Appointments
Backend/hvault-backend/src/main/java/com/hvault/backend/service/AppointmentService.java - QR identity
Backend/hvault-backend/src/main/java/com/hvault/backend/service/QRService.java - Medicine reminders
Backend/hvault-backend/src/main/java/com/hvault/backend/service/MedicineReminderScheduler.java
Persistence and files
- User records
Backend/hvault-backend/src/main/java/com/hvault/backend/repository/UserRepository.java - Medical reports
Backend/hvault-backend/src/main/java/com/hvault/backend/repository/MedicalReportRepository.java - Prescription records
Backend/hvault-backend/src/main/java/com/hvault/backend/repository/PrescriptionRepository.java - Reminder logs
Backend/hvault-backend/src/main/java/com/hvault/backend/repository/ReminderLogRepository.java - Push subscriptions
Backend/hvault-backend/src/main/java/com/hvault/backend/repository/PushSubscriptionRepository.java
Other components
- Patient
- Doctor
- Cloudinary storage
Connections 26
- Patient → Patient routes: uses
Frontend/Patient/src/App.jsx - Patient routes → Access screens: routes to
Frontend/Patient/src/App.jsx - Patient routes → Health dashboard: routes to
Frontend/Patient/src/App.jsx - Patient routes → Records and uploads: routes to
Frontend/Patient/src/App.jsx - Patient routes → Prescriptions: routes to
Frontend/Patient/src/App.jsx - Patient routes → Patient profile: routes to
Frontend/Patient/src/App.jsx - Patient routes → AI assistant: routes to
Frontend/Patient/src/App.jsx - Patient routes → Push notifications: uses
- Doctor → Doctor routes: uses
Frontend/Doctor/src/App.jsx - Doctor routes → Scan patient ID: routes to
Frontend/Doctor/src/App.jsx - Doctor routes → Patient overview: routes to
Frontend/Doctor/src/App.jsx - Doctor routes → Write prescription: routes to
Frontend/Doctor/src/App.jsx - Report API → Report handling: calls
Backend/hvault-backend/src/main/java/com/hvault/backend/controller/MedicalReportController.java - Report handling → Medical reports: reads and writes
Backend/hvault-backend/src/main/java/com/hvault/backend/service/MedicalReportService.java - Report handling → User records: looks up
Backend/hvault-backend/src/main/java/com/hvault/backend/service/MedicalReportService.java - Report handling → Cloudinary storage: uploads files
Backend/hvault-backend/src/main/java/com/hvault/backend/service/MedicalReportService.java - Prescription API → Prescription handling: calls
Backend/hvault-backend/src/main/java/com/hvault/backend/controller/PrescriptionController.java - Prescription handling → Prescription records: reads and writes
Backend/hvault-backend/src/main/java/com/hvault/backend/service/PrescriptionService.java - Prescription handling → User records: looks up
Backend/hvault-backend/src/main/java/com/hvault/backend/service/PrescriptionService.java - Prescription handling → Reminder logs: deletes logs
Backend/hvault-backend/src/main/java/com/hvault/backend/service/PrescriptionService.java - Authentication → User records: reads and writes
Backend/hvault-backend/src/main/java/com/hvault/backend/service/AuthService.java - Push subscription API → User records: looks up
Backend/hvault-backend/src/main/java/com/hvault/backend/controller/PushSubscriptionController.java - Push subscription API → Push subscriptions: reads and writes
Backend/hvault-backend/src/main/java/com/hvault/backend/controller/PushSubscriptionController.java - Push subscription API → Web push delivery: sends notification
Backend/hvault-backend/src/main/java/com/hvault/backend/controller/PushSubscriptionController.java - Records and uploads → Report API: requests reports
- Write prescription → Prescription API: submits prescription