diff --git a/care/facility/migrations/0298_auto_20220625_1627.py b/care/facility/migrations/0298_auto_20220625_1627.py new file mode 100644 index 0000000000..16726a5bf3 --- /dev/null +++ b/care/facility/migrations/0298_auto_20220625_1627.py @@ -0,0 +1,18 @@ +# Generated by Django 2.2.11 on 2022-06-25 10:57 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('facility', '0297_auto_20220619_1821'), + ] + + operations = [ + migrations.RenameField( + model_name='patientconsultation', + old_name='existing_medication', + new_name='history_of_present_illness', + ), + ] diff --git a/care/facility/models/patient_consultation.py b/care/facility/models/patient_consultation.py index 6e0dd381ee..9a46593b41 100644 --- a/care/facility/models/patient_consultation.py +++ b/care/facility/models/patient_consultation.py @@ -36,7 +36,7 @@ class PatientConsultation(PatientBaseModel, PatientRelatedPermissionMixin): symptoms_onset_date = models.DateTimeField(null=True, blank=True) category = models.CharField(choices=CATEGORY_CHOICES, max_length=8, default=None, blank=True, null=True) examination_details = models.TextField(null=True, blank=True) - existing_medication = models.TextField(null=True, blank=True) + history_of_present_illness = models.TextField(null=True, blank=True) prescribed_medication = models.TextField(null=True, blank=True) consultation_notes = models.TextField(null=True, blank=True) course_in_facility = models.TextField(null=True, blank=True) diff --git a/care/templates/patient_pdf_template.html b/care/templates/patient_pdf_template.html index 690ae4c520..bbbc726f8a 100644 --- a/care/templates/patient_pdf_template.html +++ b/care/templates/patient_pdf_template.html @@ -185,7 +185,7 @@

History of Present Illness
- {{consultation.existing_medication}} + {{consultation.history_of_present_illness}}
diff --git a/care/utils/tests/test_base.py b/care/utils/tests/test_base.py index 3cedc9245e..86cc2541ce 100644 --- a/care/utils/tests/test_base.py +++ b/care/utils/tests/test_base.py @@ -389,7 +389,7 @@ def get_consultation_data(cls): "symptoms_onset_date": make_aware(datetime.datetime(2020, 4, 7, 15, 30)), "category": CATEGORY_CHOICES[0][0], "examination_details": "examination_details", - "existing_medication": "existing_medication", + "history_of_present_illness": "history_of_present_illness", "prescribed_medication": "prescribed_medication", "suggestion": PatientConsultation.SUGGESTION_CHOICES[0][0], "referred_to": None,