How srishtisrivastava23/hospital_management works
This is a terminal-based hospital management system. An administrator logs in, then the CLI dispatches patient, appointment, diagnosis, or billing operations. These modules collect or display records and persist them in text files; patient records can also be exported to CSV. The sampled billing code generates bills, while the README also mentions viewing bills, which is not visible in the sampled implementation. Edges reflect calls in the excerpts or explicitly documented behavior; unsampled features are not inferred.
Main entry points: main.cpp Login and menu · Patient.cpp Patient CSV export · Appointment.cpp Appointments · diagnosis.cpp Diagnosis
Components 12
CLI access
- Login and menu
main.cpp
Patient care
- Patient records
Patient.cpp - Appointments
Appointment.cpp - Diagnosis
diagnosis.cpp - Patient CSV export
Patient.cpp
Billing
- Bill generation
billing.cpp
File records
- Patient file
patients.txt - Appointment file
appointments.txt - Diagnosis file
diagnosis.txt - Bill file
bills.txt - Exported CSV
patients.csv
Other components
- Administrator
Connections 12
- Administrator → Login and menu: uses
README.md - Login and menu → Patient records: dispatches
main.cpp - Login and menu → Appointments: dispatches
main.cpp - Login and menu → Diagnosis: dispatches
main.cpp - Login and menu → Bill generation: dispatches
main.cpp - Login and menu → Patient CSV export: dispatches
main.cpp - Patient records → Patient file: reads and writes
Patient.cpp - Appointments → Appointment file: reads and writes
Appointment.cpp - Diagnosis → Diagnosis file: reads and writes
diagnosis.cpp - Bill generation → Bill file: writes
billing.cpp - Patient CSV export → Patient file: reads
Patient.cpp - Patient CSV export → Exported CSV: writes
Patient.cpp