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

Set Minimum Value to 0 for Respiratory Rate Field in DailyRound Model #1476

Merged
merged 3 commits into from
Jul 28, 2023

Conversation

Ashesh3
Copy link
Member

@Ashesh3 Ashesh3 commented Jul 26, 2023

Required for: coronasafe/care_fe#5931

Proposed Changes

This PR modifies the validators for the resp field in the daily_round.py model. Previously, the resp field had a minimum valid value of 10, which may not have accommodated all possible real-world values for respiratory rates.

  • The MinValueValidator for the resp field has been changed from 10 to 1.

The MaxValueValidator remains unchanged at 70. This change allows for a wider range of valid inputs, increasing the flexibility of our data collection.

This change does not affect any other part of the daily_round.py model, or any other models in the application.

Associated Issue

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

@sainak sainak added the P1 High priority; urgent label Jul 26, 2023
@Ashesh3 Ashesh3 changed the title Set Minimum Value to 0 for Respiratory Rate Field in DailyRound Model Set Minimum Value to 1 for Respiratory Rate Field in DailyRound Model Jul 26, 2023
@Ashesh3 Ashesh3 changed the title Set Minimum Value to 1 for Respiratory Rate Field in DailyRound Model Set Minimum Value to 0 for Respiratory Rate Field in DailyRound Model Jul 27, 2023
@Ashesh3 Ashesh3 removed the blocked label Jul 27, 2023
@gigincg gigincg merged commit 2e12108 into master Jul 28, 2023
5 checks passed
@gigincg gigincg deleted the resp-0 branch July 28, 2023 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 High priority; urgent reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants