Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat (patientconsultation): added icd11_provisional_diagnoses #1022

Merged
merged 9 commits into from
Sep 15, 2022

Conversation

khavinshankar
Copy link
Member

Added provisional diagnosis field support in patient consultation

Proposed Changes

  • added icd11_provisional_diagnoses array field in patient consultation and made migrations
  • added icd11_provisional_diagnoses and icd11_provisional_diagnoses_object to the api response in patient consultation

Associated Issue

@coronasafe/code-reviewers

Merge Checklist

  • Tests added/fixed
  • Update docs in /docs
  • Linting Complete

@khavinshankar khavinshankar requested a review from a team as a code owner September 13, 2022 02:04
@khavinshankar khavinshankar added the In progress Work in progress label Sep 13, 2022
@codecov-commenter
Copy link

Codecov Report

Merging #1022 (e89f9f7) into master (99f3732) will increase coverage by 3.17%.
The diff coverage is 16.66%.

@@            Coverage Diff             @@
##           master    #1022      +/-   ##
==========================================
+ Coverage   52.67%   55.85%   +3.17%     
==========================================
  Files         183      171      -12     
  Lines        8937     8554     -383     
  Branches        0     1475    +1475     
==========================================
+ Hits         4708     4778      +70     
+ Misses       4229     3727     -502     
- Partials        0       49      +49     
Impacted Files Coverage Δ
...e/facility/api/serializers/patient_consultation.py 32.04% <11.76%> (-2.11%) ⬇️
care/facility/models/patient_consultation.py 95.23% <100.00%> (-1.54%) ⬇️
care/utils/filters/choicefilter.py 75.00% <0.00%> (-6.25%) ⬇️
config/urls.py 78.26% <0.00%> (-4.35%) ⬇️
config/settings/base.py 90.29% <0.00%> (-3.41%) ⬇️
care/utils/models/jsonfield.py 23.07% <0.00%> (-2.57%) ⬇️
care/facility/models/shifting.py 76.78% <0.00%> (-1.79%) ⬇️
care/facility/models/resources.py 76.78% <0.00%> (-1.79%) ⬇️
care/facility/models/patient_sample.py 71.05% <0.00%> (-1.32%) ⬇️
... and 40 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@vigneshhari
Copy link
Member

Can you abstract the methods used to interact with the icd11 objects?

khavinshankar and others added 8 commits September 15, 2022 07:38
* cleanup admitted_to

* moved BedType out of med model

* fixed CSV fields for patient summary

* fix patent summarization

* avoid Redefining built-in 'filter'

* refactor

* removed admitted_to reference from tests

* revert the removal of bed counts from district patient summary

* remove setup.cfg

* run pre-commit

Co-authored-by: Ashesh3 <3626859+Ashesh3@users.noreply.github.com>
…d Consultation (#1007)

* step 1. deprecate covid category
renames existing `CATEGORY_CHOICES` to `COVID_CATEGORY_CHOICES`

* step 1. deprecate covid category
rename `category` and `patient_category` in DailyRounds and Consultation to `deprecated_covid_category`

* step 2: make migrations for deprecating patient cateogry to covid category

* step 3: adds new `CATEGORY_CHOICES`

* step 3: use new `CATEGORY_CHOICES` wherever required

* step 4: make migrations for new fields
- Adds `patient_category` in DailyRounds
- Adds `category` in Consulation

* empty commit
@sonarcloud
Copy link

sonarcloud bot commented Sep 15, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@vigneshhari vigneshhari merged commit 3d8dfa1 into master Sep 15, 2022
@sainak sainak deleted the provisional-diagnosis branch September 22, 2022 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
In progress Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants