This is my Phase 3 Project, where I get to develop a back end CLI application for Tiba Bora Hospital, an application that helps the hospital to store records of information about doctors, nurses, patients and wards. The Powerpoint slides can be found here
- Python v 3.10.*
- alembic
- sqlalchemy
- ipdb
- faker
- click
To set up this project on your local machine:
-
Run
git clone [email protected]:joelnyongesa/Phase-3-Week-3-Code-Challenge.git
-
Navigate into the project directory via terminal, and create a virtual environment and install the dependencies
pipenv install && pipenv shell
-
Once everything is done, navigate into the
lib/
directory. Make themodels.py
file executable using the commandchmod a+x models.py
. Then run themodels.py
script using./models.py
Once the project is set up, you should see the menu below:
From the menu provided, you can:
-
See all information about doctors -- View Nurses assigned to a specific doctor, as well as patients assigned to a specific doctor. Similarly, you can view the information about a specific doctor.
-
See the information about nurses -- View which doctor a particular nurse reports to, view the patients assigned to a specific nurse, and view the details of a specific nurse.
-
See information about patients -- View the doctor and nurses who are tasked with serving the patient, view details of a specific patient as well as the ward where the patient was admitted to.
-
See information about wards -- View details of a specific ward, also view the number of patients admitted in a specific ward at any given time.
-
Once you are done, you may press
Q
orq
to exit the application
Made by Joel Nyongesa
Feel free to reach out via this email or this email
Copyright (c) 2023 Joel Nyongesa