-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2195 from coronasafe/staging
Production Release v24.22.0
- Loading branch information
Showing
13 changed files
with
169 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
care/facility/migrations/0437_alter_dailyround_rounds_type.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Generated by Django 4.2.8 on 2024-05-17 04:55 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("facility", "0436_remove_dailyround_temperature_measured_at"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="dailyround", | ||
name="rounds_type", | ||
field=models.IntegerField( | ||
choices=[ | ||
(0, "NORMAL"), | ||
(50, "DOCTORS_LOG"), | ||
(100, "VENTILATOR"), | ||
(200, "ICU"), | ||
(300, "AUTOMATED"), | ||
(400, "TELEMEDICINE"), | ||
], | ||
default=0, | ||
), | ||
), | ||
] |
58 changes: 58 additions & 0 deletions
58
care/facility/migrations/0438_alter_dailyround_patient_category_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Generated by Django 4.2.10 on 2024-05-21 12:29 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
def rename_categories_in_events(apps, schema_editor): | ||
PatientConsultationEvent = apps.get_model( | ||
"facility", "PatientConsultationEvent" | ||
) | ||
|
||
PatientConsultationEvent.objects.filter( | ||
event_type__name="CATEGORY", value__category="Stable" | ||
).update(value={"category": "Mild"}) | ||
PatientConsultationEvent.objects.filter( | ||
event_type__name="PATIENT_CATEGORY", value__category="Stable" | ||
).update(value={"patient_category": "Mild"}) | ||
PatientConsultationEvent.objects.filter( | ||
event_type__name="CATEGORY", value__category="Abnormal" | ||
).update(value={"category": "Moderate"}) | ||
PatientConsultationEvent.objects.filter( | ||
event_type__name="PATIENT_CATEGORY", value__category="Abnormal" | ||
).update(value={"patient_category": "Moderate"}) | ||
|
||
dependencies = [ | ||
("facility", "0437_alter_dailyround_rounds_type"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="dailyround", | ||
name="patient_category", | ||
field=models.CharField( | ||
choices=[ | ||
("Comfort", "Comfort Care"), | ||
("Stable", "Mild"), | ||
("Moderate", "Moderate"), | ||
("Critical", "Critical"), | ||
], | ||
max_length=8, | ||
null=True, | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="patientconsultation", | ||
name="category", | ||
field=models.CharField( | ||
choices=[ | ||
("Comfort", "Comfort Care"), | ||
("Stable", "Mild"), | ||
("Moderate", "Moderate"), | ||
("Critical", "Critical"), | ||
], | ||
max_length=8, | ||
null=True, | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters