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

add fields for push score #987

Closed
wants to merge 1 commit into from
Closed

Conversation

iamsdas
Copy link
Contributor

@iamsdas iamsdas commented Aug 21, 2022

Proposed Changes

Add fields required for push score calculation in daily rounds:

  • Length - number
  • Width - number
  • Exudate Amount - ENUM
  • Tissue Type - ENUM
  • Description - String
  • Push score - number, calculated on the backend

fixes: #986

@coronasafe/code-reviewers

@iamsdas iamsdas requested a review from a team as a code owner August 21, 2022 11:22
@sonarcloud
Copy link

sonarcloud bot commented Aug 21, 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 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@codecov-commenter
Copy link

Codecov Report

Merging #987 (83d38a3) into master (6bd66bf) will decrease coverage by 1.41%.
The diff coverage is 62.82%.

@@            Coverage Diff             @@
##           master     #987      +/-   ##
==========================================
- Coverage   54.02%   52.61%   -1.42%     
==========================================
  Files         182      182              
  Lines        8990     9036      +46     
==========================================
- Hits         4857     4754     -103     
- Misses       4133     4282     +149     
Impacted Files Coverage Δ
care/facility/api/serializers/daily_round.py 37.03% <ø> (ø)
care/facility/api/viewsets/patient.py 47.90% <0.00%> (-0.34%) ⬇️
care/facility/models/file_upload.py 68.88% <0.00%> (ø)
care/facility/models/json_schema/asset.py 100.00% <ø> (ø)
care/facility/models/patient.py 88.09% <ø> (-6.75%) ⬇️
care/users/api/viewsets/users.py 42.94% <0.00%> (-12.90%) ⬇️
care/utils/assetintegration/onvif.py 38.23% <ø> (+1.09%) ⬆️
care/facility/api/viewsets/file_upload.py 48.57% <15.38%> (-2.95%) ⬇️
care/facility/models/daily_round.py 84.68% <62.50%> (-3.74%) ⬇️
care/facility/api/serializers/file_upload.py 45.65% <100.00%> (+3.12%) ⬆️
... and 18 more

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

@@ -418,6 +439,15 @@ class InsulinIntakeFrequencyType(enum.Enum):
default=list, validators=[JSONFieldSchemaValidator(NURSING_PROCEDURE)]
)

length = models.FloatField(default=0.0, validators=[MinValueValidator(0)])
Copy link
Member

Choose a reason for hiding this comment

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

As per ohcnetwork/care_fe#3432, each section must have these values, so we might have to dump these as a json. storing these as columns only allows us to store one instance of the value.

Copy link
Member

Choose a reason for hiding this comment

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

@aparnacoronasafe Discuss with @iamsdas to understand exactly what needs to be stored and how it needs to be represented. ( I might be wrong and this might be correct )

Copy link
Member

Choose a reason for hiding this comment

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

@iamsdas @vigneshhari Yes, there will be multiple windows with these parameters, one for each pressure sore. Added clarification on the issue

@iamsdas
Copy link
Contributor Author

iamsdas commented Aug 25, 2022

Closing this PR, as will make a new one from the beginning.

@iamsdas iamsdas closed this Aug 25, 2022
@iamsdas iamsdas deleted the pressure branch September 5, 2022 05:59
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.

Pressure Sore: Enhancement (PUSH score)
4 participants