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

ICD-11 diagnosis cannot be both provisional and final #1673

Closed
wants to merge 7 commits into from

Conversation

GokulramGHV
Copy link
Member

Proposed Changes

  • Raised error when a diagnosis is in both provisional and final diagnosis list

Associated Issue

Merge Checklist

  • Tests added/fixed
  • Update docs in /docs
  • Linting Complete
  • Any other necessary step

Only PR's with test cases included and passing lint and test pipelines will be reviewed

@coronasafe/care-backend-maintainers @coronasafe/care-backend-admins

@codecov
Copy link

codecov bot commented Oct 13, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (c96bb13) 60.02% compared to head (d8eff9f) 60.17%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1673      +/-   ##
==========================================
+ Coverage   60.02%   60.17%   +0.14%     
==========================================
  Files         208      208              
  Lines       11319    11321       +2     
  Branches     1606     1607       +1     
==========================================
+ Hits         6794     6812      +18     
+ Misses       4301     4289      -12     
+ Partials      224      220       -4     
Files Coverage Δ
...e/facility/api/serializers/patient_consultation.py 60.35% <100.00%> (+3.81%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@rithviknishad rithviknishad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add tests

Copy link
Member

@rithviknishad rithviknishad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests need to pass too :)

Copy link
Member

@rithviknishad rithviknishad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sainak should we move the loading of icd11 to in-memory for tests to somewhere else?

or is it fine for now since we'll soon rewrite how we populate icd11/medibase to in memory in the first place?

@sainak
Copy link
Member

sainak commented Oct 20, 2023

@sainak should we move the loading of icd11 to in-memory for tests to somewhere else?

or is it fine for now since we'll soon rewrite how we populate icd11/medibase to in memory in the first place?

its fine for now

@nihal467
Copy link
Member

lgtm @vigneshhari can you review it

@rithviknishad
Copy link
Member

rithviknishad commented Oct 29, 2023

The model changes from #1690 will naturally solve the related issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants