-
Notifications
You must be signed in to change notification settings - Fork 336
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 #1765 from coronasafe/master
Production Release Dec Week 2
- Loading branch information
Showing
49 changed files
with
8,621 additions
and
4,186 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
24 changes: 24 additions & 0 deletions
24
care/facility/migrations/0393_alter_hospitaldoctors_count.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,24 @@ | ||
# Generated by Django 4.2.2 on 2023-10-20 10:15 | ||
|
||
from django.db import migrations, models | ||
from django.db.models import F | ||
|
||
|
||
def convert_negative_to_positive(apps, schema_editor): | ||
HospitalDoctors = apps.get_model("facility", "HospitalDoctors") | ||
HospitalDoctors.objects.filter(count__lt=0).update(count=F("count") * -1) | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("facility", "0392_alter_dailyround_consciousness_level"), | ||
] | ||
|
||
operations = [ | ||
migrations.RunPython(convert_negative_to_positive), | ||
migrations.AlterField( | ||
model_name="hospitaldoctors", | ||
name="count", | ||
field=models.PositiveIntegerField(), | ||
), | ||
] |
22 changes: 22 additions & 0 deletions
22
care/facility/migrations/0394_alter_assetlocation_location_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,22 @@ | ||
# Generated by Django 4.2.5 on 2023-11-13 08:56 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
( | ||
"facility", | ||
"0393_rename_diagnosis_patientconsultation_deprecated_diagnosis_and_more", | ||
), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="assetlocation", | ||
name="location_type", | ||
field=models.IntegerField( | ||
choices=[(1, "OTHER"), (10, "ICU"), (20, "WARD")], default=1 | ||
), | ||
), | ||
] |
50 changes: 50 additions & 0 deletions
50
care/facility/migrations/0398_alter_prescription_dosage_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,50 @@ | ||
# Generated by Django 4.2.5 on 2023-12-06 13:06 | ||
|
||
from django.db import migrations, models | ||
|
||
import care.utils.models.validators | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("facility", "0397_truncate_discharge_time"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="prescription", | ||
name="dosage", | ||
field=models.CharField( | ||
blank=True, | ||
max_length=100, | ||
null=True, | ||
validators=[ | ||
care.utils.models.validators.DenominationValidator( | ||
allow_floats=True, | ||
max_amount=5000, | ||
min_amount=0.0001, | ||
precision=4, | ||
units={"mg", "g", "ml", "tsp", "ampule(s)", "drop(s)"}, | ||
) | ||
], | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="prescription", | ||
name="max_dosage", | ||
field=models.CharField( | ||
blank=True, | ||
max_length=100, | ||
null=True, | ||
validators=[ | ||
care.utils.models.validators.DenominationValidator( | ||
allow_floats=True, | ||
max_amount=5000, | ||
min_amount=0.0001, | ||
precision=4, | ||
units={"mg", "g", "ml", "tsp", "ampule(s)", "drop(s)"}, | ||
) | ||
], | ||
), | ||
), | ||
] |
Oops, something went wrong.