How rare21ism/hospital-management-system works
This is a Java Swing hospital-management desktop application. A user signs in against the Users table, then the role-bearing menu opens patient, doctor, or billing screens; those screens perform database-backed record management, and billing associates charges with patients. Patient deletion also removes associated bills transactionally. The excerpts show these screens issuing SQL through DBConnection; the tree also contains PasswordUtil and ComboItem, but their runtime use is not established by the sampled source. MySQL is configured locally in DBConnection.
Main entry points: MainMenu.java Role menu · DBConnection.java JDBC connection · LoginFrame.java Login · PatientManagement.java Patient management
Components 8
Clinical Records
- Patient management
src/com/hms/PatientManagement.java - Doctor management
src/com/hms/DoctorManagement.java
Billing
- Bill management
src/com/hms/BillManagement.java
Persistence
- JDBC connection
src/com/hms/DBConnection.java - Hospital MySQL
Other components
- Hospital staff
Connections 16
- Hospital staff → Login: enters credentials
- Login → JDBC connection: requests connection
- Login → Hospital MySQL: checks credentials
- Login → Role menu: opens with role
- Hospital staff → Role menu: chooses section
- Role menu → Patient management: opens screen
- Role menu → Doctor management: opens screen
- Role menu → Bill management: opens screen
- Patient management → JDBC connection: requests connection
- Doctor management → JDBC connection: requests connection
- Bill management → JDBC connection: requests connection
- JDBC connection → Hospital MySQL: connects via JDBC
- Patient management → Hospital MySQL: reads and writes patients
- Patient management → Hospital MySQL: deletes related bills
- Doctor management → Hospital MySQL: manages doctors
- Bill management → Hospital MySQL: manages bills