https://github.com/mo7ammedd/hospital-system
Hospital Management System is a console-based C++ application that helps manage patient and doctor
https://github.com/mo7ammedd/hospital-system
cpp filesystem mangement-system
Last synced: 12 months ago
JSON representation
Hospital Management System is a console-based C++ application that helps manage patient and doctor
- Host: GitHub
- URL: https://github.com/mo7ammedd/hospital-system
- Owner: Mo7ammedd
- License: mit
- Created: 2023-05-03T20:59:50.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-05T00:46:06.000Z (over 2 years ago)
- Last Synced: 2025-03-29T03:41:27.988Z (about 1 year ago)
- Topics: cpp, filesystem, mangement-system
- Language: C++
- Homepage:
- Size: 5.44 MB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hospital Management System
The Hospital Management System is a console-based C++ application that helps manage patient and doctor information in a hospital. It allows users to add, read, search, update, and delete records for patients and doctors. The application uses file handling to store and retrieve data from text files.
## How to use the application
1. When you run the program, you will be presented with a main menu with the following options:
```
+----------------------------+
+ HOSPITAL MANAGEMENT SYSTEM +
+----------------------------+
[1]-Enter Patients Department
[2]-Enter Doctors Department
[3]-Exit
```
2. Choose the desired option by entering the corresponding number.
### Enter Patients Department
If you choose option 1, you will be directed to the Patients Department section. In this section, you can perform the following actions:
1. Write Patient Record: Add patient information and save it to the "Patient.txt" file.
2. Read Patient Records: Display the patient information stored in the "Patient.txt" file.
3. Search for a Patient Record: Search for a patient by last name or ID.
4. Update a Patient Record: Modify the information of a specific patient.
5. Delete a Patient Record: Remove a patient's information from the records.
### Enter Doctors Department
If you choose option 2, you will be directed to the Doctors Department section. In this section, you can perform the following actions:
1. Write Doctor Record: Add doctor information and save it to the "Doctor.txt" file.
2. Read Doctor Records: Display the doctor information stored in the "Doctor.txt" file.
3. Search for a Doctor Record: Search for a doctor by last name or ID.
4. Update a Doctor Record: Modify the information of a specific doctor.
5. Delete a Doctor Record: Remove a doctor's information from the records.
### Exit
If you choose option 3, the program will terminate, and the application will close.
## Important Notes
- Patient and doctor information is stored in separate text files: "Patient.txt" and "Doctor.txt".
- When searching for a patient or doctor, you can use their last name or ID to find the record.
- The application provides basic data validation for blood group entry to ensure it is a valid blood group type.
## How to Compile and Run
Ensure you have a C++ compiler (e.g., GCC) installed on your system.
1. Save the provided C++ code in a file named "hospital_management_system.cpp".
2. Open a terminal or command prompt and navigate to the directory containing the file.
3. Compile the code using the C++ compiler. For example, with GCC:
```
g++ hospital_management_system.cpp -o hospital_management_system
```
4. Run the compiled program:
```
./hospital_management_system
```
Now you can interact with the Hospital Management System application and manage patient and doctor records.