How koyaumamaheswar14-cmd/hospitalmanagementsystemh works
HMS is a patient-and-doctor hospital management application. Users authenticate and enter role-specific dashboards; patients can find doctors, book and track appointments, manage profiles, and view payments, while doctors manage appointments and patient information. The backend exposes Spring REST controllers, applies appointment and authentication logic, and persists records through JPA to MySQL. The README also describes medical reports, but the supplied tree shows no dedicated report implementation; unsampled page-level API wiring is therefore not asserted.
Main entry points: App.jsx Route application · UserRepository.java User repository · AppointmentController.java Appointment API · AppointmentRepository.java Appointment repository
Components 31
React application
- Route application
hms-react/src/App.jsx - Sign in and signup
hms-react/src/pages/Auth.jsx - Book appointments
hms-react/src/pages/BookAppointment.jsx - Doctor dashboard
hms-react/src/pages/DoctorDashboard.jsx - Manage appointments
hms-react/src/pages/ManageAppointments.jsx - Track appointments
hms-react/src/pages/TrackAppointment.jsx - Browse doctors
hms-react/src/pages/Doctors.jsx - Patient payments
hms-react/src/pages/PatientPayments.jsx - Patient dashboard
hms-react/src/pages/PatientDashboard.jsx - Patient profile
hms-react/src/pages/PatientDetails.jsx - View patients
hms-react/src/pages/ViewPatients.jsx - Medical reports
hms-react/src/pages
REST API
- Authentication API
hms-backend/src/main/java/com/mahesh/hms_backend/contollers/AuthController.java - Appointment API
hms-backend/src/main/java/com/mahesh/hms_backend/contollers/AppointmentController.java - Doctor API
hms-backend/src/main/java/com/mahesh/hms_backend/contollers/DoctorController.java - Payment API
hms-backend/src/main/java/com/mahesh/hms_backend/contollers/PaymentController.java
Domain services
- Authentication logic
hms-backend/src/main/java/com/mahesh/hms_backend/service/AuthService.java - Token generation
hms-backend/src/main/java/com/mahesh/hms_backend/service/JwtService.java
Persistence
- User records
hms-backend/src/main/java/com/mahesh/hms_backend/entity/User.java - Appointment records
hms-backend/src/main/java/com/mahesh/hms_backend/entity/Appointment.java - Status history
hms-backend/src/main/java/com/mahesh/hms_backend/entity/AppointmentStatusHistory.java - Doctor records
hms-backend/src/main/java/com/mahesh/hms_backend/entity/Doctor.java - Payment records
hms-backend/src/main/java/com/mahesh/hms_backend/entity/Payment.java - User repository
hms-backend/src/main/java/com/mahesh/hms_backend/repository/UserRepository.java - Appointment repository
hms-backend/src/main/java/com/mahesh/hms_backend/repository/AppointmentRepository.java - History repository
hms-backend/src/main/java/com/mahesh/hms_backend/repository/AppointmentStatusHistoryRepository.java - Doctor repository
hms-backend/src/main/java/com/mahesh/hms_backend/repository/DoctorRepository.java - Payment repository
hms-backend/src/main/java/com/mahesh/hms_backend/repository/PaymentRepository.java
Other components
- Patients
- Doctors
- MySQL database
Connections 35
- Patients → Route application: use
README.md - Doctors → Route application: use
README.md - Route application → Sign in and signup: routes to
hms-react/src/App.jsx - Route application → Book appointments: routes to
hms-react/src/App.jsx - Route application → Doctor dashboard: routes to
hms-react/src/App.jsx - Route application → Manage appointments: routes to
hms-react/src/App.jsx - Route application → Track appointments: routes to
hms-react/src/App.jsx - Route application → Browse doctors: routes to
hms-react/src/App.jsx - Route application → Patient payments: routes to
hms-react/src/App.jsx - Route application → Patient dashboard: routes to
hms-react/src/App.jsx - Route application → Patient profile: routes to
hms-react/src/App.jsx - Route application → View patients: routes to
hms-react/src/App.jsx - Patients → Medical reports: view
- Sign in and signup → Authentication API: sends signup/login
hms-react/src/pages/Auth.jsx - Authentication API → Authentication logic: delegates
hms-backend/src/main/java/com/mahesh/hms_backend/contollers/AuthController.java - Authentication API → User repository: reads and saves
hms-backend/src/main/java/com/mahesh/hms_backend/contollers/AuthController.java - Authentication logic → User repository: reads and saves
hms-backend/src/main/java/com/mahesh/hms_backend/service/AuthService.java - Authentication logic → Token generation: generates token
hms-backend/src/main/java/com/mahesh/hms_backend/service/AuthService.java - Appointment API → Appointment repository: reads and saves
hms-backend/src/main/java/com/mahesh/hms_backend/contollers/AppointmentController.java - Appointment API → History repository: saves timeline
hms-backend/src/main/java/com/mahesh/hms_backend/contollers/AppointmentController.java - Appointment API → User repository: queries users
hms-backend/src/main/java/com/mahesh/hms_backend/contollers/AppointmentController.java - Appointment API → Payment repository: checks payment
hms-backend/src/main/java/com/mahesh/hms_backend/contollers/AppointmentController.java - Doctor API → Doctor repository: queries doctors
hms-backend/src/main/java/com/mahesh/hms_backend/contollers/DoctorController.java - Doctor API → User repository: queries users
hms-backend/src/main/java/com/mahesh/hms_backend/contollers/DoctorController.java - Payment API → Payment repository: reads and saves
hms-backend/src/main/java/com/mahesh/hms_backend/contollers/PaymentController.java - Payment API → Appointment repository: reads and updates
hms-backend/src/main/java/com/mahesh/hms_backend/contollers/PaymentController.java - User repository → User records: persists
hms-backend/src/main/java/com/mahesh/hms_backend/repository/UserRepository.java - Appointment repository → Appointment records: persists
hms-backend/src/main/java/com/mahesh/hms_backend/repository/AppointmentRepository.java - History repository → Status history: persists
hms-backend/src/main/java/com/mahesh/hms_backend/repository/AppointmentStatusHistoryRepository.java - Doctor repository → Doctor records: persists
hms-backend/src/main/java/com/mahesh/hms_backend/repository/DoctorRepository.java - Payment repository → Payment records: persists
hms-backend/src/main/java/com/mahesh/hms_backend/repository/PaymentRepository.java - User repository → MySQL database: JPA persistence
README.md - Appointment repository → MySQL database: JPA persistence
README.md - Doctor repository → MySQL database: JPA persistence
README.md - Payment repository → MySQL database: JPA persistence
README.md