Requirements
Python (latest version preferable)
Django (latest version preferable)
IDE (Visual Studio Code preferable)
and a browser is needed to run the project.
If you don't know how to create a Django local virtual environment please click the link to know about.
Abstract
Doctor Appointment Booking system using Django framework in python, along with Html and Css. Django not only makes our work easy which also provides the end user a user-friendly visualisation of what is happening.
The beauty of Django is that it provides an in-built database. So there is no need to create a database connection that has to be created in this project.
One of Django's features is that we can split users into groups. Here we are going to split user’s into three groups called Admin, Doctor and Patient group. For a new user patient group is going to be a default one, if the user belongs to a doctor or admin administrative person has to put the user in that specified group.
Django also provides a default user registration and authentication system within it. With the help of the group's, user's will be redirected to their respective pages. For Example If the user belongs to a patient group that user will be redirected to the Patient Registration Page.
Feature Of Work
While filling the patient's registration form the user has to choose the appointment date and a doctor from the available doctor's drop down and the details will be shown to the particular doctor and the doctor makes the decision whether to schedule or reject the requested appointment and an email will sent to the patient's Email ID to know about the appointment details.
Procedure
Step 1: Run the Django project and open the URL generated in IDE’s terminal in a browser. Now, in the home page we get to view the register and login options.
Step 2: Once a user account is changed to a doctor's group that doctor has to fill the Doctor’s Registration Form.
Step 3: While filling the patient's registration form the user has to choose the appointment date and a doctor from the available doctor's drop down.
Step 4: In the doctor module the doctor has to approve or reject the requested patient's appointment.
Step 5: Once the appointment has been confirmed or rejected a mail will be generated and sent to the patient's mail-id.
Problem Statement
The only impediment about this project is one patient can request as many appointment's as he/she wants and there is no restriction for a patient user to wait until the requested result arrives he/she can be request appointment's to multiple doctor's at the same time.
views.py
models.py
urls.py
forms.py
decorators.py
And to send email enter you Mail ID in EMAIL_HOST_USER in settings.py and the enter your email app password in EMAIL_HOST_PASSWORD in settings.py. If you doesn't have a email app password sign-in into your Google Account and create a app password for Email and enter here. And enter you Mail ID in views.py in the 'email_from' field.
Conclusion
Thus the Doctor Appointment Booking System has been successfully created and implemented by including the required fundamental features.
Click here to see full project code in GitHub Repositorie.
0 Comments