A comprehensive command-line interface (CLI) application designed to manage hospital operations efficiently. This project demonstrates the practical application of Nested Structures, Modular Functions, and Binary File Handling to manage patient and doctor records.
- Patient Registration: Store patient details including Name, Age, Disease, and Assigned Ward.
- Doctor Database: Maintain a record of available doctors and their specializations.
- Appointment Scheduling: Link patients to specific doctors.
- Persistent Storage: All records are saved in
.datfiles, allowing the system to reload data after a restart. - Record Search: Quickly find patient history using a unique Patient ID.
This system is architected using:
- Structures: To handle complex data types (e.g., a
Patientstruct containing aDatestruct for admission). - File I/O: Using
rb+,ab+, andwbmodes to ensure data is updated without overwriting the entire database. - Search & Sort: Simple algorithms to organize records by ID or Name.
.
βββ hospital_main.c # Main menu and execution flow
βββ records.dat # Binary file containing encrypted/raw data
βββ patient_logs.txt # Human-readable logs (optional)
βββ README.md # Project documentation