How 0xfaysal/hospital-management-system works
A Windows-oriented, menu-driven hospital administration program. The operator selects doctor or patient record operations, manages treatment details, checks billing or views statistics; records are held in memory and persisted to text files. The implementation is concentrated in main.c, so components below describe its runtime responsibilities rather than separate modules. The source excerpts are partial; README-documented capabilities are included, but uncertain internal call wiring is omitted.
Main entry points: main.c Menu controller
Components 11
Console interaction
- Menu controller
main.c
Record management
- Doctor records
main.c - Patient records
main.c - Treatment details
main.c - Doctor data
main.c - Patient data
main.c
Billing and reporting
- Patient billing
main.c - Hospital statistics
main.c
Persistence
- Doctor text file
- Patient text file
Other components
- Hospital operator
Connections 13
- Hospital operator → Menu controller: selects options
- Menu controller → Doctor records: dispatches doctor actions
- Menu controller → Patient records: dispatches patient actions
- Menu controller → Patient billing: dispatches billing
- Menu controller → Hospital statistics: displays counts
- Doctor records → Doctor data: updates or searches
- Patient records → Patient data: updates or searches
- Patient records → Treatment details: captures treatment
- Patient billing → Patient data: reads bill data
- Hospital statistics → Doctor data: counts doctors
- Hospital statistics → Patient data: counts patients
- Menu controller → Doctor text file: loads and saves
- Menu controller → Patient text file: loads and saves