The Hospital Appointment Management System is a comprehensive solution that leverages Africa's Talking APIs to facilitate seamless hospital appointment booking. This system allows patients to log into their respective hospital's platform and access information about available doctor time slots, types of services offered, and the doctors providing those services.
To access the website dashboard, please refer to the WebsiteDashboard.md file. For a detailed view of the mobile user interface screens, please consult the MobileUIDashboard.md file.
The appointment booking process involves the following steps:
- The patient dials a specified USSD code, such as ()384()743106(#), on their phone.
- The patient selects the desired service from the available options.
- The patient selects a doctor who is available to provide an appointment for the chosen service.
- If the suggested time slot is convenient for the patient, they confirm their selection.
- Once the above steps are successfully completed, a message containing the generated booking code is sent to the patient's phone number. This code serves as verification for the patient's appointment and is used by both the doctor and the hospital.
Follow the steps below to set up and run the web app:
-
Clone the repository:
git clone https://github.com/john-thuo1/hospitalbookingmanagementsystem.git
-
Change into the project directory:
cd djangohospitalappointment
-
Create a virtual environment:
python3 -m venv venv
-
Activate the virtual environment:
- Windows:
venv\Scripts\activate
- Windows:
-
Install the required dependencies:
pip install -r requirements.txt
-
Create the database:
python manage.py makemigrations
-
Apply database changes:
python manage.py migrate
-
Create a Ngrok URL: Please refer to this link for detailed instructions: Integrating Africa's Talking APIs into the Hospital Management System Ensure that you do not close or quit the Ngrok shell during this process.
-
Configure your Africa's Talking USSD API: Please follow this link for detailed instructions: Integrating Africa's Talking APIs into the Hospital Management System
-
Start the server:
python manage.py runserver <port_number>
For example:
python manage.py runserver 3000
-
Access the site on your localhost: Follow the instructions provided on the home page to begin using the site.