This project is a command-line based clinic management system implemented in C. It allows administrative staff to manage patient records, schedule appointments with doctors, and make reservations for available time slots. It also provides users with the ability to view patient records and today's reservations.
- User authentication with password protection for administrative mode.
- Add new patient records with unique IDs.
- Edit existing patient records.
- Reserve available time slots with doctors.
- Cancel reservations.
- View all patients' records.
- View today's reservations.
To run this project, you need:
- C compiler (GCC or any C compiler that supports C99)
- Standard C libraries (stdio.h, stdlib.h, string.h)
- Clone the repository to your local machine.
git clone https://github.com/HongYue1/Clinic-Management-System.git
- Go inside the folder:
cd Clinic-Management-System
- Compile the source code using a compatible C compiler.
gcc main.c -o clinic
- Run the compiled binary.
in windows CMD type:
clinc
in windows powershell or linux:
./clinic
- Choose between Admin Mode or User Mode by entering the corresponding option:
- Admin Mode: Enter the provided password (default password: 1234) for access to administrative features.
- User Mode: No password is required. Users can view patient records and today's reservations.
In Admin Mode, the following features are available:
- Add new patient record: Enter the patient's name, age, gender, and a unique ID.
- Edit patient record: Enter the patient ID to modify their information.
- Reserve a slot with the doctor: Choose an available time slot and enter the patient ID.
- Cancel reservation: Enter the patient ID to cancel a reservation.
- Print all patients: Display all patient records.
- Print all reservations: Show all reservations made.
In User Mode, the following features are available:
- View patient record: Enter the patient ID to view their information.
- View today's reservations: Display all reservations for the current day.
Contributions are welcome! Feel free to open issues or submit pull requests to improve the project.
This project is licensed under the MIT License.
I would like to extend my appreciation to IMT and ITI for their assistance and support in teaching me the necessary skills to develop this project. Their guidance has been invaluable in helping me successfully complete this endeavor.