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

archived spo2 field to archived_spo2 #2397

Conversation

DraKen0009
Copy link
Contributor

Proposed Changes

renamed spo2 to

Associated Issue

Architecture changes

  • Remove this section if not used

Merge Checklist

  • Tests added/fixed
  • Linting Complete

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

@ohcnetwork/care-backend-maintainers @ohcnetwork/care-backend-admins

@DraKen0009 DraKen0009 requested a review from a team as a code owner August 25, 2024 10:32
@DraKen0009
Copy link
Contributor Author

@rithviknishad Fixed the migrations issue. Please check

care/abdm/utils/fhir.py Outdated Show resolved Hide resolved
Copy link

codecov bot commented Sep 3, 2024

Codecov Report

Attention: Patch coverage is 12.50000% with 7 lines in your changes missing coverage. Please review.

Project coverage is 65.38%. Comparing base (12afd7a) to head (d83368e).
Report is 5 commits behind head on develop.

Files with missing lines Patch % Lines
care/abdm/utils/fhir.py 0.00% 7 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

@@ -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": "%"},
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
{"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

Copy link
Member

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",)},
Copy link
Member

@sainak sainak Sep 6, 2024

Choose a reason for hiding this comment

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

Suggested change
{"name": "SPO2", "fields": ("archived_spo2",)},

we can drop this category, add it to the inactive types list

@vigneshhari vigneshhari merged commit b3ad350 into ohcnetwork:develop Sep 23, 2024
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Archive field spo2 in favour of ventilator_spo2 in the Daily Rounds model
5 participants