From 09a0f7e0dbf57f048cf1e460f60b9333bef2a30e Mon Sep 17 00:00:00 2001 From: Aakash Singh Date: Mon, 3 Jul 2023 15:25:29 +0530 Subject: [PATCH] remove unused hba1c field from patient consultation --- .../0367_remove_patientconsultation_hba1c.py | 16 ++++++++++++++++ care/facility/models/patient_consultation.py | 6 ------ data/dummy/facility.json | 1 - 3 files changed, 16 insertions(+), 7 deletions(-) create mode 100644 care/facility/migrations/0367_remove_patientconsultation_hba1c.py diff --git a/care/facility/migrations/0367_remove_patientconsultation_hba1c.py b/care/facility/migrations/0367_remove_patientconsultation_hba1c.py new file mode 100644 index 0000000000..f53ee9246e --- /dev/null +++ b/care/facility/migrations/0367_remove_patientconsultation_hba1c.py @@ -0,0 +1,16 @@ +# Generated by Django 4.2.2 on 2023-07-03 09:59 + +from django.db import migrations + + +class Migration(migrations.Migration): + dependencies = [ + ("facility", "0366_auto_20230627_1806"), + ] + + operations = [ + migrations.RemoveField( + model_name="patientconsultation", + name="HBA1C", + ), + ] diff --git a/care/facility/models/patient_consultation.py b/care/facility/models/patient_consultation.py index de097a16ce..281401aa26 100644 --- a/care/facility/models/patient_consultation.py +++ b/care/facility/models/patient_consultation.py @@ -173,12 +173,6 @@ class PatientConsultation(PatientBaseModel, PatientRelatedPermissionMixin): verbose_name="Patient's Weight in KG", validators=[MinValueValidator(0)], ) - HBA1C = models.FloatField( - default=None, - null=True, - verbose_name="HBA1C parameter for reference to current blood sugar levels", - validators=[MinValueValidator(0)], - ) # ICU Information diff --git a/data/dummy/facility.json b/data/dummy/facility.json index e6b997828f..1564622b72 100644 --- a/data/dummy/facility.json +++ b/data/dummy/facility.json @@ -206,7 +206,6 @@ "current_bed": null, "height": 0.0, "weight": 0.0, - "HBA1C": null, "operation": null, "special_instruction": "", "intubation_history": []