Added Diabetes test under Healthcare Programs and resolved the greetings bug on login #35
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes: Issue #34
Describe the add-ons or changes you've made 📃
Firstly I inserted a new option under Service dropdown named "Healthcare Programs".
Then I inserted a option named "Diabetes Test" under it.
For implementing it, I trained a model which I saved in ".keras" format and uploaded it in a new folder "dlModels" under models folder.
The main code lies in the "source\features\healthcarePrograms\diabetes_test.py" where I created functions containing the form to be filled by the user, loading the model and returning the test result.
I imported these functions in "main.py" and implemented it in a short & neat manner using "if statements".
During testing, I found a bug which greeted me every time when I change options, so I fixed the issue by adding a few statements it in "mains.py". Added a comment line before the new greetings code.
Before making the modifications, I gone through whole code and contributed in the same style of the project maintaining the project layout and all new created variables in "main.py" are named after diabetes test to avoid conflicts in future. Also the number of new variables are kept to minimum.
Type of change ☑️
What sort of change have you made:
How Has This Been Tested? ⚙️
I logged in using SuperAdmin, Admin, user and also a created a new ID to test out the features.
After login, the greetings were given only once.
On selecting the "Diabetes Test" from dropdown, a form appears in which I submitted the validation data of the model.
The correct results were shown in the desired manner.
Checklist: ☑️
Screenshots 📷
The userName, service type and Program
Diabetes Test Form
Example Result
Note to reviewers 📄
I created a new Service for Healthcare because I did not find Diabetes Test fit among Basic Programs. Moreover, I intend to contribute more in Healthcare section.