How dantondanvin/hospital-management-system works
This is a terminal-based hospital patient and bed management program. A user enters through password setup, reaches the main menu, and can register, edit, display, or delete patient records, inspect the patient list and count, or check bed availability. Patient IDs correspond to slots in a fixed-capacity, in-memory patient store; bed availability is tracked alongside those records. The excerpts show menu dispatch and direct state access, but not persistent storage. README-listed capabilities are represented where supported; the sampled code is incomplete.
Main entry points: HospitalManagementSystem.c Patient menu
Components 11
Menus and Access
- Password entry
HospitalManagementSystem.c - Main menu
HospitalManagementSystem.c - Patient menu
HospitalManagementSystem.c
Patient Records
- Patient and bed state
HospitalManagementSystem.c - Register patient
HospitalManagementSystem.c - Edit or display patient
HospitalManagementSystem.c - Delete patient
HospitalManagementSystem.c - Patient directory
HospitalManagementSystem.c - Patient count
HospitalManagementSystem.c
Bed Capacity
- Bed availability
HospitalManagementSystem.c
Other components
- Hospital staff
Connections 15
- Hospital staff → Password entry: enters password
- Password entry → Main menu: continues to
- Main menu → Patient menu: opens records
- Main menu → Bed availability: checks beds
- Patient menu → Register patient: dispatches
- Patient menu → Edit or display patient: dispatches
- Patient menu → Delete patient: dispatches
- Patient menu → Patient directory: dispatches
- Patient menu → Patient count: dispatches
- Register patient → Patient and bed state: writes record
- Edit or display patient → Patient and bed state: reads or edits
- Delete patient → Patient and bed state: deletes record
- Patient directory → Patient and bed state: reads records
- Patient count → Patient and bed state: reads count
- Bed availability → Patient and bed state: reads availability