This browser-based patient registration application allows patients to upload their details along with their scanned photo while being at their homes. On the patient's arrival at the hospital, only facial recognition is sufficient as registration information is already there in the app database. Face recognition at hospital also ensures that the patient is personally present and so token cab be issued for queuing outside the relevant room. This little solution can save substantial time at the registration desk, thereby improving the overall efficiency and reduce patient's sufferings.
There are 3 major features of the application -
- Patient Registration from home based on personal details, aadhar card and a scanned photo
- Patient check-in at the hospital using face recognition
- Hospital administration's option to view the registration data
- Clone the repository
git clone https://github.com/kritij19/Hospital_CheckIn.git
2a. Create a Virtual Environment (Optional)
python -m venv venv
2b. Activate the virtual environment
.\venv\Scripts\activate
- Install the requirements and dependancies
pip install -r requirements.txt
- Run
setup_db.sql
in your MySQL Server
- Run the following command
python registration\registration.py -u <MySQL_database_user> -p <MySQL_database_password>
- View the application on
http://127.0.0.1:5000/
Note: You will have to stop the execution of one application to access the other. (For windows: Ctrl + C)
- Run the following command
python face_recognition/face_recognition.py -u <MySQL_database_user> -p <MySQL_database_password>
- View the application on
http://127.0.0.1:5000/
Note: You will have to stop the execution of one application to access the other. (For windows: Ctrl + C)
- Run the following command
python hospital_admin/hospital_admin.py -u <MySQL_database_user> -p <MySQL_database_password>
- View the application on
http://127.0.0.1:5000/
- Fill up the form with personal details, Aadhar card and a scanned photo of the patient. After filling all details, press Submit.
- On Submit, the application validates if Aadhar number exists in the database, in that case, gives an error message
- If the Aadhar number does not exist, checks if the photo uploaded is proper, then uses Azure Face API to create a person id corresponding to the face in the image. All relevant details are then stored in the database and a success message is shown to the user
- During hospital check-in the patient (user) has to cpature his photo using the webcam.
- Once picture is clicked, it shows on the right hand side, and then click on Submit to compare
- If the photo captured at the hospital matches with the photo uploaded earlier, then a success message is shown
- The hospital administration staff has the option to view patients data. For this, they have to register themselves in the app one time.
- Once Registration is done, they need to login using the credentials used during registration
- The administrator can see all patients' data in a tabular format
- In case they want to view a particular patient's data, then they can click on the view button for that row