-
Notifications
You must be signed in to change notification settings - Fork 340
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
track previous consultation #1907
Conversation
after running the migration, printed the consultation to verify values. just make sure dummy data is loaded before running this migration.
|
care/facility/migrations/0415_patientconsultation_previous_consultation.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^
Co-authored-by: Aakash Singh <mail@singhaakash.dev>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1907 +/- ##
=======================================
Coverage 61.83% 61.84%
=======================================
Files 221 221
Lines 12163 12165 +2
Branches 1735 1735
=======================================
+ Hits 7521 7523 +2
Misses 4334 4334
Partials 308 308 ☔ View full report in Codecov by Sentry. |
@Omkar76 fix lint issues |
and make sure that you have added precommit hook, run |
@sainak sorry, what's command to format without the hook. Edit: I linted by first running |
|
Proposed Changes
previous_consultation
and also to populate this columns values on older records.previous_consultation
when creating new consultation.Associated Issue
#1806
Implemented as per last comment from Rithvik, tracking previous consultation without considering the number of days <30 criteria. That's handled by another existing field
is_readmission
.Merge Checklist
/docs
Only PR's with test cases included and passing lint and test pipelines will be reviewed
@coronasafe/care-backend-maintainers @coronasafe/care-backend-admins