How klstudyhub/hospital-patient-record-system-hprs- works
HPRS is a small interactive hospital-records application. A user selects an operation in the command-line menu; the HPRS controller registers and searches patients, admits them to capacity-limited wards, updates bills, or requests occupancy analytics. Patient objects hold demographic, admission, and billing state, while Ward objects track assigned patients. Analytics turns ward occupancy into a displayed chart. The sampled code shows in-memory state only; no persistent database or discharge workflow is evident.
Main entry points: system.py HPRS Controller · main.py Menu · analytics.py Occupancy Analytics · patient.py Patient Record
Components 7
User Interface
- Menu
main.py
Patient Operations
- HPRS Controller
system.py - Patient Record
patient.py - Ward Capacity
ward.py
Analytics
- Occupancy Analytics
analytics.py
Other components
- User
- Matplotlib
Connections 7
- User → Menu: selects operation
- Menu → HPRS Controller: dispatches actions
- HPRS Controller → Patient Record: creates records
- HPRS Controller → Patient Record: displays search result
- HPRS Controller → Ward Capacity: assigns patient
- HPRS Controller → Occupancy Analytics: requests chart
- Occupancy Analytics → Matplotlib: renders chart