How chiraghariprasad/hospital-management-system works
This is a console-based hospital management system. The main workflow is staff menu interaction to maintain patient and doctor records, assign doctors, manage emergency-prioritized waiting, record visits, and save or reload hospital state. The README also describes a separate sample-data generator that assigns doctors and writes the same binary dataset. Source excerpts are partial, so links for unsampled main-program capabilities are limited to documented behavior rather than inferred helper calls.
Main entry points: hospital_management.c Console menu · generate_data.c Sample doctor assignment
Components 13
Hospital operations
- Console menu
hospital_management.c - Patient records
hospital_management.c - Doctor management
hospital_management.c - Specialty assignment
hospital_management.c - Priority waiting queue
hospital_management.c - Visit history
hospital_management.c - Doctor performance
hospital_management.c
Hospital state
- Patient and doctor state
hospital_management.c - Load and save data
hospital_management.c - hospital_data.bin
Sample data
- Sample-data generator
generate_data.c - Sample doctor assignment
generate_data.c
Other components
- Hospital staff
Connections 17
- Hospital staff → Console menu: uses menu
- Console menu → Load and save data: loads and saves
- Load and save data → hospital_data.bin: reads and writes
- Console menu → Patient records: dispatches patient tasks
- Console menu → Doctor management: dispatches doctor tasks
- Console menu → Priority waiting queue: dispatches queue tasks
- Console menu → Specialty assignment: dispatches assignment
- Console menu → Visit history: dispatches visit tasks
- Console menu → Doctor performance: dispatches reporting
- Patient records → Patient and doctor state: updates records
- Doctor management → Patient and doctor state: updates records
- Specialty assignment → Patient and doctor state: updates assignments
- Priority waiting queue → Patient and doctor state: queues patient IDs
- Visit history → Patient and doctor state: updates history
- Doctor performance → Patient and doctor state: reads counters
- Sample-data generator → Sample doctor assignment: assigns patients
- Sample doctor assignment → hospital_data.bin: writes dataset