Skip to content

Commit

Permalink
Added actively dying patient category (#2298)
Browse files Browse the repository at this point in the history
* added actively dying patient status

* update migration

* fixed migrations

* Add Merge Migration

---------

Co-authored-by: Vignesh Hari <[email protected]>
Co-authored-by: vigneshhari <[email protected]>
  • Loading branch information
3 people authored Aug 23, 2024
1 parent 45b51a8 commit 7c05792
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Generated by Django 4.2.10 on 2024-07-24 10:16

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("facility", "0446_alter_notification_event"),
]

operations = [
migrations.AlterField(
model_name="dailyround",
name="patient_category",
field=models.CharField(
choices=[
("Comfort", "Comfort Care"),
("Stable", "Mild"),
("Moderate", "Moderate"),
("Critical", "Critical"),
("ActivelyDying", "Actively Dying"),
],
max_length=13,
null=True,
),
),
migrations.AlterField(
model_name="patientconsultation",
name="category",
field=models.CharField(
choices=[
("Comfort", "Comfort Care"),
("Stable", "Mild"),
("Moderate", "Moderate"),
("Critical", "Critical"),
("ActivelyDying", "Actively Dying"),
],
max_length=13,
null=True,
),
),
]
13 changes: 13 additions & 0 deletions care/facility/migrations/0451_merge_20240823_1642.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Generated by Django 4.2.10 on 2024-08-23 11:12

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
("facility", "0447_alter_dailyround_patient_category_and_more"),
("facility", "0450_merge_20240823_1617"),
]

operations = []
2 changes: 1 addition & 1 deletion care/facility/models/daily_round.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class InsulinIntakeFrequencyType(enum.Enum):
null=True,
) # Deprecated
patient_category = models.CharField(
choices=CATEGORY_CHOICES, max_length=8, blank=False, null=True
choices=CATEGORY_CHOICES, max_length=13, blank=False, null=True
)
other_details = models.TextField(null=True, blank=True)
medication_given = JSONField(default=dict) # To be Used Later on
Expand Down
1 change: 1 addition & 0 deletions care/facility/models/patient_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def reverse_choices(choices):
("Stable", "Mild"),
("Moderate", "Moderate"),
("Critical", "Critical"),
("ActivelyDying", "Actively Dying"),
]

DISCHARGE_REASON_CHOICES = [
Expand Down
2 changes: 1 addition & 1 deletion care/facility/models/patient_consultation.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class PatientConsultation(PatientBaseModel, ConsultationRelatedPermissionMixin):
null=True,
) # Deprecated
category = models.CharField(
choices=CATEGORY_CHOICES, max_length=8, blank=False, null=True
choices=CATEGORY_CHOICES, max_length=13, blank=False, null=True
)
examination_details = models.TextField(null=True, blank=True)
history_of_present_illness = models.TextField(null=True, blank=True)
Expand Down

0 comments on commit 7c05792

Please sign in to comment.