How shri2320/healthbridge works
The repository combines a React hospital portal with a Spring Boot API. Users select a patient, doctor, admin, or developer role; the frontend routes to the corresponding screens, while patient and doctor API workflows authenticate users and support appointments, medical documents, and profiles. The backend also has admin and developer management areas visible in the tree. Backend links beyond the excerpted patient and doctor services are shown only where the source index or frontend routing supports them; the README is empty.
Main entry points: App.jsx Role router · PatientService.java Patient workflows · DoctorService.java Doctor workflows · api.js HTTP API client
Components 21
Web portal
- Role router
project/src/App.jsx - Role selection
project/src/pages/LandingPage.jsx - Patient screens
project/src/pages/patient/PatientAuth.jsx - Patient dashboard
project/src/pages/patient/PatientDashboard.jsx - Doctor screens
project/src/pages/doctor/DoctorDashboard.jsx
API access
- HTTP API client
project/src/services/api.js - Patient endpoints
Hospital_Management/hospital-management-system/src/main/java/com/hospital/controller/PatientController.java - Doctor endpoints
Hospital_Management/hospital-management-system/src/main/java/com/hospital/controller/DoctorController.java
Patient and doctor care
- Patient workflows
Hospital_Management/hospital-management-system/src/main/java/com/hospital/service/PatientService.java - Doctor workflows
Hospital_Management/hospital-management-system/src/main/java/com/hospital/service/DoctorService.java - Appointment records
Hospital_Management/hospital-management-system/src/main/java/com/hospital/model/Appointment.java - Medical documents
Hospital_Management/hospital-management-system/src/main/java/com/hospital/model/MedicalDocument.java - File storage
Hospital_Management/hospital-management-system/src/main/java/com/hospital/service/FileStorageService.java - Relational database
Administration
- Admin screens
project/src/pages/admin/AdminDashboard.jsx - Developer registration
project/src/pages/developer/DeveloperRegister.jsx - Admin endpoints
Hospital_Management/hospital-management-system/src/main/java/com/hospital/controller/AdminController.java - Hospital administration
Hospital_Management/hospital-management-system/src/main/java/com/hospital/service/AdminService.java - Developer endpoints
Hospital_Management/hospital-management-system/src/main/java/com/hospital/controller/DeveloperController.java - Developer workflows
Hospital_Management/hospital-management-system/src/main/java/com/hospital/service/DeveloperService.java
Other components
- Portal user
Connections 21
- Portal user → Role router: opens
project/src/App.jsx - Role router → Role selection: renders
project/src/App.jsx - Role router → Patient screens: routes to
project/src/App.jsx - Role router → Patient dashboard: routes to
project/src/App.jsx - Role router → Doctor screens: routes to
project/src/App.jsx - Role router → Admin screens: routes to
project/src/App.jsx - Role router → Developer registration: routes to
project/src/App.jsx - Patient endpoints → Patient workflows: calls
Hospital_Management/hospital-management-system/src/main/java/com/hospital/controller/PatientController.java - Patient workflows → Relational database: reads and writes
Hospital_Management/hospital-management-system/src/main/java/com/hospital/service/PatientService.java - Patient workflows → File storage: stores uploads
Hospital_Management/hospital-management-system/src/main/java/com/hospital/service/PatientService.java - Patient workflows → Appointment records: creates and reads
Hospital_Management/hospital-management-system/src/main/java/com/hospital/service/PatientService.java - Patient workflows → Medical documents: creates and reads
Hospital_Management/hospital-management-system/src/main/java/com/hospital/service/PatientService.java - Doctor workflows → Relational database: reads and writes
Hospital_Management/hospital-management-system/src/main/java/com/hospital/service/DoctorService.java - Doctor workflows → Appointment records: updates and lists
Hospital_Management/hospital-management-system/src/main/java/com/hospital/service/DoctorService.java - Doctor workflows → Medical documents: loads patient files
Hospital_Management/hospital-management-system/src/main/java/com/hospital/service/DoctorService.java - Admin endpoints → Hospital administration: delegates
- Hospital administration → Relational database: manages records
- Developer endpoints → Developer workflows: delegates
- Patient screens → HTTP API client: uses
- Patient dashboard → HTTP API client: uses
- Doctor screens → HTTP API client: uses