Skip to content

A command-line based clinic management system implemented in C.

License

Notifications You must be signed in to change notification settings

HongYue1/Clinic-Management-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Clinic Management System

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.

Features

  • 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.

System Requirements

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)

Instructions

  1. Clone the repository to your local machine.
 git clone https://github.com/HongYue1/Clinic-Management-System.git
  1. Go inside the folder:
cd Clinic-Management-System
  1. Compile the source code using a compatible C compiler.
gcc main.c -o clinic
  1. Run the compiled binary.

in windows CMD type:

clinc

in windows powershell or linux:

./clinic
  1. 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.

Usage

Admin Mode

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.

User Mode

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.

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests to improve the project.

License

This project is licensed under the MIT License.

Acknowledgments

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.

About

A command-line based clinic management system implemented in C.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages