This system is made to ease the handling of the recipient and the donor blood using an encrypted login system in C++.
- g++ 9.2.0
- C++ 17
- Filesystem.h
- Json.hpp Github
g++ -std=c++17 main.cpp && a.exe
On execution of the software, the following options are presented:
- Admin Login
- Patient Login
- Exit
This method takes in the admin password and sends it to a dynamic encryption hashing algorithm to encrypt the password while decrypting the original stored password and dynamically re-hashing it to match with the entered password.
- Check Blood Availability
- Search Patient by Name
- Display all Patients
- Generate a Combined Report for all Hospital Patients
- View and Accept/Reject Blood Requests
- Change Admin Password(Encrypted)
This system function displays all the types of blood available with the hospital with their respective quantities.
It enables the admin to search for a patient by the first name. It returns all the patients matching the input first name string.
This method displays all the donor and well all recipient patients registered with the portal.
This method exports a comma-separated file for all the registered patients in the hospital system.
This function enables the admin to manage all the recipient requests that are registered in the system. all the requests are displayed along with the available quantities of blood.
This method takes admin input via a private variable encrypts the input and stores the input into a file for future references.
Patient Menu provides an option for the patient to either register as a new patient or instead log in to his/her account using his/her unique Patient Id.
- Donate
- Request
- Login
Any new patient will be prompted to add his/her personal as well as medical details for donating or requesting blood. On successful completion of the request or donate menu, a unique patient Id will be generated signifying the addition of the patient into the hospital system.
Any patient with a history with the hospital can use his earlier patient ID to log into the hospital system to request or donate blood without requiring to re-enter his/her personal details.
- Generate Report
- Request Blood
- Donate Blood
The patient can generate his/her report associated with the login id with all details exported to a comma-separated file.
The patient can Donate/Request more blood without having the need to re-enter all the personal details.