From f1e34c243b545bb0bd55c11765e31f895d070d90 Mon Sep 17 00:00:00 2001 From: vivek Date: Thu, 8 Feb 2024 16:57:41 +0530 Subject: [PATCH] inc resp rate --- .../migrations/0408_alter_dailyround_resp.py | 25 +++++++++++++++++++ care/facility/models/daily_round.py | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 care/facility/migrations/0408_alter_dailyround_resp.py diff --git a/care/facility/migrations/0408_alter_dailyround_resp.py b/care/facility/migrations/0408_alter_dailyround_resp.py new file mode 100644 index 0000000000..390e335872 --- /dev/null +++ b/care/facility/migrations/0408_alter_dailyround_resp.py @@ -0,0 +1,25 @@ +# Generated by Django 4.2.8 on 2024-02-08 11:22 + +import django.core.validators +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ("facility", "0407_alter_dailyround_additional_symptoms_and_more"), + ] + + operations = [ + migrations.AlterField( + model_name="dailyround", + name="resp", + field=models.IntegerField( + default=None, + null=True, + validators=[ + django.core.validators.MinValueValidator(0), + django.core.validators.MaxValueValidator(150), + ], + ), + ), + ] diff --git a/care/facility/models/daily_round.py b/care/facility/models/daily_round.py index d8ced82c78..7140623e37 100644 --- a/care/facility/models/daily_round.py +++ b/care/facility/models/daily_round.py @@ -264,7 +264,7 @@ class InsulinIntakeFrequencyType(enum.Enum): resp = models.IntegerField( default=None, null=True, - validators=[MinValueValidator(0), MaxValueValidator(70)], + validators=[MinValueValidator(0), MaxValueValidator(150)], ) rhythm = models.IntegerField(choices=RythmnChoice, default=RythmnType.UNKNOWN.value) rhythm_detail = models.TextField(default=None, null=True, blank=True)