Skip to content

Commit

Permalink
rename categories for patient_category events
Browse files Browse the repository at this point in the history
  • Loading branch information
khavinshankar committed May 21, 2024
1 parent a9a1ec3 commit bed4d0c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,15 @@ def rename_categories_in_events(apps, schema_editor):
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"),
Expand Down

0 comments on commit bed4d0c

Please sign in to comment.