Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renamed patient category labels #2187

Merged
merged 3 commits into from
May 22, 2024
Merged

Renamed patient category labels #2187

merged 3 commits into from
May 22, 2024

Conversation

khavinshankar
Copy link
Member

@khavinshankar khavinshankar commented May 21, 2024

Proposed Changes

  • Renamed patient category labels

Associated Issue

@coronasafe/care-backend-maintainers @coronasafe/care-backend-admins

@nihal467 nihal467 added the P0 Urgent label May 21, 2024
@nihal467
Copy link
Member

LGTM

Comment on lines +12 to +23
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"})
Copy link
Member

@sainak sainak May 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: this is to change the labels, as we serialize the labels while creating events

@vigneshhari vigneshhari merged commit ba98656 into develop May 22, 2024
9 checks passed
@vigneshhari vigneshhari deleted the category-rename branch May 22, 2024 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P0 Urgent
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants