-
Notifications
You must be signed in to change notification settings - Fork 292
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
archived spo2 field to archived_spo2 #2397
archived spo2 field to archived_spo2 #2397
Conversation
@rithviknishad Fixed the migrations issue. Please check |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #2397 +/- ##
========================================
Coverage 65.38% 65.38%
========================================
Files 242 242
Lines 13976 13976
Branches 1937 1937
========================================
Hits 9138 9138
Misses 4455 4455
Partials 383 383 ☔ View full report in Codecov by Sentry. |
care/abdm/utils/fhir.py
Outdated
@@ -304,7 +314,7 @@ def _observations_from_daily_round(self, daily_round): | |||
), | |||
self._observation( | |||
"SpO2", | |||
{"value": daily_round.spo2, "unit": "%"}, | |||
{"value": daily_round.archived_spo2, "unit": "%"}, |
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.
{"value": daily_round.archived_spo2, "unit": "%"}, | |
{"value": daily_round.ventilator_spo2, "unit": "%"}, |
we should use ventilator_spo2 in place of the unused field
cc: @khavinshankar
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.
Yes 👍
@@ -116,7 +116,7 @@ class Command(BaseCommand): | |||
"name": "VITALS", | |||
"children": ( | |||
{"name": "TEMPERATURE", "fields": ("temperature",)}, | |||
{"name": "SPO2", "fields": ("spo2",)}, | |||
{"name": "SPO2", "fields": ("archived_spo2",)}, |
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.
{"name": "SPO2", "fields": ("archived_spo2",)}, |
we can drop this category, add it to the inactive types list
…ventilator_spo2' into archive-field-spo2-in-favour-of-ventilator_spo2
…-in-favour-of-ventilator_spo2
Proposed Changes
renamed spo2 to
Associated Issue
spo2
in favour ofventilator_spo2
in the Daily Rounds model #2334Architecture changes
Merge Checklist
Only PR's with test cases included and passing lint and test pipelines will be reviewed
@ohcnetwork/care-backend-maintainers @ohcnetwork/care-backend-admins