How itsantu/hospital-management works
This is a Java command-line hospital management application backed by MySQL. A user selects menu actions in HospitalManagement: patient and doctor operations validate or display records, while appointment booking checks both IDs and the doctor’s availability before inserting an appointment. The code shows JDBC queries issued directly by these classes, rather than a separate persistence layer. The README also documents the three database tables and the supported menu capabilities; unsampled integrations or additional behavior are not inferred.
Main entry points: HospitalManagement.java Menu and connection · Patient.java Patient operations · Doctors.java Doctor operations
Components 7
CLI application
- Menu and connection
src/HospitalManagement.java
Record operations
- Patient operations
src/Patient.java - Doctor operations
src/Doctors.java
Appointment booking
- Appointment booking
src/HospitalManagement.java - Doctor availability check
src/HospitalManagement.java
Other components
- CLI user
- Hospital MySQL database
Connections 12
- CLI user → Menu and connection: selects actions
README.md - Menu and connection → Patient operations: dispatches patient actions
src/HospitalManagement.java - Menu and connection → Doctor operations: dispatches doctor view
src/HospitalManagement.java - Menu and connection → Appointment booking: dispatches booking
src/HospitalManagement.java - Menu and connection → Hospital MySQL database: opens JDBC connection
src/HospitalManagement.java - Patient operations → Hospital MySQL database: queries patient records
src/Patient.java - Doctor operations → Hospital MySQL database: queries doctor records
src/Doctors.java - Appointment booking → Patient operations: validates patient ID
src/HospitalManagement.java - Appointment booking → Doctor operations: validates doctor ID
src/HospitalManagement.java - Appointment booking → Doctor availability check: checks availability
src/HospitalManagement.java - Doctor availability check → Hospital MySQL database: checks appointments
src/HospitalManagement.java - Appointment booking → Hospital MySQL database: inserts appointment
src/HospitalManagement.java