From 08b8ae65cb19adc27e64d2875ec8f68d72c90d69 Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Mon, 27 Nov 2023 12:30:29 +0530 Subject: [PATCH 01/17] Rename `admission_date` to `encounter_date` --- care/abdm/utils/fhir.py | 6 +- care/facility/api/serializers/bed.py | 4 +- .../api/serializers/patient_consultation.py | 18 +- care/facility/api/viewsets/patient.py | 6 +- ...atientconsultation_if_admitted_and_more.py | 21 + care/facility/models/patient_consultation.py | 10 +- care/facility/models/patient_icmr.py | 4 +- .../tests/test_consultation_bed_api.py | 4 +- care/facility/tests/test_patient_api.py | 4 +- .../tests/test_patient_consultation_api.py | 42 +- .../patient_discharge_summary_pdf.html | 1765 +++-- care/utils/tests/test_utils.py | 2 +- data/dummy/facility.json | 6194 ++++++++--------- 13 files changed, 3958 insertions(+), 4122 deletions(-) create mode 100644 care/facility/migrations/0397_remove_patientconsultation_if_admitted_and_more.py diff --git a/care/abdm/utils/fhir.py b/care/abdm/utils/fhir.py index 3ea9a0f9ac..d862f079fe 100644 --- a/care/abdm/utils/fhir.py +++ b/care/abdm/utils/fhir.py @@ -212,7 +212,7 @@ def _careplan(self): title="Care Plan", description="This includes Treatment Summary, Prescribed Medication, General Notes and Special Instructions", period=Period( - start=self.consultation.admission_date.isoformat(), + start=self.consultation.encounter_date.isoformat(), end=self.consultation.discharge_date.isoformat() if self.consultation.discharge_date else None, @@ -355,7 +355,7 @@ def _encounter(self, include_diagnosis=False): id = str(self.consultation.external_id) status = "finished" if self.consultation.discharge_date else "in-progress" - period_start = self.consultation.admission_date.isoformat() + period_start = self.consultation.encounter_date.isoformat() period_end = ( self.consultation.discharge_date.isoformat() if self.consultation.discharge_date @@ -463,7 +463,7 @@ def _medication(self, name): def _medication_request(self, medicine): id = str(uuid()) prescription_date = ( - self.consultation.admission_date.isoformat() + self.consultation.encounter_date.isoformat() ) # TODO: change to the time of prescription status = "unknown" # TODO: get correct status active | on-hold | cancelled | completed | entered-in-error | stopped | draft | unknown dosage_text = f"{medicine['dosage_new']} / {medicine['dosage']} for {medicine['days']} days" diff --git a/care/facility/api/serializers/bed.py b/care/facility/api/serializers/bed.py index 383c208862..ca3c885d29 100644 --- a/care/facility/api/serializers/bed.py +++ b/care/facility/api/serializers/bed.py @@ -236,8 +236,8 @@ def validate(self, attrs): {"end_date": "End date cannot be before the start date"} ) if ( - consultation.admission_date - and consultation.admission_date > current_start_date + consultation.encounter_date + and consultation.encounter_date > current_start_date ): raise ValidationError( {"start_date": "Start date cannot be before the admission date"} diff --git a/care/facility/api/serializers/patient_consultation.py b/care/facility/api/serializers/patient_consultation.py index b8f869015b..7880000f74 100644 --- a/care/facility/api/serializers/patient_consultation.py +++ b/care/facility/api/serializers/patient_consultation.py @@ -367,7 +367,7 @@ def create(self, validated_data): and last_consultation.suggestion == SuggestionChoices.A and last_consultation.discharge_date and last_consultation.discharge_date + timedelta(days=30) - > consultation.admission_date + > consultation.encounter_date ): consultation.is_readmission = True consultation.save() @@ -525,15 +525,15 @@ def validate(self, attrs): elif validated.get("referred_to"): validated["referred_to_external"] = None if validated["suggestion"] is SuggestionChoices.A: - if not validated.get("admission_date"): + if not validated.get("encounter_date"): raise ValidationError( { - "admission_date": "This field is required as the patient has been admitted." + "encounter_date": "This field is required as the patient has been admitted." } ) - if validated["admission_date"] > now(): + if validated["encounter_date"] > now(): raise ValidationError( - {"admission_date": "This field value cannot be in the future."} + {"encounter_date": "This field value cannot be in the future."} ) if "action" in validated: @@ -635,8 +635,8 @@ def validate(self, attrs): {"death_datetime": "This field value cannot be in the future."} ) if ( - self.instance.admission_date - and attrs.get("death_datetime") < self.instance.admission_date + self.instance.encounter_date + and attrs.get("death_datetime") < self.instance.encounter_date ): raise ValidationError( { @@ -655,8 +655,8 @@ def validate(self, attrs): {"discharge_date": "This field value cannot be in the future."} ) elif ( - self.instance.admission_date - and attrs.get("discharge_date") < self.instance.admission_date + self.instance.encounter_date + and attrs.get("discharge_date") < self.instance.encounter_date ): raise ValidationError( { diff --git a/care/facility/api/viewsets/patient.py b/care/facility/api/viewsets/patient.py index 2601d8af8c..34c70b34a1 100644 --- a/care/facility/api/viewsets/patient.py +++ b/care/facility/api/viewsets/patient.py @@ -139,8 +139,8 @@ def filter_by_category(self, queryset, name, value): last_consultation_kasp_enabled_date = filters.DateFromToRangeFilter( field_name="last_consultation__kasp_enabled_date" ) - last_consultation_admission_date = filters.DateFromToRangeFilter( - field_name="last_consultation__admission_date" + last_consultation_encounter_date = filters.DateFromToRangeFilter( + field_name="last_consultation__encounter_date" ) last_consultation_discharge_date = filters.DateFromToRangeFilter( field_name="last_consultation__discharge_date" @@ -332,7 +332,7 @@ class PatientViewSet( "date_declared_positive", "date_of_result", "last_vaccinated_date", - "last_consultation_admission_date", + "last_consultation_encounter_date", "last_consultation_discharge_date", "last_consultation_symptoms_onset_date", ] diff --git a/care/facility/migrations/0397_remove_patientconsultation_if_admitted_and_more.py b/care/facility/migrations/0397_remove_patientconsultation_if_admitted_and_more.py new file mode 100644 index 0000000000..a15c9c43a9 --- /dev/null +++ b/care/facility/migrations/0397_remove_patientconsultation_if_admitted_and_more.py @@ -0,0 +1,21 @@ +# Generated by Django 4.2.5 on 2023-11-27 07:00 + +from django.db import migrations + + +class Migration(migrations.Migration): + dependencies = [ + ("facility", "0396_merge_20231122_0240"), + ] + + operations = [ + migrations.RemoveConstraint( + model_name="patientconsultation", + name="if_admitted", + ), + migrations.RenameField( + model_name="patientconsultation", + old_name="admission_date", + new_name="encounter_date", + ), + ] diff --git a/care/facility/models/patient_consultation.py b/care/facility/models/patient_consultation.py index b5e1bb02b1..74b97244ba 100644 --- a/care/facility/models/patient_consultation.py +++ b/care/facility/models/patient_consultation.py @@ -126,7 +126,7 @@ class PatientConsultation(PatientBaseModel, ConsultationRelatedPermissionMixin): referred_by_external = models.TextField(default="", null=True, blank=True) is_readmission = models.BooleanField(default=False) admitted = models.BooleanField(default=False) # Deprecated - admission_date = models.DateTimeField(null=True, blank=True) # Deprecated + encounter_date = models.DateTimeField(null=True, blank=True) # Deprecated icu_admission_date = models.DateTimeField(null=True, blank=True) discharge_date = models.DateTimeField(null=True, blank=True) discharge_reason = models.CharField( @@ -229,7 +229,7 @@ def get_related_consultation(self): CSV_MAPPING = { "consultation_created_date": "Date of Consultation", - "admission_date": "Date of Admission", + "encounter_date": "Date of Admission", "symptoms_onset_date": "Date of Onset of Symptoms", "symptoms": "Symptoms at time of consultation", "deprecated_covid_category": "Covid Category", @@ -249,7 +249,7 @@ def get_related_consultation(self): } # CSV_DATATYPE_DEFAULT_MAPPING = { - # "admission_date": (None, models.DateTimeField(),), + # "encounter_date": (None, models.DateTimeField(),), # "symptoms_onset_date": (None, models.DateTimeField(),), # "symptoms": ("-", models.CharField(),), # "category": ("-", models.CharField(),), @@ -279,10 +279,6 @@ class Meta: | models.Q(referred_to__isnull=False) | models.Q(referred_to_external__isnull=False), ), - models.CheckConstraint( - name="if_admitted", - check=models.Q(admitted=False) | models.Q(admission_date__isnull=False), - ), ] @staticmethod diff --git a/care/facility/models/patient_icmr.py b/care/facility/models/patient_icmr.py index e2f0ac9752..5d33c25ed3 100644 --- a/care/facility/models/patient_icmr.py +++ b/care/facility/models/patient_icmr.py @@ -179,8 +179,8 @@ def lab_pincode(self): @property def hospitalization_date(self): return ( - self.consultation.admission_date.date() - if self.consultation and self.consultation.admission_date + self.consultation.encounter_date.date() + if self.consultation and self.consultation.encounter_date else None ) diff --git a/care/facility/tests/test_consultation_bed_api.py b/care/facility/tests/test_consultation_bed_api.py index 99962277db..1b87099bcb 100644 --- a/care/facility/tests/test_consultation_bed_api.py +++ b/care/facility/tests/test_consultation_bed_api.py @@ -242,8 +242,8 @@ def test_start_date_before_end_date(self): {"end_date": ["End date cannot be before the start date"]}, ) - def test_start_date_before_consultation_admission_date(self): - self.consultation.admission_date = timezone.now() + def test_start_date_before_consultation_encounter_date(self): + self.consultation.encounter_date = timezone.now() self.consultation.save() response = self.client.post( "/api/v1/consultationbed/", diff --git a/care/facility/tests/test_patient_api.py b/care/facility/tests/test_patient_api.py index 493a43f24b..e564cfc673 100644 --- a/care/facility/tests/test_patient_api.py +++ b/care/facility/tests/test_patient_api.py @@ -216,7 +216,7 @@ def setUpTestData(cls): facility=cls.facility, created_by=cls.user, suggestion="A", - admission_date=now(), + encounter_date=now(), ) cls.bed = cls.create_bed(cls.facility, cls.location) cls.consultation_bed = cls.create_consultation_bed(cls.consultation, cls.bed) @@ -268,7 +268,7 @@ def setUpTestData(cls): facility=cls.facility, created_by=cls.user, suggestion="A", - admission_date=now(), + encounter_date=now(), discharge_date=None, # Patient is currently admitted discharge_reason=None, ) diff --git a/care/facility/tests/test_patient_consultation_api.py b/care/facility/tests/test_patient_consultation_api.py index e5921283db..74167059e8 100644 --- a/care/facility/tests/test_patient_consultation_api.py +++ b/care/facility/tests/test_patient_consultation_api.py @@ -102,7 +102,7 @@ def discharge(self, consultation, **kwargs): def test_create_consultation_treating_physician_invalid_user(self): consultation = self.create_admission_consultation( suggestion="A", - admission_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), + encounter_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), ) res = self.update_consultation( consultation, treating_physician=self.doctor.id, suggestion="A" @@ -112,7 +112,7 @@ def test_create_consultation_treating_physician_invalid_user(self): def test_discharge_as_recovered_preadmission(self): consultation = self.create_admission_consultation( suggestion="A", - admission_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), + encounter_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), ) res = self.discharge( consultation, @@ -125,7 +125,7 @@ def test_discharge_as_recovered_preadmission(self): def test_discharge_as_recovered_future(self): consultation = self.create_admission_consultation( suggestion="A", - admission_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), + encounter_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), ) res = self.discharge( consultation, @@ -138,7 +138,7 @@ def test_discharge_as_recovered_future(self): def test_discharge_as_recovered_after_admission(self): consultation = self.create_admission_consultation( suggestion="A", - admission_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), + encounter_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), ) res = self.discharge( consultation, @@ -151,7 +151,7 @@ def test_discharge_as_recovered_after_admission(self): def test_discharge_as_expired_pre_admission(self): consultation = self.create_admission_consultation( suggestion="A", - admission_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), + encounter_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), ) res = self.discharge( consultation, @@ -165,7 +165,7 @@ def test_discharge_as_expired_pre_admission(self): def test_discharge_as_expired_future(self): consultation = self.create_admission_consultation( suggestion="A", - admission_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), + encounter_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), ) res = self.discharge( consultation, @@ -179,7 +179,7 @@ def test_discharge_as_expired_future(self): def test_discharge_as_expired_after_admission(self): consultation = self.create_admission_consultation( suggestion="A", - admission_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), + encounter_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), ) res = self.discharge( consultation, @@ -194,7 +194,7 @@ def test_discharge_as_expired_after_admission(self): def test_discharge_as_recovered_with_expired_fields(self): consultation = self.create_admission_consultation( suggestion="A", - admission_date=make_aware(datetime.datetime(2023, 4, 1, 15, 30, 00)), + encounter_date=make_aware(datetime.datetime(2023, 4, 1, 15, 30, 00)), ) res = self.discharge( consultation, @@ -212,7 +212,7 @@ def test_discharge_as_recovered_with_expired_fields(self): def test_referred_to_external_null(self): consultation = self.create_admission_consultation( suggestion="A", - admission_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), + encounter_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), ) res = self.discharge( consultation, @@ -226,7 +226,7 @@ def test_referred_to_external_null(self): def test_referred_to_external_empty_string(self): consultation = self.create_admission_consultation( suggestion="A", - admission_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), + encounter_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), ) res = self.discharge( consultation, @@ -240,7 +240,7 @@ def test_referred_to_external_empty_string(self): def test_referred_to_empty_facility(self): consultation = self.create_admission_consultation( suggestion="A", - admission_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), + encounter_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), ) res = self.discharge( consultation, @@ -254,7 +254,7 @@ def test_referred_to_empty_facility(self): def test_referred_to_and_external_together(self): consultation = self.create_admission_consultation( suggestion="A", - admission_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), + encounter_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), ) res = self.discharge( consultation, @@ -269,7 +269,7 @@ def test_referred_to_and_external_together(self): def test_referred_to_valid_value(self): consultation = self.create_admission_consultation( suggestion="A", - admission_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), + encounter_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), ) referred_to_external = "Test Hospital" res = self.discharge( @@ -283,7 +283,7 @@ def test_referred_to_valid_value(self): def test_referred_to_external_valid_value(self): consultation = self.create_admission_consultation( suggestion="A", - admission_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), + encounter_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), ) referred_to_external = "Test Hospital" res = self.discharge( @@ -365,7 +365,7 @@ def test_medico_legal_case(self): def test_update_consultation_after_discharge(self): consultation = self.create_admission_consultation( suggestion="A", - admission_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), + encounter_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), ) res = self.discharge( consultation, @@ -383,7 +383,7 @@ def test_update_consultation_after_discharge(self): def test_add_diagnoses_and_duplicate_diagnoses(self): consultation = self.create_admission_consultation( suggestion="A", - admission_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), + encounter_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), ) diagnosis = ICD11Diagnosis.objects.all()[0].id res = self.add_diagnosis( @@ -404,7 +404,7 @@ def test_add_diagnoses_and_duplicate_diagnoses(self): def test_add_diagnosis_inactive(self): consultation = self.create_admission_consultation( suggestion="A", - admission_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), + encounter_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), ) diagnosis = ICD11Diagnosis.objects.first().id res = self.add_diagnosis( @@ -425,7 +425,7 @@ def test_add_diagnosis_inactive(self): def mark_inactive_diagnosis_as_principal(self): consultation = self.create_admission_consultation( suggestion="A", - admission_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), + encounter_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), ) diagnosis = ICD11Diagnosis.objects.first().id res = self.add_diagnosis( @@ -451,7 +451,7 @@ def mark_inactive_diagnosis_as_principal(self): def test_change_diagnosis(self): consultation = self.create_admission_consultation( suggestion="A", - admission_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), + encounter_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), ) res = self.add_diagnosis( consultation, @@ -472,7 +472,7 @@ def test_change_diagnosis(self): def test_add_multiple_principal_diagnosis(self): consultation = self.create_admission_consultation( suggestion="A", - admission_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), + encounter_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), ) res = self.add_diagnosis( consultation, @@ -492,7 +492,7 @@ def test_add_multiple_principal_diagnosis(self): def test_add_principal_edit_as_inactive_add_principal(self): consultation = self.create_admission_consultation( suggestion="A", - admission_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), + encounter_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), ) res = self.add_diagnosis( consultation, diff --git a/care/templates/reports/patient_discharge_summary_pdf.html b/care/templates/reports/patient_discharge_summary_pdf.html index 22fc3101b2..f940565b9f 100644 --- a/care/templates/reports/patient_discharge_summary_pdf.html +++ b/care/templates/reports/patient_discharge_summary_pdf.html @@ -1,1023 +1,842 @@ {% load filters static %} - - - - - - - - - + + - -
-
-
- {{patient.facility.name}} -
-
-
-

- Patient Discharge Summary -

-

- Created on {{date}} -

+ +
+
+ {{patient.facility.name}}
- -
-
-
-

- Full name: {{patient.name}} -

-

- Gender: {{patient.get_gender_display}} -

-

- Age: {{patient.age}} -

-

- Date of Birth: {{patient.date_of_birth}} -

-

- Blood Group: {{patient.blood_group}} -

-

- Phone Number: {{patient.phone_number}} -

-

- Address: {{patient.address}} -

+
+
+

Patient Discharge Summary

+

Created on {{date}}

+
+
-
- -
-

- Admission Details -

-
-
-
-

- Route to Facility: - {{consultation.get_route_to_facility_display|field_name_to_label}} -

-

- Decision after consultation: - {{consultation.get_suggestion_display|field_name_to_label}} -

- {% if consultation.suggestion == 'A' %} -

- Date of addmission: - {{consultation.admission_date.date}} -

- {% elif consultation.suggestion == 'R' %} -

- Referred to: - {{consultation.referred_to.name}} -

- {% elif consultation.suggestion == 'DD' %} -

- Cause of death: - {{consultation.discharge_notes}} -

-

- Date and time of death: - {{consultation.death_datetime}} -

-

- Death Confirmed by: - {{consultation.death_confirmed_by}} -

- {% endif %} -
+
+

- - {% if consultation.suggestion == 'A' %} - IP No: - {% else %} - OP No: - {% endif %} - {{consultation.patient_no}} + Full name: {{patient.name}}

- Weight: - {{consultation.weight}} kg + Gender: + {{patient.get_gender_display}}

+

Age: {{patient.age}}

- Height: - {{consultation.height}} cm + Date of Birth: + {{patient.date_of_birth}}

-
- {% if consultation.route_to_facility %} -

- Symptoms at admission: - {{consultation.get_symptoms_display|title}} + Blood Group: + {{patient.blood_group}}

-

- From: - {{consultation.symptoms_onset_date.date}} +

+ Phone Number: + {{patient.phone_number}} +

+

+ Address: + {{patient.address}}

- {% endif %} -
- - {% if hcx %} -

- Health insurance details: -

- -
- - - - - - - - - - - {% for policy in hcx %} - - - - - - - {% endfor %} - -
- Insurer Name - - Issuer ID - - Member ID - - Policy ID -
- {{policy.insurer_name}} - - {{policy.insurer_id}} - - {{policy.subscriber_id}} - - {{policy.policy_id}} -
-
- {% endif %} - - {% if principal_diagnosis %} -

- Principal Diagnosis (as per ICD-11 recommended by WHO): -

-
- - - - - - - - - {% for disease in principal_diagnosis %} - - - - - {% endfor %} - -
- ID - - Name -
- {{disease.id}} - - {{disease.label}} -
-
- {% endif %} - - {% if unconfirmed_diagnoses %} -

- Unconfirmed Diagnoses (as per ICD-11 recommended by WHO): -

-
- - - - - - - - - {% for disease in unconfirmed_diagnoses %} - - - - - {% endfor %} - -
- ID - - Name -
- {{disease.id}} - - {{disease.label}} -
-
- {% endif %} - - {% if provisional_diagnoses %} -

- Provisional Diagnosis (as per ICD-11 recommended by WHO): -

-
- - - - - - - - - {% for disease in provisional_diagnoses %} - - - - - {% endfor %} - -
- ID - - Name -
- {{disease.id}} - - {{disease.label}} -
-
- {% endif %} - - {% if differential_diagnoses %} -

- Differential Diagnoses (as per ICD-11 recommended by WHO): -

-
- - - - - - - - - {% for disease in differential_diagnoses %} - - - - - {% endfor %} - -
- ID - - Name -
- {{disease.id}} - - {{disease.label}} -
-
- {% endif %} - - {% if confirmed_diagnoses %} -

- Confirmed Diagnoses (as per ICD-11 recommended by WHO): -

-
- - - - - - - - - {% for disease in confirmed_diagnoses %} - - - - - {% endfor %} - -
- ID - - Name -
- {{disease.id}} - - {{disease.label}} -
- {% endif %} - - {% if medical_history %} -

- Medication History: -

-
- - - - - - - - - {% for disease in medical_history %} - - - - - {% endfor %} - -
- Comorbidity - - Details -
- {{disease.get_disease_display}} - - {{disease.details}} -
+
+

+ Admission Details +

- {% endif %} +
+
+

+ Route to Facility: + {{consultation.get_route_to_facility_display|field_name_to_label}} +

+

+ Decision after consultation: + {{consultation.get_suggestion_display|field_name_to_label}} +

+ {% if consultation.suggestion == 'A' %} +

+ Date of addmission: + {{consultation.encounter_date.date}} +

+ {% elif consultation.suggestion == 'R' %} +

+ Referred to: + {{consultation.referred_to.name}} +

+ {% elif consultation.suggestion == 'DD' %} +

+ Cause of death: + {{consultation.discharge_notes}} +

+

+ Date and time of death: + {{consultation.death_datetime}} +

+

+ Death Confirmed by: + {{consultation.death_confirmed_by}} +

+ {% endif %} +
+

+ + {% if consultation.suggestion == 'A' %} IP No: {% else %} OP No: + {% endif %} + + {{consultation.patient_no}} +

+

+ Weight: + + {{consultation.weight}} kg +

+

+ Height: + {{consultation.height}} cm +

+
+ {% if consultation.route_to_facility %} +
+

+ Symptoms at admission: + {{consultation.get_symptoms_display|title}} +

+

+ From: + {{consultation.symptoms_onset_date.date}} +

+
+ {% endif %} +
-
-

- Health status at admission: + {% if hcx %} +

Health insurance details:

+ +
+ + + + + + + + + + + {% for policy in hcx %} + + + + + + + {% endfor %} + +
Insurer NameIssuer IDMember IDPolicy ID
+ {{policy.insurer_name}} + + {{policy.insurer_id}} + + {{policy.subscriber_id}} + + {{policy.policy_id}} +
+
+ {% endif %} {% if principal_diagnosis %} +

+ Principal Diagnosis (as per ICD-11 recommended by WHO):

-

- Present health condition: - {{patient.present_health}} -

-

- Ongoing Medication: - {{patient.ongoing_medication}} -

- {% if consultation.route_to_facility %} -

- History of present illness: - {{consultation.history_of_present_illness}} -

+
+ + + + + + + + + {% for disease in principal_diagnosis %} + + + + + {% endfor %} + +
IDName
{{disease.id}}{{disease.label}}
+
+ {% endif %} {% if unconfirmed_diagnoses %} +

+ Unconfirmed Diagnoses (as per ICD-11 recommended by WHO): +

+
+ + + + + + + + + {% for disease in unconfirmed_diagnoses %} + + + + + {% endfor %} + +
IDName
{{disease.id}}{{disease.label}}
+
+ {% endif %} {% if provisional_diagnoses %} +

+ Provisional Diagnosis (as per ICD-11 recommended by WHO): +

+
+ + + + + + + + + {% for disease in provisional_diagnoses %} + + + + + {% endfor %} + +
IDName
{{disease.id}}{{disease.label}}
+
+ {% endif %} {% if differential_diagnoses %} +

+ Differential Diagnoses (as per ICD-11 recommended by WHO): +

+
+ + + + + + + + + {% for disease in differential_diagnoses %} + + + + + {% endfor %} + +
IDName
{{disease.id}}{{disease.label}}
+
+ {% endif %} {% if confirmed_diagnoses %} +

+ Confirmed Diagnoses (as per ICD-11 recommended by WHO): +

+
+ + + + + + + + + {% for disease in confirmed_diagnoses %} + + + + + {% endfor %} + +
IDName
{{disease.id}}{{disease.label}}
+
+ {% endif %} {% if medical_history %} +

Medication History:

+
+ + + + + + + + + {% for disease in medical_history %} + + + + + {% endfor %} + +
ComorbidityDetails
+ {{disease.get_disease_display}} + {{disease.details}}
+
{% endif %} -

- Examination details and Clinical conditions: - {{consultation.examination_details}} -

-

- Allergies: - {{patient.allergies}} -

-
-
- {% if consultation.suggestion != 'DD' %} -
-

- Treatment Summary -

-
-
- {% if patient.disease_status == 2 %} -
-

- COVID Disease Status: - Positive -

- {% if patient.date_of_result %} -

- Test Result Date: - {{patient.date_of_result.date}} -

- {% endif %} -

- Vaccinated against COVID: - {% if patient.is_vaccinated %} - Yes - {% else %} - No +

+

+ Health status at admission: +

+

+ Present health condition: + {{patient.present_health}} +

+

+ Ongoing Medication: + {{patient.ongoing_medication}} +

+ {% if consultation.route_to_facility %} +

+ History of present illness: + {{consultation.history_of_present_illness}} +

{% endif %} -

-
- {% endif %} - - {% if prescriptions %} -

- Prescription Medication: -

-
- - - - - - - - - - - - - {% for prescription in prescriptions %} - - - - - - - - - {% endfor %} - -
- Medicine - - Dosage - - Route - - Frequency - - Days - - Notes -
- {{ prescription.medicine_name }} - - {{ prescription.dosage }} - - {{ prescription.route }} - - {{ prescription.frequency }} - - {{ prescription.days }} - - {{ prescription.notes }} -
-
- {% endif %} - - {% if prn_prescriptions %} -

- PRN Prescription: -

-
- - - - - - - - - - - - - {% for prescription in prn_prescriptions %} - - - - - - - - - {% endfor %} - -
- Medicine - - Dosage - - Max Dosage - - Min Time btwn. 2 doses - - Route - - Indicator -
- {{ prescription.medicine_name }} - - {{ prescription.dosage }} - - {{ prescription.max_dosage }} - - {{ prescription.min_hours_between_doses }} Hrs. - - {{ prescription.route }} - - {{ prescription.indicator }} -
-
- {% endif %} - - {% if consultation.investigation %} -

- Investigations Suggestions: -

-
- - - - - - - - - - {% for investigation in consultation.investigation %} - - - - - - {% endfor %} - -
- Type - - Time - - Notes -
- {{investigation.type|join:", "}} - - {% if investigation.repetitive %} - every {{investigation.frequency}} - {% else %} - {{investigation.time|parse_datetime}} - {% endif %} - - {{investigation.notes}} -
-
- {% endif %} - - {% if consultation.procedure %} -

- Procedures: -

-
- - - - - - - - - - {% for procedure in consultation.procedure %} - - - - - - {% endfor %} - -
- Procedure - - Time - - Notes -
- {{procedure.procedure}} - - {% if procedure.repetitive %} - every {{procedure.frequency}} - {% else %} - {{procedure.time|parse_datetime}} - {% endif %} - - {{procedure.notes}} -
+

+ Examination details and Clinical conditions: + {{consultation.examination_details}} +

+

+ Allergies: + {{patient.allergies}} +

+
- {% endif %} - - {% if consultation.treatment_plan %} -

- Prescribed medication: -

-

- {{ consultation.treatment_plan }} -

- {% endif %} - - {% if consultation.consultation_notes %} -

- General Instructions (Advice): -

-

- {{consultation.consultation_notes}} -

- {% endif %} - {% if consultation.special_instruction %} -

- Special Instructions: -

-

- {{consultation.special_instruction}} -

- {% endif %} - - - {% if samples %} -

- Lab Reports: -

-
- - - - - - - - - - - {% for sample in samples %} - - - - - - - {% endfor %} - -
- Requested on - - Sample type - - Label - - Result -
- {{sample.created_date}} - - {{sample.get_sample_type_display}} - - {{sample.icmr_label}} - - {{sample.get_result_display}} -
+ {% if consultation.suggestion != 'DD' %} +
+

+ Treatment Summary +

- {% endif %} - - {% if dailyrounds %} -

- Daily Rounds: -

- {% for daily_round in dailyrounds %} -
-
-

- {{daily_round.created_date}} -

-
-
-
+
+ {% if patient.disease_status == 2 %} +
+

+ COVID Disease Status: + Positive +

+ {% if patient.date_of_result %} +

+ Test Result Date: + {{patient.date_of_result.date}} +

+ {% endif %} +

+ Vaccinated against COVID: + {% if patient.is_vaccinated %} Yes {% else %} No {% endif %} +

+
+ {% endif %} {% if prescriptions %} +

Prescription Medication:

+
+ + + + + + + + + + + + + {% for prescription in prescriptions %} + + + + + + + + + {% endfor %} + +
MedicineDosageRouteFrequencyDaysNotes
+ {{ prescription.medicine_name }} + + {{ prescription.dosage }} + + {{ prescription.route }} + + {{ prescription.frequency }} + + {{ prescription.days }} + + {{ prescription.notes }} +
+
+ {% endif %} {% if prn_prescriptions %} +

PRN Prescription:

+
+ + + + + + + + + + + + + {% for prescription in prn_prescriptions %} + + + + + + + + + {% endfor %} + +
MedicineDosageMax DosageMin Time btwn. 2 dosesRouteIndicator
{{ prescription.medicine_name }} + {{ prescription.dosage }} + + {{ prescription.max_dosage }} + + {{ prescription.min_hours_between_doses }} Hrs. + + {{ prescription.route }} + {{ prescription.indicator }}
+
+ {% endif %} {% if consultation.investigation %} +

+ Investigations Suggestions: +

+
+ + + + + + + + + + {% for investigation in consultation.investigation %} + + + + + + {% endfor %} + +
TypeTimeNotes
+ {{investigation.type|join:", "}} + + {% if investigation.repetitive %} every + {{investigation.frequency}} {% else %} + {{investigation.time|parse_datetime}} {% endif %} + + {{investigation.notes}} +
+
+ {% endif %} {% if consultation.procedure %} +

Procedures:

+
+ + + + + + + + + + {% for procedure in consultation.procedure %} + + + + + + {% endfor %} + +
ProcedureTimeNotes
+ {{procedure.procedure}} + + {% if procedure.repetitive %} every {{procedure.frequency}} {% + else %} {{procedure.time|parse_datetime}} {% endif %} + {{procedure.notes}}
+
+ {% endif %} {% if consultation.treatment_plan %} +

Prescribed medication:

+

{{ consultation.treatment_plan }}

+ {% endif %} {% if consultation.consultation_notes %} +

+ General Instructions (Advice): +

+

{{consultation.consultation_notes}}

+ {% endif %} {% if consultation.special_instruction %} +

Special Instructions:

+

{{consultation.special_instruction}}

+ {% endif %} {% if samples %} +

Lab Reports:

+
+ + + + + + + + + + + {% for sample in samples %} + + + + + + + {% endfor %} + +
Requested onSample typeLabelResult
{{sample.created_date}}{{sample.get_sample_type_display}}{{sample.icmr_label}}{{sample.get_result_display}}
+
+ {% endif %} {% if dailyrounds %} +

Daily Rounds:

+ {% for daily_round in dailyrounds %} +
+
+

+ {{daily_round.created_date}} +

+
+
+
+
+ Category +
+
+ {{daily_round.get_patient_category_display}} +
+
+
+
- Category + Physical Examination Details
- {{daily_round.get_patient_category_display}} + {{daily_round.physical_examination_info}} +
+
+
+
+ Other Details +
+
+ {{daily_round.other_details}} +
+
+
+
+ Symptoms +
+
+ {{daily_round.additional_symptoms}}
-
-
-
- Physical Examination Details -
-
- {{daily_round.physical_examination_info}} -
-
-
-
- Other Details -
-
- {{daily_round.other_details}} -
-
-
-
- Symptoms -
-
- {{daily_round.additional_symptoms}} -
+ {% endfor %} {% endif %} {% if investigations %} +
+

+ Investigation History +

+
+
+ + + + + + + + + + + + {% for investigation in investigations %} + + + + + + + + {% endfor %} + +
GroupNameResultRangeDate
+ {{investigation.investigation.groups.first}} + + {{investigation.investigation.name}} + + {% if investigation.value%} {{investigation.value}} {% else %} + {{investigation.notes}} {% endif %} + + {% if investigation.investigation.min_value and + investigation.investigation.max_value%} + {{investigation.investigation.min_value}} - + {{investigation.investigation.max_value}} {% else %} - {% endif + %} {% if investigation.investigation.unit %} + {{investigation.investigation.unit}} {% endif %} + + {{investigation.created_date}} +
+
+ {% endif %}
- {% endfor %} {% endif %} - {% if investigations %} -
+

- Investigation History + Discharge Summary

-
- - - - - - - - - - - - {% for investigation in investigations %} - - - - - - - - {% endfor %} - -
- Group - - Name - - Result - - Range - - Date -
- {{investigation.investigation.groups.first}} - - {{investigation.investigation.name}} - - {% if investigation.value%} - {{investigation.value}} - {% else %} - {{investigation.notes}} - {% endif %} - - {% if investigation.investigation.min_value and investigation.investigation.max_value%} - {{investigation.investigation.min_value}} - {{investigation.investigation.max_value}} - {% else %} - - - {% endif %} - {% if investigation.investigation.unit %} - {{investigation.investigation.unit}} - {% endif %} - - {{investigation.created_date}} -
-
- {% endif %} -
- {% endif %} +
+
+

+ Discharge Date: + {{consultation.discharge_date}} +

+

+ Discharge Reason: + {{consultation.get_discharge_reason_display}} +

+
+ {% if consultation.discharge_reason == 'REC' %} {% if + discharge_prescriptions %} +

+ Discharge Prescription Medication: +

+
+ + + + + + + + + + + + + {% for prescription in discharge_prescriptions %} + + + + + + + + + {% endfor %} + +
MedicineDosageRouteFrequencyDaysNotes
+ {{ prescription.medicine_name }} + + {{ prescription.dosage }} + + {{ prescription.route }} + + {{ prescription.frequency }} + + {{ prescription.days }} + + {{ prescription.notes }} +
+
+ {% endif %} {% if discharge_prn_prescriptions %} +

+ Discharge PRN Prescription: +

+
+ + + + + + + + + + + + + {% for prescription in discharge_prn_prescriptions %} + + + + + + + + + {% endfor %} + +
MedicineDosageMax DosageMin Time btwn. 2 dosesRouteIndicator
{{ prescription.medicine_name }} + {{ prescription.dosage }} + + {{ prescription.max_dosage }} + + {{ prescription.min_hours_between_doses }} Hrs. + + {{ prescription.route }} + {{ prescription.indicator }}
+
+ {% endif %} {% elif consultation.discharge_reason == 'REF' %} {% elif + consultation.discharge_reason == 'EXP' %} {% elif + consultation.discharge_reason == 'LAMA' %} {% endif %} -
-

- Discharge Summary -

-
-
-
-

- Discharge Date: {{consultation.discharge_date}} -

-

- Discharge Reason: {{consultation.get_discharge_reason_display}} +

+ Discharge Notes: + {{consultation.discharge_notes}}

- {% if consultation.discharge_reason == 'REC' %} - {% if discharge_prescriptions %} -

- Discharge Prescription Medication: -

-
- - - - - - - - - - - - - {% for prescription in discharge_prescriptions %} - - - - - - - - - {% endfor %} - -
- Medicine - - Dosage - - Route - - Frequency - - Days - - Notes -
- {{ prescription.medicine_name }} - - {{ prescription.dosage }} - - {{ prescription.route }} - - {{ prescription.frequency }} - - {{ prescription.days }} - - {{ prescription.notes }} -
-
- {% endif %} - {% if discharge_prn_prescriptions %} -

- Discharge PRN Prescription: -

-
- - - - - - - - - - - - - {% for prescription in discharge_prn_prescriptions %} - - - - - - - - - {% endfor %} - -
- Medicine - - Dosage - - Max Dosage - - Min Time btwn. 2 doses - - Route - - Indicator -
- {{ prescription.medicine_name }} - - {{ prescription.dosage }} - - {{ prescription.max_dosage }} - - {{ prescription.min_hours_between_doses }} Hrs. - - {{ prescription.route }} - - {{ prescription.indicator }} -
+ {% if files %} +
+

Annexes

- {% endif %} - {% elif consultation.discharge_reason == 'REF' %} - {% elif consultation.discharge_reason == 'EXP' %} - {% elif consultation.discharge_reason == 'LAMA' %} - {% endif %} - -

- Discharge Notes: {{consultation.discharge_notes}} -

-
- - {% if files %} -
-

- Annexes -

-
-
-

- Uploaded Files: -

-
- - - - - - - - - {% for file in files %} - - - - - {% endfor %} - -
- Uploaded at - - Name -
- {{file.modified_date}} - - {{file.name}} -
+
+

Uploaded Files:

+
+ + + + + + + + + {% for file in files %} + + + + + {% endfor %} + +
Uploaded atName
+ {{file.modified_date}} + {{file.name}}
+
-
- {% endif %} + {% endif %} -
-
- Treating Physician -
-
- {% if consultation.treating_physician %} - {{ consultation.treating_physician.first_name }} {{ consultation.treating_physician.last_name }} - {% else %} - - - {% endif %} +
+
+ Treating Physician +
+
+ {% if consultation.treating_physician %} {{ + consultation.treating_physician.first_name }} {{ + consultation.treating_physician.last_name }} {% else %} - {% endif %} +
-
- - + diff --git a/care/utils/tests/test_utils.py b/care/utils/tests/test_utils.py index 1f6ceff22e..97ed57f87b 100644 --- a/care/utils/tests/test_utils.py +++ b/care/utils/tests/test_utils.py @@ -301,7 +301,7 @@ def get_consultation_data(cls): "treatment_plan": "treatment_plan", "suggestion": PatientConsultation.SUGGESTION_CHOICES[0][0], "referred_to": None, - "admission_date": None, + "encounter_date": None, "discharge_date": None, "consultation_notes": "", "course_in_facility": "", diff --git a/data/dummy/facility.json b/data/dummy/facility.json index 52a3037077..5655fd6c58 100644 --- a/data/dummy/facility.json +++ b/data/dummy/facility.json @@ -1,3099 +1,3099 @@ [ - { - "model": "facility.facility", - "pk": 1, - "fields": { - "external_id": "81092ced-8720-44cb-b4c5-3f0ad0540153", - "created_date": "2022-09-27T06:59:15.929Z", - "modified_date": "2022-09-27T06:59:15.929Z", - "deleted": false, - "name": "Dummy Facility 1", - "is_active": true, - "verified": false, - "facility_type": 2, - "kasp_empanelled": false, - "features": "1,2,3,4,5,6", - "longitude": null, - "latitude": null, - "pincode": 670000, - "address": "127.0.0.1", - "ward": 1, - "local_body": 920, - "district": 7, - "state": 1, - "oxygen_capacity": 0, - "type_b_cylinders": 0, - "type_c_cylinders": 0, - "type_d_cylinders": 0, - "expected_oxygen_requirement": 0, - "expected_type_b_cylinders": 0, - "expected_type_c_cylinders": 0, - "expected_type_d_cylinders": 0, - "phone_number": "+919999999888", - "corona_testing": false, - "created_by": 2, - "cover_image_url": null, - "middleware_address": null - } - }, - { - "model": "facility.facility", - "pk": 2, - "fields": { - "external_id": "fa33079d-727d-4295-b0fd-19153b36b2db", - "created_date": "2022-09-27T07:15:51.075Z", - "modified_date": "2022-09-27T07:15:51.075Z", - "deleted": false, - "name": "Dummy Shifting Center", - "is_active": true, - "verified": false, - "facility_type": 1300, - "kasp_empanelled": false, - "features": "1,6", - "longitude": null, - "latitude": null, - "pincode": 670112, - "address": "89.66.33.55", - "ward": 218, - "local_body": 12, - "district": 7, - "state": 1, - "oxygen_capacity": 0, - "type_b_cylinders": 0, - "type_c_cylinders": 0, - "type_d_cylinders": 0, - "expected_oxygen_requirement": 0, - "expected_type_b_cylinders": 0, - "expected_type_c_cylinders": 0, - "expected_type_d_cylinders": 0, - "phone_number": "+919876665987", - "corona_testing": false, - "created_by": 2, - "cover_image_url": null, - "middleware_address": null - } - }, - { - "model": "facility.facility", - "pk": 3, - "fields": { - "external_id": "4c293ecd-1aae-4ebc-9b5b-b53497dffac9", - "created_date": "2023-09-15T06:11:14.166Z", - "modified_date": "2023-09-15T06:11:14.166Z", - "deleted": false, - "name": "Dummy Request Approving Center", - "is_active": true, - "verified": false, - "facility_type": 1500, - "kasp_empanelled": false, - "features": "1,4,6", - "longitude": "78.6757364624373000", - "latitude": "21.4009146842158660", - "pincode": 670000, - "address": "Dummy Facility Address", - "ward": 7574, - "local_body": 431, - "district": 7, - "state": 1, - "oxygen_capacity": 0, - "type_b_cylinders": 0, - "type_c_cylinders": 0, - "type_d_cylinders": 0, - "expected_oxygen_requirement": 0, - "expected_type_b_cylinders": 0, - "expected_type_c_cylinders": 0, - "expected_type_d_cylinders": 0, - "phone_number": "+919999999888", - "corona_testing": false, - "created_by": 2, - "cover_image_url": null, - "middleware_address": null - } - }, - { - "model": "facility.facility", - "pk": 4, - "fields": { - "external_id": "e70e0b82-7a99-48c2-a735-41cdea3b4076", - "created_date": "2023-09-15T06:12:14.266Z", - "modified_date": "2023-09-15T06:12:14.266Z", - "deleted": false, - "name": "Dummy Request Fulfilment Center", - "is_active": true, - "verified": false, - "facility_type": 1510, - "kasp_empanelled": false, - "features": "1,3,5", - "longitude": "75.2139014820876600", - "latitude": "18.2774285038890340", - "pincode": 670000, - "address": "Dummy Facility Address 2", - "ward": 5412, - "local_body": 309, - "district": 7, - "state": 1, - "oxygen_capacity": 0, - "type_b_cylinders": 0, - "type_c_cylinders": 0, - "type_d_cylinders": 0, - "expected_oxygen_requirement": 0, - "expected_type_b_cylinders": 0, - "expected_type_c_cylinders": 0, - "expected_type_d_cylinders": 0, - "phone_number": "+918899885588", - "corona_testing": false, - "created_by": 2, - "cover_image_url": null, - "middleware_address": null - } - }, - { - "model": "facility.hospitaldoctors", - "pk": 1, - "fields": { - "external_id": "d68776c9-1197-411f-b19d-2069364b17a2", - "created_date": "2023-09-15T06:12:36.941Z", - "modified_date": "2023-09-15T06:12:36.941Z", - "deleted": false, - "facility": 4, - "area": 2, - "count": 5 - } - }, - { - "model": "facility.hospitaldoctors", - "pk": 2, - "fields": { - "external_id": "df1ef651-4e4f-4a0a-9df7-55e5949468ce", - "created_date": "2023-09-15T06:12:54.835Z", - "modified_date": "2023-09-15T06:12:54.835Z", - "deleted": false, - "facility": 3, - "area": 3, - "count": 4 - } - }, - { - "model": "facility.historicalfacilitycapacity", - "pk": 1, - "fields": { - "id": 1, - "external_id": "bfb7a4d8-6bf0-46d6-bf20-d5020850ea55", - "created_date": "2022-09-27T07:00:19.399Z", - "modified_date": "2022-09-27T07:00:19.399Z", - "deleted": false, - "room_type": 150, - "total_capacity": 1000, - "current_capacity": 20, - "facility": 1, - "history_date": "2022-09-27T07:00:19.400Z", - "history_change_reason": null, - "history_type": "+", - "history_user": 2 - } - }, - { - "model": "facility.historicalfacilitycapacity", - "pk": 2, - "fields": { - "id": 2, - "external_id": "52bd4e97-9064-4697-8fea-37e0a2b8c87c", - "created_date": "2022-09-27T07:16:52.525Z", - "modified_date": "2022-09-27T07:16:52.525Z", - "deleted": false, - "room_type": 150, - "total_capacity": 20, - "current_capacity": 1, - "facility": 2, - "history_date": "2022-09-27T07:16:52.526Z", - "history_change_reason": null, - "history_type": "+", - "history_user": 2 - } - }, - { - "model": "facility.historicalfacilitycapacity", - "pk": 3, - "fields": { - "id": 3, - "external_id": "4fed54e3-672b-412c-998f-a7d8f303016c", - "created_date": "2023-09-15T06:12:31.548Z", - "modified_date": "2023-09-15T06:12:31.548Z", - "deleted": false, - "room_type": 150, - "total_capacity": 12, - "current_capacity": 2, - "facility": 4, - "history_date": "2023-09-15T06:12:31.550Z", - "history_change_reason": null, - "history_type": "+", - "history_user": 2 - } - }, - { - "model": "facility.historicalfacilitycapacity", - "pk": 4, - "fields": { - "id": 4, - "external_id": "c7d64165-8097-4dec-a4df-616647e70c31", - "created_date": "2023-09-15T06:12:50.165Z", - "modified_date": "2023-09-15T06:12:50.165Z", - "deleted": false, - "room_type": 20, - "total_capacity": 31, - "current_capacity": 2, - "facility": 3, - "history_date": "2023-09-15T06:12:50.166Z", - "history_change_reason": null, - "history_type": "+", - "history_user": 2 - } - }, - { - "model": "facility.facilitycapacity", - "pk": 1, - "fields": { - "external_id": "bfb7a4d8-6bf0-46d6-bf20-d5020850ea55", - "created_date": "2022-09-27T07:00:19.399Z", - "modified_date": "2022-09-27T07:00:19.399Z", - "deleted": false, - "facility": 1, - "room_type": 150, - "total_capacity": 1000, - "current_capacity": 20 - } - }, - { - "model": "facility.facilitycapacity", - "pk": 2, - "fields": { - "external_id": "52bd4e97-9064-4697-8fea-37e0a2b8c87c", - "created_date": "2022-09-27T07:16:52.525Z", - "modified_date": "2022-09-27T07:16:52.525Z", - "deleted": false, - "facility": 2, - "room_type": 150, - "total_capacity": 20, - "current_capacity": 1 - } - }, - { - "model": "facility.facilitycapacity", - "pk": 3, - "fields": { - "external_id": "4fed54e3-672b-412c-998f-a7d8f303016c", - "created_date": "2023-09-15T06:12:31.548Z", - "modified_date": "2023-09-15T06:12:31.548Z", - "deleted": false, - "facility": 4, - "room_type": 150, - "total_capacity": 12, - "current_capacity": 2 - } - }, - { - "model": "facility.facilitycapacity", - "pk": 4, - "fields": { - "external_id": "c7d64165-8097-4dec-a4df-616647e70c31", - "created_date": "2023-09-15T06:12:50.165Z", - "modified_date": "2023-09-15T06:12:50.165Z", - "deleted": false, - "facility": 3, - "room_type": 20, - "total_capacity": 31, - "current_capacity": 2 - } - }, - { - "model": "facility.facilityuser", - "pk": 1, - "fields": { - "facility": 1, - "user": 2, - "created_by": 2 - } - }, - { - "model": "facility.facilityuser", - "pk": 2, - "fields": { - "facility": 2, - "user": 2, - "created_by": 2 - } - }, - { - "model": "facility.facilityuser", - "pk": 3, - "fields": { - "facility": 1, - "user": 21, - "created_by": 2 - } - }, - { - "model": "facility.facilityuser", - "pk": 4, - "fields": { - "facility": 1, - "user": 22, - "created_by": 2 - } - }, - { - "model": "facility.facilityuser", - "pk": 5, - "fields": { - "facility": 3, - "user": 2, - "created_by": 2 - } - }, - { - "model": "facility.facilityuser", - "pk": 6, - "fields": { - "facility": 4, - "user": 2, - "created_by": 2 - } - }, - { - "model": "facility.assetlocation", - "pk": 1, - "fields": { - "external_id": "c3ab727f-dc3f-4a11-bf8d-2472bd79b5f7", - "created_date": "2022-09-27T07:02:07.969Z", - "modified_date": "2022-09-27T07:02:07.969Z", - "deleted": false, - "name": "Camera Locations", - "description": "", - "location_type": 1, - "facility": 1 - } - }, - { - "model": "facility.assetlocation", - "pk": 2, - "fields": { - "external_id": "a5cd0a56-cd5a-425c-9a87-cf79c0a90887", - "created_date": "2023-09-15T06:13:24.614Z", - "modified_date": "2023-09-15T06:13:24.614Z", - "deleted": false, - "name": "Dummy Location 1", - "description": "", - "location_type": 1, - "facility": 1 - } - }, - { - "model": "facility.asset", - "pk": 1, - "fields": { - "external_id": "ae4290a0-e86a-48d7-9c82-60b7d6514707", - "created_date": "2022-09-27T07:03:57.401Z", - "modified_date": "2022-09-27T07:03:57.401Z", - "deleted": false, - "name": "Dummy Camera 1", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 2, - "fields": { - "external_id": "7c06ec3c-838d-447a-bf36-d20239c8442f", - "created_date": "2022-09-27T07:04:30.802Z", - "modified_date": "2022-09-27T07:04:30.802Z", - "deleted": false, - "name": "Dummy Camera 2", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 3, - "fields": { - "external_id": "46740927-f782-49aa-bf6e-52a1208e8d18", - "created_date": "2022-09-27T07:04:35.291Z", - "modified_date": "2022-09-27T07:04:35.291Z", - "deleted": false, - "name": "Dummy Camera 3", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 4, - "fields": { - "external_id": "d6e9e071-e67e-4fbc-a872-4c3b1b9f749f", - "created_date": "2022-09-27T07:04:38.335Z", - "modified_date": "2022-09-27T07:04:38.335Z", - "deleted": false, - "name": "Dummy Camera 4", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 5, - "fields": { - "external_id": "35a2200d-6c1a-4c53-936c-60ebec1f9d42", - "created_date": "2022-09-27T07:04:41.179Z", - "modified_date": "2022-09-27T07:04:41.179Z", - "deleted": false, - "name": "Dummy Camera 5", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 6, - "fields": { - "external_id": "db1c2f95-5ae9-4e64-b647-30250beb79c7", - "created_date": "2022-09-27T07:04:43.869Z", - "modified_date": "2022-09-27T07:04:43.870Z", - "deleted": false, - "name": "Dummy Camera 6", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 7, - "fields": { - "external_id": "604ec344-a7d1-4523-8a6f-3e78cd3409ef", - "created_date": "2022-09-27T07:04:46.610Z", - "modified_date": "2022-09-27T07:04:46.610Z", - "deleted": false, - "name": "Dummy Camera 7", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 8, - "fields": { - "external_id": "271ace96-6bc6-4d32-916b-6b69eb81e4c3", - "created_date": "2022-09-27T07:04:49.732Z", - "modified_date": "2022-09-27T07:04:49.732Z", - "deleted": false, - "name": "Dummy Camera 8", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 9, - "fields": { - "external_id": "fe2f171f-0c69-4305-be60-0db625d0e38e", - "created_date": "2022-09-27T07:04:52.832Z", - "modified_date": "2022-09-27T07:04:52.832Z", - "deleted": false, - "name": "Dummy Camera 9", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 10, - "fields": { - "external_id": "cf77edb2-e771-46db-a73d-80ac2b446987", - "created_date": "2022-09-27T07:04:55.942Z", - "modified_date": "2022-09-27T07:04:55.942Z", - "deleted": false, - "name": "Dummy Camera 10", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 11, - "fields": { - "external_id": "2a19c4a9-84a2-41c8-ac0d-bbbc35e5f18d", - "created_date": "2022-09-27T07:04:58.599Z", - "modified_date": "2022-09-27T07:04:58.599Z", - "deleted": false, - "name": "Dummy Camera 11", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 12, - "fields": { - "external_id": "efb41cef-4d39-477f-b437-7ec9e4406971", - "created_date": "2022-09-27T07:05:01.182Z", - "modified_date": "2022-09-27T07:05:01.182Z", - "deleted": false, - "name": "Dummy Camera 12", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 13, - "fields": { - "external_id": "875b2bd3-67a8-4968-a589-d62c656cacb9", - "created_date": "2022-09-27T07:05:03.955Z", - "modified_date": "2022-09-27T07:05:03.955Z", - "deleted": false, - "name": "Dummy Camera 13", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 14, - "fields": { - "external_id": "b9ff3001-ed15-4538-bb54-78d0b2be445f", - "created_date": "2022-09-27T07:05:07.194Z", - "modified_date": "2022-09-27T07:05:07.194Z", - "deleted": false, - "name": "Dummy Camera 14", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 15, - "fields": { - "external_id": "a9678d31-17a9-4474-be01-c095553e97b5", - "created_date": "2022-09-27T07:05:10.384Z", - "modified_date": "2022-09-27T07:05:10.384Z", - "deleted": false, - "name": "Dummy Camera 15", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 16, - "fields": { - "external_id": "b0e4063e-3f05-4f94-aea0-e15e9e474f96", - "created_date": "2022-09-27T07:05:13.857Z", - "modified_date": "2022-09-27T07:05:13.857Z", - "deleted": false, - "name": "Dummy Camera 16", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 17, - "fields": { - "external_id": "634e1421-f1a7-41d1-bde2-13d1ee7eabf4", - "created_date": "2022-09-27T07:05:16.707Z", - "modified_date": "2022-09-27T07:05:16.707Z", - "deleted": false, - "name": "Dummy Camera 17", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 18, - "fields": { - "external_id": "17992979-d18a-46c6-a48f-c7f0f40f85c3", - "created_date": "2022-09-27T07:05:19.781Z", - "modified_date": "2022-09-27T07:05:19.781Z", - "deleted": false, - "name": "Dummy Camera 18", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 19, - "fields": { - "external_id": "c6e2c6c3-ba16-4c69-b1f8-822d28317268", - "created_date": "2022-09-27T07:13:12.608Z", - "modified_date": "2022-09-27T07:13:12.608Z", - "deleted": false, - "name": "Dummy Camera 19", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 20, - "fields": { - "external_id": "cb375e24-a98c-45ed-85c4-bdd340625357", - "created_date": "2022-09-27T07:13:16.362Z", - "modified_date": "2022-09-27T07:13:16.362Z", - "deleted": false, - "name": "Dummy Camera 20", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 21, - "fields": { - "external_id": "36a0d62c-9f2d-465f-ad9f-772ec7a342d0", - "created_date": "2022-09-27T07:13:19.599Z", - "modified_date": "2022-09-27T07:13:19.599Z", - "deleted": false, - "name": "Dummy Camera 21", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 22, - "fields": { - "external_id": "e24d8936-e4f3-4f30-870e-8bc560be66f2", - "created_date": "2022-09-27T07:13:22.225Z", - "modified_date": "2022-09-27T07:13:22.225Z", - "deleted": false, - "name": "Dummy Camera 22", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 23, - "fields": { - "external_id": "cc0ebf9e-0fe1-45ff-9954-4b92fc072846", - "created_date": "2022-09-27T07:13:25.053Z", - "modified_date": "2022-09-27T07:13:25.053Z", - "deleted": false, - "name": "Dummy Camera 23", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 24, - "fields": { - "external_id": "b10bed38-4a06-473a-85f8-87004703bb2a", - "created_date": "2022-09-27T07:13:27.907Z", - "modified_date": "2022-09-27T07:13:27.907Z", - "deleted": false, - "name": "Dummy Camera 24", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 25, - "fields": { - "external_id": "51ce3355-1773-47c0-a929-54bb57293940", - "created_date": "2022-09-27T07:13:30.944Z", - "modified_date": "2022-09-27T07:13:30.944Z", - "deleted": false, - "name": "Dummy Camera 25", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 26, - "fields": { - "external_id": "567ddf56-f86a-488e-bdff-9c69daacb654", - "created_date": "2022-09-27T07:13:33.581Z", - "modified_date": "2022-09-27T07:13:33.581Z", - "deleted": false, - "name": "Dummy Camera 26", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 27, - "fields": { - "external_id": "234a8559-167b-4e61-9971-15dbc59b9319", - "created_date": "2022-09-27T07:13:37.020Z", - "modified_date": "2022-09-27T07:13:37.020Z", - "deleted": false, - "name": "Dummy Camera 27", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 28, - "fields": { - "external_id": "3f203a24-84ae-44c0-897a-1b3ddd42e072", - "created_date": "2022-09-27T07:13:39.951Z", - "modified_date": "2022-09-27T07:13:39.951Z", - "deleted": false, - "name": "Dummy Camera 28", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 29, - "fields": { - "external_id": "fc4c25cd-de00-494a-ad58-20e581520198", - "created_date": "2022-09-27T07:13:43.511Z", - "modified_date": "2022-09-27T07:13:43.511Z", - "deleted": false, - "name": "Dummy Camera 29", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 30, - "fields": { - "external_id": "cb6f3bf8-cfea-498a-a4f1-effae723d6e0", - "created_date": "2022-09-27T07:13:46.850Z", - "modified_date": "2022-09-27T07:13:46.850Z", - "deleted": false, - "name": "Dummy Camera 30", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.patientconsultation", - "pk": 1, - "fields": { - "external_id": "b5217729-3008-4a44-b347-72ba738d5f45", - "created_date": "2022-09-27T07:20:40.117Z", - "modified_date": "2022-09-27T07:20:40.123Z", - "deleted": false, - "patient": 1, - "patient_no": "88.99.44.66", - "facility": 1, - "symptoms": "3", - "other_symptoms": "", - "symptoms_onset_date": "2022-09-27T07:19:53.380Z", - "deprecated_covid_category": null, - "category": "Moderate", - "examination_details": "", - "history_of_present_illness": "", - "treatment_plan": "", - "consultation_notes": "Transfer", - "course_in_facility": null, - "investigation": [], - "prescriptions": {}, - "procedure": {}, - "suggestion": "R", - "route_to_facility": null, - "review_interval": -1, - "referred_to": 2, - "is_readmission": false, - "referred_to_external": "", - "admitted": false, - "admission_date": null, - "discharge_date": null, - "discharge_reason": null, - "discharge_notes": "", - "discharge_prescription": {}, - "discharge_prn_prescription": {}, - "death_datetime": null, - "death_confirmed_doctor": "", - "bed_number": null, - "is_kasp": false, - "kasp_enabled_date": null, - "is_telemedicine": false, - "last_updated_by_telemedicine": false, - "assigned_to": null, - "deprecated_verified_by": "", - "treating_physician": null, - "created_by": 2, - "last_edited_by": 2, - "last_daily_round": null, - "current_bed": null, - "height": 0.0, - "weight": 0.0, - "operation": null, - "special_instruction": "", - "intubation_history": [], - "prn_prescription": [], - "discharge_advice": [] - } - }, - { - "model": "facility.bed", - "pk": 1, - "fields": { - "external_id": "260de825-7ef2-4155-8fd2-ae4d66980734", - "created_date": "2023-09-15T06:13:43.199Z", - "modified_date": "2023-09-15T06:13:43.199Z", - "deleted": false, - "name": "Dummy Bed 1", - "description": "", - "bed_type": 2, - "facility": 1, - "meta": {}, - "location": 2 - } - }, - { - "model": "facility.bed", - "pk": 2, - "fields": { - "external_id": "8ab99d71-7263-4c60-b6d4-b22e7f8dfecf", - "created_date": "2023-09-15T06:13:43.199Z", - "modified_date": "2023-09-15T06:13:43.199Z", - "deleted": false, - "name": "Dummy Bed 2", - "description": "", - "bed_type": 2, - "facility": 1, - "meta": {}, - "location": 2 - } - }, - { - "model": "facility.bed", - "pk": 3, - "fields": { - "external_id": "e7a9c643-4841-47f3-9729-4ccdadb9783a", - "created_date": "2023-09-15T06:13:43.200Z", - "modified_date": "2023-09-15T06:13:43.200Z", - "deleted": false, - "name": "Dummy Bed 3", - "description": "", - "bed_type": 2, - "facility": 1, - "meta": {}, - "location": 2 - } - }, - { - "model": "facility.bed", - "pk": 5, - "fields": { - "external_id": "fe749328-1a6a-43ae-b4c2-fb718b8ca84b", - "created_date": "2023-09-15T06:14:13.862Z", - "modified_date": "2023-09-15T06:14:13.862Z", - "deleted": false, - "name": "Dummy Bed 5", - "description": "", - "bed_type": 1, - "facility": 1, - "meta": {}, - "location": 1 - } - }, - { - "model": "facility.bed", - "pk": 7, - "fields": { - "external_id": "ddd0ce36-c4ff-409c-96d3-ea943ac876e4", - "created_date": "2023-09-15T06:14:45.458Z", - "modified_date": "2023-09-15T06:14:45.458Z", - "deleted": false, - "name": "Dummy Bed 6", - "description": "", - "bed_type": 6, - "facility": 1, - "meta": {}, - "location": 1 - } - }, - { - "model": "facility.bed", - "pk": 8, - "fields": { - "external_id": "90a90743-0a95-42c1-bdf2-b7fbf9b9edd1", - "created_date": "2023-09-15T06:14:56.105Z", - "modified_date": "2023-09-15T06:14:56.105Z", - "deleted": false, - "name": "Dummy Bed 4", - "description": "", - "bed_type": 2, - "facility": 1, - "meta": {}, - "location": 1 - } - }, - { - "model": "facility.facilityinventoryitemtag", - "pk": 1, - "fields": { - "name": "Safety" - } - }, - { - "model": "facility.facilityinventoryitemtag", - "pk": 2, - "fields": { - "name": "Medical" - } - }, - { - "model": "facility.facilityinventoryitemtag", - "pk": 3, - "fields": { - "name": "Food" - } - }, - { - "model": "facility.facilityinventoryunit", - "pk": 1, - "fields": { - "name": "Items" - } - }, - { - "model": "facility.facilityinventoryunit", - "pk": 2, - "fields": { - "name": "Dozen" - } - }, - { - "model": "facility.facilityinventoryunit", - "pk": 3, - "fields": { - "name": "Kilo Litre" - } - }, - { - "model": "facility.facilityinventoryunit", - "pk": 4, - "fields": { - "name": "Cylinders" - } - }, - { - "model": "facility.facilityinventoryunit", - "pk": 5, - "fields": { - "name": "kg" - } - }, - { - "model": "facility.facilityinventoryunit", - "pk": 6, - "fields": { - "name": "gram" - } - }, - { - "model": "facility.facilityinventoryunit", - "pk": 7, - "fields": { - "name": "Cubic Meter" - } - }, - { - "model": "facility.facilityinventoryunitconverter", - "pk": 1, - "fields": { - "from_unit": 5, - "to_unit": 6, - "multiplier": 1000.0 - } - }, - { - "model": "facility.facilityinventoryunitconverter", - "pk": 2, - "fields": { - "from_unit": 2, - "to_unit": 1, - "multiplier": 12.0 - } - }, - { - "model": "facility.facilityinventoryitem", - "pk": 1, - "fields": { - "name": "PPE", - "default_unit": 1, - "description": "", - "min_quantity": 150.0, - "allowed_units": [ - 1, - 2 - ], - "tags": [ - 1, - 2 - ] - } - }, - { - "model": "facility.facilityinventoryitem", - "pk": 2, - "fields": { - "name": "IV Fluid 500 ml", - "default_unit": 1, - "description": "", - "min_quantity": 2.0, - "allowed_units": [ - 1, - 2 - ], - "tags": [ - 2 - ] - } - }, - { - "model": "facility.facilityinventoryitem", - "pk": 3, - "fields": { - "name": "Liquid Oxygen", - "default_unit": 7, - "description": "", - "min_quantity": 10.0, - "allowed_units": [ - 7 - ], - "tags": [ - 2 - ] - } - }, - { - "model": "facility.facilityinventoryitem", - "pk": 4, - "fields": { - "name": "Jumbo D Type Oxygen Cylinder", - "default_unit": 4, - "description": "", - "min_quantity": 100.0, - "allowed_units": [ - 4 - ], - "tags": [] - } - }, - { - "model": "facility.facilityinventoryitem", - "pk": 5, - "fields": { - "name": "B Type Oxygen Cylinder", - "default_unit": 4, - "description": "", - "min_quantity": 100.0, - "allowed_units": [ - 4 - ], - "tags": [] - } - }, - { - "model": "facility.facilityinventoryitem", - "pk": 6, - "fields": { - "name": "C Type Oxygen Cylinder", - "default_unit": 4, - "description": "", - "min_quantity": 100.0, - "allowed_units": [ - 4 - ], - "tags": [] - } - }, - { - "model": "facility.facilityinventoryitem", - "pk": 7, - "fields": { - "name": "Gaseous Oxygen", - "default_unit": 7, - "description": "", - "min_quantity": 10.0, - "allowed_units": [ - 7 - ], - "tags": [ - 2 - ] - } - }, - { - "model": "facility.historicalpatientregistration", - "pk": 1, - "fields": { - "id": 1, - "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", - "created_date": "2022-09-27T07:19:20.379Z", - "modified_date": "2022-09-27T07:19:20.379Z", - "deleted": false, - "source": 10, - "name": "Dummy Patient", - "age": 120, - "gender": 1, - "phone_number": "+911234567896", - "emergency_phone_number": "+919898797775", - "address": "55.66.44.33", - "permanent_address": "55.66.44.33", - "pincode": 600115, - "date_of_birth": "1901-10-16", - "year_of_birth": 1901, - "nationality": "India", - "passport_no": "", - "is_medical_worker": false, - "blood_group": "O+", - "contact_with_confirmed_carrier": false, - "contact_with_suspected_carrier": false, - "estimated_contact_date": null, - "past_travel": false, - "countries_travelled_old": null, - "countries_travelled": null, - "date_of_return": null, - "allergies": "", - "present_health": "", - "ongoing_medication": "", - "has_SARI": false, - "is_antenatal": false, - "ward_old": "", - "is_migrant_worker": false, - "disease_status": 2, - "number_of_aged_dependents": 0, - "number_of_chronic_diseased_dependents": 0, - "action": 10, - "review_time": null, - "is_active": true, - "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", - "test_id": "", - "date_of_test": null, - "srf_id": "", - "test_type": 30, - "allow_transfer": false, - "will_donate_blood": null, - "fit_for_blood_donation": null, - "village": "", - "designation_of_health_care_worker": "", - "instituion_of_health_care_worker": "", - "transit_details": null, - "frontline_worker": null, - "date_of_result": null, - "number_of_primary_contacts": null, - "number_of_secondary_contacts": null, - "is_vaccinated": false, - "number_of_doses": 0, - "vaccine_name": null, - "covin_id": null, - "last_vaccinated_date": null, - "cluster_name": null, - "is_declared_positive": true, - "date_declared_positive": "2022-09-27T07:15:04.715Z", - "facility": 1, - "nearest_facility": null, - "ward": 1729, - "local_body": 95, - "district": 7, - "state": 1, - "last_edited": null, - "created_by": 2, - "last_consultation": null, - "assigned_to": null, - "abha_number": null, - "history_date": "2022-09-27T07:19:20.385Z", - "history_change_reason": null, - "history_type": "+", - "history_user": 2 - } - }, - { - "model": "facility.historicalpatientregistration", - "pk": 2, - "fields": { - "id": 1, - "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", - "created_date": "2022-09-27T07:19:20.379Z", - "modified_date": "2022-09-27T07:19:20.400Z", - "deleted": false, - "source": 10, - "name": "Dummy Patient", - "age": 120, - "gender": 1, - "phone_number": "+911234567896", - "emergency_phone_number": "+919898797775", - "address": "55.66.44.33", - "permanent_address": "55.66.44.33", - "pincode": 600115, - "date_of_birth": "1901-10-16", - "year_of_birth": 1901, - "nationality": "India", - "passport_no": "", - "is_medical_worker": false, - "blood_group": "O+", - "contact_with_confirmed_carrier": false, - "contact_with_suspected_carrier": false, - "estimated_contact_date": null, - "past_travel": false, - "countries_travelled_old": null, - "countries_travelled": null, - "date_of_return": null, - "allergies": "", - "present_health": "", - "ongoing_medication": "", - "has_SARI": false, - "is_antenatal": false, - "ward_old": "", - "is_migrant_worker": false, - "disease_status": 2, - "number_of_aged_dependents": 0, - "number_of_chronic_diseased_dependents": 0, - "action": 10, - "review_time": null, - "is_active": true, - "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", - "test_id": "", - "date_of_test": null, - "srf_id": "", - "test_type": 30, - "allow_transfer": false, - "will_donate_blood": null, - "fit_for_blood_donation": null, - "village": "", - "designation_of_health_care_worker": "", - "instituion_of_health_care_worker": "", - "transit_details": null, - "frontline_worker": null, - "date_of_result": null, - "number_of_primary_contacts": null, - "number_of_secondary_contacts": null, - "is_vaccinated": false, - "number_of_doses": 0, - "vaccine_name": null, - "covin_id": null, - "last_vaccinated_date": null, - "cluster_name": null, - "is_declared_positive": true, - "date_declared_positive": "2022-09-27T07:15:04.715Z", - "facility": 1, - "nearest_facility": null, - "ward": 1729, - "local_body": 95, - "district": 7, - "state": 1, - "last_edited": null, - "created_by": 2, - "last_consultation": null, - "assigned_to": null, - "abha_number": null, - "history_date": "2022-09-27T07:19:20.403Z", - "history_change_reason": null, - "history_type": "~", - "history_user": 2 - } - }, - { - "model": "facility.historicalpatientregistration", - "pk": 3, - "fields": { - "id": 1, - "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", - "created_date": "2022-09-27T07:19:20.379Z", - "modified_date": "2022-09-27T07:19:20.413Z", - "deleted": false, - "source": 10, - "name": "Dummy Patient", - "age": 120, - "gender": 1, - "phone_number": "+911234567896", - "emergency_phone_number": "+919898797775", - "address": "55.66.44.33", - "permanent_address": "55.66.44.33", - "pincode": 600115, - "date_of_birth": "1901-10-16", - "year_of_birth": 1901, - "nationality": "India", - "passport_no": "", - "is_medical_worker": false, - "blood_group": "O+", - "contact_with_confirmed_carrier": false, - "contact_with_suspected_carrier": false, - "estimated_contact_date": null, - "past_travel": false, - "countries_travelled_old": null, - "countries_travelled": null, - "date_of_return": null, - "allergies": "", - "present_health": "", - "ongoing_medication": "", - "has_SARI": false, - "is_antenatal": false, - "ward_old": "", - "is_migrant_worker": false, - "disease_status": 2, - "number_of_aged_dependents": 0, - "number_of_chronic_diseased_dependents": 0, - "action": 10, - "review_time": null, - "is_active": true, - "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", - "test_id": "", - "date_of_test": null, - "srf_id": "", - "test_type": 30, - "allow_transfer": false, - "will_donate_blood": null, - "fit_for_blood_donation": null, - "village": "", - "designation_of_health_care_worker": "", - "instituion_of_health_care_worker": "", - "transit_details": null, - "frontline_worker": null, - "date_of_result": null, - "number_of_primary_contacts": null, - "number_of_secondary_contacts": null, - "is_vaccinated": false, - "number_of_doses": 0, - "vaccine_name": null, - "covin_id": null, - "last_vaccinated_date": null, - "cluster_name": null, - "is_declared_positive": true, - "date_declared_positive": "2022-09-27T07:15:04.715Z", - "facility": 1, - "nearest_facility": null, - "ward": 1729, - "local_body": 95, - "district": 7, - "state": 1, - "last_edited": 2, - "created_by": 2, - "last_consultation": null, - "assigned_to": null, - "abha_number": null, - "history_date": "2022-09-27T07:19:20.415Z", - "history_change_reason": null, - "history_type": "~", - "history_user": 2 - } - }, - { - "model": "facility.historicalpatientregistration", - "pk": 4, - "fields": { - "id": 1, - "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", - "created_date": "2022-09-27T07:19:20.379Z", - "modified_date": "2022-09-27T07:20:40.135Z", - "deleted": false, - "source": 10, - "name": "Dummy Patient", - "age": 120, - "gender": 1, - "phone_number": "+911234567896", - "emergency_phone_number": "+919898797775", - "address": "55.66.44.33", - "permanent_address": "55.66.44.33", - "pincode": 600115, - "date_of_birth": "1901-10-16", - "year_of_birth": 1901, - "nationality": "India", - "passport_no": "", - "is_medical_worker": false, - "blood_group": "O+", - "contact_with_confirmed_carrier": false, - "contact_with_suspected_carrier": false, - "estimated_contact_date": null, - "past_travel": false, - "countries_travelled_old": null, - "countries_travelled": null, - "date_of_return": null, - "allergies": "", - "present_health": "", - "ongoing_medication": "", - "has_SARI": false, - "is_antenatal": false, - "ward_old": "", - "is_migrant_worker": false, - "disease_status": 2, - "number_of_aged_dependents": 0, - "number_of_chronic_diseased_dependents": 0, - "action": 10, - "review_time": null, - "is_active": true, - "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", - "test_id": "", - "date_of_test": null, - "srf_id": "", - "test_type": 30, - "allow_transfer": false, - "will_donate_blood": null, - "fit_for_blood_donation": null, - "village": "", - "designation_of_health_care_worker": "", - "instituion_of_health_care_worker": "", - "transit_details": null, - "frontline_worker": null, - "date_of_result": null, - "number_of_primary_contacts": null, - "number_of_secondary_contacts": null, - "is_vaccinated": false, - "number_of_doses": 0, - "vaccine_name": null, - "covin_id": null, - "last_vaccinated_date": null, - "cluster_name": null, - "is_declared_positive": true, - "date_declared_positive": "2022-09-27T07:15:04.715Z", - "facility": 1, - "nearest_facility": null, - "ward": 1729, - "local_body": 95, - "district": 7, - "state": 1, - "last_edited": 2, - "created_by": 2, - "last_consultation": 1, - "assigned_to": null, - "abha_number": null, - "history_date": "2022-09-27T07:20:40.139Z", - "history_change_reason": null, - "history_type": "~", - "history_user": 2 - } - }, - { - "model": "facility.historicalpatientregistration", - "pk": 5, - "fields": { - "id": 1, - "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", - "created_date": "2022-09-27T07:19:20.379Z", - "modified_date": "2022-09-27T07:22:00.563Z", - "deleted": false, - "source": 10, - "name": "Dummy Patient", - "age": 120, - "gender": 1, - "phone_number": "+911234567896", - "emergency_phone_number": "+919898797775", - "address": "55.66.44.33", - "permanent_address": "55.66.44.33", - "pincode": 600115, - "date_of_birth": "1901-10-16", - "year_of_birth": 1901, - "nationality": "India", - "passport_no": "", - "is_medical_worker": false, - "blood_group": "O+", - "contact_with_confirmed_carrier": false, - "contact_with_suspected_carrier": false, - "estimated_contact_date": null, - "past_travel": false, - "countries_travelled_old": null, - "countries_travelled": null, - "date_of_return": null, - "allergies": "", - "present_health": "", - "ongoing_medication": "", - "has_SARI": false, - "is_antenatal": false, - "ward_old": "", - "is_migrant_worker": false, - "disease_status": 2, - "number_of_aged_dependents": 0, - "number_of_chronic_diseased_dependents": 0, - "action": 10, - "review_time": null, - "is_active": true, - "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", - "test_id": "", - "date_of_test": null, - "srf_id": "", - "test_type": 30, - "allow_transfer": true, - "will_donate_blood": null, - "fit_for_blood_donation": null, - "village": "", - "designation_of_health_care_worker": "", - "instituion_of_health_care_worker": "", - "transit_details": null, - "frontline_worker": null, - "date_of_result": null, - "number_of_primary_contacts": null, - "number_of_secondary_contacts": null, - "is_vaccinated": false, - "number_of_doses": 0, - "vaccine_name": null, - "covin_id": null, - "last_vaccinated_date": null, - "cluster_name": null, - "is_declared_positive": true, - "date_declared_positive": "2022-09-27T07:15:04.715Z", - "facility": 1, - "nearest_facility": null, - "ward": 1729, - "local_body": 95, - "district": 7, - "state": 1, - "last_edited": 2, - "created_by": 2, - "last_consultation": 1, - "assigned_to": null, - "abha_number": null, - "history_date": "2022-09-27T07:22:00.566Z", - "history_change_reason": null, - "history_type": "~", - "history_user": 2 - } - }, - { - "model": "facility.patientregistration", - "pk": 1, - "fields": { - "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", - "created_date": "2022-09-27T07:19:20.379Z", - "modified_date": "2022-09-27T07:22:00.563Z", - "deleted": false, - "source": 10, - "facility": 1, - "nearest_facility": null, - "meta_info": null, - "name": "Dummy Patient", - "age": 120, - "gender": 1, - "phone_number": "+911234567896", - "emergency_phone_number": "+919898797775", - "address": "55.66.44.33", - "permanent_address": "55.66.44.33", - "pincode": 600115, - "date_of_birth": "1901-10-16", - "year_of_birth": 1901, - "nationality": "India", - "passport_no": "", - "is_medical_worker": false, - "blood_group": "O+", - "contact_with_confirmed_carrier": false, - "contact_with_suspected_carrier": false, - "estimated_contact_date": null, - "past_travel": false, - "countries_travelled_old": null, - "countries_travelled": null, - "date_of_return": null, - "allergies": "", - "present_health": "", - "ongoing_medication": "", - "has_SARI": false, - "is_antenatal": false, - "ward_old": "", - "ward": 1729, - "local_body": 95, - "district": 7, - "state": 1, - "is_migrant_worker": false, - "disease_status": 2, - "number_of_aged_dependents": 0, - "number_of_chronic_diseased_dependents": 0, - "last_edited": 2, - "action": 10, - "review_time": null, - "created_by": 2, - "is_active": true, - "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", - "test_id": "", - "date_of_test": null, - "srf_id": "", - "test_type": 30, - "allow_transfer": true, - "last_consultation": 1, - "will_donate_blood": null, - "fit_for_blood_donation": null, - "village": "", - "designation_of_health_care_worker": "", - "instituion_of_health_care_worker": "", - "transit_details": null, - "frontline_worker": null, - "date_of_result": null, - "number_of_primary_contacts": null, - "number_of_secondary_contacts": null, - "is_vaccinated": false, - "number_of_doses": 0, - "vaccine_name": null, - "covin_id": null, - "last_vaccinated_date": null, - "cluster_name": null, - "is_declared_positive": true, - "date_declared_positive": "2022-09-27T07:15:04.715Z", - "assigned_to": null, - "abha_number": null - } - }, - { - "model": "facility.disease", - "pk": 1, - "fields": { - "patient": 1, - "disease": 1, - "details": "", - "deleted": false - } - }, - { - "model": "facility.patientsample", - "pk": 1, - "fields": { - "external_id": "29689b96-6018-426f-984f-344fa5e3186b", - "created_date": "2022-09-27T07:23:29.568Z", - "modified_date": "2022-09-27T07:23:29.574Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 2, - "fields": { - "external_id": "ea48179e-90c5-450b-800d-c1866d2d3d74", - "created_date": "2022-09-27T07:25:39.605Z", - "modified_date": "2022-09-27T07:25:39.609Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 3, - "fields": { - "external_id": "dcaf07f9-8412-45bb-bb7c-1c232c28e9da", - "created_date": "2022-09-27T07:25:41.681Z", - "modified_date": "2022-09-27T07:25:41.685Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 4, - "fields": { - "external_id": "80868c78-4917-4401-b4b4-9eea49c47493", - "created_date": "2022-09-27T07:25:42.673Z", - "modified_date": "2022-09-27T07:25:42.676Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 5, - "fields": { - "external_id": "093863c4-1778-4464-9ee9-c408bef0bafe", - "created_date": "2022-09-27T07:25:43.611Z", - "modified_date": "2022-09-27T07:25:43.615Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 6, - "fields": { - "external_id": "5b015be7-ffb3-4f36-a08a-7510dd53ee7f", - "created_date": "2022-09-27T07:25:44.707Z", - "modified_date": "2022-09-27T07:25:44.711Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 7, - "fields": { - "external_id": "b8cb7a31-5480-4466-8388-de1eafa35ede", - "created_date": "2022-09-27T07:25:52.375Z", - "modified_date": "2022-09-27T07:25:52.379Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 8, - "fields": { - "external_id": "c04f9bd2-e11f-466e-8649-d80f9e5d8649", - "created_date": "2022-09-27T07:25:53.556Z", - "modified_date": "2022-09-27T07:25:53.559Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 9, - "fields": { - "external_id": "27001f33-e193-42d5-8809-61b2c63304a9", - "created_date": "2022-09-27T07:25:54.406Z", - "modified_date": "2022-09-27T07:25:54.410Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 10, - "fields": { - "external_id": "1a604325-11bf-44b7-985b-6222b6c37092", - "created_date": "2022-09-27T07:25:55.280Z", - "modified_date": "2022-09-27T07:25:55.284Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 11, - "fields": { - "external_id": "0bd4f6ff-e084-4d2c-9803-79b829682a1d", - "created_date": "2022-09-27T07:25:56.119Z", - "modified_date": "2022-09-27T07:25:56.123Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 12, - "fields": { - "external_id": "fecb4ef3-2889-47ca-8e08-6a27a5e77715", - "created_date": "2022-09-27T07:25:56.959Z", - "modified_date": "2022-09-27T07:25:56.964Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 13, - "fields": { - "external_id": "45186f6d-1ed5-454a-aadd-94ceaefacf20", - "created_date": "2022-09-27T07:25:57.875Z", - "modified_date": "2022-09-27T07:25:57.878Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 14, - "fields": { - "external_id": "bcbc2e7e-d2b8-4e5e-ab50-7c36a51c1e09", - "created_date": "2022-09-27T07:25:58.676Z", - "modified_date": "2022-09-27T07:25:58.681Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 15, - "fields": { - "external_id": "342639b4-f347-4f83-87d1-85c6d7968ee7", - "created_date": "2022-09-27T07:25:59.671Z", - "modified_date": "2022-09-27T07:25:59.674Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 16, - "fields": { - "external_id": "388099f9-f005-47c1-9be3-650ddda769a0", - "created_date": "2022-09-27T07:26:00.354Z", - "modified_date": "2022-09-27T07:26:00.358Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 17, - "fields": { - "external_id": "5aef7a72-5e2c-4a0f-b689-747aae8b0dce", - "created_date": "2022-09-27T07:26:00.860Z", - "modified_date": "2022-09-27T07:26:00.863Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 1, - "fields": { - "external_id": "64bf6eb2-055d-4a16-8c91-e7ce1390e541", - "created_date": "2022-09-27T07:23:29.580Z", - "modified_date": "2022-09-27T07:23:29.580Z", - "deleted": false, - "patient_sample": 1, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 2, - "fields": { - "external_id": "1f68131b-9aab-456f-b61b-eb0a93d521c4", - "created_date": "2022-09-27T07:25:39.613Z", - "modified_date": "2022-09-27T07:25:39.613Z", - "deleted": false, - "patient_sample": 2, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 3, - "fields": { - "external_id": "80ead199-cd58-44c3-97de-4142e3e7d7ac", - "created_date": "2022-09-27T07:25:41.689Z", - "modified_date": "2022-09-27T07:25:41.689Z", - "deleted": false, - "patient_sample": 3, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 4, - "fields": { - "external_id": "ebe8ffac-1ca0-40fe-80d3-b895e7524ce2", - "created_date": "2022-09-27T07:25:42.681Z", - "modified_date": "2022-09-27T07:25:42.681Z", - "deleted": false, - "patient_sample": 4, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 5, - "fields": { - "external_id": "ed7f8727-3784-40cd-97c6-49e9de3e2fdb", - "created_date": "2022-09-27T07:25:43.620Z", - "modified_date": "2022-09-27T07:25:43.620Z", - "deleted": false, - "patient_sample": 5, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 6, - "fields": { - "external_id": "f7a3695f-bfd4-4af5-9280-e2d54124286e", - "created_date": "2022-09-27T07:25:44.716Z", - "modified_date": "2022-09-27T07:25:44.716Z", - "deleted": false, - "patient_sample": 6, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 7, - "fields": { - "external_id": "a0cad511-4dad-4244-93c4-50277d6734c2", - "created_date": "2022-09-27T07:25:52.383Z", - "modified_date": "2022-09-27T07:25:52.383Z", - "deleted": false, - "patient_sample": 7, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 8, - "fields": { - "external_id": "f3ff09b9-1c79-4afc-bd3d-70eeecc87daa", - "created_date": "2022-09-27T07:25:53.564Z", - "modified_date": "2022-09-27T07:25:53.564Z", - "deleted": false, - "patient_sample": 8, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 9, - "fields": { - "external_id": "a03684c4-4769-4643-b457-8be382895e8b", - "created_date": "2022-09-27T07:25:54.414Z", - "modified_date": "2022-09-27T07:25:54.414Z", - "deleted": false, - "patient_sample": 9, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 10, - "fields": { - "external_id": "a62f7677-31af-42f6-94f9-fcb5e8ab94de", - "created_date": "2022-09-27T07:25:55.288Z", - "modified_date": "2022-09-27T07:25:55.288Z", - "deleted": false, - "patient_sample": 10, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 11, - "fields": { - "external_id": "e9dae65e-bca7-47fc-b490-8ef4de67e331", - "created_date": "2022-09-27T07:25:56.127Z", - "modified_date": "2022-09-27T07:25:56.127Z", - "deleted": false, - "patient_sample": 11, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 12, - "fields": { - "external_id": "e065bb9a-10d2-4bdd-b375-affa163dacdf", - "created_date": "2022-09-27T07:25:56.968Z", - "modified_date": "2022-09-27T07:25:56.968Z", - "deleted": false, - "patient_sample": 12, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 13, - "fields": { - "external_id": "dae215d0-bbfe-41e5-a6e2-20e4504eb068", - "created_date": "2022-09-27T07:25:57.883Z", - "modified_date": "2022-09-27T07:25:57.883Z", - "deleted": false, - "patient_sample": 13, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 14, - "fields": { - "external_id": "dabdd193-f800-4848-902b-b33b345252e5", - "created_date": "2022-09-27T07:25:58.686Z", - "modified_date": "2022-09-27T07:25:58.686Z", - "deleted": false, - "patient_sample": 14, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 15, - "fields": { - "external_id": "8a32a9f0-0686-4104-8fe7-27c7be6a4233", - "created_date": "2022-09-27T07:25:59.679Z", - "modified_date": "2022-09-27T07:25:59.679Z", - "deleted": false, - "patient_sample": 15, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 16, - "fields": { - "external_id": "db4ceed2-a7e5-4cb1-828b-085ddae5fa0a", - "created_date": "2022-09-27T07:26:00.363Z", - "modified_date": "2022-09-27T07:26:00.363Z", - "deleted": false, - "patient_sample": 16, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 17, - "fields": { - "external_id": "48b8eb3a-c901-429a-abbb-7e5aae0f9cd2", - "created_date": "2022-09-27T07:26:00.867Z", - "modified_date": "2022-09-27T07:26:00.867Z", - "deleted": false, - "patient_sample": 17, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.shiftingrequest", - "pk": 1, - "fields": { - "external_id": "a0e4cf70-49b4-4e26-83fa-c2c962386885", - "created_date": "2022-09-27T07:22:00.581Z", - "modified_date": "2022-09-27T07:22:00.581Z", - "deleted": false, - "origin_facility": 1, - "shifting_approving_facility": 2, - "assigned_facility_type": 2, - "assigned_facility": null, - "assigned_facility_external": "", - "patient": 1, - "emergency": true, - "is_up_shift": true, - "reason": "Test", - "vehicle_preference": "", - "preferred_vehicle_choice": 10, - "comments": "", - "refering_facility_contact_name": "Someone at Facility", - "refering_facility_contact_number": "+914455666777", - "is_kasp": false, - "status": 10, - "breathlessness_level": 30, - "is_assigned_to_user": false, - "assigned_to": null, - "ambulance_driver_name": "", - "ambulance_phone_number": "", - "ambulance_number": "", - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.facilityrelatedsummary", - "pk": "99627ad6-53e7-4585-821a-21ac6e765f7b", - "fields": { - "created_date": "2022-09-27T07:00:00.163Z", - "modified_date": "2022-09-27T07:25:00.165Z", - "facility": 1, - "s_type": "FacilityCapacity", - "data": { - "id": "81092ced-8720-44cb-b4c5-3f0ad0540153", - "name": "Dummy Facility 1", - "ward": 1, - "state": 1, - "address": "127.0.0.1", - "pincode": 670000, - "district": 7, - "features": [ - 1, - 2, - 3, - 4, - 5, - 6 - ], - "latitude": null, - "inventory": {}, - "longitude": null, - "local_body": 920, - "ward_object": { - "id": 1, - "name": "NEERICODE WEST", - "number": 1, - "local_body": 920 - }, - "availability": [ - { - "id": "bfb7a4d8-6bf0-46d6-bf20-d5020850ea55", - "room_type": 150, - "modified_date": "2022-09-27T12:30:19.399000+05:30", - "room_type_text": "Oxygen beds", - "total_capacity": 1000, - "current_capacity": 20 - } - ], - "created_date": "2022-09-27T12:29:15.929000+05:30", - "phone_number": "+919999999888", - "state_object": { - "id": 1, - "name": "Kerala" - }, - "facility_type": "Private Hospital", - "modified_date": "2022-09-27T12:29:15.929000+05:30", - "district_object": { - "id": 7, - "name": "Ernakulam", - "state": 1 - }, - "kasp_empanelled": false, - "oxygen_capacity": 0, - "type_b_cylinders": 0, - "type_c_cylinders": 0, - "type_d_cylinders": 0, - "local_body_object": { - "id": 920, - "name": "Alangad  Grama Panchayat, Ernakulam District", - "district": 7, - "body_type": 1, - "localbody_code": "G070203" - }, - "actual_live_patients": 1, - "read_cover_image_url": null, - "expected_type_b_cylinders": 0, - "expected_type_c_cylinders": 0, - "expected_type_d_cylinders": 0, - "actual_discharged_patients": 0, - "expected_oxygen_requirement": 0 - } - } - }, - { - "model": "facility.facilityrelatedsummary", - "pk": "e294a2c2-3b05-469f-b975-e7766201df13", - "fields": { - "created_date": "2022-09-27T07:20:00.162Z", - "modified_date": "2022-09-27T07:25:00.171Z", - "facility": 2, - "s_type": "FacilityCapacity", - "data": { - "id": "fa33079d-727d-4295-b0fd-19153b36b2db", - "name": "Dummy Shifting Center", - "ward": 218, - "state": 1, - "address": "89.66.33.55", - "pincode": 670112, - "district": 7, - "features": [ - 1, - 6 - ], - "latitude": null, - "inventory": {}, - "longitude": null, - "local_body": 12, - "ward_object": { - "id": 218, - "name": "VALAMBOOR", - "number": 2, - "local_body": 12 - }, - "availability": [ - { - "id": "52bd4e97-9064-4697-8fea-37e0a2b8c87c", - "room_type": 150, - "modified_date": "2022-09-27T12:46:52.525280+05:30", - "room_type_text": "Oxygen beds", - "total_capacity": 20, - "current_capacity": 1 - } - ], - "created_date": "2022-09-27T12:45:51.075776+05:30", - "phone_number": "+919876665987", - "state_object": { - "id": 1, - "name": "Kerala" - }, - "facility_type": "Shifting Centre", - "modified_date": "2022-09-27T12:45:51.075811+05:30", - "district_object": { - "id": 7, - "name": "Ernakulam", - "state": 1 - }, - "kasp_empanelled": false, - "oxygen_capacity": 0, - "type_b_cylinders": 0, - "type_c_cylinders": 0, - "type_d_cylinders": 0, - "local_body_object": { - "id": 12, - "name": "Aikaranad  Grama Panchayat, Ernakulam District", - "district": 7, - "body_type": 1, - "localbody_code": "G071005" - }, - "actual_live_patients": 0, - "read_cover_image_url": null, - "expected_type_b_cylinders": 0, - "expected_type_c_cylinders": 0, - "expected_type_d_cylinders": 0, - "actual_discharged_patients": 0, - "expected_oxygen_requirement": 0 - } - } - } + { + "model": "facility.facility", + "pk": 1, + "fields": { + "external_id": "81092ced-8720-44cb-b4c5-3f0ad0540153", + "created_date": "2022-09-27T06:59:15.929Z", + "modified_date": "2022-09-27T06:59:15.929Z", + "deleted": false, + "name": "Dummy Facility 1", + "is_active": true, + "verified": false, + "facility_type": 2, + "kasp_empanelled": false, + "features": "1,2,3,4,5,6", + "longitude": null, + "latitude": null, + "pincode": 670000, + "address": "127.0.0.1", + "ward": 1, + "local_body": 920, + "district": 7, + "state": 1, + "oxygen_capacity": 0, + "type_b_cylinders": 0, + "type_c_cylinders": 0, + "type_d_cylinders": 0, + "expected_oxygen_requirement": 0, + "expected_type_b_cylinders": 0, + "expected_type_c_cylinders": 0, + "expected_type_d_cylinders": 0, + "phone_number": "+919999999888", + "corona_testing": false, + "created_by": 2, + "cover_image_url": null, + "middleware_address": null + } + }, + { + "model": "facility.facility", + "pk": 2, + "fields": { + "external_id": "fa33079d-727d-4295-b0fd-19153b36b2db", + "created_date": "2022-09-27T07:15:51.075Z", + "modified_date": "2022-09-27T07:15:51.075Z", + "deleted": false, + "name": "Dummy Shifting Center", + "is_active": true, + "verified": false, + "facility_type": 1300, + "kasp_empanelled": false, + "features": "1,6", + "longitude": null, + "latitude": null, + "pincode": 670112, + "address": "89.66.33.55", + "ward": 218, + "local_body": 12, + "district": 7, + "state": 1, + "oxygen_capacity": 0, + "type_b_cylinders": 0, + "type_c_cylinders": 0, + "type_d_cylinders": 0, + "expected_oxygen_requirement": 0, + "expected_type_b_cylinders": 0, + "expected_type_c_cylinders": 0, + "expected_type_d_cylinders": 0, + "phone_number": "+919876665987", + "corona_testing": false, + "created_by": 2, + "cover_image_url": null, + "middleware_address": null + } + }, + { + "model": "facility.facility", + "pk": 3, + "fields": { + "external_id": "4c293ecd-1aae-4ebc-9b5b-b53497dffac9", + "created_date": "2023-09-15T06:11:14.166Z", + "modified_date": "2023-09-15T06:11:14.166Z", + "deleted": false, + "name": "Dummy Request Approving Center", + "is_active": true, + "verified": false, + "facility_type": 1500, + "kasp_empanelled": false, + "features": "1,4,6", + "longitude": "78.6757364624373000", + "latitude": "21.4009146842158660", + "pincode": 670000, + "address": "Dummy Facility Address", + "ward": 7574, + "local_body": 431, + "district": 7, + "state": 1, + "oxygen_capacity": 0, + "type_b_cylinders": 0, + "type_c_cylinders": 0, + "type_d_cylinders": 0, + "expected_oxygen_requirement": 0, + "expected_type_b_cylinders": 0, + "expected_type_c_cylinders": 0, + "expected_type_d_cylinders": 0, + "phone_number": "+919999999888", + "corona_testing": false, + "created_by": 2, + "cover_image_url": null, + "middleware_address": null + } + }, + { + "model": "facility.facility", + "pk": 4, + "fields": { + "external_id": "e70e0b82-7a99-48c2-a735-41cdea3b4076", + "created_date": "2023-09-15T06:12:14.266Z", + "modified_date": "2023-09-15T06:12:14.266Z", + "deleted": false, + "name": "Dummy Request Fulfilment Center", + "is_active": true, + "verified": false, + "facility_type": 1510, + "kasp_empanelled": false, + "features": "1,3,5", + "longitude": "75.2139014820876600", + "latitude": "18.2774285038890340", + "pincode": 670000, + "address": "Dummy Facility Address 2", + "ward": 5412, + "local_body": 309, + "district": 7, + "state": 1, + "oxygen_capacity": 0, + "type_b_cylinders": 0, + "type_c_cylinders": 0, + "type_d_cylinders": 0, + "expected_oxygen_requirement": 0, + "expected_type_b_cylinders": 0, + "expected_type_c_cylinders": 0, + "expected_type_d_cylinders": 0, + "phone_number": "+918899885588", + "corona_testing": false, + "created_by": 2, + "cover_image_url": null, + "middleware_address": null + } + }, + { + "model": "facility.hospitaldoctors", + "pk": 1, + "fields": { + "external_id": "d68776c9-1197-411f-b19d-2069364b17a2", + "created_date": "2023-09-15T06:12:36.941Z", + "modified_date": "2023-09-15T06:12:36.941Z", + "deleted": false, + "facility": 4, + "area": 2, + "count": 5 + } + }, + { + "model": "facility.hospitaldoctors", + "pk": 2, + "fields": { + "external_id": "df1ef651-4e4f-4a0a-9df7-55e5949468ce", + "created_date": "2023-09-15T06:12:54.835Z", + "modified_date": "2023-09-15T06:12:54.835Z", + "deleted": false, + "facility": 3, + "area": 3, + "count": 4 + } + }, + { + "model": "facility.historicalfacilitycapacity", + "pk": 1, + "fields": { + "id": 1, + "external_id": "bfb7a4d8-6bf0-46d6-bf20-d5020850ea55", + "created_date": "2022-09-27T07:00:19.399Z", + "modified_date": "2022-09-27T07:00:19.399Z", + "deleted": false, + "room_type": 150, + "total_capacity": 1000, + "current_capacity": 20, + "facility": 1, + "history_date": "2022-09-27T07:00:19.400Z", + "history_change_reason": null, + "history_type": "+", + "history_user": 2 + } + }, + { + "model": "facility.historicalfacilitycapacity", + "pk": 2, + "fields": { + "id": 2, + "external_id": "52bd4e97-9064-4697-8fea-37e0a2b8c87c", + "created_date": "2022-09-27T07:16:52.525Z", + "modified_date": "2022-09-27T07:16:52.525Z", + "deleted": false, + "room_type": 150, + "total_capacity": 20, + "current_capacity": 1, + "facility": 2, + "history_date": "2022-09-27T07:16:52.526Z", + "history_change_reason": null, + "history_type": "+", + "history_user": 2 + } + }, + { + "model": "facility.historicalfacilitycapacity", + "pk": 3, + "fields": { + "id": 3, + "external_id": "4fed54e3-672b-412c-998f-a7d8f303016c", + "created_date": "2023-09-15T06:12:31.548Z", + "modified_date": "2023-09-15T06:12:31.548Z", + "deleted": false, + "room_type": 150, + "total_capacity": 12, + "current_capacity": 2, + "facility": 4, + "history_date": "2023-09-15T06:12:31.550Z", + "history_change_reason": null, + "history_type": "+", + "history_user": 2 + } + }, + { + "model": "facility.historicalfacilitycapacity", + "pk": 4, + "fields": { + "id": 4, + "external_id": "c7d64165-8097-4dec-a4df-616647e70c31", + "created_date": "2023-09-15T06:12:50.165Z", + "modified_date": "2023-09-15T06:12:50.165Z", + "deleted": false, + "room_type": 20, + "total_capacity": 31, + "current_capacity": 2, + "facility": 3, + "history_date": "2023-09-15T06:12:50.166Z", + "history_change_reason": null, + "history_type": "+", + "history_user": 2 + } + }, + { + "model": "facility.facilitycapacity", + "pk": 1, + "fields": { + "external_id": "bfb7a4d8-6bf0-46d6-bf20-d5020850ea55", + "created_date": "2022-09-27T07:00:19.399Z", + "modified_date": "2022-09-27T07:00:19.399Z", + "deleted": false, + "facility": 1, + "room_type": 150, + "total_capacity": 1000, + "current_capacity": 20 + } + }, + { + "model": "facility.facilitycapacity", + "pk": 2, + "fields": { + "external_id": "52bd4e97-9064-4697-8fea-37e0a2b8c87c", + "created_date": "2022-09-27T07:16:52.525Z", + "modified_date": "2022-09-27T07:16:52.525Z", + "deleted": false, + "facility": 2, + "room_type": 150, + "total_capacity": 20, + "current_capacity": 1 + } + }, + { + "model": "facility.facilitycapacity", + "pk": 3, + "fields": { + "external_id": "4fed54e3-672b-412c-998f-a7d8f303016c", + "created_date": "2023-09-15T06:12:31.548Z", + "modified_date": "2023-09-15T06:12:31.548Z", + "deleted": false, + "facility": 4, + "room_type": 150, + "total_capacity": 12, + "current_capacity": 2 + } + }, + { + "model": "facility.facilitycapacity", + "pk": 4, + "fields": { + "external_id": "c7d64165-8097-4dec-a4df-616647e70c31", + "created_date": "2023-09-15T06:12:50.165Z", + "modified_date": "2023-09-15T06:12:50.165Z", + "deleted": false, + "facility": 3, + "room_type": 20, + "total_capacity": 31, + "current_capacity": 2 + } + }, + { + "model": "facility.facilityuser", + "pk": 1, + "fields": { + "facility": 1, + "user": 2, + "created_by": 2 + } + }, + { + "model": "facility.facilityuser", + "pk": 2, + "fields": { + "facility": 2, + "user": 2, + "created_by": 2 + } + }, + { + "model": "facility.facilityuser", + "pk": 3, + "fields": { + "facility": 1, + "user": 21, + "created_by": 2 + } + }, + { + "model": "facility.facilityuser", + "pk": 4, + "fields": { + "facility": 1, + "user": 22, + "created_by": 2 + } + }, + { + "model": "facility.facilityuser", + "pk": 5, + "fields": { + "facility": 3, + "user": 2, + "created_by": 2 + } + }, + { + "model": "facility.facilityuser", + "pk": 6, + "fields": { + "facility": 4, + "user": 2, + "created_by": 2 + } + }, + { + "model": "facility.assetlocation", + "pk": 1, + "fields": { + "external_id": "c3ab727f-dc3f-4a11-bf8d-2472bd79b5f7", + "created_date": "2022-09-27T07:02:07.969Z", + "modified_date": "2022-09-27T07:02:07.969Z", + "deleted": false, + "name": "Camera Locations", + "description": "", + "location_type": 1, + "facility": 1 + } + }, + { + "model": "facility.assetlocation", + "pk": 2, + "fields": { + "external_id": "a5cd0a56-cd5a-425c-9a87-cf79c0a90887", + "created_date": "2023-09-15T06:13:24.614Z", + "modified_date": "2023-09-15T06:13:24.614Z", + "deleted": false, + "name": "Dummy Location 1", + "description": "", + "location_type": 1, + "facility": 1 + } + }, + { + "model": "facility.asset", + "pk": 1, + "fields": { + "external_id": "ae4290a0-e86a-48d7-9c82-60b7d6514707", + "created_date": "2022-09-27T07:03:57.401Z", + "modified_date": "2022-09-27T07:03:57.401Z", + "deleted": false, + "name": "Dummy Camera 1", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 2, + "fields": { + "external_id": "7c06ec3c-838d-447a-bf36-d20239c8442f", + "created_date": "2022-09-27T07:04:30.802Z", + "modified_date": "2022-09-27T07:04:30.802Z", + "deleted": false, + "name": "Dummy Camera 2", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 3, + "fields": { + "external_id": "46740927-f782-49aa-bf6e-52a1208e8d18", + "created_date": "2022-09-27T07:04:35.291Z", + "modified_date": "2022-09-27T07:04:35.291Z", + "deleted": false, + "name": "Dummy Camera 3", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 4, + "fields": { + "external_id": "d6e9e071-e67e-4fbc-a872-4c3b1b9f749f", + "created_date": "2022-09-27T07:04:38.335Z", + "modified_date": "2022-09-27T07:04:38.335Z", + "deleted": false, + "name": "Dummy Camera 4", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 5, + "fields": { + "external_id": "35a2200d-6c1a-4c53-936c-60ebec1f9d42", + "created_date": "2022-09-27T07:04:41.179Z", + "modified_date": "2022-09-27T07:04:41.179Z", + "deleted": false, + "name": "Dummy Camera 5", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 6, + "fields": { + "external_id": "db1c2f95-5ae9-4e64-b647-30250beb79c7", + "created_date": "2022-09-27T07:04:43.869Z", + "modified_date": "2022-09-27T07:04:43.870Z", + "deleted": false, + "name": "Dummy Camera 6", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 7, + "fields": { + "external_id": "604ec344-a7d1-4523-8a6f-3e78cd3409ef", + "created_date": "2022-09-27T07:04:46.610Z", + "modified_date": "2022-09-27T07:04:46.610Z", + "deleted": false, + "name": "Dummy Camera 7", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 8, + "fields": { + "external_id": "271ace96-6bc6-4d32-916b-6b69eb81e4c3", + "created_date": "2022-09-27T07:04:49.732Z", + "modified_date": "2022-09-27T07:04:49.732Z", + "deleted": false, + "name": "Dummy Camera 8", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 9, + "fields": { + "external_id": "fe2f171f-0c69-4305-be60-0db625d0e38e", + "created_date": "2022-09-27T07:04:52.832Z", + "modified_date": "2022-09-27T07:04:52.832Z", + "deleted": false, + "name": "Dummy Camera 9", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 10, + "fields": { + "external_id": "cf77edb2-e771-46db-a73d-80ac2b446987", + "created_date": "2022-09-27T07:04:55.942Z", + "modified_date": "2022-09-27T07:04:55.942Z", + "deleted": false, + "name": "Dummy Camera 10", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 11, + "fields": { + "external_id": "2a19c4a9-84a2-41c8-ac0d-bbbc35e5f18d", + "created_date": "2022-09-27T07:04:58.599Z", + "modified_date": "2022-09-27T07:04:58.599Z", + "deleted": false, + "name": "Dummy Camera 11", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 12, + "fields": { + "external_id": "efb41cef-4d39-477f-b437-7ec9e4406971", + "created_date": "2022-09-27T07:05:01.182Z", + "modified_date": "2022-09-27T07:05:01.182Z", + "deleted": false, + "name": "Dummy Camera 12", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 13, + "fields": { + "external_id": "875b2bd3-67a8-4968-a589-d62c656cacb9", + "created_date": "2022-09-27T07:05:03.955Z", + "modified_date": "2022-09-27T07:05:03.955Z", + "deleted": false, + "name": "Dummy Camera 13", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 14, + "fields": { + "external_id": "b9ff3001-ed15-4538-bb54-78d0b2be445f", + "created_date": "2022-09-27T07:05:07.194Z", + "modified_date": "2022-09-27T07:05:07.194Z", + "deleted": false, + "name": "Dummy Camera 14", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 15, + "fields": { + "external_id": "a9678d31-17a9-4474-be01-c095553e97b5", + "created_date": "2022-09-27T07:05:10.384Z", + "modified_date": "2022-09-27T07:05:10.384Z", + "deleted": false, + "name": "Dummy Camera 15", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 16, + "fields": { + "external_id": "b0e4063e-3f05-4f94-aea0-e15e9e474f96", + "created_date": "2022-09-27T07:05:13.857Z", + "modified_date": "2022-09-27T07:05:13.857Z", + "deleted": false, + "name": "Dummy Camera 16", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 17, + "fields": { + "external_id": "634e1421-f1a7-41d1-bde2-13d1ee7eabf4", + "created_date": "2022-09-27T07:05:16.707Z", + "modified_date": "2022-09-27T07:05:16.707Z", + "deleted": false, + "name": "Dummy Camera 17", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 18, + "fields": { + "external_id": "17992979-d18a-46c6-a48f-c7f0f40f85c3", + "created_date": "2022-09-27T07:05:19.781Z", + "modified_date": "2022-09-27T07:05:19.781Z", + "deleted": false, + "name": "Dummy Camera 18", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 19, + "fields": { + "external_id": "c6e2c6c3-ba16-4c69-b1f8-822d28317268", + "created_date": "2022-09-27T07:13:12.608Z", + "modified_date": "2022-09-27T07:13:12.608Z", + "deleted": false, + "name": "Dummy Camera 19", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 20, + "fields": { + "external_id": "cb375e24-a98c-45ed-85c4-bdd340625357", + "created_date": "2022-09-27T07:13:16.362Z", + "modified_date": "2022-09-27T07:13:16.362Z", + "deleted": false, + "name": "Dummy Camera 20", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 21, + "fields": { + "external_id": "36a0d62c-9f2d-465f-ad9f-772ec7a342d0", + "created_date": "2022-09-27T07:13:19.599Z", + "modified_date": "2022-09-27T07:13:19.599Z", + "deleted": false, + "name": "Dummy Camera 21", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 22, + "fields": { + "external_id": "e24d8936-e4f3-4f30-870e-8bc560be66f2", + "created_date": "2022-09-27T07:13:22.225Z", + "modified_date": "2022-09-27T07:13:22.225Z", + "deleted": false, + "name": "Dummy Camera 22", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 23, + "fields": { + "external_id": "cc0ebf9e-0fe1-45ff-9954-4b92fc072846", + "created_date": "2022-09-27T07:13:25.053Z", + "modified_date": "2022-09-27T07:13:25.053Z", + "deleted": false, + "name": "Dummy Camera 23", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 24, + "fields": { + "external_id": "b10bed38-4a06-473a-85f8-87004703bb2a", + "created_date": "2022-09-27T07:13:27.907Z", + "modified_date": "2022-09-27T07:13:27.907Z", + "deleted": false, + "name": "Dummy Camera 24", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 25, + "fields": { + "external_id": "51ce3355-1773-47c0-a929-54bb57293940", + "created_date": "2022-09-27T07:13:30.944Z", + "modified_date": "2022-09-27T07:13:30.944Z", + "deleted": false, + "name": "Dummy Camera 25", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 26, + "fields": { + "external_id": "567ddf56-f86a-488e-bdff-9c69daacb654", + "created_date": "2022-09-27T07:13:33.581Z", + "modified_date": "2022-09-27T07:13:33.581Z", + "deleted": false, + "name": "Dummy Camera 26", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 27, + "fields": { + "external_id": "234a8559-167b-4e61-9971-15dbc59b9319", + "created_date": "2022-09-27T07:13:37.020Z", + "modified_date": "2022-09-27T07:13:37.020Z", + "deleted": false, + "name": "Dummy Camera 27", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 28, + "fields": { + "external_id": "3f203a24-84ae-44c0-897a-1b3ddd42e072", + "created_date": "2022-09-27T07:13:39.951Z", + "modified_date": "2022-09-27T07:13:39.951Z", + "deleted": false, + "name": "Dummy Camera 28", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 29, + "fields": { + "external_id": "fc4c25cd-de00-494a-ad58-20e581520198", + "created_date": "2022-09-27T07:13:43.511Z", + "modified_date": "2022-09-27T07:13:43.511Z", + "deleted": false, + "name": "Dummy Camera 29", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 30, + "fields": { + "external_id": "cb6f3bf8-cfea-498a-a4f1-effae723d6e0", + "created_date": "2022-09-27T07:13:46.850Z", + "modified_date": "2022-09-27T07:13:46.850Z", + "deleted": false, + "name": "Dummy Camera 30", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.patientconsultation", + "pk": 1, + "fields": { + "external_id": "b5217729-3008-4a44-b347-72ba738d5f45", + "created_date": "2022-09-27T07:20:40.117Z", + "modified_date": "2022-09-27T07:20:40.123Z", + "deleted": false, + "patient": 1, + "patient_no": "88.99.44.66", + "facility": 1, + "symptoms": "3", + "other_symptoms": "", + "symptoms_onset_date": "2022-09-27T07:19:53.380Z", + "deprecated_covid_category": null, + "category": "Moderate", + "examination_details": "", + "history_of_present_illness": "", + "treatment_plan": "", + "consultation_notes": "Transfer", + "course_in_facility": null, + "investigation": [], + "prescriptions": {}, + "procedure": {}, + "suggestion": "R", + "route_to_facility": null, + "review_interval": -1, + "referred_to": 2, + "is_readmission": false, + "referred_to_external": "", + "admitted": false, + "encounter_date": null, + "discharge_date": null, + "discharge_reason": null, + "discharge_notes": "", + "discharge_prescription": {}, + "discharge_prn_prescription": {}, + "death_datetime": null, + "death_confirmed_doctor": "", + "bed_number": null, + "is_kasp": false, + "kasp_enabled_date": null, + "is_telemedicine": false, + "last_updated_by_telemedicine": false, + "assigned_to": null, + "deprecated_verified_by": "", + "treating_physician": null, + "created_by": 2, + "last_edited_by": 2, + "last_daily_round": null, + "current_bed": null, + "height": 0.0, + "weight": 0.0, + "operation": null, + "special_instruction": "", + "intubation_history": [], + "prn_prescription": [], + "discharge_advice": [] + } + }, + { + "model": "facility.bed", + "pk": 1, + "fields": { + "external_id": "260de825-7ef2-4155-8fd2-ae4d66980734", + "created_date": "2023-09-15T06:13:43.199Z", + "modified_date": "2023-09-15T06:13:43.199Z", + "deleted": false, + "name": "Dummy Bed 1", + "description": "", + "bed_type": 2, + "facility": 1, + "meta": {}, + "location": 2 + } + }, + { + "model": "facility.bed", + "pk": 2, + "fields": { + "external_id": "8ab99d71-7263-4c60-b6d4-b22e7f8dfecf", + "created_date": "2023-09-15T06:13:43.199Z", + "modified_date": "2023-09-15T06:13:43.199Z", + "deleted": false, + "name": "Dummy Bed 2", + "description": "", + "bed_type": 2, + "facility": 1, + "meta": {}, + "location": 2 + } + }, + { + "model": "facility.bed", + "pk": 3, + "fields": { + "external_id": "e7a9c643-4841-47f3-9729-4ccdadb9783a", + "created_date": "2023-09-15T06:13:43.200Z", + "modified_date": "2023-09-15T06:13:43.200Z", + "deleted": false, + "name": "Dummy Bed 3", + "description": "", + "bed_type": 2, + "facility": 1, + "meta": {}, + "location": 2 + } + }, + { + "model": "facility.bed", + "pk": 5, + "fields": { + "external_id": "fe749328-1a6a-43ae-b4c2-fb718b8ca84b", + "created_date": "2023-09-15T06:14:13.862Z", + "modified_date": "2023-09-15T06:14:13.862Z", + "deleted": false, + "name": "Dummy Bed 5", + "description": "", + "bed_type": 1, + "facility": 1, + "meta": {}, + "location": 1 + } + }, + { + "model": "facility.bed", + "pk": 7, + "fields": { + "external_id": "ddd0ce36-c4ff-409c-96d3-ea943ac876e4", + "created_date": "2023-09-15T06:14:45.458Z", + "modified_date": "2023-09-15T06:14:45.458Z", + "deleted": false, + "name": "Dummy Bed 6", + "description": "", + "bed_type": 6, + "facility": 1, + "meta": {}, + "location": 1 + } + }, + { + "model": "facility.bed", + "pk": 8, + "fields": { + "external_id": "90a90743-0a95-42c1-bdf2-b7fbf9b9edd1", + "created_date": "2023-09-15T06:14:56.105Z", + "modified_date": "2023-09-15T06:14:56.105Z", + "deleted": false, + "name": "Dummy Bed 4", + "description": "", + "bed_type": 2, + "facility": 1, + "meta": {}, + "location": 1 + } + }, + { + "model": "facility.facilityinventoryitemtag", + "pk": 1, + "fields": { + "name": "Safety" + } + }, + { + "model": "facility.facilityinventoryitemtag", + "pk": 2, + "fields": { + "name": "Medical" + } + }, + { + "model": "facility.facilityinventoryitemtag", + "pk": 3, + "fields": { + "name": "Food" + } + }, + { + "model": "facility.facilityinventoryunit", + "pk": 1, + "fields": { + "name": "Items" + } + }, + { + "model": "facility.facilityinventoryunit", + "pk": 2, + "fields": { + "name": "Dozen" + } + }, + { + "model": "facility.facilityinventoryunit", + "pk": 3, + "fields": { + "name": "Kilo Litre" + } + }, + { + "model": "facility.facilityinventoryunit", + "pk": 4, + "fields": { + "name": "Cylinders" + } + }, + { + "model": "facility.facilityinventoryunit", + "pk": 5, + "fields": { + "name": "kg" + } + }, + { + "model": "facility.facilityinventoryunit", + "pk": 6, + "fields": { + "name": "gram" + } + }, + { + "model": "facility.facilityinventoryunit", + "pk": 7, + "fields": { + "name": "Cubic Meter" + } + }, + { + "model": "facility.facilityinventoryunitconverter", + "pk": 1, + "fields": { + "from_unit": 5, + "to_unit": 6, + "multiplier": 1000.0 + } + }, + { + "model": "facility.facilityinventoryunitconverter", + "pk": 2, + "fields": { + "from_unit": 2, + "to_unit": 1, + "multiplier": 12.0 + } + }, + { + "model": "facility.facilityinventoryitem", + "pk": 1, + "fields": { + "name": "PPE", + "default_unit": 1, + "description": "", + "min_quantity": 150.0, + "allowed_units": [ + 1, + 2 + ], + "tags": [ + 1, + 2 + ] + } + }, + { + "model": "facility.facilityinventoryitem", + "pk": 2, + "fields": { + "name": "IV Fluid 500 ml", + "default_unit": 1, + "description": "", + "min_quantity": 2.0, + "allowed_units": [ + 1, + 2 + ], + "tags": [ + 2 + ] + } + }, + { + "model": "facility.facilityinventoryitem", + "pk": 3, + "fields": { + "name": "Liquid Oxygen", + "default_unit": 7, + "description": "", + "min_quantity": 10.0, + "allowed_units": [ + 7 + ], + "tags": [ + 2 + ] + } + }, + { + "model": "facility.facilityinventoryitem", + "pk": 4, + "fields": { + "name": "Jumbo D Type Oxygen Cylinder", + "default_unit": 4, + "description": "", + "min_quantity": 100.0, + "allowed_units": [ + 4 + ], + "tags": [] + } + }, + { + "model": "facility.facilityinventoryitem", + "pk": 5, + "fields": { + "name": "B Type Oxygen Cylinder", + "default_unit": 4, + "description": "", + "min_quantity": 100.0, + "allowed_units": [ + 4 + ], + "tags": [] + } + }, + { + "model": "facility.facilityinventoryitem", + "pk": 6, + "fields": { + "name": "C Type Oxygen Cylinder", + "default_unit": 4, + "description": "", + "min_quantity": 100.0, + "allowed_units": [ + 4 + ], + "tags": [] + } + }, + { + "model": "facility.facilityinventoryitem", + "pk": 7, + "fields": { + "name": "Gaseous Oxygen", + "default_unit": 7, + "description": "", + "min_quantity": 10.0, + "allowed_units": [ + 7 + ], + "tags": [ + 2 + ] + } + }, + { + "model": "facility.historicalpatientregistration", + "pk": 1, + "fields": { + "id": 1, + "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", + "created_date": "2022-09-27T07:19:20.379Z", + "modified_date": "2022-09-27T07:19:20.379Z", + "deleted": false, + "source": 10, + "name": "Dummy Patient", + "age": 120, + "gender": 1, + "phone_number": "+911234567896", + "emergency_phone_number": "+919898797775", + "address": "55.66.44.33", + "permanent_address": "55.66.44.33", + "pincode": 600115, + "date_of_birth": "1901-10-16", + "year_of_birth": 1901, + "nationality": "India", + "passport_no": "", + "is_medical_worker": false, + "blood_group": "O+", + "contact_with_confirmed_carrier": false, + "contact_with_suspected_carrier": false, + "estimated_contact_date": null, + "past_travel": false, + "countries_travelled_old": null, + "countries_travelled": null, + "date_of_return": null, + "allergies": "", + "present_health": "", + "ongoing_medication": "", + "has_SARI": false, + "is_antenatal": false, + "ward_old": "", + "is_migrant_worker": false, + "disease_status": 2, + "number_of_aged_dependents": 0, + "number_of_chronic_diseased_dependents": 0, + "action": 10, + "review_time": null, + "is_active": true, + "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", + "test_id": "", + "date_of_test": null, + "srf_id": "", + "test_type": 30, + "allow_transfer": false, + "will_donate_blood": null, + "fit_for_blood_donation": null, + "village": "", + "designation_of_health_care_worker": "", + "instituion_of_health_care_worker": "", + "transit_details": null, + "frontline_worker": null, + "date_of_result": null, + "number_of_primary_contacts": null, + "number_of_secondary_contacts": null, + "is_vaccinated": false, + "number_of_doses": 0, + "vaccine_name": null, + "covin_id": null, + "last_vaccinated_date": null, + "cluster_name": null, + "is_declared_positive": true, + "date_declared_positive": "2022-09-27T07:15:04.715Z", + "facility": 1, + "nearest_facility": null, + "ward": 1729, + "local_body": 95, + "district": 7, + "state": 1, + "last_edited": null, + "created_by": 2, + "last_consultation": null, + "assigned_to": null, + "abha_number": null, + "history_date": "2022-09-27T07:19:20.385Z", + "history_change_reason": null, + "history_type": "+", + "history_user": 2 + } + }, + { + "model": "facility.historicalpatientregistration", + "pk": 2, + "fields": { + "id": 1, + "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", + "created_date": "2022-09-27T07:19:20.379Z", + "modified_date": "2022-09-27T07:19:20.400Z", + "deleted": false, + "source": 10, + "name": "Dummy Patient", + "age": 120, + "gender": 1, + "phone_number": "+911234567896", + "emergency_phone_number": "+919898797775", + "address": "55.66.44.33", + "permanent_address": "55.66.44.33", + "pincode": 600115, + "date_of_birth": "1901-10-16", + "year_of_birth": 1901, + "nationality": "India", + "passport_no": "", + "is_medical_worker": false, + "blood_group": "O+", + "contact_with_confirmed_carrier": false, + "contact_with_suspected_carrier": false, + "estimated_contact_date": null, + "past_travel": false, + "countries_travelled_old": null, + "countries_travelled": null, + "date_of_return": null, + "allergies": "", + "present_health": "", + "ongoing_medication": "", + "has_SARI": false, + "is_antenatal": false, + "ward_old": "", + "is_migrant_worker": false, + "disease_status": 2, + "number_of_aged_dependents": 0, + "number_of_chronic_diseased_dependents": 0, + "action": 10, + "review_time": null, + "is_active": true, + "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", + "test_id": "", + "date_of_test": null, + "srf_id": "", + "test_type": 30, + "allow_transfer": false, + "will_donate_blood": null, + "fit_for_blood_donation": null, + "village": "", + "designation_of_health_care_worker": "", + "instituion_of_health_care_worker": "", + "transit_details": null, + "frontline_worker": null, + "date_of_result": null, + "number_of_primary_contacts": null, + "number_of_secondary_contacts": null, + "is_vaccinated": false, + "number_of_doses": 0, + "vaccine_name": null, + "covin_id": null, + "last_vaccinated_date": null, + "cluster_name": null, + "is_declared_positive": true, + "date_declared_positive": "2022-09-27T07:15:04.715Z", + "facility": 1, + "nearest_facility": null, + "ward": 1729, + "local_body": 95, + "district": 7, + "state": 1, + "last_edited": null, + "created_by": 2, + "last_consultation": null, + "assigned_to": null, + "abha_number": null, + "history_date": "2022-09-27T07:19:20.403Z", + "history_change_reason": null, + "history_type": "~", + "history_user": 2 + } + }, + { + "model": "facility.historicalpatientregistration", + "pk": 3, + "fields": { + "id": 1, + "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", + "created_date": "2022-09-27T07:19:20.379Z", + "modified_date": "2022-09-27T07:19:20.413Z", + "deleted": false, + "source": 10, + "name": "Dummy Patient", + "age": 120, + "gender": 1, + "phone_number": "+911234567896", + "emergency_phone_number": "+919898797775", + "address": "55.66.44.33", + "permanent_address": "55.66.44.33", + "pincode": 600115, + "date_of_birth": "1901-10-16", + "year_of_birth": 1901, + "nationality": "India", + "passport_no": "", + "is_medical_worker": false, + "blood_group": "O+", + "contact_with_confirmed_carrier": false, + "contact_with_suspected_carrier": false, + "estimated_contact_date": null, + "past_travel": false, + "countries_travelled_old": null, + "countries_travelled": null, + "date_of_return": null, + "allergies": "", + "present_health": "", + "ongoing_medication": "", + "has_SARI": false, + "is_antenatal": false, + "ward_old": "", + "is_migrant_worker": false, + "disease_status": 2, + "number_of_aged_dependents": 0, + "number_of_chronic_diseased_dependents": 0, + "action": 10, + "review_time": null, + "is_active": true, + "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", + "test_id": "", + "date_of_test": null, + "srf_id": "", + "test_type": 30, + "allow_transfer": false, + "will_donate_blood": null, + "fit_for_blood_donation": null, + "village": "", + "designation_of_health_care_worker": "", + "instituion_of_health_care_worker": "", + "transit_details": null, + "frontline_worker": null, + "date_of_result": null, + "number_of_primary_contacts": null, + "number_of_secondary_contacts": null, + "is_vaccinated": false, + "number_of_doses": 0, + "vaccine_name": null, + "covin_id": null, + "last_vaccinated_date": null, + "cluster_name": null, + "is_declared_positive": true, + "date_declared_positive": "2022-09-27T07:15:04.715Z", + "facility": 1, + "nearest_facility": null, + "ward": 1729, + "local_body": 95, + "district": 7, + "state": 1, + "last_edited": 2, + "created_by": 2, + "last_consultation": null, + "assigned_to": null, + "abha_number": null, + "history_date": "2022-09-27T07:19:20.415Z", + "history_change_reason": null, + "history_type": "~", + "history_user": 2 + } + }, + { + "model": "facility.historicalpatientregistration", + "pk": 4, + "fields": { + "id": 1, + "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", + "created_date": "2022-09-27T07:19:20.379Z", + "modified_date": "2022-09-27T07:20:40.135Z", + "deleted": false, + "source": 10, + "name": "Dummy Patient", + "age": 120, + "gender": 1, + "phone_number": "+911234567896", + "emergency_phone_number": "+919898797775", + "address": "55.66.44.33", + "permanent_address": "55.66.44.33", + "pincode": 600115, + "date_of_birth": "1901-10-16", + "year_of_birth": 1901, + "nationality": "India", + "passport_no": "", + "is_medical_worker": false, + "blood_group": "O+", + "contact_with_confirmed_carrier": false, + "contact_with_suspected_carrier": false, + "estimated_contact_date": null, + "past_travel": false, + "countries_travelled_old": null, + "countries_travelled": null, + "date_of_return": null, + "allergies": "", + "present_health": "", + "ongoing_medication": "", + "has_SARI": false, + "is_antenatal": false, + "ward_old": "", + "is_migrant_worker": false, + "disease_status": 2, + "number_of_aged_dependents": 0, + "number_of_chronic_diseased_dependents": 0, + "action": 10, + "review_time": null, + "is_active": true, + "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", + "test_id": "", + "date_of_test": null, + "srf_id": "", + "test_type": 30, + "allow_transfer": false, + "will_donate_blood": null, + "fit_for_blood_donation": null, + "village": "", + "designation_of_health_care_worker": "", + "instituion_of_health_care_worker": "", + "transit_details": null, + "frontline_worker": null, + "date_of_result": null, + "number_of_primary_contacts": null, + "number_of_secondary_contacts": null, + "is_vaccinated": false, + "number_of_doses": 0, + "vaccine_name": null, + "covin_id": null, + "last_vaccinated_date": null, + "cluster_name": null, + "is_declared_positive": true, + "date_declared_positive": "2022-09-27T07:15:04.715Z", + "facility": 1, + "nearest_facility": null, + "ward": 1729, + "local_body": 95, + "district": 7, + "state": 1, + "last_edited": 2, + "created_by": 2, + "last_consultation": 1, + "assigned_to": null, + "abha_number": null, + "history_date": "2022-09-27T07:20:40.139Z", + "history_change_reason": null, + "history_type": "~", + "history_user": 2 + } + }, + { + "model": "facility.historicalpatientregistration", + "pk": 5, + "fields": { + "id": 1, + "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", + "created_date": "2022-09-27T07:19:20.379Z", + "modified_date": "2022-09-27T07:22:00.563Z", + "deleted": false, + "source": 10, + "name": "Dummy Patient", + "age": 120, + "gender": 1, + "phone_number": "+911234567896", + "emergency_phone_number": "+919898797775", + "address": "55.66.44.33", + "permanent_address": "55.66.44.33", + "pincode": 600115, + "date_of_birth": "1901-10-16", + "year_of_birth": 1901, + "nationality": "India", + "passport_no": "", + "is_medical_worker": false, + "blood_group": "O+", + "contact_with_confirmed_carrier": false, + "contact_with_suspected_carrier": false, + "estimated_contact_date": null, + "past_travel": false, + "countries_travelled_old": null, + "countries_travelled": null, + "date_of_return": null, + "allergies": "", + "present_health": "", + "ongoing_medication": "", + "has_SARI": false, + "is_antenatal": false, + "ward_old": "", + "is_migrant_worker": false, + "disease_status": 2, + "number_of_aged_dependents": 0, + "number_of_chronic_diseased_dependents": 0, + "action": 10, + "review_time": null, + "is_active": true, + "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", + "test_id": "", + "date_of_test": null, + "srf_id": "", + "test_type": 30, + "allow_transfer": true, + "will_donate_blood": null, + "fit_for_blood_donation": null, + "village": "", + "designation_of_health_care_worker": "", + "instituion_of_health_care_worker": "", + "transit_details": null, + "frontline_worker": null, + "date_of_result": null, + "number_of_primary_contacts": null, + "number_of_secondary_contacts": null, + "is_vaccinated": false, + "number_of_doses": 0, + "vaccine_name": null, + "covin_id": null, + "last_vaccinated_date": null, + "cluster_name": null, + "is_declared_positive": true, + "date_declared_positive": "2022-09-27T07:15:04.715Z", + "facility": 1, + "nearest_facility": null, + "ward": 1729, + "local_body": 95, + "district": 7, + "state": 1, + "last_edited": 2, + "created_by": 2, + "last_consultation": 1, + "assigned_to": null, + "abha_number": null, + "history_date": "2022-09-27T07:22:00.566Z", + "history_change_reason": null, + "history_type": "~", + "history_user": 2 + } + }, + { + "model": "facility.patientregistration", + "pk": 1, + "fields": { + "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", + "created_date": "2022-09-27T07:19:20.379Z", + "modified_date": "2022-09-27T07:22:00.563Z", + "deleted": false, + "source": 10, + "facility": 1, + "nearest_facility": null, + "meta_info": null, + "name": "Dummy Patient", + "age": 120, + "gender": 1, + "phone_number": "+911234567896", + "emergency_phone_number": "+919898797775", + "address": "55.66.44.33", + "permanent_address": "55.66.44.33", + "pincode": 600115, + "date_of_birth": "1901-10-16", + "year_of_birth": 1901, + "nationality": "India", + "passport_no": "", + "is_medical_worker": false, + "blood_group": "O+", + "contact_with_confirmed_carrier": false, + "contact_with_suspected_carrier": false, + "estimated_contact_date": null, + "past_travel": false, + "countries_travelled_old": null, + "countries_travelled": null, + "date_of_return": null, + "allergies": "", + "present_health": "", + "ongoing_medication": "", + "has_SARI": false, + "is_antenatal": false, + "ward_old": "", + "ward": 1729, + "local_body": 95, + "district": 7, + "state": 1, + "is_migrant_worker": false, + "disease_status": 2, + "number_of_aged_dependents": 0, + "number_of_chronic_diseased_dependents": 0, + "last_edited": 2, + "action": 10, + "review_time": null, + "created_by": 2, + "is_active": true, + "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", + "test_id": "", + "date_of_test": null, + "srf_id": "", + "test_type": 30, + "allow_transfer": true, + "last_consultation": 1, + "will_donate_blood": null, + "fit_for_blood_donation": null, + "village": "", + "designation_of_health_care_worker": "", + "instituion_of_health_care_worker": "", + "transit_details": null, + "frontline_worker": null, + "date_of_result": null, + "number_of_primary_contacts": null, + "number_of_secondary_contacts": null, + "is_vaccinated": false, + "number_of_doses": 0, + "vaccine_name": null, + "covin_id": null, + "last_vaccinated_date": null, + "cluster_name": null, + "is_declared_positive": true, + "date_declared_positive": "2022-09-27T07:15:04.715Z", + "assigned_to": null, + "abha_number": null + } + }, + { + "model": "facility.disease", + "pk": 1, + "fields": { + "patient": 1, + "disease": 1, + "details": "", + "deleted": false + } + }, + { + "model": "facility.patientsample", + "pk": 1, + "fields": { + "external_id": "29689b96-6018-426f-984f-344fa5e3186b", + "created_date": "2022-09-27T07:23:29.568Z", + "modified_date": "2022-09-27T07:23:29.574Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 2, + "fields": { + "external_id": "ea48179e-90c5-450b-800d-c1866d2d3d74", + "created_date": "2022-09-27T07:25:39.605Z", + "modified_date": "2022-09-27T07:25:39.609Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 3, + "fields": { + "external_id": "dcaf07f9-8412-45bb-bb7c-1c232c28e9da", + "created_date": "2022-09-27T07:25:41.681Z", + "modified_date": "2022-09-27T07:25:41.685Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 4, + "fields": { + "external_id": "80868c78-4917-4401-b4b4-9eea49c47493", + "created_date": "2022-09-27T07:25:42.673Z", + "modified_date": "2022-09-27T07:25:42.676Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 5, + "fields": { + "external_id": "093863c4-1778-4464-9ee9-c408bef0bafe", + "created_date": "2022-09-27T07:25:43.611Z", + "modified_date": "2022-09-27T07:25:43.615Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 6, + "fields": { + "external_id": "5b015be7-ffb3-4f36-a08a-7510dd53ee7f", + "created_date": "2022-09-27T07:25:44.707Z", + "modified_date": "2022-09-27T07:25:44.711Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 7, + "fields": { + "external_id": "b8cb7a31-5480-4466-8388-de1eafa35ede", + "created_date": "2022-09-27T07:25:52.375Z", + "modified_date": "2022-09-27T07:25:52.379Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 8, + "fields": { + "external_id": "c04f9bd2-e11f-466e-8649-d80f9e5d8649", + "created_date": "2022-09-27T07:25:53.556Z", + "modified_date": "2022-09-27T07:25:53.559Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 9, + "fields": { + "external_id": "27001f33-e193-42d5-8809-61b2c63304a9", + "created_date": "2022-09-27T07:25:54.406Z", + "modified_date": "2022-09-27T07:25:54.410Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 10, + "fields": { + "external_id": "1a604325-11bf-44b7-985b-6222b6c37092", + "created_date": "2022-09-27T07:25:55.280Z", + "modified_date": "2022-09-27T07:25:55.284Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 11, + "fields": { + "external_id": "0bd4f6ff-e084-4d2c-9803-79b829682a1d", + "created_date": "2022-09-27T07:25:56.119Z", + "modified_date": "2022-09-27T07:25:56.123Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 12, + "fields": { + "external_id": "fecb4ef3-2889-47ca-8e08-6a27a5e77715", + "created_date": "2022-09-27T07:25:56.959Z", + "modified_date": "2022-09-27T07:25:56.964Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 13, + "fields": { + "external_id": "45186f6d-1ed5-454a-aadd-94ceaefacf20", + "created_date": "2022-09-27T07:25:57.875Z", + "modified_date": "2022-09-27T07:25:57.878Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 14, + "fields": { + "external_id": "bcbc2e7e-d2b8-4e5e-ab50-7c36a51c1e09", + "created_date": "2022-09-27T07:25:58.676Z", + "modified_date": "2022-09-27T07:25:58.681Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 15, + "fields": { + "external_id": "342639b4-f347-4f83-87d1-85c6d7968ee7", + "created_date": "2022-09-27T07:25:59.671Z", + "modified_date": "2022-09-27T07:25:59.674Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 16, + "fields": { + "external_id": "388099f9-f005-47c1-9be3-650ddda769a0", + "created_date": "2022-09-27T07:26:00.354Z", + "modified_date": "2022-09-27T07:26:00.358Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 17, + "fields": { + "external_id": "5aef7a72-5e2c-4a0f-b689-747aae8b0dce", + "created_date": "2022-09-27T07:26:00.860Z", + "modified_date": "2022-09-27T07:26:00.863Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 1, + "fields": { + "external_id": "64bf6eb2-055d-4a16-8c91-e7ce1390e541", + "created_date": "2022-09-27T07:23:29.580Z", + "modified_date": "2022-09-27T07:23:29.580Z", + "deleted": false, + "patient_sample": 1, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 2, + "fields": { + "external_id": "1f68131b-9aab-456f-b61b-eb0a93d521c4", + "created_date": "2022-09-27T07:25:39.613Z", + "modified_date": "2022-09-27T07:25:39.613Z", + "deleted": false, + "patient_sample": 2, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 3, + "fields": { + "external_id": "80ead199-cd58-44c3-97de-4142e3e7d7ac", + "created_date": "2022-09-27T07:25:41.689Z", + "modified_date": "2022-09-27T07:25:41.689Z", + "deleted": false, + "patient_sample": 3, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 4, + "fields": { + "external_id": "ebe8ffac-1ca0-40fe-80d3-b895e7524ce2", + "created_date": "2022-09-27T07:25:42.681Z", + "modified_date": "2022-09-27T07:25:42.681Z", + "deleted": false, + "patient_sample": 4, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 5, + "fields": { + "external_id": "ed7f8727-3784-40cd-97c6-49e9de3e2fdb", + "created_date": "2022-09-27T07:25:43.620Z", + "modified_date": "2022-09-27T07:25:43.620Z", + "deleted": false, + "patient_sample": 5, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 6, + "fields": { + "external_id": "f7a3695f-bfd4-4af5-9280-e2d54124286e", + "created_date": "2022-09-27T07:25:44.716Z", + "modified_date": "2022-09-27T07:25:44.716Z", + "deleted": false, + "patient_sample": 6, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 7, + "fields": { + "external_id": "a0cad511-4dad-4244-93c4-50277d6734c2", + "created_date": "2022-09-27T07:25:52.383Z", + "modified_date": "2022-09-27T07:25:52.383Z", + "deleted": false, + "patient_sample": 7, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 8, + "fields": { + "external_id": "f3ff09b9-1c79-4afc-bd3d-70eeecc87daa", + "created_date": "2022-09-27T07:25:53.564Z", + "modified_date": "2022-09-27T07:25:53.564Z", + "deleted": false, + "patient_sample": 8, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 9, + "fields": { + "external_id": "a03684c4-4769-4643-b457-8be382895e8b", + "created_date": "2022-09-27T07:25:54.414Z", + "modified_date": "2022-09-27T07:25:54.414Z", + "deleted": false, + "patient_sample": 9, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 10, + "fields": { + "external_id": "a62f7677-31af-42f6-94f9-fcb5e8ab94de", + "created_date": "2022-09-27T07:25:55.288Z", + "modified_date": "2022-09-27T07:25:55.288Z", + "deleted": false, + "patient_sample": 10, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 11, + "fields": { + "external_id": "e9dae65e-bca7-47fc-b490-8ef4de67e331", + "created_date": "2022-09-27T07:25:56.127Z", + "modified_date": "2022-09-27T07:25:56.127Z", + "deleted": false, + "patient_sample": 11, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 12, + "fields": { + "external_id": "e065bb9a-10d2-4bdd-b375-affa163dacdf", + "created_date": "2022-09-27T07:25:56.968Z", + "modified_date": "2022-09-27T07:25:56.968Z", + "deleted": false, + "patient_sample": 12, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 13, + "fields": { + "external_id": "dae215d0-bbfe-41e5-a6e2-20e4504eb068", + "created_date": "2022-09-27T07:25:57.883Z", + "modified_date": "2022-09-27T07:25:57.883Z", + "deleted": false, + "patient_sample": 13, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 14, + "fields": { + "external_id": "dabdd193-f800-4848-902b-b33b345252e5", + "created_date": "2022-09-27T07:25:58.686Z", + "modified_date": "2022-09-27T07:25:58.686Z", + "deleted": false, + "patient_sample": 14, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 15, + "fields": { + "external_id": "8a32a9f0-0686-4104-8fe7-27c7be6a4233", + "created_date": "2022-09-27T07:25:59.679Z", + "modified_date": "2022-09-27T07:25:59.679Z", + "deleted": false, + "patient_sample": 15, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 16, + "fields": { + "external_id": "db4ceed2-a7e5-4cb1-828b-085ddae5fa0a", + "created_date": "2022-09-27T07:26:00.363Z", + "modified_date": "2022-09-27T07:26:00.363Z", + "deleted": false, + "patient_sample": 16, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 17, + "fields": { + "external_id": "48b8eb3a-c901-429a-abbb-7e5aae0f9cd2", + "created_date": "2022-09-27T07:26:00.867Z", + "modified_date": "2022-09-27T07:26:00.867Z", + "deleted": false, + "patient_sample": 17, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.shiftingrequest", + "pk": 1, + "fields": { + "external_id": "a0e4cf70-49b4-4e26-83fa-c2c962386885", + "created_date": "2022-09-27T07:22:00.581Z", + "modified_date": "2022-09-27T07:22:00.581Z", + "deleted": false, + "origin_facility": 1, + "shifting_approving_facility": 2, + "assigned_facility_type": 2, + "assigned_facility": null, + "assigned_facility_external": "", + "patient": 1, + "emergency": true, + "is_up_shift": true, + "reason": "Test", + "vehicle_preference": "", + "preferred_vehicle_choice": 10, + "comments": "", + "refering_facility_contact_name": "Someone at Facility", + "refering_facility_contact_number": "+914455666777", + "is_kasp": false, + "status": 10, + "breathlessness_level": 30, + "is_assigned_to_user": false, + "assigned_to": null, + "ambulance_driver_name": "", + "ambulance_phone_number": "", + "ambulance_number": "", + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.facilityrelatedsummary", + "pk": "99627ad6-53e7-4585-821a-21ac6e765f7b", + "fields": { + "created_date": "2022-09-27T07:00:00.163Z", + "modified_date": "2022-09-27T07:25:00.165Z", + "facility": 1, + "s_type": "FacilityCapacity", + "data": { + "id": "81092ced-8720-44cb-b4c5-3f0ad0540153", + "name": "Dummy Facility 1", + "ward": 1, + "state": 1, + "address": "127.0.0.1", + "pincode": 670000, + "district": 7, + "features": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "latitude": null, + "inventory": {}, + "longitude": null, + "local_body": 920, + "ward_object": { + "id": 1, + "name": "NEERICODE WEST", + "number": 1, + "local_body": 920 + }, + "availability": [ + { + "id": "bfb7a4d8-6bf0-46d6-bf20-d5020850ea55", + "room_type": 150, + "modified_date": "2022-09-27T12:30:19.399000+05:30", + "room_type_text": "Oxygen beds", + "total_capacity": 1000, + "current_capacity": 20 + } + ], + "created_date": "2022-09-27T12:29:15.929000+05:30", + "phone_number": "+919999999888", + "state_object": { + "id": 1, + "name": "Kerala" + }, + "facility_type": "Private Hospital", + "modified_date": "2022-09-27T12:29:15.929000+05:30", + "district_object": { + "id": 7, + "name": "Ernakulam", + "state": 1 + }, + "kasp_empanelled": false, + "oxygen_capacity": 0, + "type_b_cylinders": 0, + "type_c_cylinders": 0, + "type_d_cylinders": 0, + "local_body_object": { + "id": 920, + "name": "Alangad  Grama Panchayat, Ernakulam District", + "district": 7, + "body_type": 1, + "localbody_code": "G070203" + }, + "actual_live_patients": 1, + "read_cover_image_url": null, + "expected_type_b_cylinders": 0, + "expected_type_c_cylinders": 0, + "expected_type_d_cylinders": 0, + "actual_discharged_patients": 0, + "expected_oxygen_requirement": 0 + } + } + }, + { + "model": "facility.facilityrelatedsummary", + "pk": "e294a2c2-3b05-469f-b975-e7766201df13", + "fields": { + "created_date": "2022-09-27T07:20:00.162Z", + "modified_date": "2022-09-27T07:25:00.171Z", + "facility": 2, + "s_type": "FacilityCapacity", + "data": { + "id": "fa33079d-727d-4295-b0fd-19153b36b2db", + "name": "Dummy Shifting Center", + "ward": 218, + "state": 1, + "address": "89.66.33.55", + "pincode": 670112, + "district": 7, + "features": [ + 1, + 6 + ], + "latitude": null, + "inventory": {}, + "longitude": null, + "local_body": 12, + "ward_object": { + "id": 218, + "name": "VALAMBOOR", + "number": 2, + "local_body": 12 + }, + "availability": [ + { + "id": "52bd4e97-9064-4697-8fea-37e0a2b8c87c", + "room_type": 150, + "modified_date": "2022-09-27T12:46:52.525280+05:30", + "room_type_text": "Oxygen beds", + "total_capacity": 20, + "current_capacity": 1 + } + ], + "created_date": "2022-09-27T12:45:51.075776+05:30", + "phone_number": "+919876665987", + "state_object": { + "id": 1, + "name": "Kerala" + }, + "facility_type": "Shifting Centre", + "modified_date": "2022-09-27T12:45:51.075811+05:30", + "district_object": { + "id": 7, + "name": "Ernakulam", + "state": 1 + }, + "kasp_empanelled": false, + "oxygen_capacity": 0, + "type_b_cylinders": 0, + "type_c_cylinders": 0, + "type_d_cylinders": 0, + "local_body_object": { + "id": 12, + "name": "Aikaranad  Grama Panchayat, Ernakulam District", + "district": 7, + "body_type": 1, + "localbody_code": "G071005" + }, + "actual_live_patients": 0, + "read_cover_image_url": null, + "expected_type_b_cylinders": 0, + "expected_type_c_cylinders": 0, + "expected_type_d_cylinders": 0, + "actual_discharged_patients": 0, + "expected_oxygen_requirement": 0 + } + } + } ] From 85b9fcd06cf6ccc7724b05b80820d8688fbe9800 Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Mon, 27 Nov 2023 12:30:45 +0530 Subject: [PATCH 02/17] Allow `encounter_date` for all consultations --- .../api/serializers/patient_consultation.py | 30 ++++++------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/care/facility/api/serializers/patient_consultation.py b/care/facility/api/serializers/patient_consultation.py index 7880000f74..f3528998fa 100644 --- a/care/facility/api/serializers/patient_consultation.py +++ b/care/facility/api/serializers/patient_consultation.py @@ -524,17 +524,11 @@ def validate(self, attrs): validated["referred_to"] = None elif validated.get("referred_to"): validated["referred_to_external"] = None - if validated["suggestion"] is SuggestionChoices.A: - if not validated.get("encounter_date"): - raise ValidationError( - { - "encounter_date": "This field is required as the patient has been admitted." - } - ) - if validated["encounter_date"] > now(): - raise ValidationError( - {"encounter_date": "This field value cannot be in the future."} - ) + + if "encounter_date" in validated and validated["encounter_date"] > now(): + raise ValidationError( + {"encounter_date": "This field value cannot be in the future."} + ) if "action" in validated: if validated["action"] == PatientRegistration.ActionEnum.REVIEW: @@ -634,13 +628,10 @@ def validate(self, attrs): raise ValidationError( {"death_datetime": "This field value cannot be in the future."} ) - if ( - self.instance.encounter_date - and attrs.get("death_datetime") < self.instance.encounter_date - ): + if attrs.get("death_datetime") < self.instance.encounter_date: raise ValidationError( { - "death_datetime": "This field value cannot be before the admission date." + "death_datetime": "This field value cannot be before the encounter date." } ) if not attrs.get("death_confirmed_doctor"): @@ -654,13 +645,10 @@ def validate(self, attrs): raise ValidationError( {"discharge_date": "This field value cannot be in the future."} ) - elif ( - self.instance.encounter_date - and attrs.get("discharge_date") < self.instance.encounter_date - ): + elif attrs.get("discharge_date") < self.instance.encounter_date: raise ValidationError( { - "discharge_date": "This field value cannot be before the admission date." + "discharge_date": "This field value cannot be before the encounter date." } ) return attrs From 11026bd2701149a011ea526b1a41f5e9d92ca7df Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Mon, 27 Nov 2023 13:02:49 +0530 Subject: [PATCH 03/17] Clean `encounter_date` and alter field: non-null --- ...atientconsultation_if_admitted_and_more.py | 21 ------ ...mission_date_to_encounter_date_and_more.py | 66 +++++++++++++++++++ care/facility/models/patient_consultation.py | 3 +- 3 files changed, 68 insertions(+), 22 deletions(-) delete mode 100644 care/facility/migrations/0397_remove_patientconsultation_if_admitted_and_more.py create mode 100644 care/facility/migrations/0397_rename_admission_date_to_encounter_date_and_more.py diff --git a/care/facility/migrations/0397_remove_patientconsultation_if_admitted_and_more.py b/care/facility/migrations/0397_remove_patientconsultation_if_admitted_and_more.py deleted file mode 100644 index a15c9c43a9..0000000000 --- a/care/facility/migrations/0397_remove_patientconsultation_if_admitted_and_more.py +++ /dev/null @@ -1,21 +0,0 @@ -# Generated by Django 4.2.5 on 2023-11-27 07:00 - -from django.db import migrations - - -class Migration(migrations.Migration): - dependencies = [ - ("facility", "0396_merge_20231122_0240"), - ] - - operations = [ - migrations.RemoveConstraint( - model_name="patientconsultation", - name="if_admitted", - ), - migrations.RenameField( - model_name="patientconsultation", - old_name="admission_date", - new_name="encounter_date", - ), - ] diff --git a/care/facility/migrations/0397_rename_admission_date_to_encounter_date_and_more.py b/care/facility/migrations/0397_rename_admission_date_to_encounter_date_and_more.py new file mode 100644 index 0000000000..0bda728ec7 --- /dev/null +++ b/care/facility/migrations/0397_rename_admission_date_to_encounter_date_and_more.py @@ -0,0 +1,66 @@ +# Generated by Django 4.2.5 on 2023-11-27 07:00 + +import django.utils.timezone +from django.db import migrations, models +from django.db.models import F + + +class Migration(migrations.Migration): + dependencies = [ + ("facility", "0396_merge_20231122_0240"), + ] + + def clean_encounter_date(apps, schema_editor): + PatientConsultation = apps.get_model("facility", "PatientConsultation") + + # Set `encounter_date` to `null`` for all consultations with suggestions + # that are not Admission, Domiciliary Care. + # + # Reason: + # We were not capturing `encounter_date` for these consultations + # earlier, but could still be set by mistake (eg. Edit Consultation + # allowed changing suggestion to non Admission/Domiciliary Care without + # clearing `encounter_date`) + PatientConsultation.objects.exclude(suggestion__in=["A", "DC"]).update( + encounter_date=None + ) + + # Set `encounter_date` to `created_date` for all consultations with + # `encounter_date` as `null`. + # + # Reason: + # We were not capturing `encounter_date` for these consultations as + # it was earlier `adminssion_date` and was not set for these. + PatientConsultation.objects.filter(encounter_date=None).update( + encounter_date=F("created_date") + ) + + def reverse_clean_encounter_date(apps, schema_editor): + PatientConsultation = apps.get_model("facility", "PatientConsultation") + + # Set `encounter_date` to `null` for all consultations with suggestions + # that are not Admission/Domiciliary Care. + PatientConsultation.objects.exclude(suggestion__in=["A", "DC"]).update( + encounter_date=None + ) + + operations = [ + migrations.RemoveConstraint( + model_name="patientconsultation", + name="if_admitted", + ), + migrations.RenameField( + model_name="patientconsultation", + old_name="admission_date", + new_name="encounter_date", + ), + migrations.RunPython( + clean_encounter_date, + reverse_code=reverse_clean_encounter_date, + ), + migrations.AlterField( + model_name="patientconsultation", + name="encounter_date", + field=models.DateTimeField(default=django.utils.timezone.now), + ), + ] diff --git a/care/facility/models/patient_consultation.py b/care/facility/models/patient_consultation.py index 74b97244ba..f002664994 100644 --- a/care/facility/models/patient_consultation.py +++ b/care/facility/models/patient_consultation.py @@ -2,6 +2,7 @@ from django.core.validators import MinValueValidator from django.db import models from django.db.models import JSONField +from django.utils import timezone from multiselectfield import MultiSelectField from multiselectfield.utils import get_max_length @@ -126,7 +127,7 @@ class PatientConsultation(PatientBaseModel, ConsultationRelatedPermissionMixin): referred_by_external = models.TextField(default="", null=True, blank=True) is_readmission = models.BooleanField(default=False) admitted = models.BooleanField(default=False) # Deprecated - encounter_date = models.DateTimeField(null=True, blank=True) # Deprecated + encounter_date = models.DateTimeField(default=timezone.now) icu_admission_date = models.DateTimeField(null=True, blank=True) discharge_date = models.DateTimeField(null=True, blank=True) discharge_reason = models.CharField( From 400cd6346441458bcca43deeeedc22eb5a747d89 Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Mon, 27 Nov 2023 13:11:38 +0530 Subject: [PATCH 04/17] optimize migration --- ...dmission_date_to_encounter_date_and_more.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/care/facility/migrations/0397_rename_admission_date_to_encounter_date_and_more.py b/care/facility/migrations/0397_rename_admission_date_to_encounter_date_and_more.py index 0bda728ec7..872827bd5f 100644 --- a/care/facility/migrations/0397_rename_admission_date_to_encounter_date_and_more.py +++ b/care/facility/migrations/0397_rename_admission_date_to_encounter_date_and_more.py @@ -13,16 +13,18 @@ class Migration(migrations.Migration): def clean_encounter_date(apps, schema_editor): PatientConsultation = apps.get_model("facility", "PatientConsultation") - # Set `encounter_date` to `null`` for all consultations with suggestions - # that are not Admission, Domiciliary Care. + # Set `encounter_date` to `created_date` for all consultations with + # suggestions that are not Admission, Domiciliary Care. # # Reason: - # We were not capturing `encounter_date` for these consultations - # earlier, but could still be set by mistake (eg. Edit Consultation - # allowed changing suggestion to non Admission/Domiciliary Care without - # clearing `encounter_date`) + # We were not capturing `admission_date` (now `encounter_date`) for + # these consultations earlier, but could still be set by mistake. + # + # Example: + # Edit Consultation allowed changing suggestion to non Admission/Domiciliary Care + # without clearing `admission_date` (now `encounter_date`). PatientConsultation.objects.exclude(suggestion__in=["A", "DC"]).update( - encounter_date=None + encounter_date=F("created_date") ) # Set `encounter_date` to `created_date` for all consultations with @@ -30,7 +32,7 @@ def clean_encounter_date(apps, schema_editor): # # Reason: # We were not capturing `encounter_date` for these consultations as - # it was earlier `adminssion_date` and was not set for these. + # it was not set for these. PatientConsultation.objects.filter(encounter_date=None).update( encounter_date=F("created_date") ) From b39e7e10eb873ab936ecc6e35a635f61b1763097 Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Mon, 27 Nov 2023 13:25:47 +0530 Subject: [PATCH 05/17] update migration --- ...mission_date_to_encounter_date_and_more.py | 32 +------------------ 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/care/facility/migrations/0397_rename_admission_date_to_encounter_date_and_more.py b/care/facility/migrations/0397_rename_admission_date_to_encounter_date_and_more.py index 872827bd5f..2648658cff 100644 --- a/care/facility/migrations/0397_rename_admission_date_to_encounter_date_and_more.py +++ b/care/facility/migrations/0397_rename_admission_date_to_encounter_date_and_more.py @@ -12,36 +12,6 @@ class Migration(migrations.Migration): def clean_encounter_date(apps, schema_editor): PatientConsultation = apps.get_model("facility", "PatientConsultation") - - # Set `encounter_date` to `created_date` for all consultations with - # suggestions that are not Admission, Domiciliary Care. - # - # Reason: - # We were not capturing `admission_date` (now `encounter_date`) for - # these consultations earlier, but could still be set by mistake. - # - # Example: - # Edit Consultation allowed changing suggestion to non Admission/Domiciliary Care - # without clearing `admission_date` (now `encounter_date`). - PatientConsultation.objects.exclude(suggestion__in=["A", "DC"]).update( - encounter_date=F("created_date") - ) - - # Set `encounter_date` to `created_date` for all consultations with - # `encounter_date` as `null`. - # - # Reason: - # We were not capturing `encounter_date` for these consultations as - # it was not set for these. - PatientConsultation.objects.filter(encounter_date=None).update( - encounter_date=F("created_date") - ) - - def reverse_clean_encounter_date(apps, schema_editor): - PatientConsultation = apps.get_model("facility", "PatientConsultation") - - # Set `encounter_date` to `null` for all consultations with suggestions - # that are not Admission/Domiciliary Care. PatientConsultation.objects.exclude(suggestion__in=["A", "DC"]).update( encounter_date=None ) @@ -58,7 +28,7 @@ def reverse_clean_encounter_date(apps, schema_editor): ), migrations.RunPython( clean_encounter_date, - reverse_code=reverse_clean_encounter_date, + reverse_code=migrations.RunPython.noop, ), migrations.AlterField( model_name="patientconsultation", From 57fd8811dc9059e0aff71ad0522d7cb0eef76e78 Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Mon, 27 Nov 2023 13:29:35 +0530 Subject: [PATCH 06/17] fix discharge summary formatting --- .../patient_discharge_summary_pdf.html | 1765 +++++++++-------- 1 file changed, 973 insertions(+), 792 deletions(-) diff --git a/care/templates/reports/patient_discharge_summary_pdf.html b/care/templates/reports/patient_discharge_summary_pdf.html index f940565b9f..1f2a99275e 100644 --- a/care/templates/reports/patient_discharge_summary_pdf.html +++ b/care/templates/reports/patient_discharge_summary_pdf.html @@ -1,842 +1,1023 @@ {% load filters static %} - - - - - - - - + } + + - -
-
- {{patient.facility.name}} + +
+
+
+ {{patient.facility.name}} +
+
+
+

+ Patient Discharge Summary +

+

+ Created on {{date}} +

-
-
-

Patient Discharge Summary

-

Created on {{date}}

-
- + +
+
+
+

+ Full name: {{patient.name}} +

+

+ Gender: {{patient.get_gender_display}} +

+

+ Age: {{patient.age}} +

+

+ Date of Birth: {{patient.date_of_birth}} +

+

+ Blood Group: {{patient.blood_group}} +

+

+ Phone Number: {{patient.phone_number}} +

+

+ Address: {{patient.address}} +

-
-
+
+ +
+

+ Admission Details +

+
+
+
+

+ Route to Facility: + {{consultation.get_route_to_facility_display|field_name_to_label}} +

+

+ Decision after consultation: + {{consultation.get_suggestion_display|field_name_to_label}} +

+ {% if consultation.suggestion == 'A' %} +

+ Date of addmission: + {{consultation.encounter_date}} +

+ {% elif consultation.suggestion == 'R' %} +

+ Referred to: + {{consultation.referred_to.name}} +

+ {% elif consultation.suggestion == 'DD' %} +

+ Cause of death: + {{consultation.discharge_notes}} +

+

+ Date and time of death: + {{consultation.death_datetime}} +

+

+ Death Confirmed by: + {{consultation.death_confirmed_by}} +

+ {% endif %} +

- Full name: {{patient.name}} + + {% if consultation.suggestion == 'A' %} + IP No: + {% else %} + OP No: + {% endif %} + {{consultation.patient_no}}

- Gender: - {{patient.get_gender_display}} + Weight: + {{consultation.weight}} kg

-

Age: {{patient.age}}

- Date of Birth: - {{patient.date_of_birth}} + Height: + {{consultation.height}} cm

+
+ {% if consultation.route_to_facility %} +

- Blood Group: - {{patient.blood_group}} -

-

- Phone Number: - {{patient.phone_number}} + Symptoms at admission: + {{consultation.get_symptoms_display|title}}

-

- Address: - {{patient.address}} +

+ From: + {{consultation.symptoms_onset_date.date}}

+ {% endif %}
-
-

- Admission Details -

+ {% if hcx %} +

+ Health insurance details: +

+ +
+ + + + + + + + + + + {% for policy in hcx %} + + + + + + + {% endfor %} + +
+ Insurer Name + + Issuer ID + + Member ID + + Policy ID +
+ {{policy.insurer_name}} + + {{policy.insurer_id}} + + {{policy.subscriber_id}} + + {{policy.policy_id}} +
-
-
-

- Route to Facility: - {{consultation.get_route_to_facility_display|field_name_to_label}} -

-

- Decision after consultation: - {{consultation.get_suggestion_display|field_name_to_label}} -

- {% if consultation.suggestion == 'A' %} -

- Date of addmission: - {{consultation.encounter_date.date}} -

- {% elif consultation.suggestion == 'R' %} -

- Referred to: - {{consultation.referred_to.name}} -

- {% elif consultation.suggestion == 'DD' %} -

- Cause of death: - {{consultation.discharge_notes}} -

-

- Date and time of death: - {{consultation.death_datetime}} -

-

- Death Confirmed by: - {{consultation.death_confirmed_by}} -

- {% endif %} -
-

- - {% if consultation.suggestion == 'A' %} IP No: {% else %} OP No: - {% endif %} - - {{consultation.patient_no}} -

-

- Weight: - - {{consultation.weight}} kg -

-

- Height: - {{consultation.height}} cm -

-
- {% if consultation.route_to_facility %} -
-

- Symptoms at admission: - {{consultation.get_symptoms_display|title}} -

-

- From: - {{consultation.symptoms_onset_date.date}} -

-
- {% endif %} -
+ {% endif %} - {% if hcx %} -

Health insurance details:

- -
- - - - - - - - - - - {% for policy in hcx %} - - - - - - - {% endfor %} - -
Insurer NameIssuer IDMember IDPolicy ID
- {{policy.insurer_name}} - - {{policy.insurer_id}} - - {{policy.subscriber_id}} - - {{policy.policy_id}} -
-
- {% endif %} {% if principal_diagnosis %} -

- Principal Diagnosis (as per ICD-11 recommended by WHO): -

-
- - - - - - - - - {% for disease in principal_diagnosis %} - - - - - {% endfor %} - -
IDName
{{disease.id}}{{disease.label}}
-
- {% endif %} {% if unconfirmed_diagnoses %} -

- Unconfirmed Diagnoses (as per ICD-11 recommended by WHO): -

-
- - - - - - - - - {% for disease in unconfirmed_diagnoses %} - - - - - {% endfor %} - -
IDName
{{disease.id}}{{disease.label}}
-
- {% endif %} {% if provisional_diagnoses %} -

- Provisional Diagnosis (as per ICD-11 recommended by WHO): -

-
- - - - - - - - - {% for disease in provisional_diagnoses %} - - - - - {% endfor %} - -
IDName
{{disease.id}}{{disease.label}}
-
- {% endif %} {% if differential_diagnoses %} -

- Differential Diagnoses (as per ICD-11 recommended by WHO): -

-
- - - - - - - - - {% for disease in differential_diagnoses %} - - - - - {% endfor %} - -
IDName
{{disease.id}}{{disease.label}}
-
- {% endif %} {% if confirmed_diagnoses %} -

- Confirmed Diagnoses (as per ICD-11 recommended by WHO): + {% if principal_diagnosis %} +

+ Principal Diagnosis (as per ICD-11 recommended by WHO): +

+
+ + + + + + + + + {% for disease in principal_diagnosis %} + + + + + {% endfor %} + +
+ ID + + Name +
+ {{disease.id}} + + {{disease.label}} +
+
+ {% endif %} + + {% if unconfirmed_diagnoses %} +

+ Unconfirmed Diagnoses (as per ICD-11 recommended by WHO): +

+
+ + + + + + + + + {% for disease in unconfirmed_diagnoses %} + + + + + {% endfor %} + +
+ ID + + Name +
+ {{disease.id}} + + {{disease.label}} +
+
+ {% endif %} + + {% if provisional_diagnoses %} +

+ Provisional Diagnosis (as per ICD-11 recommended by WHO): +

+
+ + + + + + + + + {% for disease in provisional_diagnoses %} + + + + + {% endfor %} + +
+ ID + + Name +
+ {{disease.id}} + + {{disease.label}} +
+
+ {% endif %} + + {% if differential_diagnoses %} +

+ Differential Diagnoses (as per ICD-11 recommended by WHO): +

+
+ + + + + + + + + {% for disease in differential_diagnoses %} + + + + + {% endfor %} + +
+ ID + + Name +
+ {{disease.id}} + + {{disease.label}} +
+
+ {% endif %} + + {% if confirmed_diagnoses %} +

+ Confirmed Diagnoses (as per ICD-11 recommended by WHO): +

+
+ + + + + + + + + {% for disease in confirmed_diagnoses %} + + + + + {% endfor %} + +
+ ID + + Name +
+ {{disease.id}} + + {{disease.label}} +
+
+ {% endif %} + + + {% if medical_history %} +

+ Medication History: +

+
+ + + + + + + + + {% for disease in medical_history %} + + + + + {% endfor %} + +
+ Comorbidity + + Details +
+ {{disease.get_disease_display}} + + {{disease.details}} +
+
+ {% endif %} + +
+

+ Health status at admission:

-
- - - - - - - - - {% for disease in confirmed_diagnoses %} - - - - - {% endfor %} - -
IDName
{{disease.id}}{{disease.label}}
-
- {% endif %} {% if medical_history %} -

Medication History:

-
- - - - - - - - - {% for disease in medical_history %} - - - - - {% endfor %} - -
ComorbidityDetails
- {{disease.get_disease_display}} - {{disease.details}}
-
+

+ Present health condition: + {{patient.present_health}} +

+

+ Ongoing Medication: + {{patient.ongoing_medication}} +

+ {% if consultation.route_to_facility %} +

+ History of present illness: + {{consultation.history_of_present_illness}} +

{% endif %} +

+ Examination details and Clinical conditions: + {{consultation.examination_details}} +

+

+ Allergies: + {{patient.allergies}} +

+
+
-
-

- Health status at admission: -

-

- Present health condition: - {{patient.present_health}} -

-

- Ongoing Medication: - {{patient.ongoing_medication}} -

- {% if consultation.route_to_facility %} -

- History of present illness: - {{consultation.history_of_present_illness}} -

+ {% if consultation.suggestion != 'DD' %} +
+

+ Treatment Summary +

+
+
+ {% if patient.disease_status == 2 %} +
+

+ COVID Disease Status: + Positive +

+ {% if patient.date_of_result %} +

+ Test Result Date: + {{patient.date_of_result.date}} +

+ {% endif %} +

+ Vaccinated against COVID: + {% if patient.is_vaccinated %} + Yes + {% else %} + No {% endif %} -

- Examination details and Clinical conditions: - {{consultation.examination_details}} -

-

- Allergies: - {{patient.allergies}} -

-
+

+ {% endif %} - {% if consultation.suggestion != 'DD' %} -
-

- Treatment Summary -

+ {% if prescriptions %} +

+ Prescription Medication: +

+
+ + + + + + + + + + + + + {% for prescription in prescriptions %} + + + + + + + + + {% endfor %} + +
+ Medicine + + Dosage + + Route + + Frequency + + Days + + Notes +
+ {{ prescription.medicine_name }} + + {{ prescription.dosage }} + + {{ prescription.route }} + + {{ prescription.frequency }} + + {{ prescription.days }} + + {{ prescription.notes }} +
-
- {% if patient.disease_status == 2 %} -
-

- COVID Disease Status: - Positive -

- {% if patient.date_of_result %} -

- Test Result Date: - {{patient.date_of_result.date}} -

- {% endif %} -

- Vaccinated against COVID: - {% if patient.is_vaccinated %} Yes {% else %} No {% endif %} -

-
- {% endif %} {% if prescriptions %} -

Prescription Medication:

-
- - - - - - - - - - - - - {% for prescription in prescriptions %} - - - - - - - - - {% endfor %} - -
MedicineDosageRouteFrequencyDaysNotes
- {{ prescription.medicine_name }} - - {{ prescription.dosage }} - - {{ prescription.route }} - - {{ prescription.frequency }} - - {{ prescription.days }} - - {{ prescription.notes }} -
-
- {% endif %} {% if prn_prescriptions %} -

PRN Prescription:

-
- - - - - - - - - - - - - {% for prescription in prn_prescriptions %} - - - - - - - - - {% endfor %} - -
MedicineDosageMax DosageMin Time btwn. 2 dosesRouteIndicator
{{ prescription.medicine_name }} - {{ prescription.dosage }} - - {{ prescription.max_dosage }} - - {{ prescription.min_hours_between_doses }} Hrs. - - {{ prescription.route }} - {{ prescription.indicator }}
-
- {% endif %} {% if consultation.investigation %} -

- Investigations Suggestions: -

-
- - - - - - - - - - {% for investigation in consultation.investigation %} - - - - - - {% endfor %} - -
TypeTimeNotes
- {{investigation.type|join:", "}} - - {% if investigation.repetitive %} every - {{investigation.frequency}} {% else %} - {{investigation.time|parse_datetime}} {% endif %} - - {{investigation.notes}} -
-
- {% endif %} {% if consultation.procedure %} -

Procedures:

-
- - - - - - - - - - {% for procedure in consultation.procedure %} - - - - - - {% endfor %} - -
ProcedureTimeNotes
- {{procedure.procedure}} - - {% if procedure.repetitive %} every {{procedure.frequency}} {% - else %} {{procedure.time|parse_datetime}} {% endif %} - {{procedure.notes}}
-
- {% endif %} {% if consultation.treatment_plan %} -

Prescribed medication:

-

{{ consultation.treatment_plan }}

- {% endif %} {% if consultation.consultation_notes %} -

- General Instructions (Advice): -

-

{{consultation.consultation_notes}}

- {% endif %} {% if consultation.special_instruction %} -

Special Instructions:

-

{{consultation.special_instruction}}

- {% endif %} {% if samples %} -

Lab Reports:

-
- - - - - - - - - - - {% for sample in samples %} - - - - - - - {% endfor %} - -
Requested onSample typeLabelResult
{{sample.created_date}}{{sample.get_sample_type_display}}{{sample.icmr_label}}{{sample.get_result_display}}
-
- {% endif %} {% if dailyrounds %} -

Daily Rounds:

- {% for daily_round in dailyrounds %} -
-
-

- {{daily_round.created_date}} -

-
-
-
-
- Category -
-
- {{daily_round.get_patient_category_display}} -
-
-
-
-
- Physical Examination Details -
-
- {{daily_round.physical_examination_info}} -
-
-
-
- Other Details -
-
- {{daily_round.other_details}} -
-
-
+ {% endif %} + + {% if prn_prescriptions %} +

+ PRN Prescription: +

+
+ + + + + + + + + + + + + {% for prescription in prn_prescriptions %} + + + + + + + + + {% endfor %} + +
+ Medicine + + Dosage + + Max Dosage + + Min Time btwn. 2 doses + + Route + + Indicator +
+ {{ prescription.medicine_name }} + + {{ prescription.dosage }} + + {{ prescription.max_dosage }} + + {{ prescription.min_hours_between_doses }} Hrs. + + {{ prescription.route }} + + {{ prescription.indicator }} +
+
+ {% endif %} + + {% if consultation.investigation %} +

+ Investigations Suggestions: +

+
+ + + + + + + + + + {% for investigation in consultation.investigation %} + + + + + + {% endfor %} + +
+ Type + + Time + + Notes +
+ {{investigation.type|join:", "}} + + {% if investigation.repetitive %} + every {{investigation.frequency}} + {% else %} + {{investigation.time|parse_datetime}} + {% endif %} + + {{investigation.notes}} +
+
+ {% endif %} + + {% if consultation.procedure %} +

+ Procedures: +

+
+ + + + + + + + + + {% for procedure in consultation.procedure %} + + + + + + {% endfor %} + +
+ Procedure + + Time + + Notes +
+ {{procedure.procedure}} + + {% if procedure.repetitive %} + every {{procedure.frequency}} + {% else %} + {{procedure.time|parse_datetime}} + {% endif %} + + {{procedure.notes}} +
+
+ {% endif %} + + {% if consultation.treatment_plan %} +

+ Prescribed medication: +

+

+ {{ consultation.treatment_plan }} +

+ {% endif %} + + {% if consultation.consultation_notes %} +

+ General Instructions (Advice): +

+

+ {{consultation.consultation_notes}} +

+ {% endif %} + + {% if consultation.special_instruction %} +

+ Special Instructions: +

+

+ {{consultation.special_instruction}} +

+ {% endif %} + + + {% if samples %} +

+ Lab Reports: +

+
+ + + + + + + + + + + {% for sample in samples %} + + + + + + + {% endfor %} + +
+ Requested on + + Sample type + + Label + + Result +
+ {{sample.created_date}} + + {{sample.get_sample_type_display}} + + {{sample.icmr_label}} + + {{sample.get_result_display}} +
+
+ {% endif %} + + {% if dailyrounds %} +

+ Daily Rounds: +

+ {% for daily_round in dailyrounds %} +
+
+

+ {{daily_round.created_date}} +

+
+
+
- Symptoms + Category
- {{daily_round.additional_symptoms}} + {{daily_round.get_patient_category_display}}
+
+
+ Physical Examination Details +
+
+ {{daily_round.physical_examination_info}} +
+
+
+
+ Other Details +
+
+ {{daily_round.other_details}} +
+
+
+
+ Symptoms +
+
+ {{daily_round.additional_symptoms}} +
+
- {% endfor %} {% endif %} {% if investigations %} -
-

- Investigation History -

-
-
- - - - - - - - - - - - {% for investigation in investigations %} - - - - - - - - {% endfor %} - -
GroupNameResultRangeDate
- {{investigation.investigation.groups.first}} - - {{investigation.investigation.name}} - - {% if investigation.value%} {{investigation.value}} {% else %} - {{investigation.notes}} {% endif %} - - {% if investigation.investigation.min_value and - investigation.investigation.max_value%} - {{investigation.investigation.min_value}} - - {{investigation.investigation.max_value}} {% else %} - {% endif - %} {% if investigation.investigation.unit %} - {{investigation.investigation.unit}} {% endif %} - - {{investigation.created_date}} -
-
- {% endif %}
+ {% endfor %} {% endif %} -
+ {% if investigations %} +

- Discharge Summary + Investigation History

-
-
-

- Discharge Date: - {{consultation.discharge_date}} -

-

- Discharge Reason: - {{consultation.get_discharge_reason_display}} -

-
- {% if consultation.discharge_reason == 'REC' %} {% if - discharge_prescriptions %} -

- Discharge Prescription Medication: -

-
- - - - - - - - - - - - - {% for prescription in discharge_prescriptions %} - - - - - - - - - {% endfor %} - -
MedicineDosageRouteFrequencyDaysNotes
- {{ prescription.medicine_name }} - - {{ prescription.dosage }} - - {{ prescription.route }} - - {{ prescription.frequency }} - - {{ prescription.days }} - - {{ prescription.notes }} -
-
- {% endif %} {% if discharge_prn_prescriptions %} -

- Discharge PRN Prescription: -

-
- - - - - - - - - - - - - {% for prescription in discharge_prn_prescriptions %} - - - - - - - - - {% endfor %} - -
MedicineDosageMax DosageMin Time btwn. 2 dosesRouteIndicator
{{ prescription.medicine_name }} - {{ prescription.dosage }} - - {{ prescription.max_dosage }} - - {{ prescription.min_hours_between_doses }} Hrs. - - {{ prescription.route }} - {{ prescription.indicator }}
-
- {% endif %} {% elif consultation.discharge_reason == 'REF' %} {% elif - consultation.discharge_reason == 'EXP' %} {% elif - consultation.discharge_reason == 'LAMA' %} {% endif %} +
+ + + + + + + + + + + + {% for investigation in investigations %} + + + + + + + + {% endfor %} + +
+ Group + + Name + + Result + + Range + + Date +
+ {{investigation.investigation.groups.first}} + + {{investigation.investigation.name}} + + {% if investigation.value%} + {{investigation.value}} + {% else %} + {{investigation.notes}} + {% endif %} + + {% if investigation.investigation.min_value and investigation.investigation.max_value%} + {{investigation.investigation.min_value}} - {{investigation.investigation.max_value}} + {% else %} + - + {% endif %} + {% if investigation.investigation.unit %} + {{investigation.investigation.unit}} + {% endif %} + + {{investigation.created_date}} +
+
+ {% endif %} +
+ {% endif %} -

- Discharge Notes: - {{consultation.discharge_notes}} +

+

+ Discharge Summary +

+
+
+
+

+ Discharge Date: {{consultation.discharge_date}} +

+

+ Discharge Reason: {{consultation.get_discharge_reason_display}}

- - {% if files %} -
-

Annexes

+ {% if consultation.discharge_reason == 'REC' %} + {% if discharge_prescriptions %} +

+ Discharge Prescription Medication: +

+
+ + + + + + + + + + + + + {% for prescription in discharge_prescriptions %} + + + + + + + + + {% endfor %} + +
+ Medicine + + Dosage + + Route + + Frequency + + Days + + Notes +
+ {{ prescription.medicine_name }} + + {{ prescription.dosage }} + + {{ prescription.route }} + + {{ prescription.frequency }} + + {{ prescription.days }} + + {{ prescription.notes }} +
-
-

Uploaded Files:

-
- - - - - - - - - {% for file in files %} - - - - - {% endfor %} - -
Uploaded atName
- {{file.modified_date}} - {{file.name}}
-
+ {% endif %} + + {% if discharge_prn_prescriptions %} +

+ Discharge PRN Prescription: +

+
+ + + + + + + + + + + + + {% for prescription in discharge_prn_prescriptions %} + + + + + + + + + {% endfor %} + +
+ Medicine + + Dosage + + Max Dosage + + Min Time btwn. 2 doses + + Route + + Indicator +
+ {{ prescription.medicine_name }} + + {{ prescription.dosage }} + + {{ prescription.max_dosage }} + + {{ prescription.min_hours_between_doses }} Hrs. + + {{ prescription.route }} + + {{ prescription.indicator }} +
{% endif %} + {% elif consultation.discharge_reason == 'REF' %} + {% elif consultation.discharge_reason == 'EXP' %} + {% elif consultation.discharge_reason == 'LAMA' %} + {% endif %} -
-
- Treating Physician -
-
- {% if consultation.treating_physician %} {{ - consultation.treating_physician.first_name }} {{ - consultation.treating_physician.last_name }} {% else %} - {% endif %} -
+

+ Discharge Notes: {{consultation.discharge_notes}} +

+
+ + {% if files %} +
+

+ Annexes +

+
+
+

+ Uploaded Files: +

+
+ + + + + + + + + {% for file in files %} + + + + + {% endfor %} + +
+ Uploaded at + + Name +
+ {{file.modified_date}} + + {{file.name}} +
+
+
+ {% endif %} + +
+
+ Treating Physician
- +
+ {% if consultation.treating_physician %} + {{ consultation.treating_physician.first_name }} {{ consultation.treating_physician.last_name }} + {% else %} + - + {% endif %} +
+
+ + From 00c693169ae702d506604ae97d892a21b3baf12d Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Mon, 27 Nov 2023 13:31:03 +0530 Subject: [PATCH 07/17] fix `facility.json` fixture formatting --- data/dummy/facility.json | 6180 +++++++++++++++++++------------------- 1 file changed, 3090 insertions(+), 3090 deletions(-) diff --git a/data/dummy/facility.json b/data/dummy/facility.json index 5655fd6c58..a6c2710997 100644 --- a/data/dummy/facility.json +++ b/data/dummy/facility.json @@ -1,3099 +1,3099 @@ [ - { - "model": "facility.facility", - "pk": 1, - "fields": { - "external_id": "81092ced-8720-44cb-b4c5-3f0ad0540153", - "created_date": "2022-09-27T06:59:15.929Z", - "modified_date": "2022-09-27T06:59:15.929Z", - "deleted": false, - "name": "Dummy Facility 1", - "is_active": true, - "verified": false, - "facility_type": 2, - "kasp_empanelled": false, - "features": "1,2,3,4,5,6", - "longitude": null, - "latitude": null, - "pincode": 670000, - "address": "127.0.0.1", - "ward": 1, - "local_body": 920, - "district": 7, - "state": 1, - "oxygen_capacity": 0, - "type_b_cylinders": 0, - "type_c_cylinders": 0, - "type_d_cylinders": 0, - "expected_oxygen_requirement": 0, - "expected_type_b_cylinders": 0, - "expected_type_c_cylinders": 0, - "expected_type_d_cylinders": 0, - "phone_number": "+919999999888", - "corona_testing": false, - "created_by": 2, - "cover_image_url": null, - "middleware_address": null - } - }, - { - "model": "facility.facility", - "pk": 2, - "fields": { - "external_id": "fa33079d-727d-4295-b0fd-19153b36b2db", - "created_date": "2022-09-27T07:15:51.075Z", - "modified_date": "2022-09-27T07:15:51.075Z", - "deleted": false, - "name": "Dummy Shifting Center", - "is_active": true, - "verified": false, - "facility_type": 1300, - "kasp_empanelled": false, - "features": "1,6", - "longitude": null, - "latitude": null, - "pincode": 670112, - "address": "89.66.33.55", - "ward": 218, - "local_body": 12, - "district": 7, - "state": 1, - "oxygen_capacity": 0, - "type_b_cylinders": 0, - "type_c_cylinders": 0, - "type_d_cylinders": 0, - "expected_oxygen_requirement": 0, - "expected_type_b_cylinders": 0, - "expected_type_c_cylinders": 0, - "expected_type_d_cylinders": 0, - "phone_number": "+919876665987", - "corona_testing": false, - "created_by": 2, - "cover_image_url": null, - "middleware_address": null - } - }, - { - "model": "facility.facility", - "pk": 3, - "fields": { - "external_id": "4c293ecd-1aae-4ebc-9b5b-b53497dffac9", - "created_date": "2023-09-15T06:11:14.166Z", - "modified_date": "2023-09-15T06:11:14.166Z", - "deleted": false, - "name": "Dummy Request Approving Center", - "is_active": true, - "verified": false, - "facility_type": 1500, - "kasp_empanelled": false, - "features": "1,4,6", - "longitude": "78.6757364624373000", - "latitude": "21.4009146842158660", - "pincode": 670000, - "address": "Dummy Facility Address", - "ward": 7574, - "local_body": 431, - "district": 7, - "state": 1, - "oxygen_capacity": 0, - "type_b_cylinders": 0, - "type_c_cylinders": 0, - "type_d_cylinders": 0, - "expected_oxygen_requirement": 0, - "expected_type_b_cylinders": 0, - "expected_type_c_cylinders": 0, - "expected_type_d_cylinders": 0, - "phone_number": "+919999999888", - "corona_testing": false, - "created_by": 2, - "cover_image_url": null, - "middleware_address": null - } - }, - { - "model": "facility.facility", - "pk": 4, - "fields": { - "external_id": "e70e0b82-7a99-48c2-a735-41cdea3b4076", - "created_date": "2023-09-15T06:12:14.266Z", - "modified_date": "2023-09-15T06:12:14.266Z", - "deleted": false, - "name": "Dummy Request Fulfilment Center", - "is_active": true, - "verified": false, - "facility_type": 1510, - "kasp_empanelled": false, - "features": "1,3,5", - "longitude": "75.2139014820876600", - "latitude": "18.2774285038890340", - "pincode": 670000, - "address": "Dummy Facility Address 2", - "ward": 5412, - "local_body": 309, - "district": 7, - "state": 1, - "oxygen_capacity": 0, - "type_b_cylinders": 0, - "type_c_cylinders": 0, - "type_d_cylinders": 0, - "expected_oxygen_requirement": 0, - "expected_type_b_cylinders": 0, - "expected_type_c_cylinders": 0, - "expected_type_d_cylinders": 0, - "phone_number": "+918899885588", - "corona_testing": false, - "created_by": 2, - "cover_image_url": null, - "middleware_address": null - } - }, - { - "model": "facility.hospitaldoctors", - "pk": 1, - "fields": { - "external_id": "d68776c9-1197-411f-b19d-2069364b17a2", - "created_date": "2023-09-15T06:12:36.941Z", - "modified_date": "2023-09-15T06:12:36.941Z", - "deleted": false, - "facility": 4, - "area": 2, - "count": 5 - } - }, - { - "model": "facility.hospitaldoctors", - "pk": 2, - "fields": { - "external_id": "df1ef651-4e4f-4a0a-9df7-55e5949468ce", - "created_date": "2023-09-15T06:12:54.835Z", - "modified_date": "2023-09-15T06:12:54.835Z", - "deleted": false, - "facility": 3, - "area": 3, - "count": 4 - } - }, - { - "model": "facility.historicalfacilitycapacity", - "pk": 1, - "fields": { - "id": 1, - "external_id": "bfb7a4d8-6bf0-46d6-bf20-d5020850ea55", - "created_date": "2022-09-27T07:00:19.399Z", - "modified_date": "2022-09-27T07:00:19.399Z", - "deleted": false, - "room_type": 150, - "total_capacity": 1000, - "current_capacity": 20, - "facility": 1, - "history_date": "2022-09-27T07:00:19.400Z", - "history_change_reason": null, - "history_type": "+", - "history_user": 2 - } - }, - { - "model": "facility.historicalfacilitycapacity", - "pk": 2, - "fields": { - "id": 2, - "external_id": "52bd4e97-9064-4697-8fea-37e0a2b8c87c", - "created_date": "2022-09-27T07:16:52.525Z", - "modified_date": "2022-09-27T07:16:52.525Z", - "deleted": false, - "room_type": 150, - "total_capacity": 20, - "current_capacity": 1, - "facility": 2, - "history_date": "2022-09-27T07:16:52.526Z", - "history_change_reason": null, - "history_type": "+", - "history_user": 2 - } - }, - { - "model": "facility.historicalfacilitycapacity", - "pk": 3, - "fields": { - "id": 3, - "external_id": "4fed54e3-672b-412c-998f-a7d8f303016c", - "created_date": "2023-09-15T06:12:31.548Z", - "modified_date": "2023-09-15T06:12:31.548Z", - "deleted": false, - "room_type": 150, - "total_capacity": 12, - "current_capacity": 2, - "facility": 4, - "history_date": "2023-09-15T06:12:31.550Z", - "history_change_reason": null, - "history_type": "+", - "history_user": 2 - } - }, - { - "model": "facility.historicalfacilitycapacity", - "pk": 4, - "fields": { - "id": 4, - "external_id": "c7d64165-8097-4dec-a4df-616647e70c31", - "created_date": "2023-09-15T06:12:50.165Z", - "modified_date": "2023-09-15T06:12:50.165Z", - "deleted": false, - "room_type": 20, - "total_capacity": 31, - "current_capacity": 2, - "facility": 3, - "history_date": "2023-09-15T06:12:50.166Z", - "history_change_reason": null, - "history_type": "+", - "history_user": 2 - } - }, - { - "model": "facility.facilitycapacity", - "pk": 1, - "fields": { - "external_id": "bfb7a4d8-6bf0-46d6-bf20-d5020850ea55", - "created_date": "2022-09-27T07:00:19.399Z", - "modified_date": "2022-09-27T07:00:19.399Z", - "deleted": false, - "facility": 1, + { + "model": "facility.facility", + "pk": 1, + "fields": { + "external_id": "81092ced-8720-44cb-b4c5-3f0ad0540153", + "created_date": "2022-09-27T06:59:15.929Z", + "modified_date": "2022-09-27T06:59:15.929Z", + "deleted": false, + "name": "Dummy Facility 1", + "is_active": true, + "verified": false, + "facility_type": 2, + "kasp_empanelled": false, + "features": "1,2,3,4,5,6", + "longitude": null, + "latitude": null, + "pincode": 670000, + "address": "127.0.0.1", + "ward": 1, + "local_body": 920, + "district": 7, + "state": 1, + "oxygen_capacity": 0, + "type_b_cylinders": 0, + "type_c_cylinders": 0, + "type_d_cylinders": 0, + "expected_oxygen_requirement": 0, + "expected_type_b_cylinders": 0, + "expected_type_c_cylinders": 0, + "expected_type_d_cylinders": 0, + "phone_number": "+919999999888", + "corona_testing": false, + "created_by": 2, + "cover_image_url": null, + "middleware_address": null + } + }, + { + "model": "facility.facility", + "pk": 2, + "fields": { + "external_id": "fa33079d-727d-4295-b0fd-19153b36b2db", + "created_date": "2022-09-27T07:15:51.075Z", + "modified_date": "2022-09-27T07:15:51.075Z", + "deleted": false, + "name": "Dummy Shifting Center", + "is_active": true, + "verified": false, + "facility_type": 1300, + "kasp_empanelled": false, + "features": "1,6", + "longitude": null, + "latitude": null, + "pincode": 670112, + "address": "89.66.33.55", + "ward": 218, + "local_body": 12, + "district": 7, + "state": 1, + "oxygen_capacity": 0, + "type_b_cylinders": 0, + "type_c_cylinders": 0, + "type_d_cylinders": 0, + "expected_oxygen_requirement": 0, + "expected_type_b_cylinders": 0, + "expected_type_c_cylinders": 0, + "expected_type_d_cylinders": 0, + "phone_number": "+919876665987", + "corona_testing": false, + "created_by": 2, + "cover_image_url": null, + "middleware_address": null + } + }, + { + "model": "facility.facility", + "pk": 3, + "fields": { + "external_id": "4c293ecd-1aae-4ebc-9b5b-b53497dffac9", + "created_date": "2023-09-15T06:11:14.166Z", + "modified_date": "2023-09-15T06:11:14.166Z", + "deleted": false, + "name": "Dummy Request Approving Center", + "is_active": true, + "verified": false, + "facility_type": 1500, + "kasp_empanelled": false, + "features": "1,4,6", + "longitude": "78.6757364624373000", + "latitude": "21.4009146842158660", + "pincode": 670000, + "address": "Dummy Facility Address", + "ward": 7574, + "local_body": 431, + "district": 7, + "state": 1, + "oxygen_capacity": 0, + "type_b_cylinders": 0, + "type_c_cylinders": 0, + "type_d_cylinders": 0, + "expected_oxygen_requirement": 0, + "expected_type_b_cylinders": 0, + "expected_type_c_cylinders": 0, + "expected_type_d_cylinders": 0, + "phone_number": "+919999999888", + "corona_testing": false, + "created_by": 2, + "cover_image_url": null, + "middleware_address": null + } + }, + { + "model": "facility.facility", + "pk": 4, + "fields": { + "external_id": "e70e0b82-7a99-48c2-a735-41cdea3b4076", + "created_date": "2023-09-15T06:12:14.266Z", + "modified_date": "2023-09-15T06:12:14.266Z", + "deleted": false, + "name": "Dummy Request Fulfilment Center", + "is_active": true, + "verified": false, + "facility_type": 1510, + "kasp_empanelled": false, + "features": "1,3,5", + "longitude": "75.2139014820876600", + "latitude": "18.2774285038890340", + "pincode": 670000, + "address": "Dummy Facility Address 2", + "ward": 5412, + "local_body": 309, + "district": 7, + "state": 1, + "oxygen_capacity": 0, + "type_b_cylinders": 0, + "type_c_cylinders": 0, + "type_d_cylinders": 0, + "expected_oxygen_requirement": 0, + "expected_type_b_cylinders": 0, + "expected_type_c_cylinders": 0, + "expected_type_d_cylinders": 0, + "phone_number": "+918899885588", + "corona_testing": false, + "created_by": 2, + "cover_image_url": null, + "middleware_address": null + } + }, + { + "model": "facility.hospitaldoctors", + "pk": 1, + "fields": { + "external_id": "d68776c9-1197-411f-b19d-2069364b17a2", + "created_date": "2023-09-15T06:12:36.941Z", + "modified_date": "2023-09-15T06:12:36.941Z", + "deleted": false, + "facility": 4, + "area": 2, + "count": 5 + } + }, + { + "model": "facility.hospitaldoctors", + "pk": 2, + "fields": { + "external_id": "df1ef651-4e4f-4a0a-9df7-55e5949468ce", + "created_date": "2023-09-15T06:12:54.835Z", + "modified_date": "2023-09-15T06:12:54.835Z", + "deleted": false, + "facility": 3, + "area": 3, + "count": 4 + } + }, + { + "model": "facility.historicalfacilitycapacity", + "pk": 1, + "fields": { + "id": 1, + "external_id": "bfb7a4d8-6bf0-46d6-bf20-d5020850ea55", + "created_date": "2022-09-27T07:00:19.399Z", + "modified_date": "2022-09-27T07:00:19.399Z", + "deleted": false, + "room_type": 150, + "total_capacity": 1000, + "current_capacity": 20, + "facility": 1, + "history_date": "2022-09-27T07:00:19.400Z", + "history_change_reason": null, + "history_type": "+", + "history_user": 2 + } + }, + { + "model": "facility.historicalfacilitycapacity", + "pk": 2, + "fields": { + "id": 2, + "external_id": "52bd4e97-9064-4697-8fea-37e0a2b8c87c", + "created_date": "2022-09-27T07:16:52.525Z", + "modified_date": "2022-09-27T07:16:52.525Z", + "deleted": false, + "room_type": 150, + "total_capacity": 20, + "current_capacity": 1, + "facility": 2, + "history_date": "2022-09-27T07:16:52.526Z", + "history_change_reason": null, + "history_type": "+", + "history_user": 2 + } + }, + { + "model": "facility.historicalfacilitycapacity", + "pk": 3, + "fields": { + "id": 3, + "external_id": "4fed54e3-672b-412c-998f-a7d8f303016c", + "created_date": "2023-09-15T06:12:31.548Z", + "modified_date": "2023-09-15T06:12:31.548Z", + "deleted": false, + "room_type": 150, + "total_capacity": 12, + "current_capacity": 2, + "facility": 4, + "history_date": "2023-09-15T06:12:31.550Z", + "history_change_reason": null, + "history_type": "+", + "history_user": 2 + } + }, + { + "model": "facility.historicalfacilitycapacity", + "pk": 4, + "fields": { + "id": 4, + "external_id": "c7d64165-8097-4dec-a4df-616647e70c31", + "created_date": "2023-09-15T06:12:50.165Z", + "modified_date": "2023-09-15T06:12:50.165Z", + "deleted": false, + "room_type": 20, + "total_capacity": 31, + "current_capacity": 2, + "facility": 3, + "history_date": "2023-09-15T06:12:50.166Z", + "history_change_reason": null, + "history_type": "+", + "history_user": 2 + } + }, + { + "model": "facility.facilitycapacity", + "pk": 1, + "fields": { + "external_id": "bfb7a4d8-6bf0-46d6-bf20-d5020850ea55", + "created_date": "2022-09-27T07:00:19.399Z", + "modified_date": "2022-09-27T07:00:19.399Z", + "deleted": false, + "facility": 1, + "room_type": 150, + "total_capacity": 1000, + "current_capacity": 20 + } + }, + { + "model": "facility.facilitycapacity", + "pk": 2, + "fields": { + "external_id": "52bd4e97-9064-4697-8fea-37e0a2b8c87c", + "created_date": "2022-09-27T07:16:52.525Z", + "modified_date": "2022-09-27T07:16:52.525Z", + "deleted": false, + "facility": 2, + "room_type": 150, + "total_capacity": 20, + "current_capacity": 1 + } + }, + { + "model": "facility.facilitycapacity", + "pk": 3, + "fields": { + "external_id": "4fed54e3-672b-412c-998f-a7d8f303016c", + "created_date": "2023-09-15T06:12:31.548Z", + "modified_date": "2023-09-15T06:12:31.548Z", + "deleted": false, + "facility": 4, + "room_type": 150, + "total_capacity": 12, + "current_capacity": 2 + } + }, + { + "model": "facility.facilitycapacity", + "pk": 4, + "fields": { + "external_id": "c7d64165-8097-4dec-a4df-616647e70c31", + "created_date": "2023-09-15T06:12:50.165Z", + "modified_date": "2023-09-15T06:12:50.165Z", + "deleted": false, + "facility": 3, + "room_type": 20, + "total_capacity": 31, + "current_capacity": 2 + } + }, + { + "model": "facility.facilityuser", + "pk": 1, + "fields": { + "facility": 1, + "user": 2, + "created_by": 2 + } + }, + { + "model": "facility.facilityuser", + "pk": 2, + "fields": { + "facility": 2, + "user": 2, + "created_by": 2 + } + }, + { + "model": "facility.facilityuser", + "pk": 3, + "fields": { + "facility": 1, + "user": 21, + "created_by": 2 + } + }, + { + "model": "facility.facilityuser", + "pk": 4, + "fields": { + "facility": 1, + "user": 22, + "created_by": 2 + } + }, + { + "model": "facility.facilityuser", + "pk": 5, + "fields": { + "facility": 3, + "user": 2, + "created_by": 2 + } + }, + { + "model": "facility.facilityuser", + "pk": 6, + "fields": { + "facility": 4, + "user": 2, + "created_by": 2 + } + }, + { + "model": "facility.assetlocation", + "pk": 1, + "fields": { + "external_id": "c3ab727f-dc3f-4a11-bf8d-2472bd79b5f7", + "created_date": "2022-09-27T07:02:07.969Z", + "modified_date": "2022-09-27T07:02:07.969Z", + "deleted": false, + "name": "Camera Locations", + "description": "", + "location_type": 1, + "facility": 1 + } + }, + { + "model": "facility.assetlocation", + "pk": 2, + "fields": { + "external_id": "a5cd0a56-cd5a-425c-9a87-cf79c0a90887", + "created_date": "2023-09-15T06:13:24.614Z", + "modified_date": "2023-09-15T06:13:24.614Z", + "deleted": false, + "name": "Dummy Location 1", + "description": "", + "location_type": 1, + "facility": 1 + } + }, + { + "model": "facility.asset", + "pk": 1, + "fields": { + "external_id": "ae4290a0-e86a-48d7-9c82-60b7d6514707", + "created_date": "2022-09-27T07:03:57.401Z", + "modified_date": "2022-09-27T07:03:57.401Z", + "deleted": false, + "name": "Dummy Camera 1", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 2, + "fields": { + "external_id": "7c06ec3c-838d-447a-bf36-d20239c8442f", + "created_date": "2022-09-27T07:04:30.802Z", + "modified_date": "2022-09-27T07:04:30.802Z", + "deleted": false, + "name": "Dummy Camera 2", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 3, + "fields": { + "external_id": "46740927-f782-49aa-bf6e-52a1208e8d18", + "created_date": "2022-09-27T07:04:35.291Z", + "modified_date": "2022-09-27T07:04:35.291Z", + "deleted": false, + "name": "Dummy Camera 3", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 4, + "fields": { + "external_id": "d6e9e071-e67e-4fbc-a872-4c3b1b9f749f", + "created_date": "2022-09-27T07:04:38.335Z", + "modified_date": "2022-09-27T07:04:38.335Z", + "deleted": false, + "name": "Dummy Camera 4", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 5, + "fields": { + "external_id": "35a2200d-6c1a-4c53-936c-60ebec1f9d42", + "created_date": "2022-09-27T07:04:41.179Z", + "modified_date": "2022-09-27T07:04:41.179Z", + "deleted": false, + "name": "Dummy Camera 5", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 6, + "fields": { + "external_id": "db1c2f95-5ae9-4e64-b647-30250beb79c7", + "created_date": "2022-09-27T07:04:43.869Z", + "modified_date": "2022-09-27T07:04:43.870Z", + "deleted": false, + "name": "Dummy Camera 6", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 7, + "fields": { + "external_id": "604ec344-a7d1-4523-8a6f-3e78cd3409ef", + "created_date": "2022-09-27T07:04:46.610Z", + "modified_date": "2022-09-27T07:04:46.610Z", + "deleted": false, + "name": "Dummy Camera 7", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 8, + "fields": { + "external_id": "271ace96-6bc6-4d32-916b-6b69eb81e4c3", + "created_date": "2022-09-27T07:04:49.732Z", + "modified_date": "2022-09-27T07:04:49.732Z", + "deleted": false, + "name": "Dummy Camera 8", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 9, + "fields": { + "external_id": "fe2f171f-0c69-4305-be60-0db625d0e38e", + "created_date": "2022-09-27T07:04:52.832Z", + "modified_date": "2022-09-27T07:04:52.832Z", + "deleted": false, + "name": "Dummy Camera 9", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 10, + "fields": { + "external_id": "cf77edb2-e771-46db-a73d-80ac2b446987", + "created_date": "2022-09-27T07:04:55.942Z", + "modified_date": "2022-09-27T07:04:55.942Z", + "deleted": false, + "name": "Dummy Camera 10", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 11, + "fields": { + "external_id": "2a19c4a9-84a2-41c8-ac0d-bbbc35e5f18d", + "created_date": "2022-09-27T07:04:58.599Z", + "modified_date": "2022-09-27T07:04:58.599Z", + "deleted": false, + "name": "Dummy Camera 11", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 12, + "fields": { + "external_id": "efb41cef-4d39-477f-b437-7ec9e4406971", + "created_date": "2022-09-27T07:05:01.182Z", + "modified_date": "2022-09-27T07:05:01.182Z", + "deleted": false, + "name": "Dummy Camera 12", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 13, + "fields": { + "external_id": "875b2bd3-67a8-4968-a589-d62c656cacb9", + "created_date": "2022-09-27T07:05:03.955Z", + "modified_date": "2022-09-27T07:05:03.955Z", + "deleted": false, + "name": "Dummy Camera 13", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 14, + "fields": { + "external_id": "b9ff3001-ed15-4538-bb54-78d0b2be445f", + "created_date": "2022-09-27T07:05:07.194Z", + "modified_date": "2022-09-27T07:05:07.194Z", + "deleted": false, + "name": "Dummy Camera 14", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 15, + "fields": { + "external_id": "a9678d31-17a9-4474-be01-c095553e97b5", + "created_date": "2022-09-27T07:05:10.384Z", + "modified_date": "2022-09-27T07:05:10.384Z", + "deleted": false, + "name": "Dummy Camera 15", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 16, + "fields": { + "external_id": "b0e4063e-3f05-4f94-aea0-e15e9e474f96", + "created_date": "2022-09-27T07:05:13.857Z", + "modified_date": "2022-09-27T07:05:13.857Z", + "deleted": false, + "name": "Dummy Camera 16", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 17, + "fields": { + "external_id": "634e1421-f1a7-41d1-bde2-13d1ee7eabf4", + "created_date": "2022-09-27T07:05:16.707Z", + "modified_date": "2022-09-27T07:05:16.707Z", + "deleted": false, + "name": "Dummy Camera 17", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 18, + "fields": { + "external_id": "17992979-d18a-46c6-a48f-c7f0f40f85c3", + "created_date": "2022-09-27T07:05:19.781Z", + "modified_date": "2022-09-27T07:05:19.781Z", + "deleted": false, + "name": "Dummy Camera 18", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 19, + "fields": { + "external_id": "c6e2c6c3-ba16-4c69-b1f8-822d28317268", + "created_date": "2022-09-27T07:13:12.608Z", + "modified_date": "2022-09-27T07:13:12.608Z", + "deleted": false, + "name": "Dummy Camera 19", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 20, + "fields": { + "external_id": "cb375e24-a98c-45ed-85c4-bdd340625357", + "created_date": "2022-09-27T07:13:16.362Z", + "modified_date": "2022-09-27T07:13:16.362Z", + "deleted": false, + "name": "Dummy Camera 20", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 21, + "fields": { + "external_id": "36a0d62c-9f2d-465f-ad9f-772ec7a342d0", + "created_date": "2022-09-27T07:13:19.599Z", + "modified_date": "2022-09-27T07:13:19.599Z", + "deleted": false, + "name": "Dummy Camera 21", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 22, + "fields": { + "external_id": "e24d8936-e4f3-4f30-870e-8bc560be66f2", + "created_date": "2022-09-27T07:13:22.225Z", + "modified_date": "2022-09-27T07:13:22.225Z", + "deleted": false, + "name": "Dummy Camera 22", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 23, + "fields": { + "external_id": "cc0ebf9e-0fe1-45ff-9954-4b92fc072846", + "created_date": "2022-09-27T07:13:25.053Z", + "modified_date": "2022-09-27T07:13:25.053Z", + "deleted": false, + "name": "Dummy Camera 23", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 24, + "fields": { + "external_id": "b10bed38-4a06-473a-85f8-87004703bb2a", + "created_date": "2022-09-27T07:13:27.907Z", + "modified_date": "2022-09-27T07:13:27.907Z", + "deleted": false, + "name": "Dummy Camera 24", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 25, + "fields": { + "external_id": "51ce3355-1773-47c0-a929-54bb57293940", + "created_date": "2022-09-27T07:13:30.944Z", + "modified_date": "2022-09-27T07:13:30.944Z", + "deleted": false, + "name": "Dummy Camera 25", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 26, + "fields": { + "external_id": "567ddf56-f86a-488e-bdff-9c69daacb654", + "created_date": "2022-09-27T07:13:33.581Z", + "modified_date": "2022-09-27T07:13:33.581Z", + "deleted": false, + "name": "Dummy Camera 26", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 27, + "fields": { + "external_id": "234a8559-167b-4e61-9971-15dbc59b9319", + "created_date": "2022-09-27T07:13:37.020Z", + "modified_date": "2022-09-27T07:13:37.020Z", + "deleted": false, + "name": "Dummy Camera 27", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 28, + "fields": { + "external_id": "3f203a24-84ae-44c0-897a-1b3ddd42e072", + "created_date": "2022-09-27T07:13:39.951Z", + "modified_date": "2022-09-27T07:13:39.951Z", + "deleted": false, + "name": "Dummy Camera 28", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 29, + "fields": { + "external_id": "fc4c25cd-de00-494a-ad58-20e581520198", + "created_date": "2022-09-27T07:13:43.511Z", + "modified_date": "2022-09-27T07:13:43.511Z", + "deleted": false, + "name": "Dummy Camera 29", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 30, + "fields": { + "external_id": "cb6f3bf8-cfea-498a-a4f1-effae723d6e0", + "created_date": "2022-09-27T07:13:46.850Z", + "modified_date": "2022-09-27T07:13:46.850Z", + "deleted": false, + "name": "Dummy Camera 30", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.patientconsultation", + "pk": 1, + "fields": { + "external_id": "b5217729-3008-4a44-b347-72ba738d5f45", + "created_date": "2022-09-27T07:20:40.117Z", + "modified_date": "2022-09-27T07:20:40.123Z", + "deleted": false, + "patient": 1, + "patient_no": "88.99.44.66", + "facility": 1, + "symptoms": "3", + "other_symptoms": "", + "symptoms_onset_date": "2022-09-27T07:19:53.380Z", + "deprecated_covid_category": null, + "category": "Moderate", + "examination_details": "", + "history_of_present_illness": "", + "treatment_plan": "", + "consultation_notes": "Transfer", + "course_in_facility": null, + "investigation": [], + "prescriptions": {}, + "procedure": {}, + "suggestion": "R", + "route_to_facility": null, + "review_interval": -1, + "referred_to": 2, + "is_readmission": false, + "referred_to_external": "", + "admitted": false, + "encounter_date": null, + "discharge_date": null, + "discharge_reason": null, + "discharge_notes": "", + "discharge_prescription": {}, + "discharge_prn_prescription": {}, + "death_datetime": null, + "death_confirmed_doctor": "", + "bed_number": null, + "is_kasp": false, + "kasp_enabled_date": null, + "is_telemedicine": false, + "last_updated_by_telemedicine": false, + "assigned_to": null, + "deprecated_verified_by": "", + "treating_physician": null, + "created_by": 2, + "last_edited_by": 2, + "last_daily_round": null, + "current_bed": null, + "height": 0.0, + "weight": 0.0, + "operation": null, + "special_instruction": "", + "intubation_history": [], + "prn_prescription": [], + "discharge_advice": [] + } + }, + { + "model": "facility.bed", + "pk": 1, + "fields": { + "external_id": "260de825-7ef2-4155-8fd2-ae4d66980734", + "created_date": "2023-09-15T06:13:43.199Z", + "modified_date": "2023-09-15T06:13:43.199Z", + "deleted": false, + "name": "Dummy Bed 1", + "description": "", + "bed_type": 2, + "facility": 1, + "meta": {}, + "location": 2 + } + }, + { + "model": "facility.bed", + "pk": 2, + "fields": { + "external_id": "8ab99d71-7263-4c60-b6d4-b22e7f8dfecf", + "created_date": "2023-09-15T06:13:43.199Z", + "modified_date": "2023-09-15T06:13:43.199Z", + "deleted": false, + "name": "Dummy Bed 2", + "description": "", + "bed_type": 2, + "facility": 1, + "meta": {}, + "location": 2 + } + }, + { + "model": "facility.bed", + "pk": 3, + "fields": { + "external_id": "e7a9c643-4841-47f3-9729-4ccdadb9783a", + "created_date": "2023-09-15T06:13:43.200Z", + "modified_date": "2023-09-15T06:13:43.200Z", + "deleted": false, + "name": "Dummy Bed 3", + "description": "", + "bed_type": 2, + "facility": 1, + "meta": {}, + "location": 2 + } + }, + { + "model": "facility.bed", + "pk": 5, + "fields": { + "external_id": "fe749328-1a6a-43ae-b4c2-fb718b8ca84b", + "created_date": "2023-09-15T06:14:13.862Z", + "modified_date": "2023-09-15T06:14:13.862Z", + "deleted": false, + "name": "Dummy Bed 5", + "description": "", + "bed_type": 1, + "facility": 1, + "meta": {}, + "location": 1 + } + }, + { + "model": "facility.bed", + "pk": 7, + "fields": { + "external_id": "ddd0ce36-c4ff-409c-96d3-ea943ac876e4", + "created_date": "2023-09-15T06:14:45.458Z", + "modified_date": "2023-09-15T06:14:45.458Z", + "deleted": false, + "name": "Dummy Bed 6", + "description": "", + "bed_type": 6, + "facility": 1, + "meta": {}, + "location": 1 + } + }, + { + "model": "facility.bed", + "pk": 8, + "fields": { + "external_id": "90a90743-0a95-42c1-bdf2-b7fbf9b9edd1", + "created_date": "2023-09-15T06:14:56.105Z", + "modified_date": "2023-09-15T06:14:56.105Z", + "deleted": false, + "name": "Dummy Bed 4", + "description": "", + "bed_type": 2, + "facility": 1, + "meta": {}, + "location": 1 + } + }, + { + "model": "facility.facilityinventoryitemtag", + "pk": 1, + "fields": { + "name": "Safety" + } + }, + { + "model": "facility.facilityinventoryitemtag", + "pk": 2, + "fields": { + "name": "Medical" + } + }, + { + "model": "facility.facilityinventoryitemtag", + "pk": 3, + "fields": { + "name": "Food" + } + }, + { + "model": "facility.facilityinventoryunit", + "pk": 1, + "fields": { + "name": "Items" + } + }, + { + "model": "facility.facilityinventoryunit", + "pk": 2, + "fields": { + "name": "Dozen" + } + }, + { + "model": "facility.facilityinventoryunit", + "pk": 3, + "fields": { + "name": "Kilo Litre" + } + }, + { + "model": "facility.facilityinventoryunit", + "pk": 4, + "fields": { + "name": "Cylinders" + } + }, + { + "model": "facility.facilityinventoryunit", + "pk": 5, + "fields": { + "name": "kg" + } + }, + { + "model": "facility.facilityinventoryunit", + "pk": 6, + "fields": { + "name": "gram" + } + }, + { + "model": "facility.facilityinventoryunit", + "pk": 7, + "fields": { + "name": "Cubic Meter" + } + }, + { + "model": "facility.facilityinventoryunitconverter", + "pk": 1, + "fields": { + "from_unit": 5, + "to_unit": 6, + "multiplier": 1000.0 + } + }, + { + "model": "facility.facilityinventoryunitconverter", + "pk": 2, + "fields": { + "from_unit": 2, + "to_unit": 1, + "multiplier": 12.0 + } + }, + { + "model": "facility.facilityinventoryitem", + "pk": 1, + "fields": { + "name": "PPE", + "default_unit": 1, + "description": "", + "min_quantity": 150.0, + "allowed_units": [ + 1, + 2 + ], + "tags": [ + 1, + 2 + ] + } + }, + { + "model": "facility.facilityinventoryitem", + "pk": 2, + "fields": { + "name": "IV Fluid 500 ml", + "default_unit": 1, + "description": "", + "min_quantity": 2.0, + "allowed_units": [ + 1, + 2 + ], + "tags": [ + 2 + ] + } + }, + { + "model": "facility.facilityinventoryitem", + "pk": 3, + "fields": { + "name": "Liquid Oxygen", + "default_unit": 7, + "description": "", + "min_quantity": 10.0, + "allowed_units": [ + 7 + ], + "tags": [ + 2 + ] + } + }, + { + "model": "facility.facilityinventoryitem", + "pk": 4, + "fields": { + "name": "Jumbo D Type Oxygen Cylinder", + "default_unit": 4, + "description": "", + "min_quantity": 100.0, + "allowed_units": [ + 4 + ], + "tags": [] + } + }, + { + "model": "facility.facilityinventoryitem", + "pk": 5, + "fields": { + "name": "B Type Oxygen Cylinder", + "default_unit": 4, + "description": "", + "min_quantity": 100.0, + "allowed_units": [ + 4 + ], + "tags": [] + } + }, + { + "model": "facility.facilityinventoryitem", + "pk": 6, + "fields": { + "name": "C Type Oxygen Cylinder", + "default_unit": 4, + "description": "", + "min_quantity": 100.0, + "allowed_units": [ + 4 + ], + "tags": [] + } + }, + { + "model": "facility.facilityinventoryitem", + "pk": 7, + "fields": { + "name": "Gaseous Oxygen", + "default_unit": 7, + "description": "", + "min_quantity": 10.0, + "allowed_units": [ + 7 + ], + "tags": [ + 2 + ] + } + }, + { + "model": "facility.historicalpatientregistration", + "pk": 1, + "fields": { + "id": 1, + "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", + "created_date": "2022-09-27T07:19:20.379Z", + "modified_date": "2022-09-27T07:19:20.379Z", + "deleted": false, + "source": 10, + "name": "Dummy Patient", + "age": 120, + "gender": 1, + "phone_number": "+911234567896", + "emergency_phone_number": "+919898797775", + "address": "55.66.44.33", + "permanent_address": "55.66.44.33", + "pincode": 600115, + "date_of_birth": "1901-10-16", + "year_of_birth": 1901, + "nationality": "India", + "passport_no": "", + "is_medical_worker": false, + "blood_group": "O+", + "contact_with_confirmed_carrier": false, + "contact_with_suspected_carrier": false, + "estimated_contact_date": null, + "past_travel": false, + "countries_travelled_old": null, + "countries_travelled": null, + "date_of_return": null, + "allergies": "", + "present_health": "", + "ongoing_medication": "", + "has_SARI": false, + "is_antenatal": false, + "ward_old": "", + "is_migrant_worker": false, + "disease_status": 2, + "number_of_aged_dependents": 0, + "number_of_chronic_diseased_dependents": 0, + "action": 10, + "review_time": null, + "is_active": true, + "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", + "test_id": "", + "date_of_test": null, + "srf_id": "", + "test_type": 30, + "allow_transfer": false, + "will_donate_blood": null, + "fit_for_blood_donation": null, + "village": "", + "designation_of_health_care_worker": "", + "instituion_of_health_care_worker": "", + "transit_details": null, + "frontline_worker": null, + "date_of_result": null, + "number_of_primary_contacts": null, + "number_of_secondary_contacts": null, + "is_vaccinated": false, + "number_of_doses": 0, + "vaccine_name": null, + "covin_id": null, + "last_vaccinated_date": null, + "cluster_name": null, + "is_declared_positive": true, + "date_declared_positive": "2022-09-27T07:15:04.715Z", + "facility": 1, + "nearest_facility": null, + "ward": 1729, + "local_body": 95, + "district": 7, + "state": 1, + "last_edited": null, + "created_by": 2, + "last_consultation": null, + "assigned_to": null, + "abha_number": null, + "history_date": "2022-09-27T07:19:20.385Z", + "history_change_reason": null, + "history_type": "+", + "history_user": 2 + } + }, + { + "model": "facility.historicalpatientregistration", + "pk": 2, + "fields": { + "id": 1, + "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", + "created_date": "2022-09-27T07:19:20.379Z", + "modified_date": "2022-09-27T07:19:20.400Z", + "deleted": false, + "source": 10, + "name": "Dummy Patient", + "age": 120, + "gender": 1, + "phone_number": "+911234567896", + "emergency_phone_number": "+919898797775", + "address": "55.66.44.33", + "permanent_address": "55.66.44.33", + "pincode": 600115, + "date_of_birth": "1901-10-16", + "year_of_birth": 1901, + "nationality": "India", + "passport_no": "", + "is_medical_worker": false, + "blood_group": "O+", + "contact_with_confirmed_carrier": false, + "contact_with_suspected_carrier": false, + "estimated_contact_date": null, + "past_travel": false, + "countries_travelled_old": null, + "countries_travelled": null, + "date_of_return": null, + "allergies": "", + "present_health": "", + "ongoing_medication": "", + "has_SARI": false, + "is_antenatal": false, + "ward_old": "", + "is_migrant_worker": false, + "disease_status": 2, + "number_of_aged_dependents": 0, + "number_of_chronic_diseased_dependents": 0, + "action": 10, + "review_time": null, + "is_active": true, + "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", + "test_id": "", + "date_of_test": null, + "srf_id": "", + "test_type": 30, + "allow_transfer": false, + "will_donate_blood": null, + "fit_for_blood_donation": null, + "village": "", + "designation_of_health_care_worker": "", + "instituion_of_health_care_worker": "", + "transit_details": null, + "frontline_worker": null, + "date_of_result": null, + "number_of_primary_contacts": null, + "number_of_secondary_contacts": null, + "is_vaccinated": false, + "number_of_doses": 0, + "vaccine_name": null, + "covin_id": null, + "last_vaccinated_date": null, + "cluster_name": null, + "is_declared_positive": true, + "date_declared_positive": "2022-09-27T07:15:04.715Z", + "facility": 1, + "nearest_facility": null, + "ward": 1729, + "local_body": 95, + "district": 7, + "state": 1, + "last_edited": null, + "created_by": 2, + "last_consultation": null, + "assigned_to": null, + "abha_number": null, + "history_date": "2022-09-27T07:19:20.403Z", + "history_change_reason": null, + "history_type": "~", + "history_user": 2 + } + }, + { + "model": "facility.historicalpatientregistration", + "pk": 3, + "fields": { + "id": 1, + "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", + "created_date": "2022-09-27T07:19:20.379Z", + "modified_date": "2022-09-27T07:19:20.413Z", + "deleted": false, + "source": 10, + "name": "Dummy Patient", + "age": 120, + "gender": 1, + "phone_number": "+911234567896", + "emergency_phone_number": "+919898797775", + "address": "55.66.44.33", + "permanent_address": "55.66.44.33", + "pincode": 600115, + "date_of_birth": "1901-10-16", + "year_of_birth": 1901, + "nationality": "India", + "passport_no": "", + "is_medical_worker": false, + "blood_group": "O+", + "contact_with_confirmed_carrier": false, + "contact_with_suspected_carrier": false, + "estimated_contact_date": null, + "past_travel": false, + "countries_travelled_old": null, + "countries_travelled": null, + "date_of_return": null, + "allergies": "", + "present_health": "", + "ongoing_medication": "", + "has_SARI": false, + "is_antenatal": false, + "ward_old": "", + "is_migrant_worker": false, + "disease_status": 2, + "number_of_aged_dependents": 0, + "number_of_chronic_diseased_dependents": 0, + "action": 10, + "review_time": null, + "is_active": true, + "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", + "test_id": "", + "date_of_test": null, + "srf_id": "", + "test_type": 30, + "allow_transfer": false, + "will_donate_blood": null, + "fit_for_blood_donation": null, + "village": "", + "designation_of_health_care_worker": "", + "instituion_of_health_care_worker": "", + "transit_details": null, + "frontline_worker": null, + "date_of_result": null, + "number_of_primary_contacts": null, + "number_of_secondary_contacts": null, + "is_vaccinated": false, + "number_of_doses": 0, + "vaccine_name": null, + "covin_id": null, + "last_vaccinated_date": null, + "cluster_name": null, + "is_declared_positive": true, + "date_declared_positive": "2022-09-27T07:15:04.715Z", + "facility": 1, + "nearest_facility": null, + "ward": 1729, + "local_body": 95, + "district": 7, + "state": 1, + "last_edited": 2, + "created_by": 2, + "last_consultation": null, + "assigned_to": null, + "abha_number": null, + "history_date": "2022-09-27T07:19:20.415Z", + "history_change_reason": null, + "history_type": "~", + "history_user": 2 + } + }, + { + "model": "facility.historicalpatientregistration", + "pk": 4, + "fields": { + "id": 1, + "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", + "created_date": "2022-09-27T07:19:20.379Z", + "modified_date": "2022-09-27T07:20:40.135Z", + "deleted": false, + "source": 10, + "name": "Dummy Patient", + "age": 120, + "gender": 1, + "phone_number": "+911234567896", + "emergency_phone_number": "+919898797775", + "address": "55.66.44.33", + "permanent_address": "55.66.44.33", + "pincode": 600115, + "date_of_birth": "1901-10-16", + "year_of_birth": 1901, + "nationality": "India", + "passport_no": "", + "is_medical_worker": false, + "blood_group": "O+", + "contact_with_confirmed_carrier": false, + "contact_with_suspected_carrier": false, + "estimated_contact_date": null, + "past_travel": false, + "countries_travelled_old": null, + "countries_travelled": null, + "date_of_return": null, + "allergies": "", + "present_health": "", + "ongoing_medication": "", + "has_SARI": false, + "is_antenatal": false, + "ward_old": "", + "is_migrant_worker": false, + "disease_status": 2, + "number_of_aged_dependents": 0, + "number_of_chronic_diseased_dependents": 0, + "action": 10, + "review_time": null, + "is_active": true, + "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", + "test_id": "", + "date_of_test": null, + "srf_id": "", + "test_type": 30, + "allow_transfer": false, + "will_donate_blood": null, + "fit_for_blood_donation": null, + "village": "", + "designation_of_health_care_worker": "", + "instituion_of_health_care_worker": "", + "transit_details": null, + "frontline_worker": null, + "date_of_result": null, + "number_of_primary_contacts": null, + "number_of_secondary_contacts": null, + "is_vaccinated": false, + "number_of_doses": 0, + "vaccine_name": null, + "covin_id": null, + "last_vaccinated_date": null, + "cluster_name": null, + "is_declared_positive": true, + "date_declared_positive": "2022-09-27T07:15:04.715Z", + "facility": 1, + "nearest_facility": null, + "ward": 1729, + "local_body": 95, + "district": 7, + "state": 1, + "last_edited": 2, + "created_by": 2, + "last_consultation": 1, + "assigned_to": null, + "abha_number": null, + "history_date": "2022-09-27T07:20:40.139Z", + "history_change_reason": null, + "history_type": "~", + "history_user": 2 + } + }, + { + "model": "facility.historicalpatientregistration", + "pk": 5, + "fields": { + "id": 1, + "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", + "created_date": "2022-09-27T07:19:20.379Z", + "modified_date": "2022-09-27T07:22:00.563Z", + "deleted": false, + "source": 10, + "name": "Dummy Patient", + "age": 120, + "gender": 1, + "phone_number": "+911234567896", + "emergency_phone_number": "+919898797775", + "address": "55.66.44.33", + "permanent_address": "55.66.44.33", + "pincode": 600115, + "date_of_birth": "1901-10-16", + "year_of_birth": 1901, + "nationality": "India", + "passport_no": "", + "is_medical_worker": false, + "blood_group": "O+", + "contact_with_confirmed_carrier": false, + "contact_with_suspected_carrier": false, + "estimated_contact_date": null, + "past_travel": false, + "countries_travelled_old": null, + "countries_travelled": null, + "date_of_return": null, + "allergies": "", + "present_health": "", + "ongoing_medication": "", + "has_SARI": false, + "is_antenatal": false, + "ward_old": "", + "is_migrant_worker": false, + "disease_status": 2, + "number_of_aged_dependents": 0, + "number_of_chronic_diseased_dependents": 0, + "action": 10, + "review_time": null, + "is_active": true, + "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", + "test_id": "", + "date_of_test": null, + "srf_id": "", + "test_type": 30, + "allow_transfer": true, + "will_donate_blood": null, + "fit_for_blood_donation": null, + "village": "", + "designation_of_health_care_worker": "", + "instituion_of_health_care_worker": "", + "transit_details": null, + "frontline_worker": null, + "date_of_result": null, + "number_of_primary_contacts": null, + "number_of_secondary_contacts": null, + "is_vaccinated": false, + "number_of_doses": 0, + "vaccine_name": null, + "covin_id": null, + "last_vaccinated_date": null, + "cluster_name": null, + "is_declared_positive": true, + "date_declared_positive": "2022-09-27T07:15:04.715Z", + "facility": 1, + "nearest_facility": null, + "ward": 1729, + "local_body": 95, + "district": 7, + "state": 1, + "last_edited": 2, + "created_by": 2, + "last_consultation": 1, + "assigned_to": null, + "abha_number": null, + "history_date": "2022-09-27T07:22:00.566Z", + "history_change_reason": null, + "history_type": "~", + "history_user": 2 + } + }, + { + "model": "facility.patientregistration", + "pk": 1, + "fields": { + "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", + "created_date": "2022-09-27T07:19:20.379Z", + "modified_date": "2022-09-27T07:22:00.563Z", + "deleted": false, + "source": 10, + "facility": 1, + "nearest_facility": null, + "meta_info": null, + "name": "Dummy Patient", + "age": 120, + "gender": 1, + "phone_number": "+911234567896", + "emergency_phone_number": "+919898797775", + "address": "55.66.44.33", + "permanent_address": "55.66.44.33", + "pincode": 600115, + "date_of_birth": "1901-10-16", + "year_of_birth": 1901, + "nationality": "India", + "passport_no": "", + "is_medical_worker": false, + "blood_group": "O+", + "contact_with_confirmed_carrier": false, + "contact_with_suspected_carrier": false, + "estimated_contact_date": null, + "past_travel": false, + "countries_travelled_old": null, + "countries_travelled": null, + "date_of_return": null, + "allergies": "", + "present_health": "", + "ongoing_medication": "", + "has_SARI": false, + "is_antenatal": false, + "ward_old": "", + "ward": 1729, + "local_body": 95, + "district": 7, + "state": 1, + "is_migrant_worker": false, + "disease_status": 2, + "number_of_aged_dependents": 0, + "number_of_chronic_diseased_dependents": 0, + "last_edited": 2, + "action": 10, + "review_time": null, + "created_by": 2, + "is_active": true, + "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", + "test_id": "", + "date_of_test": null, + "srf_id": "", + "test_type": 30, + "allow_transfer": true, + "last_consultation": 1, + "will_donate_blood": null, + "fit_for_blood_donation": null, + "village": "", + "designation_of_health_care_worker": "", + "instituion_of_health_care_worker": "", + "transit_details": null, + "frontline_worker": null, + "date_of_result": null, + "number_of_primary_contacts": null, + "number_of_secondary_contacts": null, + "is_vaccinated": false, + "number_of_doses": 0, + "vaccine_name": null, + "covin_id": null, + "last_vaccinated_date": null, + "cluster_name": null, + "is_declared_positive": true, + "date_declared_positive": "2022-09-27T07:15:04.715Z", + "assigned_to": null, + "abha_number": null + } + }, + { + "model": "facility.disease", + "pk": 1, + "fields": { + "patient": 1, + "disease": 1, + "details": "", + "deleted": false + } + }, + { + "model": "facility.patientsample", + "pk": 1, + "fields": { + "external_id": "29689b96-6018-426f-984f-344fa5e3186b", + "created_date": "2022-09-27T07:23:29.568Z", + "modified_date": "2022-09-27T07:23:29.574Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 2, + "fields": { + "external_id": "ea48179e-90c5-450b-800d-c1866d2d3d74", + "created_date": "2022-09-27T07:25:39.605Z", + "modified_date": "2022-09-27T07:25:39.609Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 3, + "fields": { + "external_id": "dcaf07f9-8412-45bb-bb7c-1c232c28e9da", + "created_date": "2022-09-27T07:25:41.681Z", + "modified_date": "2022-09-27T07:25:41.685Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 4, + "fields": { + "external_id": "80868c78-4917-4401-b4b4-9eea49c47493", + "created_date": "2022-09-27T07:25:42.673Z", + "modified_date": "2022-09-27T07:25:42.676Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 5, + "fields": { + "external_id": "093863c4-1778-4464-9ee9-c408bef0bafe", + "created_date": "2022-09-27T07:25:43.611Z", + "modified_date": "2022-09-27T07:25:43.615Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 6, + "fields": { + "external_id": "5b015be7-ffb3-4f36-a08a-7510dd53ee7f", + "created_date": "2022-09-27T07:25:44.707Z", + "modified_date": "2022-09-27T07:25:44.711Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 7, + "fields": { + "external_id": "b8cb7a31-5480-4466-8388-de1eafa35ede", + "created_date": "2022-09-27T07:25:52.375Z", + "modified_date": "2022-09-27T07:25:52.379Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 8, + "fields": { + "external_id": "c04f9bd2-e11f-466e-8649-d80f9e5d8649", + "created_date": "2022-09-27T07:25:53.556Z", + "modified_date": "2022-09-27T07:25:53.559Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 9, + "fields": { + "external_id": "27001f33-e193-42d5-8809-61b2c63304a9", + "created_date": "2022-09-27T07:25:54.406Z", + "modified_date": "2022-09-27T07:25:54.410Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 10, + "fields": { + "external_id": "1a604325-11bf-44b7-985b-6222b6c37092", + "created_date": "2022-09-27T07:25:55.280Z", + "modified_date": "2022-09-27T07:25:55.284Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 11, + "fields": { + "external_id": "0bd4f6ff-e084-4d2c-9803-79b829682a1d", + "created_date": "2022-09-27T07:25:56.119Z", + "modified_date": "2022-09-27T07:25:56.123Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 12, + "fields": { + "external_id": "fecb4ef3-2889-47ca-8e08-6a27a5e77715", + "created_date": "2022-09-27T07:25:56.959Z", + "modified_date": "2022-09-27T07:25:56.964Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 13, + "fields": { + "external_id": "45186f6d-1ed5-454a-aadd-94ceaefacf20", + "created_date": "2022-09-27T07:25:57.875Z", + "modified_date": "2022-09-27T07:25:57.878Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 14, + "fields": { + "external_id": "bcbc2e7e-d2b8-4e5e-ab50-7c36a51c1e09", + "created_date": "2022-09-27T07:25:58.676Z", + "modified_date": "2022-09-27T07:25:58.681Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 15, + "fields": { + "external_id": "342639b4-f347-4f83-87d1-85c6d7968ee7", + "created_date": "2022-09-27T07:25:59.671Z", + "modified_date": "2022-09-27T07:25:59.674Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 16, + "fields": { + "external_id": "388099f9-f005-47c1-9be3-650ddda769a0", + "created_date": "2022-09-27T07:26:00.354Z", + "modified_date": "2022-09-27T07:26:00.358Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 17, + "fields": { + "external_id": "5aef7a72-5e2c-4a0f-b689-747aae8b0dce", + "created_date": "2022-09-27T07:26:00.860Z", + "modified_date": "2022-09-27T07:26:00.863Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 1, + "fields": { + "external_id": "64bf6eb2-055d-4a16-8c91-e7ce1390e541", + "created_date": "2022-09-27T07:23:29.580Z", + "modified_date": "2022-09-27T07:23:29.580Z", + "deleted": false, + "patient_sample": 1, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 2, + "fields": { + "external_id": "1f68131b-9aab-456f-b61b-eb0a93d521c4", + "created_date": "2022-09-27T07:25:39.613Z", + "modified_date": "2022-09-27T07:25:39.613Z", + "deleted": false, + "patient_sample": 2, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 3, + "fields": { + "external_id": "80ead199-cd58-44c3-97de-4142e3e7d7ac", + "created_date": "2022-09-27T07:25:41.689Z", + "modified_date": "2022-09-27T07:25:41.689Z", + "deleted": false, + "patient_sample": 3, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 4, + "fields": { + "external_id": "ebe8ffac-1ca0-40fe-80d3-b895e7524ce2", + "created_date": "2022-09-27T07:25:42.681Z", + "modified_date": "2022-09-27T07:25:42.681Z", + "deleted": false, + "patient_sample": 4, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 5, + "fields": { + "external_id": "ed7f8727-3784-40cd-97c6-49e9de3e2fdb", + "created_date": "2022-09-27T07:25:43.620Z", + "modified_date": "2022-09-27T07:25:43.620Z", + "deleted": false, + "patient_sample": 5, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 6, + "fields": { + "external_id": "f7a3695f-bfd4-4af5-9280-e2d54124286e", + "created_date": "2022-09-27T07:25:44.716Z", + "modified_date": "2022-09-27T07:25:44.716Z", + "deleted": false, + "patient_sample": 6, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 7, + "fields": { + "external_id": "a0cad511-4dad-4244-93c4-50277d6734c2", + "created_date": "2022-09-27T07:25:52.383Z", + "modified_date": "2022-09-27T07:25:52.383Z", + "deleted": false, + "patient_sample": 7, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 8, + "fields": { + "external_id": "f3ff09b9-1c79-4afc-bd3d-70eeecc87daa", + "created_date": "2022-09-27T07:25:53.564Z", + "modified_date": "2022-09-27T07:25:53.564Z", + "deleted": false, + "patient_sample": 8, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 9, + "fields": { + "external_id": "a03684c4-4769-4643-b457-8be382895e8b", + "created_date": "2022-09-27T07:25:54.414Z", + "modified_date": "2022-09-27T07:25:54.414Z", + "deleted": false, + "patient_sample": 9, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 10, + "fields": { + "external_id": "a62f7677-31af-42f6-94f9-fcb5e8ab94de", + "created_date": "2022-09-27T07:25:55.288Z", + "modified_date": "2022-09-27T07:25:55.288Z", + "deleted": false, + "patient_sample": 10, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 11, + "fields": { + "external_id": "e9dae65e-bca7-47fc-b490-8ef4de67e331", + "created_date": "2022-09-27T07:25:56.127Z", + "modified_date": "2022-09-27T07:25:56.127Z", + "deleted": false, + "patient_sample": 11, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 12, + "fields": { + "external_id": "e065bb9a-10d2-4bdd-b375-affa163dacdf", + "created_date": "2022-09-27T07:25:56.968Z", + "modified_date": "2022-09-27T07:25:56.968Z", + "deleted": false, + "patient_sample": 12, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 13, + "fields": { + "external_id": "dae215d0-bbfe-41e5-a6e2-20e4504eb068", + "created_date": "2022-09-27T07:25:57.883Z", + "modified_date": "2022-09-27T07:25:57.883Z", + "deleted": false, + "patient_sample": 13, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 14, + "fields": { + "external_id": "dabdd193-f800-4848-902b-b33b345252e5", + "created_date": "2022-09-27T07:25:58.686Z", + "modified_date": "2022-09-27T07:25:58.686Z", + "deleted": false, + "patient_sample": 14, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 15, + "fields": { + "external_id": "8a32a9f0-0686-4104-8fe7-27c7be6a4233", + "created_date": "2022-09-27T07:25:59.679Z", + "modified_date": "2022-09-27T07:25:59.679Z", + "deleted": false, + "patient_sample": 15, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 16, + "fields": { + "external_id": "db4ceed2-a7e5-4cb1-828b-085ddae5fa0a", + "created_date": "2022-09-27T07:26:00.363Z", + "modified_date": "2022-09-27T07:26:00.363Z", + "deleted": false, + "patient_sample": 16, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 17, + "fields": { + "external_id": "48b8eb3a-c901-429a-abbb-7e5aae0f9cd2", + "created_date": "2022-09-27T07:26:00.867Z", + "modified_date": "2022-09-27T07:26:00.867Z", + "deleted": false, + "patient_sample": 17, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.shiftingrequest", + "pk": 1, + "fields": { + "external_id": "a0e4cf70-49b4-4e26-83fa-c2c962386885", + "created_date": "2022-09-27T07:22:00.581Z", + "modified_date": "2022-09-27T07:22:00.581Z", + "deleted": false, + "origin_facility": 1, + "shifting_approving_facility": 2, + "assigned_facility_type": 2, + "assigned_facility": null, + "assigned_facility_external": "", + "patient": 1, + "emergency": true, + "is_up_shift": true, + "reason": "Test", + "vehicle_preference": "", + "preferred_vehicle_choice": 10, + "comments": "", + "refering_facility_contact_name": "Someone at Facility", + "refering_facility_contact_number": "+914455666777", + "is_kasp": false, + "status": 10, + "breathlessness_level": 30, + "is_assigned_to_user": false, + "assigned_to": null, + "ambulance_driver_name": "", + "ambulance_phone_number": "", + "ambulance_number": "", + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.facilityrelatedsummary", + "pk": "99627ad6-53e7-4585-821a-21ac6e765f7b", + "fields": { + "created_date": "2022-09-27T07:00:00.163Z", + "modified_date": "2022-09-27T07:25:00.165Z", + "facility": 1, + "s_type": "FacilityCapacity", + "data": { + "id": "81092ced-8720-44cb-b4c5-3f0ad0540153", + "name": "Dummy Facility 1", + "ward": 1, + "state": 1, + "address": "127.0.0.1", + "pincode": 670000, + "district": 7, + "features": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "latitude": null, + "inventory": {}, + "longitude": null, + "local_body": 920, + "ward_object": { + "id": 1, + "name": "NEERICODE WEST", + "number": 1, + "local_body": 920 + }, + "availability": [ + { + "id": "bfb7a4d8-6bf0-46d6-bf20-d5020850ea55", "room_type": 150, + "modified_date": "2022-09-27T12:30:19.399000+05:30", + "room_type_text": "Oxygen beds", "total_capacity": 1000, "current_capacity": 20 - } - }, - { - "model": "facility.facilitycapacity", - "pk": 2, - "fields": { - "external_id": "52bd4e97-9064-4697-8fea-37e0a2b8c87c", - "created_date": "2022-09-27T07:16:52.525Z", - "modified_date": "2022-09-27T07:16:52.525Z", - "deleted": false, - "facility": 2, + } + ], + "created_date": "2022-09-27T12:29:15.929000+05:30", + "phone_number": "+919999999888", + "state_object": { + "id": 1, + "name": "Kerala" + }, + "facility_type": "Private Hospital", + "modified_date": "2022-09-27T12:29:15.929000+05:30", + "district_object": { + "id": 7, + "name": "Ernakulam", + "state": 1 + }, + "kasp_empanelled": false, + "oxygen_capacity": 0, + "type_b_cylinders": 0, + "type_c_cylinders": 0, + "type_d_cylinders": 0, + "local_body_object": { + "id": 920, + "name": "Alangad  Grama Panchayat, Ernakulam District", + "district": 7, + "body_type": 1, + "localbody_code": "G070203" + }, + "actual_live_patients": 1, + "read_cover_image_url": null, + "expected_type_b_cylinders": 0, + "expected_type_c_cylinders": 0, + "expected_type_d_cylinders": 0, + "actual_discharged_patients": 0, + "expected_oxygen_requirement": 0 + } + } + }, + { + "model": "facility.facilityrelatedsummary", + "pk": "e294a2c2-3b05-469f-b975-e7766201df13", + "fields": { + "created_date": "2022-09-27T07:20:00.162Z", + "modified_date": "2022-09-27T07:25:00.171Z", + "facility": 2, + "s_type": "FacilityCapacity", + "data": { + "id": "fa33079d-727d-4295-b0fd-19153b36b2db", + "name": "Dummy Shifting Center", + "ward": 218, + "state": 1, + "address": "89.66.33.55", + "pincode": 670112, + "district": 7, + "features": [ + 1, + 6 + ], + "latitude": null, + "inventory": {}, + "longitude": null, + "local_body": 12, + "ward_object": { + "id": 218, + "name": "VALAMBOOR", + "number": 2, + "local_body": 12 + }, + "availability": [ + { + "id": "52bd4e97-9064-4697-8fea-37e0a2b8c87c", "room_type": 150, + "modified_date": "2022-09-27T12:46:52.525280+05:30", + "room_type_text": "Oxygen beds", "total_capacity": 20, "current_capacity": 1 - } - }, - { - "model": "facility.facilitycapacity", - "pk": 3, - "fields": { - "external_id": "4fed54e3-672b-412c-998f-a7d8f303016c", - "created_date": "2023-09-15T06:12:31.548Z", - "modified_date": "2023-09-15T06:12:31.548Z", - "deleted": false, - "facility": 4, - "room_type": 150, - "total_capacity": 12, - "current_capacity": 2 - } - }, - { - "model": "facility.facilitycapacity", - "pk": 4, - "fields": { - "external_id": "c7d64165-8097-4dec-a4df-616647e70c31", - "created_date": "2023-09-15T06:12:50.165Z", - "modified_date": "2023-09-15T06:12:50.165Z", - "deleted": false, - "facility": 3, - "room_type": 20, - "total_capacity": 31, - "current_capacity": 2 - } - }, - { - "model": "facility.facilityuser", - "pk": 1, - "fields": { - "facility": 1, - "user": 2, - "created_by": 2 - } - }, - { - "model": "facility.facilityuser", - "pk": 2, - "fields": { - "facility": 2, - "user": 2, - "created_by": 2 - } - }, - { - "model": "facility.facilityuser", - "pk": 3, - "fields": { - "facility": 1, - "user": 21, - "created_by": 2 - } - }, - { - "model": "facility.facilityuser", - "pk": 4, - "fields": { - "facility": 1, - "user": 22, - "created_by": 2 - } - }, - { - "model": "facility.facilityuser", - "pk": 5, - "fields": { - "facility": 3, - "user": 2, - "created_by": 2 - } - }, - { - "model": "facility.facilityuser", - "pk": 6, - "fields": { - "facility": 4, - "user": 2, - "created_by": 2 - } - }, - { - "model": "facility.assetlocation", - "pk": 1, - "fields": { - "external_id": "c3ab727f-dc3f-4a11-bf8d-2472bd79b5f7", - "created_date": "2022-09-27T07:02:07.969Z", - "modified_date": "2022-09-27T07:02:07.969Z", - "deleted": false, - "name": "Camera Locations", - "description": "", - "location_type": 1, - "facility": 1 - } - }, - { - "model": "facility.assetlocation", - "pk": 2, - "fields": { - "external_id": "a5cd0a56-cd5a-425c-9a87-cf79c0a90887", - "created_date": "2023-09-15T06:13:24.614Z", - "modified_date": "2023-09-15T06:13:24.614Z", - "deleted": false, - "name": "Dummy Location 1", - "description": "", - "location_type": 1, - "facility": 1 - } - }, - { - "model": "facility.asset", - "pk": 1, - "fields": { - "external_id": "ae4290a0-e86a-48d7-9c82-60b7d6514707", - "created_date": "2022-09-27T07:03:57.401Z", - "modified_date": "2022-09-27T07:03:57.401Z", - "deleted": false, - "name": "Dummy Camera 1", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 2, - "fields": { - "external_id": "7c06ec3c-838d-447a-bf36-d20239c8442f", - "created_date": "2022-09-27T07:04:30.802Z", - "modified_date": "2022-09-27T07:04:30.802Z", - "deleted": false, - "name": "Dummy Camera 2", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 3, - "fields": { - "external_id": "46740927-f782-49aa-bf6e-52a1208e8d18", - "created_date": "2022-09-27T07:04:35.291Z", - "modified_date": "2022-09-27T07:04:35.291Z", - "deleted": false, - "name": "Dummy Camera 3", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 4, - "fields": { - "external_id": "d6e9e071-e67e-4fbc-a872-4c3b1b9f749f", - "created_date": "2022-09-27T07:04:38.335Z", - "modified_date": "2022-09-27T07:04:38.335Z", - "deleted": false, - "name": "Dummy Camera 4", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 5, - "fields": { - "external_id": "35a2200d-6c1a-4c53-936c-60ebec1f9d42", - "created_date": "2022-09-27T07:04:41.179Z", - "modified_date": "2022-09-27T07:04:41.179Z", - "deleted": false, - "name": "Dummy Camera 5", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 6, - "fields": { - "external_id": "db1c2f95-5ae9-4e64-b647-30250beb79c7", - "created_date": "2022-09-27T07:04:43.869Z", - "modified_date": "2022-09-27T07:04:43.870Z", - "deleted": false, - "name": "Dummy Camera 6", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 7, - "fields": { - "external_id": "604ec344-a7d1-4523-8a6f-3e78cd3409ef", - "created_date": "2022-09-27T07:04:46.610Z", - "modified_date": "2022-09-27T07:04:46.610Z", - "deleted": false, - "name": "Dummy Camera 7", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 8, - "fields": { - "external_id": "271ace96-6bc6-4d32-916b-6b69eb81e4c3", - "created_date": "2022-09-27T07:04:49.732Z", - "modified_date": "2022-09-27T07:04:49.732Z", - "deleted": false, - "name": "Dummy Camera 8", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 9, - "fields": { - "external_id": "fe2f171f-0c69-4305-be60-0db625d0e38e", - "created_date": "2022-09-27T07:04:52.832Z", - "modified_date": "2022-09-27T07:04:52.832Z", - "deleted": false, - "name": "Dummy Camera 9", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 10, - "fields": { - "external_id": "cf77edb2-e771-46db-a73d-80ac2b446987", - "created_date": "2022-09-27T07:04:55.942Z", - "modified_date": "2022-09-27T07:04:55.942Z", - "deleted": false, - "name": "Dummy Camera 10", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 11, - "fields": { - "external_id": "2a19c4a9-84a2-41c8-ac0d-bbbc35e5f18d", - "created_date": "2022-09-27T07:04:58.599Z", - "modified_date": "2022-09-27T07:04:58.599Z", - "deleted": false, - "name": "Dummy Camera 11", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 12, - "fields": { - "external_id": "efb41cef-4d39-477f-b437-7ec9e4406971", - "created_date": "2022-09-27T07:05:01.182Z", - "modified_date": "2022-09-27T07:05:01.182Z", - "deleted": false, - "name": "Dummy Camera 12", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 13, - "fields": { - "external_id": "875b2bd3-67a8-4968-a589-d62c656cacb9", - "created_date": "2022-09-27T07:05:03.955Z", - "modified_date": "2022-09-27T07:05:03.955Z", - "deleted": false, - "name": "Dummy Camera 13", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 14, - "fields": { - "external_id": "b9ff3001-ed15-4538-bb54-78d0b2be445f", - "created_date": "2022-09-27T07:05:07.194Z", - "modified_date": "2022-09-27T07:05:07.194Z", - "deleted": false, - "name": "Dummy Camera 14", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 15, - "fields": { - "external_id": "a9678d31-17a9-4474-be01-c095553e97b5", - "created_date": "2022-09-27T07:05:10.384Z", - "modified_date": "2022-09-27T07:05:10.384Z", - "deleted": false, - "name": "Dummy Camera 15", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 16, - "fields": { - "external_id": "b0e4063e-3f05-4f94-aea0-e15e9e474f96", - "created_date": "2022-09-27T07:05:13.857Z", - "modified_date": "2022-09-27T07:05:13.857Z", - "deleted": false, - "name": "Dummy Camera 16", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 17, - "fields": { - "external_id": "634e1421-f1a7-41d1-bde2-13d1ee7eabf4", - "created_date": "2022-09-27T07:05:16.707Z", - "modified_date": "2022-09-27T07:05:16.707Z", - "deleted": false, - "name": "Dummy Camera 17", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 18, - "fields": { - "external_id": "17992979-d18a-46c6-a48f-c7f0f40f85c3", - "created_date": "2022-09-27T07:05:19.781Z", - "modified_date": "2022-09-27T07:05:19.781Z", - "deleted": false, - "name": "Dummy Camera 18", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 19, - "fields": { - "external_id": "c6e2c6c3-ba16-4c69-b1f8-822d28317268", - "created_date": "2022-09-27T07:13:12.608Z", - "modified_date": "2022-09-27T07:13:12.608Z", - "deleted": false, - "name": "Dummy Camera 19", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 20, - "fields": { - "external_id": "cb375e24-a98c-45ed-85c4-bdd340625357", - "created_date": "2022-09-27T07:13:16.362Z", - "modified_date": "2022-09-27T07:13:16.362Z", - "deleted": false, - "name": "Dummy Camera 20", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 21, - "fields": { - "external_id": "36a0d62c-9f2d-465f-ad9f-772ec7a342d0", - "created_date": "2022-09-27T07:13:19.599Z", - "modified_date": "2022-09-27T07:13:19.599Z", - "deleted": false, - "name": "Dummy Camera 21", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 22, - "fields": { - "external_id": "e24d8936-e4f3-4f30-870e-8bc560be66f2", - "created_date": "2022-09-27T07:13:22.225Z", - "modified_date": "2022-09-27T07:13:22.225Z", - "deleted": false, - "name": "Dummy Camera 22", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 23, - "fields": { - "external_id": "cc0ebf9e-0fe1-45ff-9954-4b92fc072846", - "created_date": "2022-09-27T07:13:25.053Z", - "modified_date": "2022-09-27T07:13:25.053Z", - "deleted": false, - "name": "Dummy Camera 23", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 24, - "fields": { - "external_id": "b10bed38-4a06-473a-85f8-87004703bb2a", - "created_date": "2022-09-27T07:13:27.907Z", - "modified_date": "2022-09-27T07:13:27.907Z", - "deleted": false, - "name": "Dummy Camera 24", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 25, - "fields": { - "external_id": "51ce3355-1773-47c0-a929-54bb57293940", - "created_date": "2022-09-27T07:13:30.944Z", - "modified_date": "2022-09-27T07:13:30.944Z", - "deleted": false, - "name": "Dummy Camera 25", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 26, - "fields": { - "external_id": "567ddf56-f86a-488e-bdff-9c69daacb654", - "created_date": "2022-09-27T07:13:33.581Z", - "modified_date": "2022-09-27T07:13:33.581Z", - "deleted": false, - "name": "Dummy Camera 26", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 27, - "fields": { - "external_id": "234a8559-167b-4e61-9971-15dbc59b9319", - "created_date": "2022-09-27T07:13:37.020Z", - "modified_date": "2022-09-27T07:13:37.020Z", - "deleted": false, - "name": "Dummy Camera 27", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 28, - "fields": { - "external_id": "3f203a24-84ae-44c0-897a-1b3ddd42e072", - "created_date": "2022-09-27T07:13:39.951Z", - "modified_date": "2022-09-27T07:13:39.951Z", - "deleted": false, - "name": "Dummy Camera 28", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 29, - "fields": { - "external_id": "fc4c25cd-de00-494a-ad58-20e581520198", - "created_date": "2022-09-27T07:13:43.511Z", - "modified_date": "2022-09-27T07:13:43.511Z", - "deleted": false, - "name": "Dummy Camera 29", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 30, - "fields": { - "external_id": "cb6f3bf8-cfea-498a-a4f1-effae723d6e0", - "created_date": "2022-09-27T07:13:46.850Z", - "modified_date": "2022-09-27T07:13:46.850Z", - "deleted": false, - "name": "Dummy Camera 30", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.patientconsultation", - "pk": 1, - "fields": { - "external_id": "b5217729-3008-4a44-b347-72ba738d5f45", - "created_date": "2022-09-27T07:20:40.117Z", - "modified_date": "2022-09-27T07:20:40.123Z", - "deleted": false, - "patient": 1, - "patient_no": "88.99.44.66", - "facility": 1, - "symptoms": "3", - "other_symptoms": "", - "symptoms_onset_date": "2022-09-27T07:19:53.380Z", - "deprecated_covid_category": null, - "category": "Moderate", - "examination_details": "", - "history_of_present_illness": "", - "treatment_plan": "", - "consultation_notes": "Transfer", - "course_in_facility": null, - "investigation": [], - "prescriptions": {}, - "procedure": {}, - "suggestion": "R", - "route_to_facility": null, - "review_interval": -1, - "referred_to": 2, - "is_readmission": false, - "referred_to_external": "", - "admitted": false, - "encounter_date": null, - "discharge_date": null, - "discharge_reason": null, - "discharge_notes": "", - "discharge_prescription": {}, - "discharge_prn_prescription": {}, - "death_datetime": null, - "death_confirmed_doctor": "", - "bed_number": null, - "is_kasp": false, - "kasp_enabled_date": null, - "is_telemedicine": false, - "last_updated_by_telemedicine": false, - "assigned_to": null, - "deprecated_verified_by": "", - "treating_physician": null, - "created_by": 2, - "last_edited_by": 2, - "last_daily_round": null, - "current_bed": null, - "height": 0.0, - "weight": 0.0, - "operation": null, - "special_instruction": "", - "intubation_history": [], - "prn_prescription": [], - "discharge_advice": [] - } - }, - { - "model": "facility.bed", - "pk": 1, - "fields": { - "external_id": "260de825-7ef2-4155-8fd2-ae4d66980734", - "created_date": "2023-09-15T06:13:43.199Z", - "modified_date": "2023-09-15T06:13:43.199Z", - "deleted": false, - "name": "Dummy Bed 1", - "description": "", - "bed_type": 2, - "facility": 1, - "meta": {}, - "location": 2 - } - }, - { - "model": "facility.bed", - "pk": 2, - "fields": { - "external_id": "8ab99d71-7263-4c60-b6d4-b22e7f8dfecf", - "created_date": "2023-09-15T06:13:43.199Z", - "modified_date": "2023-09-15T06:13:43.199Z", - "deleted": false, - "name": "Dummy Bed 2", - "description": "", - "bed_type": 2, - "facility": 1, - "meta": {}, - "location": 2 - } - }, - { - "model": "facility.bed", - "pk": 3, - "fields": { - "external_id": "e7a9c643-4841-47f3-9729-4ccdadb9783a", - "created_date": "2023-09-15T06:13:43.200Z", - "modified_date": "2023-09-15T06:13:43.200Z", - "deleted": false, - "name": "Dummy Bed 3", - "description": "", - "bed_type": 2, - "facility": 1, - "meta": {}, - "location": 2 - } - }, - { - "model": "facility.bed", - "pk": 5, - "fields": { - "external_id": "fe749328-1a6a-43ae-b4c2-fb718b8ca84b", - "created_date": "2023-09-15T06:14:13.862Z", - "modified_date": "2023-09-15T06:14:13.862Z", - "deleted": false, - "name": "Dummy Bed 5", - "description": "", - "bed_type": 1, - "facility": 1, - "meta": {}, - "location": 1 - } - }, - { - "model": "facility.bed", - "pk": 7, - "fields": { - "external_id": "ddd0ce36-c4ff-409c-96d3-ea943ac876e4", - "created_date": "2023-09-15T06:14:45.458Z", - "modified_date": "2023-09-15T06:14:45.458Z", - "deleted": false, - "name": "Dummy Bed 6", - "description": "", - "bed_type": 6, - "facility": 1, - "meta": {}, - "location": 1 - } - }, - { - "model": "facility.bed", - "pk": 8, - "fields": { - "external_id": "90a90743-0a95-42c1-bdf2-b7fbf9b9edd1", - "created_date": "2023-09-15T06:14:56.105Z", - "modified_date": "2023-09-15T06:14:56.105Z", - "deleted": false, - "name": "Dummy Bed 4", - "description": "", - "bed_type": 2, - "facility": 1, - "meta": {}, - "location": 1 - } - }, - { - "model": "facility.facilityinventoryitemtag", - "pk": 1, - "fields": { - "name": "Safety" - } - }, - { - "model": "facility.facilityinventoryitemtag", - "pk": 2, - "fields": { - "name": "Medical" - } - }, - { - "model": "facility.facilityinventoryitemtag", - "pk": 3, - "fields": { - "name": "Food" - } - }, - { - "model": "facility.facilityinventoryunit", - "pk": 1, - "fields": { - "name": "Items" - } - }, - { - "model": "facility.facilityinventoryunit", - "pk": 2, - "fields": { - "name": "Dozen" - } - }, - { - "model": "facility.facilityinventoryunit", - "pk": 3, - "fields": { - "name": "Kilo Litre" - } - }, - { - "model": "facility.facilityinventoryunit", - "pk": 4, - "fields": { - "name": "Cylinders" - } - }, - { - "model": "facility.facilityinventoryunit", - "pk": 5, - "fields": { - "name": "kg" - } - }, - { - "model": "facility.facilityinventoryunit", - "pk": 6, - "fields": { - "name": "gram" - } - }, - { - "model": "facility.facilityinventoryunit", - "pk": 7, - "fields": { - "name": "Cubic Meter" - } - }, - { - "model": "facility.facilityinventoryunitconverter", - "pk": 1, - "fields": { - "from_unit": 5, - "to_unit": 6, - "multiplier": 1000.0 - } - }, - { - "model": "facility.facilityinventoryunitconverter", - "pk": 2, - "fields": { - "from_unit": 2, - "to_unit": 1, - "multiplier": 12.0 - } - }, - { - "model": "facility.facilityinventoryitem", - "pk": 1, - "fields": { - "name": "PPE", - "default_unit": 1, - "description": "", - "min_quantity": 150.0, - "allowed_units": [ - 1, - 2 - ], - "tags": [ - 1, - 2 - ] - } - }, - { - "model": "facility.facilityinventoryitem", - "pk": 2, - "fields": { - "name": "IV Fluid 500 ml", - "default_unit": 1, - "description": "", - "min_quantity": 2.0, - "allowed_units": [ - 1, - 2 - ], - "tags": [ - 2 - ] - } - }, - { - "model": "facility.facilityinventoryitem", - "pk": 3, - "fields": { - "name": "Liquid Oxygen", - "default_unit": 7, - "description": "", - "min_quantity": 10.0, - "allowed_units": [ - 7 - ], - "tags": [ - 2 - ] - } - }, - { - "model": "facility.facilityinventoryitem", - "pk": 4, - "fields": { - "name": "Jumbo D Type Oxygen Cylinder", - "default_unit": 4, - "description": "", - "min_quantity": 100.0, - "allowed_units": [ - 4 - ], - "tags": [] - } - }, - { - "model": "facility.facilityinventoryitem", - "pk": 5, - "fields": { - "name": "B Type Oxygen Cylinder", - "default_unit": 4, - "description": "", - "min_quantity": 100.0, - "allowed_units": [ - 4 - ], - "tags": [] - } - }, - { - "model": "facility.facilityinventoryitem", - "pk": 6, - "fields": { - "name": "C Type Oxygen Cylinder", - "default_unit": 4, - "description": "", - "min_quantity": 100.0, - "allowed_units": [ - 4 - ], - "tags": [] - } - }, - { - "model": "facility.facilityinventoryitem", - "pk": 7, - "fields": { - "name": "Gaseous Oxygen", - "default_unit": 7, - "description": "", - "min_quantity": 10.0, - "allowed_units": [ - 7 - ], - "tags": [ - 2 - ] - } - }, - { - "model": "facility.historicalpatientregistration", - "pk": 1, - "fields": { - "id": 1, - "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", - "created_date": "2022-09-27T07:19:20.379Z", - "modified_date": "2022-09-27T07:19:20.379Z", - "deleted": false, - "source": 10, - "name": "Dummy Patient", - "age": 120, - "gender": 1, - "phone_number": "+911234567896", - "emergency_phone_number": "+919898797775", - "address": "55.66.44.33", - "permanent_address": "55.66.44.33", - "pincode": 600115, - "date_of_birth": "1901-10-16", - "year_of_birth": 1901, - "nationality": "India", - "passport_no": "", - "is_medical_worker": false, - "blood_group": "O+", - "contact_with_confirmed_carrier": false, - "contact_with_suspected_carrier": false, - "estimated_contact_date": null, - "past_travel": false, - "countries_travelled_old": null, - "countries_travelled": null, - "date_of_return": null, - "allergies": "", - "present_health": "", - "ongoing_medication": "", - "has_SARI": false, - "is_antenatal": false, - "ward_old": "", - "is_migrant_worker": false, - "disease_status": 2, - "number_of_aged_dependents": 0, - "number_of_chronic_diseased_dependents": 0, - "action": 10, - "review_time": null, - "is_active": true, - "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", - "test_id": "", - "date_of_test": null, - "srf_id": "", - "test_type": 30, - "allow_transfer": false, - "will_donate_blood": null, - "fit_for_blood_donation": null, - "village": "", - "designation_of_health_care_worker": "", - "instituion_of_health_care_worker": "", - "transit_details": null, - "frontline_worker": null, - "date_of_result": null, - "number_of_primary_contacts": null, - "number_of_secondary_contacts": null, - "is_vaccinated": false, - "number_of_doses": 0, - "vaccine_name": null, - "covin_id": null, - "last_vaccinated_date": null, - "cluster_name": null, - "is_declared_positive": true, - "date_declared_positive": "2022-09-27T07:15:04.715Z", - "facility": 1, - "nearest_facility": null, - "ward": 1729, - "local_body": 95, - "district": 7, - "state": 1, - "last_edited": null, - "created_by": 2, - "last_consultation": null, - "assigned_to": null, - "abha_number": null, - "history_date": "2022-09-27T07:19:20.385Z", - "history_change_reason": null, - "history_type": "+", - "history_user": 2 - } - }, - { - "model": "facility.historicalpatientregistration", - "pk": 2, - "fields": { - "id": 1, - "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", - "created_date": "2022-09-27T07:19:20.379Z", - "modified_date": "2022-09-27T07:19:20.400Z", - "deleted": false, - "source": 10, - "name": "Dummy Patient", - "age": 120, - "gender": 1, - "phone_number": "+911234567896", - "emergency_phone_number": "+919898797775", - "address": "55.66.44.33", - "permanent_address": "55.66.44.33", - "pincode": 600115, - "date_of_birth": "1901-10-16", - "year_of_birth": 1901, - "nationality": "India", - "passport_no": "", - "is_medical_worker": false, - "blood_group": "O+", - "contact_with_confirmed_carrier": false, - "contact_with_suspected_carrier": false, - "estimated_contact_date": null, - "past_travel": false, - "countries_travelled_old": null, - "countries_travelled": null, - "date_of_return": null, - "allergies": "", - "present_health": "", - "ongoing_medication": "", - "has_SARI": false, - "is_antenatal": false, - "ward_old": "", - "is_migrant_worker": false, - "disease_status": 2, - "number_of_aged_dependents": 0, - "number_of_chronic_diseased_dependents": 0, - "action": 10, - "review_time": null, - "is_active": true, - "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", - "test_id": "", - "date_of_test": null, - "srf_id": "", - "test_type": 30, - "allow_transfer": false, - "will_donate_blood": null, - "fit_for_blood_donation": null, - "village": "", - "designation_of_health_care_worker": "", - "instituion_of_health_care_worker": "", - "transit_details": null, - "frontline_worker": null, - "date_of_result": null, - "number_of_primary_contacts": null, - "number_of_secondary_contacts": null, - "is_vaccinated": false, - "number_of_doses": 0, - "vaccine_name": null, - "covin_id": null, - "last_vaccinated_date": null, - "cluster_name": null, - "is_declared_positive": true, - "date_declared_positive": "2022-09-27T07:15:04.715Z", - "facility": 1, - "nearest_facility": null, - "ward": 1729, - "local_body": 95, - "district": 7, - "state": 1, - "last_edited": null, - "created_by": 2, - "last_consultation": null, - "assigned_to": null, - "abha_number": null, - "history_date": "2022-09-27T07:19:20.403Z", - "history_change_reason": null, - "history_type": "~", - "history_user": 2 - } - }, - { - "model": "facility.historicalpatientregistration", - "pk": 3, - "fields": { - "id": 1, - "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", - "created_date": "2022-09-27T07:19:20.379Z", - "modified_date": "2022-09-27T07:19:20.413Z", - "deleted": false, - "source": 10, - "name": "Dummy Patient", - "age": 120, - "gender": 1, - "phone_number": "+911234567896", - "emergency_phone_number": "+919898797775", - "address": "55.66.44.33", - "permanent_address": "55.66.44.33", - "pincode": 600115, - "date_of_birth": "1901-10-16", - "year_of_birth": 1901, - "nationality": "India", - "passport_no": "", - "is_medical_worker": false, - "blood_group": "O+", - "contact_with_confirmed_carrier": false, - "contact_with_suspected_carrier": false, - "estimated_contact_date": null, - "past_travel": false, - "countries_travelled_old": null, - "countries_travelled": null, - "date_of_return": null, - "allergies": "", - "present_health": "", - "ongoing_medication": "", - "has_SARI": false, - "is_antenatal": false, - "ward_old": "", - "is_migrant_worker": false, - "disease_status": 2, - "number_of_aged_dependents": 0, - "number_of_chronic_diseased_dependents": 0, - "action": 10, - "review_time": null, - "is_active": true, - "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", - "test_id": "", - "date_of_test": null, - "srf_id": "", - "test_type": 30, - "allow_transfer": false, - "will_donate_blood": null, - "fit_for_blood_donation": null, - "village": "", - "designation_of_health_care_worker": "", - "instituion_of_health_care_worker": "", - "transit_details": null, - "frontline_worker": null, - "date_of_result": null, - "number_of_primary_contacts": null, - "number_of_secondary_contacts": null, - "is_vaccinated": false, - "number_of_doses": 0, - "vaccine_name": null, - "covin_id": null, - "last_vaccinated_date": null, - "cluster_name": null, - "is_declared_positive": true, - "date_declared_positive": "2022-09-27T07:15:04.715Z", - "facility": 1, - "nearest_facility": null, - "ward": 1729, - "local_body": 95, - "district": 7, - "state": 1, - "last_edited": 2, - "created_by": 2, - "last_consultation": null, - "assigned_to": null, - "abha_number": null, - "history_date": "2022-09-27T07:19:20.415Z", - "history_change_reason": null, - "history_type": "~", - "history_user": 2 - } - }, - { - "model": "facility.historicalpatientregistration", - "pk": 4, - "fields": { - "id": 1, - "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", - "created_date": "2022-09-27T07:19:20.379Z", - "modified_date": "2022-09-27T07:20:40.135Z", - "deleted": false, - "source": 10, - "name": "Dummy Patient", - "age": 120, - "gender": 1, - "phone_number": "+911234567896", - "emergency_phone_number": "+919898797775", - "address": "55.66.44.33", - "permanent_address": "55.66.44.33", - "pincode": 600115, - "date_of_birth": "1901-10-16", - "year_of_birth": 1901, - "nationality": "India", - "passport_no": "", - "is_medical_worker": false, - "blood_group": "O+", - "contact_with_confirmed_carrier": false, - "contact_with_suspected_carrier": false, - "estimated_contact_date": null, - "past_travel": false, - "countries_travelled_old": null, - "countries_travelled": null, - "date_of_return": null, - "allergies": "", - "present_health": "", - "ongoing_medication": "", - "has_SARI": false, - "is_antenatal": false, - "ward_old": "", - "is_migrant_worker": false, - "disease_status": 2, - "number_of_aged_dependents": 0, - "number_of_chronic_diseased_dependents": 0, - "action": 10, - "review_time": null, - "is_active": true, - "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", - "test_id": "", - "date_of_test": null, - "srf_id": "", - "test_type": 30, - "allow_transfer": false, - "will_donate_blood": null, - "fit_for_blood_donation": null, - "village": "", - "designation_of_health_care_worker": "", - "instituion_of_health_care_worker": "", - "transit_details": null, - "frontline_worker": null, - "date_of_result": null, - "number_of_primary_contacts": null, - "number_of_secondary_contacts": null, - "is_vaccinated": false, - "number_of_doses": 0, - "vaccine_name": null, - "covin_id": null, - "last_vaccinated_date": null, - "cluster_name": null, - "is_declared_positive": true, - "date_declared_positive": "2022-09-27T07:15:04.715Z", - "facility": 1, - "nearest_facility": null, - "ward": 1729, - "local_body": 95, - "district": 7, - "state": 1, - "last_edited": 2, - "created_by": 2, - "last_consultation": 1, - "assigned_to": null, - "abha_number": null, - "history_date": "2022-09-27T07:20:40.139Z", - "history_change_reason": null, - "history_type": "~", - "history_user": 2 - } - }, - { - "model": "facility.historicalpatientregistration", - "pk": 5, - "fields": { - "id": 1, - "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", - "created_date": "2022-09-27T07:19:20.379Z", - "modified_date": "2022-09-27T07:22:00.563Z", - "deleted": false, - "source": 10, - "name": "Dummy Patient", - "age": 120, - "gender": 1, - "phone_number": "+911234567896", - "emergency_phone_number": "+919898797775", - "address": "55.66.44.33", - "permanent_address": "55.66.44.33", - "pincode": 600115, - "date_of_birth": "1901-10-16", - "year_of_birth": 1901, - "nationality": "India", - "passport_no": "", - "is_medical_worker": false, - "blood_group": "O+", - "contact_with_confirmed_carrier": false, - "contact_with_suspected_carrier": false, - "estimated_contact_date": null, - "past_travel": false, - "countries_travelled_old": null, - "countries_travelled": null, - "date_of_return": null, - "allergies": "", - "present_health": "", - "ongoing_medication": "", - "has_SARI": false, - "is_antenatal": false, - "ward_old": "", - "is_migrant_worker": false, - "disease_status": 2, - "number_of_aged_dependents": 0, - "number_of_chronic_diseased_dependents": 0, - "action": 10, - "review_time": null, - "is_active": true, - "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", - "test_id": "", - "date_of_test": null, - "srf_id": "", - "test_type": 30, - "allow_transfer": true, - "will_donate_blood": null, - "fit_for_blood_donation": null, - "village": "", - "designation_of_health_care_worker": "", - "instituion_of_health_care_worker": "", - "transit_details": null, - "frontline_worker": null, - "date_of_result": null, - "number_of_primary_contacts": null, - "number_of_secondary_contacts": null, - "is_vaccinated": false, - "number_of_doses": 0, - "vaccine_name": null, - "covin_id": null, - "last_vaccinated_date": null, - "cluster_name": null, - "is_declared_positive": true, - "date_declared_positive": "2022-09-27T07:15:04.715Z", - "facility": 1, - "nearest_facility": null, - "ward": 1729, - "local_body": 95, - "district": 7, - "state": 1, - "last_edited": 2, - "created_by": 2, - "last_consultation": 1, - "assigned_to": null, - "abha_number": null, - "history_date": "2022-09-27T07:22:00.566Z", - "history_change_reason": null, - "history_type": "~", - "history_user": 2 - } - }, - { - "model": "facility.patientregistration", - "pk": 1, - "fields": { - "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", - "created_date": "2022-09-27T07:19:20.379Z", - "modified_date": "2022-09-27T07:22:00.563Z", - "deleted": false, - "source": 10, - "facility": 1, - "nearest_facility": null, - "meta_info": null, - "name": "Dummy Patient", - "age": 120, - "gender": 1, - "phone_number": "+911234567896", - "emergency_phone_number": "+919898797775", - "address": "55.66.44.33", - "permanent_address": "55.66.44.33", - "pincode": 600115, - "date_of_birth": "1901-10-16", - "year_of_birth": 1901, - "nationality": "India", - "passport_no": "", - "is_medical_worker": false, - "blood_group": "O+", - "contact_with_confirmed_carrier": false, - "contact_with_suspected_carrier": false, - "estimated_contact_date": null, - "past_travel": false, - "countries_travelled_old": null, - "countries_travelled": null, - "date_of_return": null, - "allergies": "", - "present_health": "", - "ongoing_medication": "", - "has_SARI": false, - "is_antenatal": false, - "ward_old": "", - "ward": 1729, - "local_body": 95, - "district": 7, - "state": 1, - "is_migrant_worker": false, - "disease_status": 2, - "number_of_aged_dependents": 0, - "number_of_chronic_diseased_dependents": 0, - "last_edited": 2, - "action": 10, - "review_time": null, - "created_by": 2, - "is_active": true, - "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", - "test_id": "", - "date_of_test": null, - "srf_id": "", - "test_type": 30, - "allow_transfer": true, - "last_consultation": 1, - "will_donate_blood": null, - "fit_for_blood_donation": null, - "village": "", - "designation_of_health_care_worker": "", - "instituion_of_health_care_worker": "", - "transit_details": null, - "frontline_worker": null, - "date_of_result": null, - "number_of_primary_contacts": null, - "number_of_secondary_contacts": null, - "is_vaccinated": false, - "number_of_doses": 0, - "vaccine_name": null, - "covin_id": null, - "last_vaccinated_date": null, - "cluster_name": null, - "is_declared_positive": true, - "date_declared_positive": "2022-09-27T07:15:04.715Z", - "assigned_to": null, - "abha_number": null - } - }, - { - "model": "facility.disease", - "pk": 1, - "fields": { - "patient": 1, - "disease": 1, - "details": "", - "deleted": false - } - }, - { - "model": "facility.patientsample", - "pk": 1, - "fields": { - "external_id": "29689b96-6018-426f-984f-344fa5e3186b", - "created_date": "2022-09-27T07:23:29.568Z", - "modified_date": "2022-09-27T07:23:29.574Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 2, - "fields": { - "external_id": "ea48179e-90c5-450b-800d-c1866d2d3d74", - "created_date": "2022-09-27T07:25:39.605Z", - "modified_date": "2022-09-27T07:25:39.609Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 3, - "fields": { - "external_id": "dcaf07f9-8412-45bb-bb7c-1c232c28e9da", - "created_date": "2022-09-27T07:25:41.681Z", - "modified_date": "2022-09-27T07:25:41.685Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 4, - "fields": { - "external_id": "80868c78-4917-4401-b4b4-9eea49c47493", - "created_date": "2022-09-27T07:25:42.673Z", - "modified_date": "2022-09-27T07:25:42.676Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 5, - "fields": { - "external_id": "093863c4-1778-4464-9ee9-c408bef0bafe", - "created_date": "2022-09-27T07:25:43.611Z", - "modified_date": "2022-09-27T07:25:43.615Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 6, - "fields": { - "external_id": "5b015be7-ffb3-4f36-a08a-7510dd53ee7f", - "created_date": "2022-09-27T07:25:44.707Z", - "modified_date": "2022-09-27T07:25:44.711Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 7, - "fields": { - "external_id": "b8cb7a31-5480-4466-8388-de1eafa35ede", - "created_date": "2022-09-27T07:25:52.375Z", - "modified_date": "2022-09-27T07:25:52.379Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 8, - "fields": { - "external_id": "c04f9bd2-e11f-466e-8649-d80f9e5d8649", - "created_date": "2022-09-27T07:25:53.556Z", - "modified_date": "2022-09-27T07:25:53.559Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 9, - "fields": { - "external_id": "27001f33-e193-42d5-8809-61b2c63304a9", - "created_date": "2022-09-27T07:25:54.406Z", - "modified_date": "2022-09-27T07:25:54.410Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 10, - "fields": { - "external_id": "1a604325-11bf-44b7-985b-6222b6c37092", - "created_date": "2022-09-27T07:25:55.280Z", - "modified_date": "2022-09-27T07:25:55.284Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 11, - "fields": { - "external_id": "0bd4f6ff-e084-4d2c-9803-79b829682a1d", - "created_date": "2022-09-27T07:25:56.119Z", - "modified_date": "2022-09-27T07:25:56.123Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 12, - "fields": { - "external_id": "fecb4ef3-2889-47ca-8e08-6a27a5e77715", - "created_date": "2022-09-27T07:25:56.959Z", - "modified_date": "2022-09-27T07:25:56.964Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 13, - "fields": { - "external_id": "45186f6d-1ed5-454a-aadd-94ceaefacf20", - "created_date": "2022-09-27T07:25:57.875Z", - "modified_date": "2022-09-27T07:25:57.878Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 14, - "fields": { - "external_id": "bcbc2e7e-d2b8-4e5e-ab50-7c36a51c1e09", - "created_date": "2022-09-27T07:25:58.676Z", - "modified_date": "2022-09-27T07:25:58.681Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 15, - "fields": { - "external_id": "342639b4-f347-4f83-87d1-85c6d7968ee7", - "created_date": "2022-09-27T07:25:59.671Z", - "modified_date": "2022-09-27T07:25:59.674Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 16, - "fields": { - "external_id": "388099f9-f005-47c1-9be3-650ddda769a0", - "created_date": "2022-09-27T07:26:00.354Z", - "modified_date": "2022-09-27T07:26:00.358Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 17, - "fields": { - "external_id": "5aef7a72-5e2c-4a0f-b689-747aae8b0dce", - "created_date": "2022-09-27T07:26:00.860Z", - "modified_date": "2022-09-27T07:26:00.863Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 1, - "fields": { - "external_id": "64bf6eb2-055d-4a16-8c91-e7ce1390e541", - "created_date": "2022-09-27T07:23:29.580Z", - "modified_date": "2022-09-27T07:23:29.580Z", - "deleted": false, - "patient_sample": 1, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 2, - "fields": { - "external_id": "1f68131b-9aab-456f-b61b-eb0a93d521c4", - "created_date": "2022-09-27T07:25:39.613Z", - "modified_date": "2022-09-27T07:25:39.613Z", - "deleted": false, - "patient_sample": 2, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 3, - "fields": { - "external_id": "80ead199-cd58-44c3-97de-4142e3e7d7ac", - "created_date": "2022-09-27T07:25:41.689Z", - "modified_date": "2022-09-27T07:25:41.689Z", - "deleted": false, - "patient_sample": 3, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 4, - "fields": { - "external_id": "ebe8ffac-1ca0-40fe-80d3-b895e7524ce2", - "created_date": "2022-09-27T07:25:42.681Z", - "modified_date": "2022-09-27T07:25:42.681Z", - "deleted": false, - "patient_sample": 4, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 5, - "fields": { - "external_id": "ed7f8727-3784-40cd-97c6-49e9de3e2fdb", - "created_date": "2022-09-27T07:25:43.620Z", - "modified_date": "2022-09-27T07:25:43.620Z", - "deleted": false, - "patient_sample": 5, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 6, - "fields": { - "external_id": "f7a3695f-bfd4-4af5-9280-e2d54124286e", - "created_date": "2022-09-27T07:25:44.716Z", - "modified_date": "2022-09-27T07:25:44.716Z", - "deleted": false, - "patient_sample": 6, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 7, - "fields": { - "external_id": "a0cad511-4dad-4244-93c4-50277d6734c2", - "created_date": "2022-09-27T07:25:52.383Z", - "modified_date": "2022-09-27T07:25:52.383Z", - "deleted": false, - "patient_sample": 7, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 8, - "fields": { - "external_id": "f3ff09b9-1c79-4afc-bd3d-70eeecc87daa", - "created_date": "2022-09-27T07:25:53.564Z", - "modified_date": "2022-09-27T07:25:53.564Z", - "deleted": false, - "patient_sample": 8, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 9, - "fields": { - "external_id": "a03684c4-4769-4643-b457-8be382895e8b", - "created_date": "2022-09-27T07:25:54.414Z", - "modified_date": "2022-09-27T07:25:54.414Z", - "deleted": false, - "patient_sample": 9, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 10, - "fields": { - "external_id": "a62f7677-31af-42f6-94f9-fcb5e8ab94de", - "created_date": "2022-09-27T07:25:55.288Z", - "modified_date": "2022-09-27T07:25:55.288Z", - "deleted": false, - "patient_sample": 10, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 11, - "fields": { - "external_id": "e9dae65e-bca7-47fc-b490-8ef4de67e331", - "created_date": "2022-09-27T07:25:56.127Z", - "modified_date": "2022-09-27T07:25:56.127Z", - "deleted": false, - "patient_sample": 11, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 12, - "fields": { - "external_id": "e065bb9a-10d2-4bdd-b375-affa163dacdf", - "created_date": "2022-09-27T07:25:56.968Z", - "modified_date": "2022-09-27T07:25:56.968Z", - "deleted": false, - "patient_sample": 12, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 13, - "fields": { - "external_id": "dae215d0-bbfe-41e5-a6e2-20e4504eb068", - "created_date": "2022-09-27T07:25:57.883Z", - "modified_date": "2022-09-27T07:25:57.883Z", - "deleted": false, - "patient_sample": 13, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 14, - "fields": { - "external_id": "dabdd193-f800-4848-902b-b33b345252e5", - "created_date": "2022-09-27T07:25:58.686Z", - "modified_date": "2022-09-27T07:25:58.686Z", - "deleted": false, - "patient_sample": 14, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 15, - "fields": { - "external_id": "8a32a9f0-0686-4104-8fe7-27c7be6a4233", - "created_date": "2022-09-27T07:25:59.679Z", - "modified_date": "2022-09-27T07:25:59.679Z", - "deleted": false, - "patient_sample": 15, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 16, - "fields": { - "external_id": "db4ceed2-a7e5-4cb1-828b-085ddae5fa0a", - "created_date": "2022-09-27T07:26:00.363Z", - "modified_date": "2022-09-27T07:26:00.363Z", - "deleted": false, - "patient_sample": 16, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 17, - "fields": { - "external_id": "48b8eb3a-c901-429a-abbb-7e5aae0f9cd2", - "created_date": "2022-09-27T07:26:00.867Z", - "modified_date": "2022-09-27T07:26:00.867Z", - "deleted": false, - "patient_sample": 17, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.shiftingrequest", - "pk": 1, - "fields": { - "external_id": "a0e4cf70-49b4-4e26-83fa-c2c962386885", - "created_date": "2022-09-27T07:22:00.581Z", - "modified_date": "2022-09-27T07:22:00.581Z", - "deleted": false, - "origin_facility": 1, - "shifting_approving_facility": 2, - "assigned_facility_type": 2, - "assigned_facility": null, - "assigned_facility_external": "", - "patient": 1, - "emergency": true, - "is_up_shift": true, - "reason": "Test", - "vehicle_preference": "", - "preferred_vehicle_choice": 10, - "comments": "", - "refering_facility_contact_name": "Someone at Facility", - "refering_facility_contact_number": "+914455666777", - "is_kasp": false, - "status": 10, - "breathlessness_level": 30, - "is_assigned_to_user": false, - "assigned_to": null, - "ambulance_driver_name": "", - "ambulance_phone_number": "", - "ambulance_number": "", - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.facilityrelatedsummary", - "pk": "99627ad6-53e7-4585-821a-21ac6e765f7b", - "fields": { - "created_date": "2022-09-27T07:00:00.163Z", - "modified_date": "2022-09-27T07:25:00.165Z", - "facility": 1, - "s_type": "FacilityCapacity", - "data": { - "id": "81092ced-8720-44cb-b4c5-3f0ad0540153", - "name": "Dummy Facility 1", - "ward": 1, - "state": 1, - "address": "127.0.0.1", - "pincode": 670000, - "district": 7, - "features": [ - 1, - 2, - 3, - 4, - 5, - 6 - ], - "latitude": null, - "inventory": {}, - "longitude": null, - "local_body": 920, - "ward_object": { - "id": 1, - "name": "NEERICODE WEST", - "number": 1, - "local_body": 920 - }, - "availability": [ - { - "id": "bfb7a4d8-6bf0-46d6-bf20-d5020850ea55", - "room_type": 150, - "modified_date": "2022-09-27T12:30:19.399000+05:30", - "room_type_text": "Oxygen beds", - "total_capacity": 1000, - "current_capacity": 20 - } - ], - "created_date": "2022-09-27T12:29:15.929000+05:30", - "phone_number": "+919999999888", - "state_object": { - "id": 1, - "name": "Kerala" - }, - "facility_type": "Private Hospital", - "modified_date": "2022-09-27T12:29:15.929000+05:30", - "district_object": { - "id": 7, - "name": "Ernakulam", - "state": 1 - }, - "kasp_empanelled": false, - "oxygen_capacity": 0, - "type_b_cylinders": 0, - "type_c_cylinders": 0, - "type_d_cylinders": 0, - "local_body_object": { - "id": 920, - "name": "Alangad  Grama Panchayat, Ernakulam District", - "district": 7, - "body_type": 1, - "localbody_code": "G070203" - }, - "actual_live_patients": 1, - "read_cover_image_url": null, - "expected_type_b_cylinders": 0, - "expected_type_c_cylinders": 0, - "expected_type_d_cylinders": 0, - "actual_discharged_patients": 0, - "expected_oxygen_requirement": 0 - } - } - }, - { - "model": "facility.facilityrelatedsummary", - "pk": "e294a2c2-3b05-469f-b975-e7766201df13", - "fields": { - "created_date": "2022-09-27T07:20:00.162Z", - "modified_date": "2022-09-27T07:25:00.171Z", - "facility": 2, - "s_type": "FacilityCapacity", - "data": { - "id": "fa33079d-727d-4295-b0fd-19153b36b2db", - "name": "Dummy Shifting Center", - "ward": 218, - "state": 1, - "address": "89.66.33.55", - "pincode": 670112, - "district": 7, - "features": [ - 1, - 6 - ], - "latitude": null, - "inventory": {}, - "longitude": null, - "local_body": 12, - "ward_object": { - "id": 218, - "name": "VALAMBOOR", - "number": 2, - "local_body": 12 - }, - "availability": [ - { - "id": "52bd4e97-9064-4697-8fea-37e0a2b8c87c", - "room_type": 150, - "modified_date": "2022-09-27T12:46:52.525280+05:30", - "room_type_text": "Oxygen beds", - "total_capacity": 20, - "current_capacity": 1 - } - ], - "created_date": "2022-09-27T12:45:51.075776+05:30", - "phone_number": "+919876665987", - "state_object": { - "id": 1, - "name": "Kerala" - }, - "facility_type": "Shifting Centre", - "modified_date": "2022-09-27T12:45:51.075811+05:30", - "district_object": { - "id": 7, - "name": "Ernakulam", - "state": 1 - }, - "kasp_empanelled": false, - "oxygen_capacity": 0, - "type_b_cylinders": 0, - "type_c_cylinders": 0, - "type_d_cylinders": 0, - "local_body_object": { - "id": 12, - "name": "Aikaranad  Grama Panchayat, Ernakulam District", - "district": 7, - "body_type": 1, - "localbody_code": "G071005" - }, - "actual_live_patients": 0, - "read_cover_image_url": null, - "expected_type_b_cylinders": 0, - "expected_type_c_cylinders": 0, - "expected_type_d_cylinders": 0, - "actual_discharged_patients": 0, - "expected_oxygen_requirement": 0 - } - } + } + ], + "created_date": "2022-09-27T12:45:51.075776+05:30", + "phone_number": "+919876665987", + "state_object": { + "id": 1, + "name": "Kerala" + }, + "facility_type": "Shifting Centre", + "modified_date": "2022-09-27T12:45:51.075811+05:30", + "district_object": { + "id": 7, + "name": "Ernakulam", + "state": 1 + }, + "kasp_empanelled": false, + "oxygen_capacity": 0, + "type_b_cylinders": 0, + "type_c_cylinders": 0, + "type_d_cylinders": 0, + "local_body_object": { + "id": 12, + "name": "Aikaranad  Grama Panchayat, Ernakulam District", + "district": 7, + "body_type": 1, + "localbody_code": "G071005" + }, + "actual_live_patients": 0, + "read_cover_image_url": null, + "expected_type_b_cylinders": 0, + "expected_type_c_cylinders": 0, + "expected_type_d_cylinders": 0, + "actual_discharged_patients": 0, + "expected_oxygen_requirement": 0 + } } + } ] From 485a5c816ad0fccd106d30de5eb30f0ca95a78de Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Mon, 27 Nov 2023 13:33:45 +0530 Subject: [PATCH 08/17] fix `facility.json` fixture formatting --- data/dummy/facility.json | 6180 +++++++++++++++++++------------------- 1 file changed, 3090 insertions(+), 3090 deletions(-) diff --git a/data/dummy/facility.json b/data/dummy/facility.json index a6c2710997..b2aa7962cf 100644 --- a/data/dummy/facility.json +++ b/data/dummy/facility.json @@ -1,3099 +1,3099 @@ [ { - "model": "facility.facility", - "pk": 1, - "fields": { - "external_id": "81092ced-8720-44cb-b4c5-3f0ad0540153", - "created_date": "2022-09-27T06:59:15.929Z", - "modified_date": "2022-09-27T06:59:15.929Z", - "deleted": false, - "name": "Dummy Facility 1", - "is_active": true, - "verified": false, - "facility_type": 2, - "kasp_empanelled": false, - "features": "1,2,3,4,5,6", - "longitude": null, - "latitude": null, - "pincode": 670000, - "address": "127.0.0.1", - "ward": 1, - "local_body": 920, - "district": 7, - "state": 1, - "oxygen_capacity": 0, - "type_b_cylinders": 0, - "type_c_cylinders": 0, - "type_d_cylinders": 0, - "expected_oxygen_requirement": 0, - "expected_type_b_cylinders": 0, - "expected_type_c_cylinders": 0, - "expected_type_d_cylinders": 0, - "phone_number": "+919999999888", - "corona_testing": false, - "created_by": 2, - "cover_image_url": null, - "middleware_address": null - } - }, - { - "model": "facility.facility", - "pk": 2, - "fields": { - "external_id": "fa33079d-727d-4295-b0fd-19153b36b2db", - "created_date": "2022-09-27T07:15:51.075Z", - "modified_date": "2022-09-27T07:15:51.075Z", - "deleted": false, - "name": "Dummy Shifting Center", - "is_active": true, - "verified": false, - "facility_type": 1300, - "kasp_empanelled": false, - "features": "1,6", - "longitude": null, - "latitude": null, - "pincode": 670112, - "address": "89.66.33.55", - "ward": 218, - "local_body": 12, - "district": 7, - "state": 1, - "oxygen_capacity": 0, - "type_b_cylinders": 0, - "type_c_cylinders": 0, - "type_d_cylinders": 0, - "expected_oxygen_requirement": 0, - "expected_type_b_cylinders": 0, - "expected_type_c_cylinders": 0, - "expected_type_d_cylinders": 0, - "phone_number": "+919876665987", - "corona_testing": false, - "created_by": 2, - "cover_image_url": null, - "middleware_address": null - } - }, - { - "model": "facility.facility", - "pk": 3, - "fields": { - "external_id": "4c293ecd-1aae-4ebc-9b5b-b53497dffac9", - "created_date": "2023-09-15T06:11:14.166Z", - "modified_date": "2023-09-15T06:11:14.166Z", - "deleted": false, - "name": "Dummy Request Approving Center", - "is_active": true, - "verified": false, - "facility_type": 1500, - "kasp_empanelled": false, - "features": "1,4,6", - "longitude": "78.6757364624373000", - "latitude": "21.4009146842158660", - "pincode": 670000, - "address": "Dummy Facility Address", - "ward": 7574, - "local_body": 431, - "district": 7, - "state": 1, - "oxygen_capacity": 0, - "type_b_cylinders": 0, - "type_c_cylinders": 0, - "type_d_cylinders": 0, - "expected_oxygen_requirement": 0, - "expected_type_b_cylinders": 0, - "expected_type_c_cylinders": 0, - "expected_type_d_cylinders": 0, - "phone_number": "+919999999888", - "corona_testing": false, - "created_by": 2, - "cover_image_url": null, - "middleware_address": null - } - }, - { - "model": "facility.facility", - "pk": 4, - "fields": { - "external_id": "e70e0b82-7a99-48c2-a735-41cdea3b4076", - "created_date": "2023-09-15T06:12:14.266Z", - "modified_date": "2023-09-15T06:12:14.266Z", - "deleted": false, - "name": "Dummy Request Fulfilment Center", - "is_active": true, - "verified": false, - "facility_type": 1510, - "kasp_empanelled": false, - "features": "1,3,5", - "longitude": "75.2139014820876600", - "latitude": "18.2774285038890340", - "pincode": 670000, - "address": "Dummy Facility Address 2", - "ward": 5412, - "local_body": 309, - "district": 7, - "state": 1, - "oxygen_capacity": 0, - "type_b_cylinders": 0, - "type_c_cylinders": 0, - "type_d_cylinders": 0, - "expected_oxygen_requirement": 0, - "expected_type_b_cylinders": 0, - "expected_type_c_cylinders": 0, - "expected_type_d_cylinders": 0, - "phone_number": "+918899885588", - "corona_testing": false, - "created_by": 2, - "cover_image_url": null, - "middleware_address": null - } - }, - { - "model": "facility.hospitaldoctors", - "pk": 1, - "fields": { - "external_id": "d68776c9-1197-411f-b19d-2069364b17a2", - "created_date": "2023-09-15T06:12:36.941Z", - "modified_date": "2023-09-15T06:12:36.941Z", - "deleted": false, - "facility": 4, - "area": 2, - "count": 5 - } - }, - { - "model": "facility.hospitaldoctors", - "pk": 2, - "fields": { - "external_id": "df1ef651-4e4f-4a0a-9df7-55e5949468ce", - "created_date": "2023-09-15T06:12:54.835Z", - "modified_date": "2023-09-15T06:12:54.835Z", - "deleted": false, - "facility": 3, - "area": 3, - "count": 4 - } - }, - { - "model": "facility.historicalfacilitycapacity", - "pk": 1, - "fields": { - "id": 1, - "external_id": "bfb7a4d8-6bf0-46d6-bf20-d5020850ea55", - "created_date": "2022-09-27T07:00:19.399Z", - "modified_date": "2022-09-27T07:00:19.399Z", - "deleted": false, - "room_type": 150, - "total_capacity": 1000, - "current_capacity": 20, - "facility": 1, - "history_date": "2022-09-27T07:00:19.400Z", - "history_change_reason": null, - "history_type": "+", - "history_user": 2 - } - }, - { - "model": "facility.historicalfacilitycapacity", - "pk": 2, - "fields": { - "id": 2, - "external_id": "52bd4e97-9064-4697-8fea-37e0a2b8c87c", - "created_date": "2022-09-27T07:16:52.525Z", - "modified_date": "2022-09-27T07:16:52.525Z", - "deleted": false, - "room_type": 150, - "total_capacity": 20, - "current_capacity": 1, - "facility": 2, - "history_date": "2022-09-27T07:16:52.526Z", - "history_change_reason": null, - "history_type": "+", - "history_user": 2 - } - }, - { - "model": "facility.historicalfacilitycapacity", - "pk": 3, - "fields": { - "id": 3, - "external_id": "4fed54e3-672b-412c-998f-a7d8f303016c", - "created_date": "2023-09-15T06:12:31.548Z", - "modified_date": "2023-09-15T06:12:31.548Z", - "deleted": false, - "room_type": 150, - "total_capacity": 12, - "current_capacity": 2, - "facility": 4, - "history_date": "2023-09-15T06:12:31.550Z", - "history_change_reason": null, - "history_type": "+", - "history_user": 2 - } - }, - { - "model": "facility.historicalfacilitycapacity", - "pk": 4, - "fields": { - "id": 4, - "external_id": "c7d64165-8097-4dec-a4df-616647e70c31", - "created_date": "2023-09-15T06:12:50.165Z", - "modified_date": "2023-09-15T06:12:50.165Z", - "deleted": false, - "room_type": 20, - "total_capacity": 31, - "current_capacity": 2, - "facility": 3, - "history_date": "2023-09-15T06:12:50.166Z", - "history_change_reason": null, - "history_type": "+", - "history_user": 2 - } - }, - { - "model": "facility.facilitycapacity", - "pk": 1, - "fields": { - "external_id": "bfb7a4d8-6bf0-46d6-bf20-d5020850ea55", - "created_date": "2022-09-27T07:00:19.399Z", - "modified_date": "2022-09-27T07:00:19.399Z", - "deleted": false, - "facility": 1, - "room_type": 150, - "total_capacity": 1000, - "current_capacity": 20 - } - }, - { - "model": "facility.facilitycapacity", - "pk": 2, - "fields": { - "external_id": "52bd4e97-9064-4697-8fea-37e0a2b8c87c", - "created_date": "2022-09-27T07:16:52.525Z", - "modified_date": "2022-09-27T07:16:52.525Z", - "deleted": false, - "facility": 2, - "room_type": 150, - "total_capacity": 20, - "current_capacity": 1 - } - }, - { - "model": "facility.facilitycapacity", - "pk": 3, - "fields": { - "external_id": "4fed54e3-672b-412c-998f-a7d8f303016c", - "created_date": "2023-09-15T06:12:31.548Z", - "modified_date": "2023-09-15T06:12:31.548Z", - "deleted": false, - "facility": 4, - "room_type": 150, - "total_capacity": 12, - "current_capacity": 2 - } - }, - { - "model": "facility.facilitycapacity", - "pk": 4, - "fields": { - "external_id": "c7d64165-8097-4dec-a4df-616647e70c31", - "created_date": "2023-09-15T06:12:50.165Z", - "modified_date": "2023-09-15T06:12:50.165Z", - "deleted": false, - "facility": 3, - "room_type": 20, - "total_capacity": 31, - "current_capacity": 2 - } - }, - { - "model": "facility.facilityuser", - "pk": 1, - "fields": { - "facility": 1, - "user": 2, - "created_by": 2 - } - }, - { - "model": "facility.facilityuser", - "pk": 2, - "fields": { - "facility": 2, - "user": 2, - "created_by": 2 - } - }, - { - "model": "facility.facilityuser", - "pk": 3, - "fields": { - "facility": 1, - "user": 21, - "created_by": 2 - } - }, - { - "model": "facility.facilityuser", - "pk": 4, - "fields": { - "facility": 1, - "user": 22, - "created_by": 2 - } - }, - { - "model": "facility.facilityuser", - "pk": 5, - "fields": { - "facility": 3, - "user": 2, - "created_by": 2 - } - }, - { - "model": "facility.facilityuser", - "pk": 6, - "fields": { - "facility": 4, - "user": 2, - "created_by": 2 - } - }, - { - "model": "facility.assetlocation", - "pk": 1, - "fields": { - "external_id": "c3ab727f-dc3f-4a11-bf8d-2472bd79b5f7", - "created_date": "2022-09-27T07:02:07.969Z", - "modified_date": "2022-09-27T07:02:07.969Z", - "deleted": false, - "name": "Camera Locations", - "description": "", - "location_type": 1, - "facility": 1 - } - }, - { - "model": "facility.assetlocation", - "pk": 2, - "fields": { - "external_id": "a5cd0a56-cd5a-425c-9a87-cf79c0a90887", - "created_date": "2023-09-15T06:13:24.614Z", - "modified_date": "2023-09-15T06:13:24.614Z", - "deleted": false, - "name": "Dummy Location 1", - "description": "", - "location_type": 1, - "facility": 1 - } - }, - { - "model": "facility.asset", - "pk": 1, - "fields": { - "external_id": "ae4290a0-e86a-48d7-9c82-60b7d6514707", - "created_date": "2022-09-27T07:03:57.401Z", - "modified_date": "2022-09-27T07:03:57.401Z", - "deleted": false, - "name": "Dummy Camera 1", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 2, - "fields": { - "external_id": "7c06ec3c-838d-447a-bf36-d20239c8442f", - "created_date": "2022-09-27T07:04:30.802Z", - "modified_date": "2022-09-27T07:04:30.802Z", - "deleted": false, - "name": "Dummy Camera 2", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 3, - "fields": { - "external_id": "46740927-f782-49aa-bf6e-52a1208e8d18", - "created_date": "2022-09-27T07:04:35.291Z", - "modified_date": "2022-09-27T07:04:35.291Z", - "deleted": false, - "name": "Dummy Camera 3", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 4, - "fields": { - "external_id": "d6e9e071-e67e-4fbc-a872-4c3b1b9f749f", - "created_date": "2022-09-27T07:04:38.335Z", - "modified_date": "2022-09-27T07:04:38.335Z", - "deleted": false, - "name": "Dummy Camera 4", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 5, - "fields": { - "external_id": "35a2200d-6c1a-4c53-936c-60ebec1f9d42", - "created_date": "2022-09-27T07:04:41.179Z", - "modified_date": "2022-09-27T07:04:41.179Z", - "deleted": false, - "name": "Dummy Camera 5", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 6, - "fields": { - "external_id": "db1c2f95-5ae9-4e64-b647-30250beb79c7", - "created_date": "2022-09-27T07:04:43.869Z", - "modified_date": "2022-09-27T07:04:43.870Z", - "deleted": false, - "name": "Dummy Camera 6", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 7, - "fields": { - "external_id": "604ec344-a7d1-4523-8a6f-3e78cd3409ef", - "created_date": "2022-09-27T07:04:46.610Z", - "modified_date": "2022-09-27T07:04:46.610Z", - "deleted": false, - "name": "Dummy Camera 7", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 8, - "fields": { - "external_id": "271ace96-6bc6-4d32-916b-6b69eb81e4c3", - "created_date": "2022-09-27T07:04:49.732Z", - "modified_date": "2022-09-27T07:04:49.732Z", - "deleted": false, - "name": "Dummy Camera 8", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 9, - "fields": { - "external_id": "fe2f171f-0c69-4305-be60-0db625d0e38e", - "created_date": "2022-09-27T07:04:52.832Z", - "modified_date": "2022-09-27T07:04:52.832Z", - "deleted": false, - "name": "Dummy Camera 9", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 10, - "fields": { - "external_id": "cf77edb2-e771-46db-a73d-80ac2b446987", - "created_date": "2022-09-27T07:04:55.942Z", - "modified_date": "2022-09-27T07:04:55.942Z", - "deleted": false, - "name": "Dummy Camera 10", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 11, - "fields": { - "external_id": "2a19c4a9-84a2-41c8-ac0d-bbbc35e5f18d", - "created_date": "2022-09-27T07:04:58.599Z", - "modified_date": "2022-09-27T07:04:58.599Z", - "deleted": false, - "name": "Dummy Camera 11", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 12, - "fields": { - "external_id": "efb41cef-4d39-477f-b437-7ec9e4406971", - "created_date": "2022-09-27T07:05:01.182Z", - "modified_date": "2022-09-27T07:05:01.182Z", - "deleted": false, - "name": "Dummy Camera 12", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 13, - "fields": { - "external_id": "875b2bd3-67a8-4968-a589-d62c656cacb9", - "created_date": "2022-09-27T07:05:03.955Z", - "modified_date": "2022-09-27T07:05:03.955Z", - "deleted": false, - "name": "Dummy Camera 13", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 14, - "fields": { - "external_id": "b9ff3001-ed15-4538-bb54-78d0b2be445f", - "created_date": "2022-09-27T07:05:07.194Z", - "modified_date": "2022-09-27T07:05:07.194Z", - "deleted": false, - "name": "Dummy Camera 14", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 15, - "fields": { - "external_id": "a9678d31-17a9-4474-be01-c095553e97b5", - "created_date": "2022-09-27T07:05:10.384Z", - "modified_date": "2022-09-27T07:05:10.384Z", - "deleted": false, - "name": "Dummy Camera 15", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 16, - "fields": { - "external_id": "b0e4063e-3f05-4f94-aea0-e15e9e474f96", - "created_date": "2022-09-27T07:05:13.857Z", - "modified_date": "2022-09-27T07:05:13.857Z", - "deleted": false, - "name": "Dummy Camera 16", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 17, - "fields": { - "external_id": "634e1421-f1a7-41d1-bde2-13d1ee7eabf4", - "created_date": "2022-09-27T07:05:16.707Z", - "modified_date": "2022-09-27T07:05:16.707Z", - "deleted": false, - "name": "Dummy Camera 17", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 18, - "fields": { - "external_id": "17992979-d18a-46c6-a48f-c7f0f40f85c3", - "created_date": "2022-09-27T07:05:19.781Z", - "modified_date": "2022-09-27T07:05:19.781Z", - "deleted": false, - "name": "Dummy Camera 18", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 19, - "fields": { - "external_id": "c6e2c6c3-ba16-4c69-b1f8-822d28317268", - "created_date": "2022-09-27T07:13:12.608Z", - "modified_date": "2022-09-27T07:13:12.608Z", - "deleted": false, - "name": "Dummy Camera 19", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 20, - "fields": { - "external_id": "cb375e24-a98c-45ed-85c4-bdd340625357", - "created_date": "2022-09-27T07:13:16.362Z", - "modified_date": "2022-09-27T07:13:16.362Z", - "deleted": false, - "name": "Dummy Camera 20", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 21, - "fields": { - "external_id": "36a0d62c-9f2d-465f-ad9f-772ec7a342d0", - "created_date": "2022-09-27T07:13:19.599Z", - "modified_date": "2022-09-27T07:13:19.599Z", - "deleted": false, - "name": "Dummy Camera 21", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 22, - "fields": { - "external_id": "e24d8936-e4f3-4f30-870e-8bc560be66f2", - "created_date": "2022-09-27T07:13:22.225Z", - "modified_date": "2022-09-27T07:13:22.225Z", - "deleted": false, - "name": "Dummy Camera 22", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 23, - "fields": { - "external_id": "cc0ebf9e-0fe1-45ff-9954-4b92fc072846", - "created_date": "2022-09-27T07:13:25.053Z", - "modified_date": "2022-09-27T07:13:25.053Z", - "deleted": false, - "name": "Dummy Camera 23", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 24, - "fields": { - "external_id": "b10bed38-4a06-473a-85f8-87004703bb2a", - "created_date": "2022-09-27T07:13:27.907Z", - "modified_date": "2022-09-27T07:13:27.907Z", - "deleted": false, - "name": "Dummy Camera 24", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 25, - "fields": { - "external_id": "51ce3355-1773-47c0-a929-54bb57293940", - "created_date": "2022-09-27T07:13:30.944Z", - "modified_date": "2022-09-27T07:13:30.944Z", - "deleted": false, - "name": "Dummy Camera 25", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 26, - "fields": { - "external_id": "567ddf56-f86a-488e-bdff-9c69daacb654", - "created_date": "2022-09-27T07:13:33.581Z", - "modified_date": "2022-09-27T07:13:33.581Z", - "deleted": false, - "name": "Dummy Camera 26", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 27, - "fields": { - "external_id": "234a8559-167b-4e61-9971-15dbc59b9319", - "created_date": "2022-09-27T07:13:37.020Z", - "modified_date": "2022-09-27T07:13:37.020Z", - "deleted": false, - "name": "Dummy Camera 27", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 28, - "fields": { - "external_id": "3f203a24-84ae-44c0-897a-1b3ddd42e072", - "created_date": "2022-09-27T07:13:39.951Z", - "modified_date": "2022-09-27T07:13:39.951Z", - "deleted": false, - "name": "Dummy Camera 28", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 29, - "fields": { - "external_id": "fc4c25cd-de00-494a-ad58-20e581520198", - "created_date": "2022-09-27T07:13:43.511Z", - "modified_date": "2022-09-27T07:13:43.511Z", - "deleted": false, - "name": "Dummy Camera 29", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.asset", - "pk": 30, - "fields": { - "external_id": "cb6f3bf8-cfea-498a-a4f1-effae723d6e0", - "created_date": "2022-09-27T07:13:46.850Z", - "modified_date": "2022-09-27T07:13:46.850Z", - "deleted": false, - "name": "Dummy Camera 30", - "description": "This is a dummy camera", - "asset_type": 50, - "asset_class": "ONVIF", - "status": 50, - "current_location": 1, - "is_working": true, - "not_working_reason": "", - "serial_number": "", - "warranty_details": "", - "meta": {}, - "vendor_name": "Vendors Inc.", - "support_name": "", - "support_phone": "+914578889765", - "support_email": "", - "qr_code_id": null, - "manufacturer": null, - "warranty_amc_end_of_validity": null, - "last_service": null - } - }, - { - "model": "facility.patientconsultation", - "pk": 1, - "fields": { - "external_id": "b5217729-3008-4a44-b347-72ba738d5f45", - "created_date": "2022-09-27T07:20:40.117Z", - "modified_date": "2022-09-27T07:20:40.123Z", - "deleted": false, - "patient": 1, - "patient_no": "88.99.44.66", - "facility": 1, - "symptoms": "3", - "other_symptoms": "", - "symptoms_onset_date": "2022-09-27T07:19:53.380Z", - "deprecated_covid_category": null, - "category": "Moderate", - "examination_details": "", - "history_of_present_illness": "", - "treatment_plan": "", - "consultation_notes": "Transfer", - "course_in_facility": null, - "investigation": [], - "prescriptions": {}, - "procedure": {}, - "suggestion": "R", - "route_to_facility": null, - "review_interval": -1, - "referred_to": 2, - "is_readmission": false, - "referred_to_external": "", - "admitted": false, - "encounter_date": null, - "discharge_date": null, - "discharge_reason": null, - "discharge_notes": "", - "discharge_prescription": {}, - "discharge_prn_prescription": {}, - "death_datetime": null, - "death_confirmed_doctor": "", - "bed_number": null, - "is_kasp": false, - "kasp_enabled_date": null, - "is_telemedicine": false, - "last_updated_by_telemedicine": false, - "assigned_to": null, - "deprecated_verified_by": "", - "treating_physician": null, - "created_by": 2, - "last_edited_by": 2, - "last_daily_round": null, - "current_bed": null, - "height": 0.0, - "weight": 0.0, - "operation": null, - "special_instruction": "", - "intubation_history": [], - "prn_prescription": [], - "discharge_advice": [] - } - }, - { - "model": "facility.bed", - "pk": 1, - "fields": { - "external_id": "260de825-7ef2-4155-8fd2-ae4d66980734", - "created_date": "2023-09-15T06:13:43.199Z", - "modified_date": "2023-09-15T06:13:43.199Z", - "deleted": false, - "name": "Dummy Bed 1", - "description": "", - "bed_type": 2, - "facility": 1, - "meta": {}, - "location": 2 - } - }, - { - "model": "facility.bed", - "pk": 2, - "fields": { - "external_id": "8ab99d71-7263-4c60-b6d4-b22e7f8dfecf", - "created_date": "2023-09-15T06:13:43.199Z", - "modified_date": "2023-09-15T06:13:43.199Z", - "deleted": false, - "name": "Dummy Bed 2", - "description": "", - "bed_type": 2, - "facility": 1, - "meta": {}, - "location": 2 - } - }, - { - "model": "facility.bed", - "pk": 3, - "fields": { - "external_id": "e7a9c643-4841-47f3-9729-4ccdadb9783a", - "created_date": "2023-09-15T06:13:43.200Z", - "modified_date": "2023-09-15T06:13:43.200Z", - "deleted": false, - "name": "Dummy Bed 3", - "description": "", - "bed_type": 2, - "facility": 1, - "meta": {}, - "location": 2 - } - }, - { - "model": "facility.bed", - "pk": 5, - "fields": { - "external_id": "fe749328-1a6a-43ae-b4c2-fb718b8ca84b", - "created_date": "2023-09-15T06:14:13.862Z", - "modified_date": "2023-09-15T06:14:13.862Z", - "deleted": false, - "name": "Dummy Bed 5", - "description": "", - "bed_type": 1, - "facility": 1, - "meta": {}, - "location": 1 - } - }, - { - "model": "facility.bed", - "pk": 7, - "fields": { - "external_id": "ddd0ce36-c4ff-409c-96d3-ea943ac876e4", - "created_date": "2023-09-15T06:14:45.458Z", - "modified_date": "2023-09-15T06:14:45.458Z", - "deleted": false, - "name": "Dummy Bed 6", - "description": "", - "bed_type": 6, - "facility": 1, - "meta": {}, - "location": 1 - } - }, - { - "model": "facility.bed", - "pk": 8, - "fields": { - "external_id": "90a90743-0a95-42c1-bdf2-b7fbf9b9edd1", - "created_date": "2023-09-15T06:14:56.105Z", - "modified_date": "2023-09-15T06:14:56.105Z", - "deleted": false, - "name": "Dummy Bed 4", - "description": "", - "bed_type": 2, - "facility": 1, - "meta": {}, - "location": 1 - } - }, - { - "model": "facility.facilityinventoryitemtag", - "pk": 1, - "fields": { - "name": "Safety" - } - }, - { - "model": "facility.facilityinventoryitemtag", - "pk": 2, - "fields": { - "name": "Medical" - } - }, - { - "model": "facility.facilityinventoryitemtag", - "pk": 3, - "fields": { - "name": "Food" - } - }, - { - "model": "facility.facilityinventoryunit", - "pk": 1, - "fields": { - "name": "Items" - } - }, - { - "model": "facility.facilityinventoryunit", - "pk": 2, - "fields": { - "name": "Dozen" - } - }, - { - "model": "facility.facilityinventoryunit", - "pk": 3, - "fields": { - "name": "Kilo Litre" - } - }, - { - "model": "facility.facilityinventoryunit", - "pk": 4, - "fields": { - "name": "Cylinders" - } - }, - { - "model": "facility.facilityinventoryunit", - "pk": 5, - "fields": { - "name": "kg" - } - }, - { - "model": "facility.facilityinventoryunit", - "pk": 6, - "fields": { - "name": "gram" - } - }, - { - "model": "facility.facilityinventoryunit", - "pk": 7, - "fields": { - "name": "Cubic Meter" - } - }, - { - "model": "facility.facilityinventoryunitconverter", - "pk": 1, - "fields": { - "from_unit": 5, - "to_unit": 6, - "multiplier": 1000.0 - } - }, - { - "model": "facility.facilityinventoryunitconverter", - "pk": 2, - "fields": { - "from_unit": 2, - "to_unit": 1, - "multiplier": 12.0 - } - }, - { - "model": "facility.facilityinventoryitem", - "pk": 1, - "fields": { - "name": "PPE", - "default_unit": 1, - "description": "", - "min_quantity": 150.0, - "allowed_units": [ - 1, - 2 - ], - "tags": [ - 1, - 2 - ] - } - }, - { - "model": "facility.facilityinventoryitem", - "pk": 2, - "fields": { - "name": "IV Fluid 500 ml", - "default_unit": 1, - "description": "", - "min_quantity": 2.0, - "allowed_units": [ - 1, - 2 - ], - "tags": [ - 2 - ] - } - }, - { - "model": "facility.facilityinventoryitem", - "pk": 3, - "fields": { - "name": "Liquid Oxygen", - "default_unit": 7, - "description": "", - "min_quantity": 10.0, - "allowed_units": [ - 7 - ], - "tags": [ - 2 - ] - } - }, - { - "model": "facility.facilityinventoryitem", - "pk": 4, - "fields": { - "name": "Jumbo D Type Oxygen Cylinder", - "default_unit": 4, - "description": "", - "min_quantity": 100.0, - "allowed_units": [ - 4 - ], - "tags": [] - } - }, - { - "model": "facility.facilityinventoryitem", - "pk": 5, - "fields": { - "name": "B Type Oxygen Cylinder", - "default_unit": 4, - "description": "", - "min_quantity": 100.0, - "allowed_units": [ - 4 - ], - "tags": [] - } - }, - { - "model": "facility.facilityinventoryitem", - "pk": 6, - "fields": { - "name": "C Type Oxygen Cylinder", - "default_unit": 4, - "description": "", - "min_quantity": 100.0, - "allowed_units": [ - 4 - ], - "tags": [] - } - }, - { - "model": "facility.facilityinventoryitem", - "pk": 7, - "fields": { - "name": "Gaseous Oxygen", - "default_unit": 7, - "description": "", - "min_quantity": 10.0, - "allowed_units": [ - 7 - ], - "tags": [ - 2 - ] - } - }, - { - "model": "facility.historicalpatientregistration", - "pk": 1, - "fields": { - "id": 1, - "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", - "created_date": "2022-09-27T07:19:20.379Z", - "modified_date": "2022-09-27T07:19:20.379Z", - "deleted": false, - "source": 10, - "name": "Dummy Patient", - "age": 120, - "gender": 1, - "phone_number": "+911234567896", - "emergency_phone_number": "+919898797775", - "address": "55.66.44.33", - "permanent_address": "55.66.44.33", - "pincode": 600115, - "date_of_birth": "1901-10-16", - "year_of_birth": 1901, - "nationality": "India", - "passport_no": "", - "is_medical_worker": false, - "blood_group": "O+", - "contact_with_confirmed_carrier": false, - "contact_with_suspected_carrier": false, - "estimated_contact_date": null, - "past_travel": false, - "countries_travelled_old": null, - "countries_travelled": null, - "date_of_return": null, - "allergies": "", - "present_health": "", - "ongoing_medication": "", - "has_SARI": false, - "is_antenatal": false, - "ward_old": "", - "is_migrant_worker": false, - "disease_status": 2, - "number_of_aged_dependents": 0, - "number_of_chronic_diseased_dependents": 0, - "action": 10, - "review_time": null, - "is_active": true, - "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", - "test_id": "", - "date_of_test": null, - "srf_id": "", - "test_type": 30, - "allow_transfer": false, - "will_donate_blood": null, - "fit_for_blood_donation": null, - "village": "", - "designation_of_health_care_worker": "", - "instituion_of_health_care_worker": "", - "transit_details": null, - "frontline_worker": null, - "date_of_result": null, - "number_of_primary_contacts": null, - "number_of_secondary_contacts": null, - "is_vaccinated": false, - "number_of_doses": 0, - "vaccine_name": null, - "covin_id": null, - "last_vaccinated_date": null, - "cluster_name": null, - "is_declared_positive": true, - "date_declared_positive": "2022-09-27T07:15:04.715Z", - "facility": 1, - "nearest_facility": null, - "ward": 1729, - "local_body": 95, - "district": 7, - "state": 1, - "last_edited": null, - "created_by": 2, - "last_consultation": null, - "assigned_to": null, - "abha_number": null, - "history_date": "2022-09-27T07:19:20.385Z", - "history_change_reason": null, - "history_type": "+", - "history_user": 2 - } - }, - { - "model": "facility.historicalpatientregistration", - "pk": 2, - "fields": { - "id": 1, - "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", - "created_date": "2022-09-27T07:19:20.379Z", - "modified_date": "2022-09-27T07:19:20.400Z", - "deleted": false, - "source": 10, - "name": "Dummy Patient", - "age": 120, - "gender": 1, - "phone_number": "+911234567896", - "emergency_phone_number": "+919898797775", - "address": "55.66.44.33", - "permanent_address": "55.66.44.33", - "pincode": 600115, - "date_of_birth": "1901-10-16", - "year_of_birth": 1901, - "nationality": "India", - "passport_no": "", - "is_medical_worker": false, - "blood_group": "O+", - "contact_with_confirmed_carrier": false, - "contact_with_suspected_carrier": false, - "estimated_contact_date": null, - "past_travel": false, - "countries_travelled_old": null, - "countries_travelled": null, - "date_of_return": null, - "allergies": "", - "present_health": "", - "ongoing_medication": "", - "has_SARI": false, - "is_antenatal": false, - "ward_old": "", - "is_migrant_worker": false, - "disease_status": 2, - "number_of_aged_dependents": 0, - "number_of_chronic_diseased_dependents": 0, - "action": 10, - "review_time": null, - "is_active": true, - "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", - "test_id": "", - "date_of_test": null, - "srf_id": "", - "test_type": 30, - "allow_transfer": false, - "will_donate_blood": null, - "fit_for_blood_donation": null, - "village": "", - "designation_of_health_care_worker": "", - "instituion_of_health_care_worker": "", - "transit_details": null, - "frontline_worker": null, - "date_of_result": null, - "number_of_primary_contacts": null, - "number_of_secondary_contacts": null, - "is_vaccinated": false, - "number_of_doses": 0, - "vaccine_name": null, - "covin_id": null, - "last_vaccinated_date": null, - "cluster_name": null, - "is_declared_positive": true, - "date_declared_positive": "2022-09-27T07:15:04.715Z", - "facility": 1, - "nearest_facility": null, - "ward": 1729, - "local_body": 95, - "district": 7, - "state": 1, - "last_edited": null, - "created_by": 2, - "last_consultation": null, - "assigned_to": null, - "abha_number": null, - "history_date": "2022-09-27T07:19:20.403Z", - "history_change_reason": null, - "history_type": "~", - "history_user": 2 - } - }, - { - "model": "facility.historicalpatientregistration", - "pk": 3, - "fields": { - "id": 1, - "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", - "created_date": "2022-09-27T07:19:20.379Z", - "modified_date": "2022-09-27T07:19:20.413Z", - "deleted": false, - "source": 10, - "name": "Dummy Patient", - "age": 120, - "gender": 1, - "phone_number": "+911234567896", - "emergency_phone_number": "+919898797775", - "address": "55.66.44.33", - "permanent_address": "55.66.44.33", - "pincode": 600115, - "date_of_birth": "1901-10-16", - "year_of_birth": 1901, - "nationality": "India", - "passport_no": "", - "is_medical_worker": false, - "blood_group": "O+", - "contact_with_confirmed_carrier": false, - "contact_with_suspected_carrier": false, - "estimated_contact_date": null, - "past_travel": false, - "countries_travelled_old": null, - "countries_travelled": null, - "date_of_return": null, - "allergies": "", - "present_health": "", - "ongoing_medication": "", - "has_SARI": false, - "is_antenatal": false, - "ward_old": "", - "is_migrant_worker": false, - "disease_status": 2, - "number_of_aged_dependents": 0, - "number_of_chronic_diseased_dependents": 0, - "action": 10, - "review_time": null, - "is_active": true, - "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", - "test_id": "", - "date_of_test": null, - "srf_id": "", - "test_type": 30, - "allow_transfer": false, - "will_donate_blood": null, - "fit_for_blood_donation": null, - "village": "", - "designation_of_health_care_worker": "", - "instituion_of_health_care_worker": "", - "transit_details": null, - "frontline_worker": null, - "date_of_result": null, - "number_of_primary_contacts": null, - "number_of_secondary_contacts": null, - "is_vaccinated": false, - "number_of_doses": 0, - "vaccine_name": null, - "covin_id": null, - "last_vaccinated_date": null, - "cluster_name": null, - "is_declared_positive": true, - "date_declared_positive": "2022-09-27T07:15:04.715Z", - "facility": 1, - "nearest_facility": null, - "ward": 1729, - "local_body": 95, - "district": 7, - "state": 1, - "last_edited": 2, - "created_by": 2, - "last_consultation": null, - "assigned_to": null, - "abha_number": null, - "history_date": "2022-09-27T07:19:20.415Z", - "history_change_reason": null, - "history_type": "~", - "history_user": 2 - } - }, - { - "model": "facility.historicalpatientregistration", - "pk": 4, - "fields": { - "id": 1, - "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", - "created_date": "2022-09-27T07:19:20.379Z", - "modified_date": "2022-09-27T07:20:40.135Z", - "deleted": false, - "source": 10, - "name": "Dummy Patient", - "age": 120, - "gender": 1, - "phone_number": "+911234567896", - "emergency_phone_number": "+919898797775", - "address": "55.66.44.33", - "permanent_address": "55.66.44.33", - "pincode": 600115, - "date_of_birth": "1901-10-16", - "year_of_birth": 1901, - "nationality": "India", - "passport_no": "", - "is_medical_worker": false, - "blood_group": "O+", - "contact_with_confirmed_carrier": false, - "contact_with_suspected_carrier": false, - "estimated_contact_date": null, - "past_travel": false, - "countries_travelled_old": null, - "countries_travelled": null, - "date_of_return": null, - "allergies": "", - "present_health": "", - "ongoing_medication": "", - "has_SARI": false, - "is_antenatal": false, - "ward_old": "", - "is_migrant_worker": false, - "disease_status": 2, - "number_of_aged_dependents": 0, - "number_of_chronic_diseased_dependents": 0, - "action": 10, - "review_time": null, - "is_active": true, - "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", - "test_id": "", - "date_of_test": null, - "srf_id": "", - "test_type": 30, - "allow_transfer": false, - "will_donate_blood": null, - "fit_for_blood_donation": null, - "village": "", - "designation_of_health_care_worker": "", - "instituion_of_health_care_worker": "", - "transit_details": null, - "frontline_worker": null, - "date_of_result": null, - "number_of_primary_contacts": null, - "number_of_secondary_contacts": null, - "is_vaccinated": false, - "number_of_doses": 0, - "vaccine_name": null, - "covin_id": null, - "last_vaccinated_date": null, - "cluster_name": null, - "is_declared_positive": true, - "date_declared_positive": "2022-09-27T07:15:04.715Z", - "facility": 1, - "nearest_facility": null, - "ward": 1729, - "local_body": 95, - "district": 7, - "state": 1, - "last_edited": 2, - "created_by": 2, - "last_consultation": 1, - "assigned_to": null, - "abha_number": null, - "history_date": "2022-09-27T07:20:40.139Z", - "history_change_reason": null, - "history_type": "~", - "history_user": 2 - } - }, - { - "model": "facility.historicalpatientregistration", - "pk": 5, - "fields": { - "id": 1, - "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", - "created_date": "2022-09-27T07:19:20.379Z", - "modified_date": "2022-09-27T07:22:00.563Z", - "deleted": false, - "source": 10, - "name": "Dummy Patient", - "age": 120, - "gender": 1, - "phone_number": "+911234567896", - "emergency_phone_number": "+919898797775", - "address": "55.66.44.33", - "permanent_address": "55.66.44.33", - "pincode": 600115, - "date_of_birth": "1901-10-16", - "year_of_birth": 1901, - "nationality": "India", - "passport_no": "", - "is_medical_worker": false, - "blood_group": "O+", - "contact_with_confirmed_carrier": false, - "contact_with_suspected_carrier": false, - "estimated_contact_date": null, - "past_travel": false, - "countries_travelled_old": null, - "countries_travelled": null, - "date_of_return": null, - "allergies": "", - "present_health": "", - "ongoing_medication": "", - "has_SARI": false, - "is_antenatal": false, - "ward_old": "", - "is_migrant_worker": false, - "disease_status": 2, - "number_of_aged_dependents": 0, - "number_of_chronic_diseased_dependents": 0, - "action": 10, - "review_time": null, - "is_active": true, - "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", - "test_id": "", - "date_of_test": null, - "srf_id": "", - "test_type": 30, - "allow_transfer": true, - "will_donate_blood": null, - "fit_for_blood_donation": null, - "village": "", - "designation_of_health_care_worker": "", - "instituion_of_health_care_worker": "", - "transit_details": null, - "frontline_worker": null, - "date_of_result": null, - "number_of_primary_contacts": null, - "number_of_secondary_contacts": null, - "is_vaccinated": false, - "number_of_doses": 0, - "vaccine_name": null, - "covin_id": null, - "last_vaccinated_date": null, - "cluster_name": null, - "is_declared_positive": true, - "date_declared_positive": "2022-09-27T07:15:04.715Z", - "facility": 1, - "nearest_facility": null, - "ward": 1729, - "local_body": 95, - "district": 7, - "state": 1, - "last_edited": 2, - "created_by": 2, - "last_consultation": 1, - "assigned_to": null, - "abha_number": null, - "history_date": "2022-09-27T07:22:00.566Z", - "history_change_reason": null, - "history_type": "~", - "history_user": 2 - } - }, - { - "model": "facility.patientregistration", - "pk": 1, - "fields": { - "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", - "created_date": "2022-09-27T07:19:20.379Z", - "modified_date": "2022-09-27T07:22:00.563Z", - "deleted": false, - "source": 10, - "facility": 1, - "nearest_facility": null, - "meta_info": null, - "name": "Dummy Patient", - "age": 120, - "gender": 1, - "phone_number": "+911234567896", - "emergency_phone_number": "+919898797775", - "address": "55.66.44.33", - "permanent_address": "55.66.44.33", - "pincode": 600115, - "date_of_birth": "1901-10-16", - "year_of_birth": 1901, - "nationality": "India", - "passport_no": "", - "is_medical_worker": false, - "blood_group": "O+", - "contact_with_confirmed_carrier": false, - "contact_with_suspected_carrier": false, - "estimated_contact_date": null, - "past_travel": false, - "countries_travelled_old": null, - "countries_travelled": null, - "date_of_return": null, - "allergies": "", - "present_health": "", - "ongoing_medication": "", - "has_SARI": false, - "is_antenatal": false, - "ward_old": "", - "ward": 1729, - "local_body": 95, - "district": 7, - "state": 1, - "is_migrant_worker": false, - "disease_status": 2, - "number_of_aged_dependents": 0, - "number_of_chronic_diseased_dependents": 0, - "last_edited": 2, - "action": 10, - "review_time": null, - "created_by": 2, - "is_active": true, - "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", - "test_id": "", - "date_of_test": null, - "srf_id": "", - "test_type": 30, - "allow_transfer": true, - "last_consultation": 1, - "will_donate_blood": null, - "fit_for_blood_donation": null, - "village": "", - "designation_of_health_care_worker": "", - "instituion_of_health_care_worker": "", - "transit_details": null, - "frontline_worker": null, - "date_of_result": null, - "number_of_primary_contacts": null, - "number_of_secondary_contacts": null, - "is_vaccinated": false, - "number_of_doses": 0, - "vaccine_name": null, - "covin_id": null, - "last_vaccinated_date": null, - "cluster_name": null, - "is_declared_positive": true, - "date_declared_positive": "2022-09-27T07:15:04.715Z", - "assigned_to": null, - "abha_number": null - } - }, - { - "model": "facility.disease", - "pk": 1, - "fields": { - "patient": 1, - "disease": 1, - "details": "", - "deleted": false - } - }, - { - "model": "facility.patientsample", - "pk": 1, - "fields": { - "external_id": "29689b96-6018-426f-984f-344fa5e3186b", - "created_date": "2022-09-27T07:23:29.568Z", - "modified_date": "2022-09-27T07:23:29.574Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 2, - "fields": { - "external_id": "ea48179e-90c5-450b-800d-c1866d2d3d74", - "created_date": "2022-09-27T07:25:39.605Z", - "modified_date": "2022-09-27T07:25:39.609Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 3, - "fields": { - "external_id": "dcaf07f9-8412-45bb-bb7c-1c232c28e9da", - "created_date": "2022-09-27T07:25:41.681Z", - "modified_date": "2022-09-27T07:25:41.685Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 4, - "fields": { - "external_id": "80868c78-4917-4401-b4b4-9eea49c47493", - "created_date": "2022-09-27T07:25:42.673Z", - "modified_date": "2022-09-27T07:25:42.676Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 5, - "fields": { - "external_id": "093863c4-1778-4464-9ee9-c408bef0bafe", - "created_date": "2022-09-27T07:25:43.611Z", - "modified_date": "2022-09-27T07:25:43.615Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 6, - "fields": { - "external_id": "5b015be7-ffb3-4f36-a08a-7510dd53ee7f", - "created_date": "2022-09-27T07:25:44.707Z", - "modified_date": "2022-09-27T07:25:44.711Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 7, - "fields": { - "external_id": "b8cb7a31-5480-4466-8388-de1eafa35ede", - "created_date": "2022-09-27T07:25:52.375Z", - "modified_date": "2022-09-27T07:25:52.379Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 8, - "fields": { - "external_id": "c04f9bd2-e11f-466e-8649-d80f9e5d8649", - "created_date": "2022-09-27T07:25:53.556Z", - "modified_date": "2022-09-27T07:25:53.559Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 9, - "fields": { - "external_id": "27001f33-e193-42d5-8809-61b2c63304a9", - "created_date": "2022-09-27T07:25:54.406Z", - "modified_date": "2022-09-27T07:25:54.410Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 10, - "fields": { - "external_id": "1a604325-11bf-44b7-985b-6222b6c37092", - "created_date": "2022-09-27T07:25:55.280Z", - "modified_date": "2022-09-27T07:25:55.284Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 11, - "fields": { - "external_id": "0bd4f6ff-e084-4d2c-9803-79b829682a1d", - "created_date": "2022-09-27T07:25:56.119Z", - "modified_date": "2022-09-27T07:25:56.123Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 12, - "fields": { - "external_id": "fecb4ef3-2889-47ca-8e08-6a27a5e77715", - "created_date": "2022-09-27T07:25:56.959Z", - "modified_date": "2022-09-27T07:25:56.964Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 13, - "fields": { - "external_id": "45186f6d-1ed5-454a-aadd-94ceaefacf20", - "created_date": "2022-09-27T07:25:57.875Z", - "modified_date": "2022-09-27T07:25:57.878Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 14, - "fields": { - "external_id": "bcbc2e7e-d2b8-4e5e-ab50-7c36a51c1e09", - "created_date": "2022-09-27T07:25:58.676Z", - "modified_date": "2022-09-27T07:25:58.681Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 15, - "fields": { - "external_id": "342639b4-f347-4f83-87d1-85c6d7968ee7", - "created_date": "2022-09-27T07:25:59.671Z", - "modified_date": "2022-09-27T07:25:59.674Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 16, - "fields": { - "external_id": "388099f9-f005-47c1-9be3-650ddda769a0", - "created_date": "2022-09-27T07:26:00.354Z", - "modified_date": "2022-09-27T07:26:00.358Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsample", - "pk": 17, - "fields": { - "external_id": "5aef7a72-5e2c-4a0f-b689-747aae8b0dce", - "created_date": "2022-09-27T07:26:00.860Z", - "modified_date": "2022-09-27T07:26:00.863Z", - "deleted": false, - "patient": 1, - "consultation": 1, - "sample_type": 1, - "sample_type_other": "", - "has_sari": false, - "has_ari": false, - "doctor_name": "NO DOCTOR SPECIFIED", - "diff_diagnosis": "", - "etiology_identified": "", - "is_atypical_presentation": false, - "atypical_presentation": "", - "is_unusual_course": false, - "icmr_category": 10, - "icmr_label": "Test", - "status": 1, - "result": 3, - "fast_track": "", - "date_of_sample": "2022-09-27T07:23:29.508Z", - "date_of_result": null, - "testing_facility": 1, - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 1, - "fields": { - "external_id": "64bf6eb2-055d-4a16-8c91-e7ce1390e541", - "created_date": "2022-09-27T07:23:29.580Z", - "modified_date": "2022-09-27T07:23:29.580Z", - "deleted": false, - "patient_sample": 1, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 2, - "fields": { - "external_id": "1f68131b-9aab-456f-b61b-eb0a93d521c4", - "created_date": "2022-09-27T07:25:39.613Z", - "modified_date": "2022-09-27T07:25:39.613Z", - "deleted": false, - "patient_sample": 2, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 3, - "fields": { - "external_id": "80ead199-cd58-44c3-97de-4142e3e7d7ac", - "created_date": "2022-09-27T07:25:41.689Z", - "modified_date": "2022-09-27T07:25:41.689Z", - "deleted": false, - "patient_sample": 3, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 4, - "fields": { - "external_id": "ebe8ffac-1ca0-40fe-80d3-b895e7524ce2", - "created_date": "2022-09-27T07:25:42.681Z", - "modified_date": "2022-09-27T07:25:42.681Z", - "deleted": false, - "patient_sample": 4, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 5, - "fields": { - "external_id": "ed7f8727-3784-40cd-97c6-49e9de3e2fdb", - "created_date": "2022-09-27T07:25:43.620Z", - "modified_date": "2022-09-27T07:25:43.620Z", - "deleted": false, - "patient_sample": 5, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 6, - "fields": { - "external_id": "f7a3695f-bfd4-4af5-9280-e2d54124286e", - "created_date": "2022-09-27T07:25:44.716Z", - "modified_date": "2022-09-27T07:25:44.716Z", - "deleted": false, - "patient_sample": 6, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 7, - "fields": { - "external_id": "a0cad511-4dad-4244-93c4-50277d6734c2", - "created_date": "2022-09-27T07:25:52.383Z", - "modified_date": "2022-09-27T07:25:52.383Z", - "deleted": false, - "patient_sample": 7, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 8, - "fields": { - "external_id": "f3ff09b9-1c79-4afc-bd3d-70eeecc87daa", - "created_date": "2022-09-27T07:25:53.564Z", - "modified_date": "2022-09-27T07:25:53.564Z", - "deleted": false, - "patient_sample": 8, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 9, - "fields": { - "external_id": "a03684c4-4769-4643-b457-8be382895e8b", - "created_date": "2022-09-27T07:25:54.414Z", - "modified_date": "2022-09-27T07:25:54.414Z", - "deleted": false, - "patient_sample": 9, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 10, - "fields": { - "external_id": "a62f7677-31af-42f6-94f9-fcb5e8ab94de", - "created_date": "2022-09-27T07:25:55.288Z", - "modified_date": "2022-09-27T07:25:55.288Z", - "deleted": false, - "patient_sample": 10, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 11, - "fields": { - "external_id": "e9dae65e-bca7-47fc-b490-8ef4de67e331", - "created_date": "2022-09-27T07:25:56.127Z", - "modified_date": "2022-09-27T07:25:56.127Z", - "deleted": false, - "patient_sample": 11, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 12, - "fields": { - "external_id": "e065bb9a-10d2-4bdd-b375-affa163dacdf", - "created_date": "2022-09-27T07:25:56.968Z", - "modified_date": "2022-09-27T07:25:56.968Z", - "deleted": false, - "patient_sample": 12, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 13, - "fields": { - "external_id": "dae215d0-bbfe-41e5-a6e2-20e4504eb068", - "created_date": "2022-09-27T07:25:57.883Z", - "modified_date": "2022-09-27T07:25:57.883Z", - "deleted": false, - "patient_sample": 13, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 14, - "fields": { - "external_id": "dabdd193-f800-4848-902b-b33b345252e5", - "created_date": "2022-09-27T07:25:58.686Z", - "modified_date": "2022-09-27T07:25:58.686Z", - "deleted": false, - "patient_sample": 14, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 15, - "fields": { - "external_id": "8a32a9f0-0686-4104-8fe7-27c7be6a4233", - "created_date": "2022-09-27T07:25:59.679Z", - "modified_date": "2022-09-27T07:25:59.679Z", - "deleted": false, - "patient_sample": 15, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 16, - "fields": { - "external_id": "db4ceed2-a7e5-4cb1-828b-085ddae5fa0a", - "created_date": "2022-09-27T07:26:00.363Z", - "modified_date": "2022-09-27T07:26:00.363Z", - "deleted": false, - "patient_sample": 16, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.patientsampleflow", - "pk": 17, - "fields": { - "external_id": "48b8eb3a-c901-429a-abbb-7e5aae0f9cd2", - "created_date": "2022-09-27T07:26:00.867Z", - "modified_date": "2022-09-27T07:26:00.867Z", - "deleted": false, - "patient_sample": 17, - "status": 1, - "notes": "created", - "created_by": 2 - } - }, - { - "model": "facility.shiftingrequest", - "pk": 1, - "fields": { - "external_id": "a0e4cf70-49b4-4e26-83fa-c2c962386885", - "created_date": "2022-09-27T07:22:00.581Z", - "modified_date": "2022-09-27T07:22:00.581Z", - "deleted": false, - "origin_facility": 1, - "shifting_approving_facility": 2, - "assigned_facility_type": 2, - "assigned_facility": null, - "assigned_facility_external": "", - "patient": 1, - "emergency": true, - "is_up_shift": true, - "reason": "Test", - "vehicle_preference": "", - "preferred_vehicle_choice": 10, - "comments": "", - "refering_facility_contact_name": "Someone at Facility", - "refering_facility_contact_number": "+914455666777", - "is_kasp": false, - "status": 10, - "breathlessness_level": 30, - "is_assigned_to_user": false, - "assigned_to": null, - "ambulance_driver_name": "", - "ambulance_phone_number": "", - "ambulance_number": "", - "created_by": 2, - "last_edited_by": 2 - } - }, - { - "model": "facility.facilityrelatedsummary", - "pk": "99627ad6-53e7-4585-821a-21ac6e765f7b", - "fields": { - "created_date": "2022-09-27T07:00:00.163Z", - "modified_date": "2022-09-27T07:25:00.165Z", - "facility": 1, - "s_type": "FacilityCapacity", - "data": { - "id": "81092ced-8720-44cb-b4c5-3f0ad0540153", - "name": "Dummy Facility 1", - "ward": 1, - "state": 1, - "address": "127.0.0.1", - "pincode": 670000, - "district": 7, - "features": [ - 1, - 2, - 3, - 4, - 5, - 6 - ], - "latitude": null, - "inventory": {}, - "longitude": null, - "local_body": 920, - "ward_object": { + "model": "facility.facility", + "pk": 1, + "fields": { + "external_id": "81092ced-8720-44cb-b4c5-3f0ad0540153", + "created_date": "2022-09-27T06:59:15.929Z", + "modified_date": "2022-09-27T06:59:15.929Z", + "deleted": false, + "name": "Dummy Facility 1", + "is_active": true, + "verified": false, + "facility_type": 2, + "kasp_empanelled": false, + "features": "1,2,3,4,5,6", + "longitude": null, + "latitude": null, + "pincode": 670000, + "address": "127.0.0.1", + "ward": 1, + "local_body": 920, + "district": 7, + "state": 1, + "oxygen_capacity": 0, + "type_b_cylinders": 0, + "type_c_cylinders": 0, + "type_d_cylinders": 0, + "expected_oxygen_requirement": 0, + "expected_type_b_cylinders": 0, + "expected_type_c_cylinders": 0, + "expected_type_d_cylinders": 0, + "phone_number": "+919999999888", + "corona_testing": false, + "created_by": 2, + "cover_image_url": null, + "middleware_address": null + } + }, + { + "model": "facility.facility", + "pk": 2, + "fields": { + "external_id": "fa33079d-727d-4295-b0fd-19153b36b2db", + "created_date": "2022-09-27T07:15:51.075Z", + "modified_date": "2022-09-27T07:15:51.075Z", + "deleted": false, + "name": "Dummy Shifting Center", + "is_active": true, + "verified": false, + "facility_type": 1300, + "kasp_empanelled": false, + "features": "1,6", + "longitude": null, + "latitude": null, + "pincode": 670112, + "address": "89.66.33.55", + "ward": 218, + "local_body": 12, + "district": 7, + "state": 1, + "oxygen_capacity": 0, + "type_b_cylinders": 0, + "type_c_cylinders": 0, + "type_d_cylinders": 0, + "expected_oxygen_requirement": 0, + "expected_type_b_cylinders": 0, + "expected_type_c_cylinders": 0, + "expected_type_d_cylinders": 0, + "phone_number": "+919876665987", + "corona_testing": false, + "created_by": 2, + "cover_image_url": null, + "middleware_address": null + } + }, + { + "model": "facility.facility", + "pk": 3, + "fields": { + "external_id": "4c293ecd-1aae-4ebc-9b5b-b53497dffac9", + "created_date": "2023-09-15T06:11:14.166Z", + "modified_date": "2023-09-15T06:11:14.166Z", + "deleted": false, + "name": "Dummy Request Approving Center", + "is_active": true, + "verified": false, + "facility_type": 1500, + "kasp_empanelled": false, + "features": "1,4,6", + "longitude": "78.6757364624373000", + "latitude": "21.4009146842158660", + "pincode": 670000, + "address": "Dummy Facility Address", + "ward": 7574, + "local_body": 431, + "district": 7, + "state": 1, + "oxygen_capacity": 0, + "type_b_cylinders": 0, + "type_c_cylinders": 0, + "type_d_cylinders": 0, + "expected_oxygen_requirement": 0, + "expected_type_b_cylinders": 0, + "expected_type_c_cylinders": 0, + "expected_type_d_cylinders": 0, + "phone_number": "+919999999888", + "corona_testing": false, + "created_by": 2, + "cover_image_url": null, + "middleware_address": null + } + }, + { + "model": "facility.facility", + "pk": 4, + "fields": { + "external_id": "e70e0b82-7a99-48c2-a735-41cdea3b4076", + "created_date": "2023-09-15T06:12:14.266Z", + "modified_date": "2023-09-15T06:12:14.266Z", + "deleted": false, + "name": "Dummy Request Fulfilment Center", + "is_active": true, + "verified": false, + "facility_type": 1510, + "kasp_empanelled": false, + "features": "1,3,5", + "longitude": "75.2139014820876600", + "latitude": "18.2774285038890340", + "pincode": 670000, + "address": "Dummy Facility Address 2", + "ward": 5412, + "local_body": 309, + "district": 7, + "state": 1, + "oxygen_capacity": 0, + "type_b_cylinders": 0, + "type_c_cylinders": 0, + "type_d_cylinders": 0, + "expected_oxygen_requirement": 0, + "expected_type_b_cylinders": 0, + "expected_type_c_cylinders": 0, + "expected_type_d_cylinders": 0, + "phone_number": "+918899885588", + "corona_testing": false, + "created_by": 2, + "cover_image_url": null, + "middleware_address": null + } + }, + { + "model": "facility.hospitaldoctors", + "pk": 1, + "fields": { + "external_id": "d68776c9-1197-411f-b19d-2069364b17a2", + "created_date": "2023-09-15T06:12:36.941Z", + "modified_date": "2023-09-15T06:12:36.941Z", + "deleted": false, + "facility": 4, + "area": 2, + "count": 5 + } + }, + { + "model": "facility.hospitaldoctors", + "pk": 2, + "fields": { + "external_id": "df1ef651-4e4f-4a0a-9df7-55e5949468ce", + "created_date": "2023-09-15T06:12:54.835Z", + "modified_date": "2023-09-15T06:12:54.835Z", + "deleted": false, + "facility": 3, + "area": 3, + "count": 4 + } + }, + { + "model": "facility.historicalfacilitycapacity", + "pk": 1, + "fields": { "id": 1, - "name": "NEERICODE WEST", - "number": 1, - "local_body": 920 - }, - "availability": [ - { - "id": "bfb7a4d8-6bf0-46d6-bf20-d5020850ea55", - "room_type": 150, - "modified_date": "2022-09-27T12:30:19.399000+05:30", - "room_type_text": "Oxygen beds", - "total_capacity": 1000, - "current_capacity": 20 - } - ], - "created_date": "2022-09-27T12:29:15.929000+05:30", - "phone_number": "+919999999888", - "state_object": { + "external_id": "bfb7a4d8-6bf0-46d6-bf20-d5020850ea55", + "created_date": "2022-09-27T07:00:19.399Z", + "modified_date": "2022-09-27T07:00:19.399Z", + "deleted": false, + "room_type": 150, + "total_capacity": 1000, + "current_capacity": 20, + "facility": 1, + "history_date": "2022-09-27T07:00:19.400Z", + "history_change_reason": null, + "history_type": "+", + "history_user": 2 + } + }, + { + "model": "facility.historicalfacilitycapacity", + "pk": 2, + "fields": { + "id": 2, + "external_id": "52bd4e97-9064-4697-8fea-37e0a2b8c87c", + "created_date": "2022-09-27T07:16:52.525Z", + "modified_date": "2022-09-27T07:16:52.525Z", + "deleted": false, + "room_type": 150, + "total_capacity": 20, + "current_capacity": 1, + "facility": 2, + "history_date": "2022-09-27T07:16:52.526Z", + "history_change_reason": null, + "history_type": "+", + "history_user": 2 + } + }, + { + "model": "facility.historicalfacilitycapacity", + "pk": 3, + "fields": { + "id": 3, + "external_id": "4fed54e3-672b-412c-998f-a7d8f303016c", + "created_date": "2023-09-15T06:12:31.548Z", + "modified_date": "2023-09-15T06:12:31.548Z", + "deleted": false, + "room_type": 150, + "total_capacity": 12, + "current_capacity": 2, + "facility": 4, + "history_date": "2023-09-15T06:12:31.550Z", + "history_change_reason": null, + "history_type": "+", + "history_user": 2 + } + }, + { + "model": "facility.historicalfacilitycapacity", + "pk": 4, + "fields": { + "id": 4, + "external_id": "c7d64165-8097-4dec-a4df-616647e70c31", + "created_date": "2023-09-15T06:12:50.165Z", + "modified_date": "2023-09-15T06:12:50.165Z", + "deleted": false, + "room_type": 20, + "total_capacity": 31, + "current_capacity": 2, + "facility": 3, + "history_date": "2023-09-15T06:12:50.166Z", + "history_change_reason": null, + "history_type": "+", + "history_user": 2 + } + }, + { + "model": "facility.facilitycapacity", + "pk": 1, + "fields": { + "external_id": "bfb7a4d8-6bf0-46d6-bf20-d5020850ea55", + "created_date": "2022-09-27T07:00:19.399Z", + "modified_date": "2022-09-27T07:00:19.399Z", + "deleted": false, + "facility": 1, + "room_type": 150, + "total_capacity": 1000, + "current_capacity": 20 + } + }, + { + "model": "facility.facilitycapacity", + "pk": 2, + "fields": { + "external_id": "52bd4e97-9064-4697-8fea-37e0a2b8c87c", + "created_date": "2022-09-27T07:16:52.525Z", + "modified_date": "2022-09-27T07:16:52.525Z", + "deleted": false, + "facility": 2, + "room_type": 150, + "total_capacity": 20, + "current_capacity": 1 + } + }, + { + "model": "facility.facilitycapacity", + "pk": 3, + "fields": { + "external_id": "4fed54e3-672b-412c-998f-a7d8f303016c", + "created_date": "2023-09-15T06:12:31.548Z", + "modified_date": "2023-09-15T06:12:31.548Z", + "deleted": false, + "facility": 4, + "room_type": 150, + "total_capacity": 12, + "current_capacity": 2 + } + }, + { + "model": "facility.facilitycapacity", + "pk": 4, + "fields": { + "external_id": "c7d64165-8097-4dec-a4df-616647e70c31", + "created_date": "2023-09-15T06:12:50.165Z", + "modified_date": "2023-09-15T06:12:50.165Z", + "deleted": false, + "facility": 3, + "room_type": 20, + "total_capacity": 31, + "current_capacity": 2 + } + }, + { + "model": "facility.facilityuser", + "pk": 1, + "fields": { + "facility": 1, + "user": 2, + "created_by": 2 + } + }, + { + "model": "facility.facilityuser", + "pk": 2, + "fields": { + "facility": 2, + "user": 2, + "created_by": 2 + } + }, + { + "model": "facility.facilityuser", + "pk": 3, + "fields": { + "facility": 1, + "user": 21, + "created_by": 2 + } + }, + { + "model": "facility.facilityuser", + "pk": 4, + "fields": { + "facility": 1, + "user": 22, + "created_by": 2 + } + }, + { + "model": "facility.facilityuser", + "pk": 5, + "fields": { + "facility": 3, + "user": 2, + "created_by": 2 + } + }, + { + "model": "facility.facilityuser", + "pk": 6, + "fields": { + "facility": 4, + "user": 2, + "created_by": 2 + } + }, + { + "model": "facility.assetlocation", + "pk": 1, + "fields": { + "external_id": "c3ab727f-dc3f-4a11-bf8d-2472bd79b5f7", + "created_date": "2022-09-27T07:02:07.969Z", + "modified_date": "2022-09-27T07:02:07.969Z", + "deleted": false, + "name": "Camera Locations", + "description": "", + "location_type": 1, + "facility": 1 + } + }, + { + "model": "facility.assetlocation", + "pk": 2, + "fields": { + "external_id": "a5cd0a56-cd5a-425c-9a87-cf79c0a90887", + "created_date": "2023-09-15T06:13:24.614Z", + "modified_date": "2023-09-15T06:13:24.614Z", + "deleted": false, + "name": "Dummy Location 1", + "description": "", + "location_type": 1, + "facility": 1 + } + }, + { + "model": "facility.asset", + "pk": 1, + "fields": { + "external_id": "ae4290a0-e86a-48d7-9c82-60b7d6514707", + "created_date": "2022-09-27T07:03:57.401Z", + "modified_date": "2022-09-27T07:03:57.401Z", + "deleted": false, + "name": "Dummy Camera 1", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 2, + "fields": { + "external_id": "7c06ec3c-838d-447a-bf36-d20239c8442f", + "created_date": "2022-09-27T07:04:30.802Z", + "modified_date": "2022-09-27T07:04:30.802Z", + "deleted": false, + "name": "Dummy Camera 2", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 3, + "fields": { + "external_id": "46740927-f782-49aa-bf6e-52a1208e8d18", + "created_date": "2022-09-27T07:04:35.291Z", + "modified_date": "2022-09-27T07:04:35.291Z", + "deleted": false, + "name": "Dummy Camera 3", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 4, + "fields": { + "external_id": "d6e9e071-e67e-4fbc-a872-4c3b1b9f749f", + "created_date": "2022-09-27T07:04:38.335Z", + "modified_date": "2022-09-27T07:04:38.335Z", + "deleted": false, + "name": "Dummy Camera 4", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 5, + "fields": { + "external_id": "35a2200d-6c1a-4c53-936c-60ebec1f9d42", + "created_date": "2022-09-27T07:04:41.179Z", + "modified_date": "2022-09-27T07:04:41.179Z", + "deleted": false, + "name": "Dummy Camera 5", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 6, + "fields": { + "external_id": "db1c2f95-5ae9-4e64-b647-30250beb79c7", + "created_date": "2022-09-27T07:04:43.869Z", + "modified_date": "2022-09-27T07:04:43.870Z", + "deleted": false, + "name": "Dummy Camera 6", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 7, + "fields": { + "external_id": "604ec344-a7d1-4523-8a6f-3e78cd3409ef", + "created_date": "2022-09-27T07:04:46.610Z", + "modified_date": "2022-09-27T07:04:46.610Z", + "deleted": false, + "name": "Dummy Camera 7", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 8, + "fields": { + "external_id": "271ace96-6bc6-4d32-916b-6b69eb81e4c3", + "created_date": "2022-09-27T07:04:49.732Z", + "modified_date": "2022-09-27T07:04:49.732Z", + "deleted": false, + "name": "Dummy Camera 8", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 9, + "fields": { + "external_id": "fe2f171f-0c69-4305-be60-0db625d0e38e", + "created_date": "2022-09-27T07:04:52.832Z", + "modified_date": "2022-09-27T07:04:52.832Z", + "deleted": false, + "name": "Dummy Camera 9", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 10, + "fields": { + "external_id": "cf77edb2-e771-46db-a73d-80ac2b446987", + "created_date": "2022-09-27T07:04:55.942Z", + "modified_date": "2022-09-27T07:04:55.942Z", + "deleted": false, + "name": "Dummy Camera 10", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 11, + "fields": { + "external_id": "2a19c4a9-84a2-41c8-ac0d-bbbc35e5f18d", + "created_date": "2022-09-27T07:04:58.599Z", + "modified_date": "2022-09-27T07:04:58.599Z", + "deleted": false, + "name": "Dummy Camera 11", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 12, + "fields": { + "external_id": "efb41cef-4d39-477f-b437-7ec9e4406971", + "created_date": "2022-09-27T07:05:01.182Z", + "modified_date": "2022-09-27T07:05:01.182Z", + "deleted": false, + "name": "Dummy Camera 12", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 13, + "fields": { + "external_id": "875b2bd3-67a8-4968-a589-d62c656cacb9", + "created_date": "2022-09-27T07:05:03.955Z", + "modified_date": "2022-09-27T07:05:03.955Z", + "deleted": false, + "name": "Dummy Camera 13", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 14, + "fields": { + "external_id": "b9ff3001-ed15-4538-bb54-78d0b2be445f", + "created_date": "2022-09-27T07:05:07.194Z", + "modified_date": "2022-09-27T07:05:07.194Z", + "deleted": false, + "name": "Dummy Camera 14", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 15, + "fields": { + "external_id": "a9678d31-17a9-4474-be01-c095553e97b5", + "created_date": "2022-09-27T07:05:10.384Z", + "modified_date": "2022-09-27T07:05:10.384Z", + "deleted": false, + "name": "Dummy Camera 15", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 16, + "fields": { + "external_id": "b0e4063e-3f05-4f94-aea0-e15e9e474f96", + "created_date": "2022-09-27T07:05:13.857Z", + "modified_date": "2022-09-27T07:05:13.857Z", + "deleted": false, + "name": "Dummy Camera 16", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 17, + "fields": { + "external_id": "634e1421-f1a7-41d1-bde2-13d1ee7eabf4", + "created_date": "2022-09-27T07:05:16.707Z", + "modified_date": "2022-09-27T07:05:16.707Z", + "deleted": false, + "name": "Dummy Camera 17", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 18, + "fields": { + "external_id": "17992979-d18a-46c6-a48f-c7f0f40f85c3", + "created_date": "2022-09-27T07:05:19.781Z", + "modified_date": "2022-09-27T07:05:19.781Z", + "deleted": false, + "name": "Dummy Camera 18", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 19, + "fields": { + "external_id": "c6e2c6c3-ba16-4c69-b1f8-822d28317268", + "created_date": "2022-09-27T07:13:12.608Z", + "modified_date": "2022-09-27T07:13:12.608Z", + "deleted": false, + "name": "Dummy Camera 19", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 20, + "fields": { + "external_id": "cb375e24-a98c-45ed-85c4-bdd340625357", + "created_date": "2022-09-27T07:13:16.362Z", + "modified_date": "2022-09-27T07:13:16.362Z", + "deleted": false, + "name": "Dummy Camera 20", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 21, + "fields": { + "external_id": "36a0d62c-9f2d-465f-ad9f-772ec7a342d0", + "created_date": "2022-09-27T07:13:19.599Z", + "modified_date": "2022-09-27T07:13:19.599Z", + "deleted": false, + "name": "Dummy Camera 21", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 22, + "fields": { + "external_id": "e24d8936-e4f3-4f30-870e-8bc560be66f2", + "created_date": "2022-09-27T07:13:22.225Z", + "modified_date": "2022-09-27T07:13:22.225Z", + "deleted": false, + "name": "Dummy Camera 22", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 23, + "fields": { + "external_id": "cc0ebf9e-0fe1-45ff-9954-4b92fc072846", + "created_date": "2022-09-27T07:13:25.053Z", + "modified_date": "2022-09-27T07:13:25.053Z", + "deleted": false, + "name": "Dummy Camera 23", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 24, + "fields": { + "external_id": "b10bed38-4a06-473a-85f8-87004703bb2a", + "created_date": "2022-09-27T07:13:27.907Z", + "modified_date": "2022-09-27T07:13:27.907Z", + "deleted": false, + "name": "Dummy Camera 24", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 25, + "fields": { + "external_id": "51ce3355-1773-47c0-a929-54bb57293940", + "created_date": "2022-09-27T07:13:30.944Z", + "modified_date": "2022-09-27T07:13:30.944Z", + "deleted": false, + "name": "Dummy Camera 25", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 26, + "fields": { + "external_id": "567ddf56-f86a-488e-bdff-9c69daacb654", + "created_date": "2022-09-27T07:13:33.581Z", + "modified_date": "2022-09-27T07:13:33.581Z", + "deleted": false, + "name": "Dummy Camera 26", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 27, + "fields": { + "external_id": "234a8559-167b-4e61-9971-15dbc59b9319", + "created_date": "2022-09-27T07:13:37.020Z", + "modified_date": "2022-09-27T07:13:37.020Z", + "deleted": false, + "name": "Dummy Camera 27", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 28, + "fields": { + "external_id": "3f203a24-84ae-44c0-897a-1b3ddd42e072", + "created_date": "2022-09-27T07:13:39.951Z", + "modified_date": "2022-09-27T07:13:39.951Z", + "deleted": false, + "name": "Dummy Camera 28", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 29, + "fields": { + "external_id": "fc4c25cd-de00-494a-ad58-20e581520198", + "created_date": "2022-09-27T07:13:43.511Z", + "modified_date": "2022-09-27T07:13:43.511Z", + "deleted": false, + "name": "Dummy Camera 29", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.asset", + "pk": 30, + "fields": { + "external_id": "cb6f3bf8-cfea-498a-a4f1-effae723d6e0", + "created_date": "2022-09-27T07:13:46.850Z", + "modified_date": "2022-09-27T07:13:46.850Z", + "deleted": false, + "name": "Dummy Camera 30", + "description": "This is a dummy camera", + "asset_type": 50, + "asset_class": "ONVIF", + "status": 50, + "current_location": 1, + "is_working": true, + "not_working_reason": "", + "serial_number": "", + "warranty_details": "", + "meta": {}, + "vendor_name": "Vendors Inc.", + "support_name": "", + "support_phone": "+914578889765", + "support_email": "", + "qr_code_id": null, + "manufacturer": null, + "warranty_amc_end_of_validity": null, + "last_service": null + } + }, + { + "model": "facility.patientconsultation", + "pk": 1, + "fields": { + "external_id": "b5217729-3008-4a44-b347-72ba738d5f45", + "created_date": "2022-09-27T07:20:40.117Z", + "modified_date": "2022-09-27T07:20:40.123Z", + "deleted": false, + "patient": 1, + "patient_no": "88.99.44.66", + "facility": 1, + "symptoms": "3", + "other_symptoms": "", + "symptoms_onset_date": "2022-09-27T07:19:53.380Z", + "deprecated_covid_category": null, + "category": "Moderate", + "examination_details": "", + "history_of_present_illness": "", + "treatment_plan": "", + "consultation_notes": "Transfer", + "course_in_facility": null, + "investigation": [], + "prescriptions": {}, + "procedure": {}, + "suggestion": "R", + "route_to_facility": null, + "review_interval": -1, + "referred_to": 2, + "is_readmission": false, + "referred_to_external": "", + "admitted": false, + "encounter_date": null, + "discharge_date": null, + "discharge_reason": null, + "discharge_notes": "", + "discharge_prescription": {}, + "discharge_prn_prescription": {}, + "death_datetime": null, + "death_confirmed_doctor": "", + "bed_number": null, + "is_kasp": false, + "kasp_enabled_date": null, + "is_telemedicine": false, + "last_updated_by_telemedicine": false, + "assigned_to": null, + "deprecated_verified_by": "", + "treating_physician": null, + "created_by": 2, + "last_edited_by": 2, + "last_daily_round": null, + "current_bed": null, + "height": 0.0, + "weight": 0.0, + "operation": null, + "special_instruction": "", + "intubation_history": [], + "prn_prescription": [], + "discharge_advice": [] + } + }, + { + "model": "facility.bed", + "pk": 1, + "fields": { + "external_id": "260de825-7ef2-4155-8fd2-ae4d66980734", + "created_date": "2023-09-15T06:13:43.199Z", + "modified_date": "2023-09-15T06:13:43.199Z", + "deleted": false, + "name": "Dummy Bed 1", + "description": "", + "bed_type": 2, + "facility": 1, + "meta": {}, + "location": 2 + } + }, + { + "model": "facility.bed", + "pk": 2, + "fields": { + "external_id": "8ab99d71-7263-4c60-b6d4-b22e7f8dfecf", + "created_date": "2023-09-15T06:13:43.199Z", + "modified_date": "2023-09-15T06:13:43.199Z", + "deleted": false, + "name": "Dummy Bed 2", + "description": "", + "bed_type": 2, + "facility": 1, + "meta": {}, + "location": 2 + } + }, + { + "model": "facility.bed", + "pk": 3, + "fields": { + "external_id": "e7a9c643-4841-47f3-9729-4ccdadb9783a", + "created_date": "2023-09-15T06:13:43.200Z", + "modified_date": "2023-09-15T06:13:43.200Z", + "deleted": false, + "name": "Dummy Bed 3", + "description": "", + "bed_type": 2, + "facility": 1, + "meta": {}, + "location": 2 + } + }, + { + "model": "facility.bed", + "pk": 5, + "fields": { + "external_id": "fe749328-1a6a-43ae-b4c2-fb718b8ca84b", + "created_date": "2023-09-15T06:14:13.862Z", + "modified_date": "2023-09-15T06:14:13.862Z", + "deleted": false, + "name": "Dummy Bed 5", + "description": "", + "bed_type": 1, + "facility": 1, + "meta": {}, + "location": 1 + } + }, + { + "model": "facility.bed", + "pk": 7, + "fields": { + "external_id": "ddd0ce36-c4ff-409c-96d3-ea943ac876e4", + "created_date": "2023-09-15T06:14:45.458Z", + "modified_date": "2023-09-15T06:14:45.458Z", + "deleted": false, + "name": "Dummy Bed 6", + "description": "", + "bed_type": 6, + "facility": 1, + "meta": {}, + "location": 1 + } + }, + { + "model": "facility.bed", + "pk": 8, + "fields": { + "external_id": "90a90743-0a95-42c1-bdf2-b7fbf9b9edd1", + "created_date": "2023-09-15T06:14:56.105Z", + "modified_date": "2023-09-15T06:14:56.105Z", + "deleted": false, + "name": "Dummy Bed 4", + "description": "", + "bed_type": 2, + "facility": 1, + "meta": {}, + "location": 1 + } + }, + { + "model": "facility.facilityinventoryitemtag", + "pk": 1, + "fields": { + "name": "Safety" + } + }, + { + "model": "facility.facilityinventoryitemtag", + "pk": 2, + "fields": { + "name": "Medical" + } + }, + { + "model": "facility.facilityinventoryitemtag", + "pk": 3, + "fields": { + "name": "Food" + } + }, + { + "model": "facility.facilityinventoryunit", + "pk": 1, + "fields": { + "name": "Items" + } + }, + { + "model": "facility.facilityinventoryunit", + "pk": 2, + "fields": { + "name": "Dozen" + } + }, + { + "model": "facility.facilityinventoryunit", + "pk": 3, + "fields": { + "name": "Kilo Litre" + } + }, + { + "model": "facility.facilityinventoryunit", + "pk": 4, + "fields": { + "name": "Cylinders" + } + }, + { + "model": "facility.facilityinventoryunit", + "pk": 5, + "fields": { + "name": "kg" + } + }, + { + "model": "facility.facilityinventoryunit", + "pk": 6, + "fields": { + "name": "gram" + } + }, + { + "model": "facility.facilityinventoryunit", + "pk": 7, + "fields": { + "name": "Cubic Meter" + } + }, + { + "model": "facility.facilityinventoryunitconverter", + "pk": 1, + "fields": { + "from_unit": 5, + "to_unit": 6, + "multiplier": 1000.0 + } + }, + { + "model": "facility.facilityinventoryunitconverter", + "pk": 2, + "fields": { + "from_unit": 2, + "to_unit": 1, + "multiplier": 12.0 + } + }, + { + "model": "facility.facilityinventoryitem", + "pk": 1, + "fields": { + "name": "PPE", + "default_unit": 1, + "description": "", + "min_quantity": 150.0, + "allowed_units": [ + 1, + 2 + ], + "tags": [ + 1, + 2 + ] + } + }, + { + "model": "facility.facilityinventoryitem", + "pk": 2, + "fields": { + "name": "IV Fluid 500 ml", + "default_unit": 1, + "description": "", + "min_quantity": 2.0, + "allowed_units": [ + 1, + 2 + ], + "tags": [ + 2 + ] + } + }, + { + "model": "facility.facilityinventoryitem", + "pk": 3, + "fields": { + "name": "Liquid Oxygen", + "default_unit": 7, + "description": "", + "min_quantity": 10.0, + "allowed_units": [ + 7 + ], + "tags": [ + 2 + ] + } + }, + { + "model": "facility.facilityinventoryitem", + "pk": 4, + "fields": { + "name": "Jumbo D Type Oxygen Cylinder", + "default_unit": 4, + "description": "", + "min_quantity": 100.0, + "allowed_units": [ + 4 + ], + "tags": [] + } + }, + { + "model": "facility.facilityinventoryitem", + "pk": 5, + "fields": { + "name": "B Type Oxygen Cylinder", + "default_unit": 4, + "description": "", + "min_quantity": 100.0, + "allowed_units": [ + 4 + ], + "tags": [] + } + }, + { + "model": "facility.facilityinventoryitem", + "pk": 6, + "fields": { + "name": "C Type Oxygen Cylinder", + "default_unit": 4, + "description": "", + "min_quantity": 100.0, + "allowed_units": [ + 4 + ], + "tags": [] + } + }, + { + "model": "facility.facilityinventoryitem", + "pk": 7, + "fields": { + "name": "Gaseous Oxygen", + "default_unit": 7, + "description": "", + "min_quantity": 10.0, + "allowed_units": [ + 7 + ], + "tags": [ + 2 + ] + } + }, + { + "model": "facility.historicalpatientregistration", + "pk": 1, + "fields": { "id": 1, - "name": "Kerala" - }, - "facility_type": "Private Hospital", - "modified_date": "2022-09-27T12:29:15.929000+05:30", - "district_object": { - "id": 7, - "name": "Ernakulam", - "state": 1 - }, - "kasp_empanelled": false, - "oxygen_capacity": 0, - "type_b_cylinders": 0, - "type_c_cylinders": 0, - "type_d_cylinders": 0, - "local_body_object": { - "id": 920, - "name": "Alangad  Grama Panchayat, Ernakulam District", + "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", + "created_date": "2022-09-27T07:19:20.379Z", + "modified_date": "2022-09-27T07:19:20.379Z", + "deleted": false, + "source": 10, + "name": "Dummy Patient", + "age": 120, + "gender": 1, + "phone_number": "+911234567896", + "emergency_phone_number": "+919898797775", + "address": "55.66.44.33", + "permanent_address": "55.66.44.33", + "pincode": 600115, + "date_of_birth": "1901-10-16", + "year_of_birth": 1901, + "nationality": "India", + "passport_no": "", + "is_medical_worker": false, + "blood_group": "O+", + "contact_with_confirmed_carrier": false, + "contact_with_suspected_carrier": false, + "estimated_contact_date": null, + "past_travel": false, + "countries_travelled_old": null, + "countries_travelled": null, + "date_of_return": null, + "allergies": "", + "present_health": "", + "ongoing_medication": "", + "has_SARI": false, + "is_antenatal": false, + "ward_old": "", + "is_migrant_worker": false, + "disease_status": 2, + "number_of_aged_dependents": 0, + "number_of_chronic_diseased_dependents": 0, + "action": 10, + "review_time": null, + "is_active": true, + "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", + "test_id": "", + "date_of_test": null, + "srf_id": "", + "test_type": 30, + "allow_transfer": false, + "will_donate_blood": null, + "fit_for_blood_donation": null, + "village": "", + "designation_of_health_care_worker": "", + "instituion_of_health_care_worker": "", + "transit_details": null, + "frontline_worker": null, + "date_of_result": null, + "number_of_primary_contacts": null, + "number_of_secondary_contacts": null, + "is_vaccinated": false, + "number_of_doses": 0, + "vaccine_name": null, + "covin_id": null, + "last_vaccinated_date": null, + "cluster_name": null, + "is_declared_positive": true, + "date_declared_positive": "2022-09-27T07:15:04.715Z", + "facility": 1, + "nearest_facility": null, + "ward": 1729, + "local_body": 95, "district": 7, - "body_type": 1, - "localbody_code": "G070203" - }, - "actual_live_patients": 1, - "read_cover_image_url": null, - "expected_type_b_cylinders": 0, - "expected_type_c_cylinders": 0, - "expected_type_d_cylinders": 0, - "actual_discharged_patients": 0, - "expected_oxygen_requirement": 0 - } - } - }, - { - "model": "facility.facilityrelatedsummary", - "pk": "e294a2c2-3b05-469f-b975-e7766201df13", - "fields": { - "created_date": "2022-09-27T07:20:00.162Z", - "modified_date": "2022-09-27T07:25:00.171Z", - "facility": 2, - "s_type": "FacilityCapacity", - "data": { - "id": "fa33079d-727d-4295-b0fd-19153b36b2db", - "name": "Dummy Shifting Center", - "ward": 218, - "state": 1, - "address": "89.66.33.55", - "pincode": 670112, - "district": 7, - "features": [ - 1, - 6 - ], - "latitude": null, - "inventory": {}, - "longitude": null, - "local_body": 12, - "ward_object": { - "id": 218, - "name": "VALAMBOOR", - "number": 2, - "local_body": 12 - }, - "availability": [ - { - "id": "52bd4e97-9064-4697-8fea-37e0a2b8c87c", - "room_type": 150, - "modified_date": "2022-09-27T12:46:52.525280+05:30", - "room_type_text": "Oxygen beds", - "total_capacity": 20, - "current_capacity": 1 - } - ], - "created_date": "2022-09-27T12:45:51.075776+05:30", - "phone_number": "+919876665987", - "state_object": { + "state": 1, + "last_edited": null, + "created_by": 2, + "last_consultation": null, + "assigned_to": null, + "abha_number": null, + "history_date": "2022-09-27T07:19:20.385Z", + "history_change_reason": null, + "history_type": "+", + "history_user": 2 + } + }, + { + "model": "facility.historicalpatientregistration", + "pk": 2, + "fields": { + "id": 1, + "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", + "created_date": "2022-09-27T07:19:20.379Z", + "modified_date": "2022-09-27T07:19:20.400Z", + "deleted": false, + "source": 10, + "name": "Dummy Patient", + "age": 120, + "gender": 1, + "phone_number": "+911234567896", + "emergency_phone_number": "+919898797775", + "address": "55.66.44.33", + "permanent_address": "55.66.44.33", + "pincode": 600115, + "date_of_birth": "1901-10-16", + "year_of_birth": 1901, + "nationality": "India", + "passport_no": "", + "is_medical_worker": false, + "blood_group": "O+", + "contact_with_confirmed_carrier": false, + "contact_with_suspected_carrier": false, + "estimated_contact_date": null, + "past_travel": false, + "countries_travelled_old": null, + "countries_travelled": null, + "date_of_return": null, + "allergies": "", + "present_health": "", + "ongoing_medication": "", + "has_SARI": false, + "is_antenatal": false, + "ward_old": "", + "is_migrant_worker": false, + "disease_status": 2, + "number_of_aged_dependents": 0, + "number_of_chronic_diseased_dependents": 0, + "action": 10, + "review_time": null, + "is_active": true, + "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", + "test_id": "", + "date_of_test": null, + "srf_id": "", + "test_type": 30, + "allow_transfer": false, + "will_donate_blood": null, + "fit_for_blood_donation": null, + "village": "", + "designation_of_health_care_worker": "", + "instituion_of_health_care_worker": "", + "transit_details": null, + "frontline_worker": null, + "date_of_result": null, + "number_of_primary_contacts": null, + "number_of_secondary_contacts": null, + "is_vaccinated": false, + "number_of_doses": 0, + "vaccine_name": null, + "covin_id": null, + "last_vaccinated_date": null, + "cluster_name": null, + "is_declared_positive": true, + "date_declared_positive": "2022-09-27T07:15:04.715Z", + "facility": 1, + "nearest_facility": null, + "ward": 1729, + "local_body": 95, + "district": 7, + "state": 1, + "last_edited": null, + "created_by": 2, + "last_consultation": null, + "assigned_to": null, + "abha_number": null, + "history_date": "2022-09-27T07:19:20.403Z", + "history_change_reason": null, + "history_type": "~", + "history_user": 2 + } + }, + { + "model": "facility.historicalpatientregistration", + "pk": 3, + "fields": { + "id": 1, + "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", + "created_date": "2022-09-27T07:19:20.379Z", + "modified_date": "2022-09-27T07:19:20.413Z", + "deleted": false, + "source": 10, + "name": "Dummy Patient", + "age": 120, + "gender": 1, + "phone_number": "+911234567896", + "emergency_phone_number": "+919898797775", + "address": "55.66.44.33", + "permanent_address": "55.66.44.33", + "pincode": 600115, + "date_of_birth": "1901-10-16", + "year_of_birth": 1901, + "nationality": "India", + "passport_no": "", + "is_medical_worker": false, + "blood_group": "O+", + "contact_with_confirmed_carrier": false, + "contact_with_suspected_carrier": false, + "estimated_contact_date": null, + "past_travel": false, + "countries_travelled_old": null, + "countries_travelled": null, + "date_of_return": null, + "allergies": "", + "present_health": "", + "ongoing_medication": "", + "has_SARI": false, + "is_antenatal": false, + "ward_old": "", + "is_migrant_worker": false, + "disease_status": 2, + "number_of_aged_dependents": 0, + "number_of_chronic_diseased_dependents": 0, + "action": 10, + "review_time": null, + "is_active": true, + "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", + "test_id": "", + "date_of_test": null, + "srf_id": "", + "test_type": 30, + "allow_transfer": false, + "will_donate_blood": null, + "fit_for_blood_donation": null, + "village": "", + "designation_of_health_care_worker": "", + "instituion_of_health_care_worker": "", + "transit_details": null, + "frontline_worker": null, + "date_of_result": null, + "number_of_primary_contacts": null, + "number_of_secondary_contacts": null, + "is_vaccinated": false, + "number_of_doses": 0, + "vaccine_name": null, + "covin_id": null, + "last_vaccinated_date": null, + "cluster_name": null, + "is_declared_positive": true, + "date_declared_positive": "2022-09-27T07:15:04.715Z", + "facility": 1, + "nearest_facility": null, + "ward": 1729, + "local_body": 95, + "district": 7, + "state": 1, + "last_edited": 2, + "created_by": 2, + "last_consultation": null, + "assigned_to": null, + "abha_number": null, + "history_date": "2022-09-27T07:19:20.415Z", + "history_change_reason": null, + "history_type": "~", + "history_user": 2 + } + }, + { + "model": "facility.historicalpatientregistration", + "pk": 4, + "fields": { + "id": 1, + "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", + "created_date": "2022-09-27T07:19:20.379Z", + "modified_date": "2022-09-27T07:20:40.135Z", + "deleted": false, + "source": 10, + "name": "Dummy Patient", + "age": 120, + "gender": 1, + "phone_number": "+911234567896", + "emergency_phone_number": "+919898797775", + "address": "55.66.44.33", + "permanent_address": "55.66.44.33", + "pincode": 600115, + "date_of_birth": "1901-10-16", + "year_of_birth": 1901, + "nationality": "India", + "passport_no": "", + "is_medical_worker": false, + "blood_group": "O+", + "contact_with_confirmed_carrier": false, + "contact_with_suspected_carrier": false, + "estimated_contact_date": null, + "past_travel": false, + "countries_travelled_old": null, + "countries_travelled": null, + "date_of_return": null, + "allergies": "", + "present_health": "", + "ongoing_medication": "", + "has_SARI": false, + "is_antenatal": false, + "ward_old": "", + "is_migrant_worker": false, + "disease_status": 2, + "number_of_aged_dependents": 0, + "number_of_chronic_diseased_dependents": 0, + "action": 10, + "review_time": null, + "is_active": true, + "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", + "test_id": "", + "date_of_test": null, + "srf_id": "", + "test_type": 30, + "allow_transfer": false, + "will_donate_blood": null, + "fit_for_blood_donation": null, + "village": "", + "designation_of_health_care_worker": "", + "instituion_of_health_care_worker": "", + "transit_details": null, + "frontline_worker": null, + "date_of_result": null, + "number_of_primary_contacts": null, + "number_of_secondary_contacts": null, + "is_vaccinated": false, + "number_of_doses": 0, + "vaccine_name": null, + "covin_id": null, + "last_vaccinated_date": null, + "cluster_name": null, + "is_declared_positive": true, + "date_declared_positive": "2022-09-27T07:15:04.715Z", + "facility": 1, + "nearest_facility": null, + "ward": 1729, + "local_body": 95, + "district": 7, + "state": 1, + "last_edited": 2, + "created_by": 2, + "last_consultation": 1, + "assigned_to": null, + "abha_number": null, + "history_date": "2022-09-27T07:20:40.139Z", + "history_change_reason": null, + "history_type": "~", + "history_user": 2 + } + }, + { + "model": "facility.historicalpatientregistration", + "pk": 5, + "fields": { "id": 1, - "name": "Kerala" - }, - "facility_type": "Shifting Centre", - "modified_date": "2022-09-27T12:45:51.075811+05:30", - "district_object": { - "id": 7, - "name": "Ernakulam", - "state": 1 - }, - "kasp_empanelled": false, - "oxygen_capacity": 0, - "type_b_cylinders": 0, - "type_c_cylinders": 0, - "type_d_cylinders": 0, - "local_body_object": { - "id": 12, - "name": "Aikaranad  Grama Panchayat, Ernakulam District", + "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", + "created_date": "2022-09-27T07:19:20.379Z", + "modified_date": "2022-09-27T07:22:00.563Z", + "deleted": false, + "source": 10, + "name": "Dummy Patient", + "age": 120, + "gender": 1, + "phone_number": "+911234567896", + "emergency_phone_number": "+919898797775", + "address": "55.66.44.33", + "permanent_address": "55.66.44.33", + "pincode": 600115, + "date_of_birth": "1901-10-16", + "year_of_birth": 1901, + "nationality": "India", + "passport_no": "", + "is_medical_worker": false, + "blood_group": "O+", + "contact_with_confirmed_carrier": false, + "contact_with_suspected_carrier": false, + "estimated_contact_date": null, + "past_travel": false, + "countries_travelled_old": null, + "countries_travelled": null, + "date_of_return": null, + "allergies": "", + "present_health": "", + "ongoing_medication": "", + "has_SARI": false, + "is_antenatal": false, + "ward_old": "", + "is_migrant_worker": false, + "disease_status": 2, + "number_of_aged_dependents": 0, + "number_of_chronic_diseased_dependents": 0, + "action": 10, + "review_time": null, + "is_active": true, + "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", + "test_id": "", + "date_of_test": null, + "srf_id": "", + "test_type": 30, + "allow_transfer": true, + "will_donate_blood": null, + "fit_for_blood_donation": null, + "village": "", + "designation_of_health_care_worker": "", + "instituion_of_health_care_worker": "", + "transit_details": null, + "frontline_worker": null, + "date_of_result": null, + "number_of_primary_contacts": null, + "number_of_secondary_contacts": null, + "is_vaccinated": false, + "number_of_doses": 0, + "vaccine_name": null, + "covin_id": null, + "last_vaccinated_date": null, + "cluster_name": null, + "is_declared_positive": true, + "date_declared_positive": "2022-09-27T07:15:04.715Z", + "facility": 1, + "nearest_facility": null, + "ward": 1729, + "local_body": 95, + "district": 7, + "state": 1, + "last_edited": 2, + "created_by": 2, + "last_consultation": 1, + "assigned_to": null, + "abha_number": null, + "history_date": "2022-09-27T07:22:00.566Z", + "history_change_reason": null, + "history_type": "~", + "history_user": 2 + } + }, + { + "model": "facility.patientregistration", + "pk": 1, + "fields": { + "external_id": "7c1d2896-8ebf-45c7-b507-98fcedd48ef3", + "created_date": "2022-09-27T07:19:20.379Z", + "modified_date": "2022-09-27T07:22:00.563Z", + "deleted": false, + "source": 10, + "facility": 1, + "nearest_facility": null, + "meta_info": null, + "name": "Dummy Patient", + "age": 120, + "gender": 1, + "phone_number": "+911234567896", + "emergency_phone_number": "+919898797775", + "address": "55.66.44.33", + "permanent_address": "55.66.44.33", + "pincode": 600115, + "date_of_birth": "1901-10-16", + "year_of_birth": 1901, + "nationality": "India", + "passport_no": "", + "is_medical_worker": false, + "blood_group": "O+", + "contact_with_confirmed_carrier": false, + "contact_with_suspected_carrier": false, + "estimated_contact_date": null, + "past_travel": false, + "countries_travelled_old": null, + "countries_travelled": null, + "date_of_return": null, + "allergies": "", + "present_health": "", + "ongoing_medication": "", + "has_SARI": false, + "is_antenatal": false, + "ward_old": "", + "ward": 1729, + "local_body": 95, "district": 7, - "body_type": 1, - "localbody_code": "G071005" - }, - "actual_live_patients": 0, - "read_cover_image_url": null, - "expected_type_b_cylinders": 0, - "expected_type_c_cylinders": 0, - "expected_type_d_cylinders": 0, - "actual_discharged_patients": 0, - "expected_oxygen_requirement": 0 - } - } + "state": 1, + "is_migrant_worker": false, + "disease_status": 2, + "number_of_aged_dependents": 0, + "number_of_chronic_diseased_dependents": 0, + "last_edited": 2, + "action": 10, + "review_time": null, + "created_by": 2, + "is_active": true, + "date_of_receipt_of_information": "2022-09-27T07:19:20.374Z", + "test_id": "", + "date_of_test": null, + "srf_id": "", + "test_type": 30, + "allow_transfer": true, + "last_consultation": 1, + "will_donate_blood": null, + "fit_for_blood_donation": null, + "village": "", + "designation_of_health_care_worker": "", + "instituion_of_health_care_worker": "", + "transit_details": null, + "frontline_worker": null, + "date_of_result": null, + "number_of_primary_contacts": null, + "number_of_secondary_contacts": null, + "is_vaccinated": false, + "number_of_doses": 0, + "vaccine_name": null, + "covin_id": null, + "last_vaccinated_date": null, + "cluster_name": null, + "is_declared_positive": true, + "date_declared_positive": "2022-09-27T07:15:04.715Z", + "assigned_to": null, + "abha_number": null + } + }, + { + "model": "facility.disease", + "pk": 1, + "fields": { + "patient": 1, + "disease": 1, + "details": "", + "deleted": false + } + }, + { + "model": "facility.patientsample", + "pk": 1, + "fields": { + "external_id": "29689b96-6018-426f-984f-344fa5e3186b", + "created_date": "2022-09-27T07:23:29.568Z", + "modified_date": "2022-09-27T07:23:29.574Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 2, + "fields": { + "external_id": "ea48179e-90c5-450b-800d-c1866d2d3d74", + "created_date": "2022-09-27T07:25:39.605Z", + "modified_date": "2022-09-27T07:25:39.609Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 3, + "fields": { + "external_id": "dcaf07f9-8412-45bb-bb7c-1c232c28e9da", + "created_date": "2022-09-27T07:25:41.681Z", + "modified_date": "2022-09-27T07:25:41.685Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 4, + "fields": { + "external_id": "80868c78-4917-4401-b4b4-9eea49c47493", + "created_date": "2022-09-27T07:25:42.673Z", + "modified_date": "2022-09-27T07:25:42.676Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 5, + "fields": { + "external_id": "093863c4-1778-4464-9ee9-c408bef0bafe", + "created_date": "2022-09-27T07:25:43.611Z", + "modified_date": "2022-09-27T07:25:43.615Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 6, + "fields": { + "external_id": "5b015be7-ffb3-4f36-a08a-7510dd53ee7f", + "created_date": "2022-09-27T07:25:44.707Z", + "modified_date": "2022-09-27T07:25:44.711Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 7, + "fields": { + "external_id": "b8cb7a31-5480-4466-8388-de1eafa35ede", + "created_date": "2022-09-27T07:25:52.375Z", + "modified_date": "2022-09-27T07:25:52.379Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 8, + "fields": { + "external_id": "c04f9bd2-e11f-466e-8649-d80f9e5d8649", + "created_date": "2022-09-27T07:25:53.556Z", + "modified_date": "2022-09-27T07:25:53.559Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 9, + "fields": { + "external_id": "27001f33-e193-42d5-8809-61b2c63304a9", + "created_date": "2022-09-27T07:25:54.406Z", + "modified_date": "2022-09-27T07:25:54.410Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 10, + "fields": { + "external_id": "1a604325-11bf-44b7-985b-6222b6c37092", + "created_date": "2022-09-27T07:25:55.280Z", + "modified_date": "2022-09-27T07:25:55.284Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 11, + "fields": { + "external_id": "0bd4f6ff-e084-4d2c-9803-79b829682a1d", + "created_date": "2022-09-27T07:25:56.119Z", + "modified_date": "2022-09-27T07:25:56.123Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 12, + "fields": { + "external_id": "fecb4ef3-2889-47ca-8e08-6a27a5e77715", + "created_date": "2022-09-27T07:25:56.959Z", + "modified_date": "2022-09-27T07:25:56.964Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 13, + "fields": { + "external_id": "45186f6d-1ed5-454a-aadd-94ceaefacf20", + "created_date": "2022-09-27T07:25:57.875Z", + "modified_date": "2022-09-27T07:25:57.878Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 14, + "fields": { + "external_id": "bcbc2e7e-d2b8-4e5e-ab50-7c36a51c1e09", + "created_date": "2022-09-27T07:25:58.676Z", + "modified_date": "2022-09-27T07:25:58.681Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 15, + "fields": { + "external_id": "342639b4-f347-4f83-87d1-85c6d7968ee7", + "created_date": "2022-09-27T07:25:59.671Z", + "modified_date": "2022-09-27T07:25:59.674Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 16, + "fields": { + "external_id": "388099f9-f005-47c1-9be3-650ddda769a0", + "created_date": "2022-09-27T07:26:00.354Z", + "modified_date": "2022-09-27T07:26:00.358Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsample", + "pk": 17, + "fields": { + "external_id": "5aef7a72-5e2c-4a0f-b689-747aae8b0dce", + "created_date": "2022-09-27T07:26:00.860Z", + "modified_date": "2022-09-27T07:26:00.863Z", + "deleted": false, + "patient": 1, + "consultation": 1, + "sample_type": 1, + "sample_type_other": "", + "has_sari": false, + "has_ari": false, + "doctor_name": "NO DOCTOR SPECIFIED", + "diff_diagnosis": "", + "etiology_identified": "", + "is_atypical_presentation": false, + "atypical_presentation": "", + "is_unusual_course": false, + "icmr_category": 10, + "icmr_label": "Test", + "status": 1, + "result": 3, + "fast_track": "", + "date_of_sample": "2022-09-27T07:23:29.508Z", + "date_of_result": null, + "testing_facility": 1, + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 1, + "fields": { + "external_id": "64bf6eb2-055d-4a16-8c91-e7ce1390e541", + "created_date": "2022-09-27T07:23:29.580Z", + "modified_date": "2022-09-27T07:23:29.580Z", + "deleted": false, + "patient_sample": 1, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 2, + "fields": { + "external_id": "1f68131b-9aab-456f-b61b-eb0a93d521c4", + "created_date": "2022-09-27T07:25:39.613Z", + "modified_date": "2022-09-27T07:25:39.613Z", + "deleted": false, + "patient_sample": 2, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 3, + "fields": { + "external_id": "80ead199-cd58-44c3-97de-4142e3e7d7ac", + "created_date": "2022-09-27T07:25:41.689Z", + "modified_date": "2022-09-27T07:25:41.689Z", + "deleted": false, + "patient_sample": 3, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 4, + "fields": { + "external_id": "ebe8ffac-1ca0-40fe-80d3-b895e7524ce2", + "created_date": "2022-09-27T07:25:42.681Z", + "modified_date": "2022-09-27T07:25:42.681Z", + "deleted": false, + "patient_sample": 4, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 5, + "fields": { + "external_id": "ed7f8727-3784-40cd-97c6-49e9de3e2fdb", + "created_date": "2022-09-27T07:25:43.620Z", + "modified_date": "2022-09-27T07:25:43.620Z", + "deleted": false, + "patient_sample": 5, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 6, + "fields": { + "external_id": "f7a3695f-bfd4-4af5-9280-e2d54124286e", + "created_date": "2022-09-27T07:25:44.716Z", + "modified_date": "2022-09-27T07:25:44.716Z", + "deleted": false, + "patient_sample": 6, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 7, + "fields": { + "external_id": "a0cad511-4dad-4244-93c4-50277d6734c2", + "created_date": "2022-09-27T07:25:52.383Z", + "modified_date": "2022-09-27T07:25:52.383Z", + "deleted": false, + "patient_sample": 7, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 8, + "fields": { + "external_id": "f3ff09b9-1c79-4afc-bd3d-70eeecc87daa", + "created_date": "2022-09-27T07:25:53.564Z", + "modified_date": "2022-09-27T07:25:53.564Z", + "deleted": false, + "patient_sample": 8, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 9, + "fields": { + "external_id": "a03684c4-4769-4643-b457-8be382895e8b", + "created_date": "2022-09-27T07:25:54.414Z", + "modified_date": "2022-09-27T07:25:54.414Z", + "deleted": false, + "patient_sample": 9, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 10, + "fields": { + "external_id": "a62f7677-31af-42f6-94f9-fcb5e8ab94de", + "created_date": "2022-09-27T07:25:55.288Z", + "modified_date": "2022-09-27T07:25:55.288Z", + "deleted": false, + "patient_sample": 10, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 11, + "fields": { + "external_id": "e9dae65e-bca7-47fc-b490-8ef4de67e331", + "created_date": "2022-09-27T07:25:56.127Z", + "modified_date": "2022-09-27T07:25:56.127Z", + "deleted": false, + "patient_sample": 11, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 12, + "fields": { + "external_id": "e065bb9a-10d2-4bdd-b375-affa163dacdf", + "created_date": "2022-09-27T07:25:56.968Z", + "modified_date": "2022-09-27T07:25:56.968Z", + "deleted": false, + "patient_sample": 12, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 13, + "fields": { + "external_id": "dae215d0-bbfe-41e5-a6e2-20e4504eb068", + "created_date": "2022-09-27T07:25:57.883Z", + "modified_date": "2022-09-27T07:25:57.883Z", + "deleted": false, + "patient_sample": 13, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 14, + "fields": { + "external_id": "dabdd193-f800-4848-902b-b33b345252e5", + "created_date": "2022-09-27T07:25:58.686Z", + "modified_date": "2022-09-27T07:25:58.686Z", + "deleted": false, + "patient_sample": 14, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 15, + "fields": { + "external_id": "8a32a9f0-0686-4104-8fe7-27c7be6a4233", + "created_date": "2022-09-27T07:25:59.679Z", + "modified_date": "2022-09-27T07:25:59.679Z", + "deleted": false, + "patient_sample": 15, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 16, + "fields": { + "external_id": "db4ceed2-a7e5-4cb1-828b-085ddae5fa0a", + "created_date": "2022-09-27T07:26:00.363Z", + "modified_date": "2022-09-27T07:26:00.363Z", + "deleted": false, + "patient_sample": 16, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.patientsampleflow", + "pk": 17, + "fields": { + "external_id": "48b8eb3a-c901-429a-abbb-7e5aae0f9cd2", + "created_date": "2022-09-27T07:26:00.867Z", + "modified_date": "2022-09-27T07:26:00.867Z", + "deleted": false, + "patient_sample": 17, + "status": 1, + "notes": "created", + "created_by": 2 + } + }, + { + "model": "facility.shiftingrequest", + "pk": 1, + "fields": { + "external_id": "a0e4cf70-49b4-4e26-83fa-c2c962386885", + "created_date": "2022-09-27T07:22:00.581Z", + "modified_date": "2022-09-27T07:22:00.581Z", + "deleted": false, + "origin_facility": 1, + "shifting_approving_facility": 2, + "assigned_facility_type": 2, + "assigned_facility": null, + "assigned_facility_external": "", + "patient": 1, + "emergency": true, + "is_up_shift": true, + "reason": "Test", + "vehicle_preference": "", + "preferred_vehicle_choice": 10, + "comments": "", + "refering_facility_contact_name": "Someone at Facility", + "refering_facility_contact_number": "+914455666777", + "is_kasp": false, + "status": 10, + "breathlessness_level": 30, + "is_assigned_to_user": false, + "assigned_to": null, + "ambulance_driver_name": "", + "ambulance_phone_number": "", + "ambulance_number": "", + "created_by": 2, + "last_edited_by": 2 + } + }, + { + "model": "facility.facilityrelatedsummary", + "pk": "99627ad6-53e7-4585-821a-21ac6e765f7b", + "fields": { + "created_date": "2022-09-27T07:00:00.163Z", + "modified_date": "2022-09-27T07:25:00.165Z", + "facility": 1, + "s_type": "FacilityCapacity", + "data": { + "id": "81092ced-8720-44cb-b4c5-3f0ad0540153", + "name": "Dummy Facility 1", + "ward": 1, + "state": 1, + "address": "127.0.0.1", + "pincode": 670000, + "district": 7, + "features": [ + 1, + 2, + 3, + 4, + 5, + 6 + ], + "latitude": null, + "inventory": {}, + "longitude": null, + "local_body": 920, + "ward_object": { + "id": 1, + "name": "NEERICODE WEST", + "number": 1, + "local_body": 920 + }, + "availability": [ + { + "id": "bfb7a4d8-6bf0-46d6-bf20-d5020850ea55", + "room_type": 150, + "modified_date": "2022-09-27T12:30:19.399000+05:30", + "room_type_text": "Oxygen beds", + "total_capacity": 1000, + "current_capacity": 20 + } + ], + "created_date": "2022-09-27T12:29:15.929000+05:30", + "phone_number": "+919999999888", + "state_object": { + "id": 1, + "name": "Kerala" + }, + "facility_type": "Private Hospital", + "modified_date": "2022-09-27T12:29:15.929000+05:30", + "district_object": { + "id": 7, + "name": "Ernakulam", + "state": 1 + }, + "kasp_empanelled": false, + "oxygen_capacity": 0, + "type_b_cylinders": 0, + "type_c_cylinders": 0, + "type_d_cylinders": 0, + "local_body_object": { + "id": 920, + "name": "Alangad  Grama Panchayat, Ernakulam District", + "district": 7, + "body_type": 1, + "localbody_code": "G070203" + }, + "actual_live_patients": 1, + "read_cover_image_url": null, + "expected_type_b_cylinders": 0, + "expected_type_c_cylinders": 0, + "expected_type_d_cylinders": 0, + "actual_discharged_patients": 0, + "expected_oxygen_requirement": 0 + } + } + }, + { + "model": "facility.facilityrelatedsummary", + "pk": "e294a2c2-3b05-469f-b975-e7766201df13", + "fields": { + "created_date": "2022-09-27T07:20:00.162Z", + "modified_date": "2022-09-27T07:25:00.171Z", + "facility": 2, + "s_type": "FacilityCapacity", + "data": { + "id": "fa33079d-727d-4295-b0fd-19153b36b2db", + "name": "Dummy Shifting Center", + "ward": 218, + "state": 1, + "address": "89.66.33.55", + "pincode": 670112, + "district": 7, + "features": [ + 1, + 6 + ], + "latitude": null, + "inventory": {}, + "longitude": null, + "local_body": 12, + "ward_object": { + "id": 218, + "name": "VALAMBOOR", + "number": 2, + "local_body": 12 + }, + "availability": [ + { + "id": "52bd4e97-9064-4697-8fea-37e0a2b8c87c", + "room_type": 150, + "modified_date": "2022-09-27T12:46:52.525280+05:30", + "room_type_text": "Oxygen beds", + "total_capacity": 20, + "current_capacity": 1 + } + ], + "created_date": "2022-09-27T12:45:51.075776+05:30", + "phone_number": "+919876665987", + "state_object": { + "id": 1, + "name": "Kerala" + }, + "facility_type": "Shifting Centre", + "modified_date": "2022-09-27T12:45:51.075811+05:30", + "district_object": { + "id": 7, + "name": "Ernakulam", + "state": 1 + }, + "kasp_empanelled": false, + "oxygen_capacity": 0, + "type_b_cylinders": 0, + "type_c_cylinders": 0, + "type_d_cylinders": 0, + "local_body_object": { + "id": 12, + "name": "Aikaranad  Grama Panchayat, Ernakulam District", + "district": 7, + "body_type": 1, + "localbody_code": "G071005" + }, + "actual_live_patients": 0, + "read_cover_image_url": null, + "expected_type_b_cylinders": 0, + "expected_type_c_cylinders": 0, + "expected_type_d_cylinders": 0, + "actual_discharged_patients": 0, + "expected_oxygen_requirement": 0 + } + } } ] From 9120efdd182d81be54016ead62d058720cbeabdd Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Mon, 27 Nov 2023 15:00:33 +0530 Subject: [PATCH 09/17] update migration --- ...mission_date_to_encounter_date_and_more.py | 32 ++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/care/facility/migrations/0397_rename_admission_date_to_encounter_date_and_more.py b/care/facility/migrations/0397_rename_admission_date_to_encounter_date_and_more.py index 2648658cff..872827bd5f 100644 --- a/care/facility/migrations/0397_rename_admission_date_to_encounter_date_and_more.py +++ b/care/facility/migrations/0397_rename_admission_date_to_encounter_date_and_more.py @@ -12,6 +12,36 @@ class Migration(migrations.Migration): def clean_encounter_date(apps, schema_editor): PatientConsultation = apps.get_model("facility", "PatientConsultation") + + # Set `encounter_date` to `created_date` for all consultations with + # suggestions that are not Admission, Domiciliary Care. + # + # Reason: + # We were not capturing `admission_date` (now `encounter_date`) for + # these consultations earlier, but could still be set by mistake. + # + # Example: + # Edit Consultation allowed changing suggestion to non Admission/Domiciliary Care + # without clearing `admission_date` (now `encounter_date`). + PatientConsultation.objects.exclude(suggestion__in=["A", "DC"]).update( + encounter_date=F("created_date") + ) + + # Set `encounter_date` to `created_date` for all consultations with + # `encounter_date` as `null`. + # + # Reason: + # We were not capturing `encounter_date` for these consultations as + # it was not set for these. + PatientConsultation.objects.filter(encounter_date=None).update( + encounter_date=F("created_date") + ) + + def reverse_clean_encounter_date(apps, schema_editor): + PatientConsultation = apps.get_model("facility", "PatientConsultation") + + # Set `encounter_date` to `null` for all consultations with suggestions + # that are not Admission/Domiciliary Care. PatientConsultation.objects.exclude(suggestion__in=["A", "DC"]).update( encounter_date=None ) @@ -28,7 +58,7 @@ def clean_encounter_date(apps, schema_editor): ), migrations.RunPython( clean_encounter_date, - reverse_code=migrations.RunPython.noop, + reverse_code=reverse_clean_encounter_date, ), migrations.AlterField( model_name="patientconsultation", From 68a93f4f3f51a60dfc22df37eba515dde65736f8 Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Mon, 27 Nov 2023 16:04:12 +0530 Subject: [PATCH 10/17] fix tests --- care/facility/tests/test_patient_consultation_api.py | 8 +++----- care/utils/tests/test_utils.py | 2 +- data/dummy/facility.json | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/care/facility/tests/test_patient_consultation_api.py b/care/facility/tests/test_patient_consultation_api.py index 74167059e8..37ad1a702b 100644 --- a/care/facility/tests/test_patient_consultation_api.py +++ b/care/facility/tests/test_patient_consultation_api.py @@ -100,12 +100,9 @@ def discharge(self, consultation, **kwargs): ) def test_create_consultation_treating_physician_invalid_user(self): - consultation = self.create_admission_consultation( - suggestion="A", - encounter_date=make_aware(datetime.datetime(2020, 4, 1, 15, 30, 00)), - ) + consultation = self.create_admission_consultation(suggestion="A") res = self.update_consultation( - consultation, treating_physician=self.doctor.id, suggestion="A" + consultation, treating_physician=self.user.id, suggestion="A" ) self.assertEqual(res.status_code, status.HTTP_400_BAD_REQUEST) @@ -332,6 +329,7 @@ def test_route_to_facility_transfer_within_facility(self): def test_medico_legal_case(self): consultation = self.create_admission_consultation( medico_legal_case=True, + encounter_date=make_aware(datetime.datetime(2023, 4, 1, 15, 30, 00)), ) url = self.get_url(consultation) diff --git a/care/utils/tests/test_utils.py b/care/utils/tests/test_utils.py index 97ed57f87b..f1f1ca0a9d 100644 --- a/care/utils/tests/test_utils.py +++ b/care/utils/tests/test_utils.py @@ -301,7 +301,7 @@ def get_consultation_data(cls): "treatment_plan": "treatment_plan", "suggestion": PatientConsultation.SUGGESTION_CHOICES[0][0], "referred_to": None, - "encounter_date": None, + "encounter_date": make_aware(datetime(2020, 4, 7, 15, 30)), "discharge_date": None, "consultation_notes": "", "course_in_facility": "", diff --git a/data/dummy/facility.json b/data/dummy/facility.json index b2aa7962cf..c127c28558 100644 --- a/data/dummy/facility.json +++ b/data/dummy/facility.json @@ -1288,7 +1288,7 @@ "is_readmission": false, "referred_to_external": "", "admitted": false, - "encounter_date": null, + "encounter_date": "2022-09-27T07:20:40.117Z", "discharge_date": null, "discharge_reason": null, "discharge_notes": "", From 491830851689e831ad7a2028abe519b08ad4236c Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Mon, 27 Nov 2023 18:34:37 +0530 Subject: [PATCH 11/17] index `encounter_date` --- .../0397_rename_admission_date_to_encounter_date_and_more.py | 4 +++- care/facility/models/patient_consultation.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/care/facility/migrations/0397_rename_admission_date_to_encounter_date_and_more.py b/care/facility/migrations/0397_rename_admission_date_to_encounter_date_and_more.py index 872827bd5f..f4ab41abf9 100644 --- a/care/facility/migrations/0397_rename_admission_date_to_encounter_date_and_more.py +++ b/care/facility/migrations/0397_rename_admission_date_to_encounter_date_and_more.py @@ -63,6 +63,8 @@ def reverse_clean_encounter_date(apps, schema_editor): migrations.AlterField( model_name="patientconsultation", name="encounter_date", - field=models.DateTimeField(default=django.utils.timezone.now), + field=models.DateTimeField( + db_index=True, default=django.utils.timezone.now + ), ), ] diff --git a/care/facility/models/patient_consultation.py b/care/facility/models/patient_consultation.py index f002664994..1715da8fa5 100644 --- a/care/facility/models/patient_consultation.py +++ b/care/facility/models/patient_consultation.py @@ -127,7 +127,7 @@ class PatientConsultation(PatientBaseModel, ConsultationRelatedPermissionMixin): referred_by_external = models.TextField(default="", null=True, blank=True) is_readmission = models.BooleanField(default=False) admitted = models.BooleanField(default=False) # Deprecated - encounter_date = models.DateTimeField(default=timezone.now) + encounter_date = models.DateTimeField(default=timezone.now, db_index=True) icu_admission_date = models.DateTimeField(null=True, blank=True) discharge_date = models.DateTimeField(null=True, blank=True) discharge_reason = models.CharField( From b6dc207765ce274aaf83796164f9ff9557492955 Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Mon, 27 Nov 2023 18:35:12 +0530 Subject: [PATCH 12/17] minor changes from code review --- care/facility/api/serializers/bed.py | 5 +---- .../facility/api/serializers/patient_consultation.py | 12 +++++++----- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/care/facility/api/serializers/bed.py b/care/facility/api/serializers/bed.py index ca3c885d29..832a0a01dd 100644 --- a/care/facility/api/serializers/bed.py +++ b/care/facility/api/serializers/bed.py @@ -235,10 +235,7 @@ def validate(self, attrs): raise ValidationError( {"end_date": "End date cannot be before the start date"} ) - if ( - consultation.encounter_date - and consultation.encounter_date > current_start_date - ): + if consultation.encounter_date > current_start_date: raise ValidationError( {"start_date": "Start date cannot be before the admission date"} ) diff --git a/care/facility/api/serializers/patient_consultation.py b/care/facility/api/serializers/patient_consultation.py index f3528998fa..712d85882d 100644 --- a/care/facility/api/serializers/patient_consultation.py +++ b/care/facility/api/serializers/patient_consultation.py @@ -473,6 +473,13 @@ def validate_create_diagnoses(self, value): return value + def validate_encounter_date(self, value): + if value > now(): + raise ValidationError( + {"encounter_date": "This field value cannot be in the future."} + ) + return value + def validate(self, attrs): validated = super().validate(attrs) # TODO Add Bed Authorisation Validation @@ -525,11 +532,6 @@ def validate(self, attrs): elif validated.get("referred_to"): validated["referred_to_external"] = None - if "encounter_date" in validated and validated["encounter_date"] > now(): - raise ValidationError( - {"encounter_date": "This field value cannot be in the future."} - ) - if "action" in validated: if validated["action"] == PatientRegistration.ActionEnum.REVIEW: if "review_interval" not in validated: From 0203617c6f83deba95eea4ad8585d66d0846290a Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Tue, 5 Dec 2023 18:51:00 +0530 Subject: [PATCH 13/17] rebase migrations --- ...=> 0398_rename_admission_date_to_encounter_date_and_more.py} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename care/facility/migrations/{0397_rename_admission_date_to_encounter_date_and_more.py => 0398_rename_admission_date_to_encounter_date_and_more.py} (97%) diff --git a/care/facility/migrations/0397_rename_admission_date_to_encounter_date_and_more.py b/care/facility/migrations/0398_rename_admission_date_to_encounter_date_and_more.py similarity index 97% rename from care/facility/migrations/0397_rename_admission_date_to_encounter_date_and_more.py rename to care/facility/migrations/0398_rename_admission_date_to_encounter_date_and_more.py index f4ab41abf9..5f3b7ae5ad 100644 --- a/care/facility/migrations/0397_rename_admission_date_to_encounter_date_and_more.py +++ b/care/facility/migrations/0398_rename_admission_date_to_encounter_date_and_more.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): dependencies = [ - ("facility", "0396_merge_20231122_0240"), + ("facility", "0397_truncate_discharge_time"), ] def clean_encounter_date(apps, schema_editor): From b058b2cbe27be49dbc2f81faa76aad0b206630cb Mon Sep 17 00:00:00 2001 From: Aakash Singh Date: Fri, 8 Dec 2023 00:04:40 +0530 Subject: [PATCH 14/17] update fixtures --- data/dummy/facility.json | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/data/dummy/facility.json b/data/dummy/facility.json index 8af5d7adaa..a0422045b0 100644 --- a/data/dummy/facility.json +++ b/data/dummy/facility.json @@ -1958,7 +1958,7 @@ "referred_by_external": "", "is_readmission": false, "admitted": true, - "admission_date": "2023-12-01T08:35:00Z", + "encounter_date": "2023-12-01T08:35:00Z", "icu_admission_date": null, "discharge_date": null, "discharge_reason": null, @@ -2028,7 +2028,7 @@ "referred_by_external": "", "is_readmission": false, "admitted": true, - "admission_date": "2023-12-06T08:33:03.700Z", + "encounter_date": "2023-12-06T08:33:03.700Z", "icu_admission_date": null, "discharge_date": null, "discharge_reason": null, @@ -2098,7 +2098,7 @@ "referred_by_external": "", "is_readmission": false, "admitted": true, - "admission_date": "2023-12-06T08:39:29.394Z", + "encounter_date": "2023-12-06T08:39:29.394Z", "icu_admission_date": null, "discharge_date": null, "discharge_reason": null, @@ -2168,7 +2168,7 @@ "referred_by_external": "", "is_readmission": false, "admitted": true, - "admission_date": "2023-12-06T08:42:10.532Z", + "encounter_date": "2023-12-06T08:42:10.532Z", "icu_admission_date": null, "discharge_date": null, "discharge_reason": null, @@ -2238,7 +2238,7 @@ "referred_by_external": "", "is_readmission": false, "admitted": true, - "admission_date": "2023-12-06T08:42:33.614Z", + "encounter_date": "2023-12-06T08:42:33.614Z", "icu_admission_date": null, "discharge_date": null, "discharge_reason": null, @@ -2308,7 +2308,7 @@ "referred_by_external": "", "is_readmission": false, "admitted": true, - "admission_date": "2023-12-06T08:42:56.180Z", + "encounter_date": "2023-12-06T08:42:56.180Z", "icu_admission_date": null, "discharge_date": null, "discharge_reason": null, @@ -2378,7 +2378,7 @@ "referred_by_external": "", "is_readmission": false, "admitted": true, - "admission_date": "2023-12-06T08:43:18.480Z", + "encounter_date": "2023-12-06T08:43:18.480Z", "icu_admission_date": null, "discharge_date": null, "discharge_reason": null, @@ -2448,7 +2448,7 @@ "referred_by_external": "", "is_readmission": false, "admitted": true, - "admission_date": "2023-12-06T08:43:41.540Z", + "encounter_date": "2023-12-06T08:43:41.540Z", "icu_admission_date": null, "discharge_date": null, "discharge_reason": null, @@ -2518,7 +2518,7 @@ "referred_by_external": "", "is_readmission": false, "admitted": true, - "admission_date": "2023-12-06T08:44:05.398Z", + "encounter_date": "2023-12-06T08:44:05.398Z", "icu_admission_date": null, "discharge_date": null, "discharge_reason": null, @@ -2588,7 +2588,7 @@ "referred_by_external": "", "is_readmission": false, "admitted": true, - "admission_date": "2023-12-06T08:44:28.550Z", + "encounter_date": "2023-12-06T08:44:28.550Z", "icu_admission_date": null, "discharge_date": null, "discharge_reason": null, @@ -2658,7 +2658,7 @@ "referred_by_external": "", "is_readmission": false, "admitted": true, - "admission_date": "2023-12-06T08:44:51.239Z", + "encounter_date": "2023-12-06T08:44:51.239Z", "icu_admission_date": null, "discharge_date": null, "discharge_reason": null, @@ -2728,7 +2728,7 @@ "referred_by_external": "", "is_readmission": false, "admitted": true, - "admission_date": "2023-12-06T08:45:13.721Z", + "encounter_date": "2023-12-06T08:45:13.721Z", "icu_admission_date": null, "discharge_date": null, "discharge_reason": null, @@ -2798,7 +2798,7 @@ "referred_by_external": "", "is_readmission": false, "admitted": true, - "admission_date": "2023-12-06T08:45:37.972Z", + "encounter_date": "2023-12-06T08:45:37.972Z", "icu_admission_date": null, "discharge_date": null, "discharge_reason": null, @@ -2868,7 +2868,7 @@ "referred_by_external": "", "is_readmission": false, "admitted": true, - "admission_date": "2023-12-06T08:46:00.645Z", + "encounter_date": "2023-12-06T08:46:00.645Z", "icu_admission_date": null, "discharge_date": null, "discharge_reason": null, @@ -2938,7 +2938,7 @@ "referred_by_external": "", "is_readmission": false, "admitted": true, - "admission_date": "2023-12-06T08:46:23.492Z", + "encounter_date": "2023-12-06T08:46:23.492Z", "icu_admission_date": null, "discharge_date": null, "discharge_reason": null, @@ -3008,7 +3008,7 @@ "referred_by_external": "", "is_readmission": false, "admitted": true, - "admission_date": "2023-12-06T08:46:46.028Z", + "encounter_date": "2023-12-06T08:46:46.028Z", "icu_admission_date": null, "discharge_date": null, "discharge_reason": null, @@ -3078,7 +3078,7 @@ "referred_by_external": "", "is_readmission": false, "admitted": true, - "admission_date": "2023-12-06T08:47:11.141Z", + "encounter_date": "2023-12-06T08:47:11.141Z", "icu_admission_date": null, "discharge_date": null, "discharge_reason": null, @@ -3148,7 +3148,7 @@ "referred_by_external": "", "is_readmission": false, "admitted": true, - "admission_date": "2023-12-06T08:47:34.395Z", + "encounter_date": "2023-12-06T08:47:34.395Z", "icu_admission_date": null, "discharge_date": null, "discharge_reason": null, From c7c00a39a2bb247d1ac139400b58c6fd52acd498 Mon Sep 17 00:00:00 2001 From: Aakash Singh Date: Fri, 8 Dec 2023 01:42:43 +0530 Subject: [PATCH 15/17] update migrations --- ...=> 0402_rename_admission_date_to_encounter_date_and_more.py} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename care/facility/migrations/{0398_rename_admission_date_to_encounter_date_and_more.py => 0402_rename_admission_date_to_encounter_date_and_more.py} (97%) diff --git a/care/facility/migrations/0398_rename_admission_date_to_encounter_date_and_more.py b/care/facility/migrations/0402_rename_admission_date_to_encounter_date_and_more.py similarity index 97% rename from care/facility/migrations/0398_rename_admission_date_to_encounter_date_and_more.py rename to care/facility/migrations/0402_rename_admission_date_to_encounter_date_and_more.py index 5f3b7ae5ad..644c8fd0c6 100644 --- a/care/facility/migrations/0398_rename_admission_date_to_encounter_date_and_more.py +++ b/care/facility/migrations/0402_rename_admission_date_to_encounter_date_and_more.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): dependencies = [ - ("facility", "0397_truncate_discharge_time"), + ("facility", "0401_merge_20231208_0054"), ] def clean_encounter_date(apps, schema_editor): From c11d6f3b6cc4aada329372da4eda14e21e32d6ca Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Fri, 8 Dec 2023 10:24:16 +0530 Subject: [PATCH 16/17] fix test --- care/facility/tests/test_patient_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/care/facility/tests/test_patient_api.py b/care/facility/tests/test_patient_api.py index 40f3606277..da621e6b28 100644 --- a/care/facility/tests/test_patient_api.py +++ b/care/facility/tests/test_patient_api.py @@ -104,7 +104,7 @@ def setUpTestData(cls) -> None: facility=cls.facility, created_by=cls.user, suggestion="A", - admission_date=now(), + encounter_date=now(), ) def setUp(self): From 3dda74ec78e9b56333031e17966e2005f2872adf Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Tue, 12 Dec 2023 12:12:11 +0530 Subject: [PATCH 17/17] rebase migrations (again :/) --- ...=> 0403_rename_admission_date_to_encounter_date_and_more.py} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename care/facility/migrations/{0402_rename_admission_date_to_encounter_date_and_more.py => 0403_rename_admission_date_to_encounter_date_and_more.py} (97%) diff --git a/care/facility/migrations/0402_rename_admission_date_to_encounter_date_and_more.py b/care/facility/migrations/0403_rename_admission_date_to_encounter_date_and_more.py similarity index 97% rename from care/facility/migrations/0402_rename_admission_date_to_encounter_date_and_more.py rename to care/facility/migrations/0403_rename_admission_date_to_encounter_date_and_more.py index 644c8fd0c6..6436c20cad 100644 --- a/care/facility/migrations/0402_rename_admission_date_to_encounter_date_and_more.py +++ b/care/facility/migrations/0403_rename_admission_date_to_encounter_date_and_more.py @@ -7,7 +7,7 @@ class Migration(migrations.Migration): dependencies = [ - ("facility", "0401_merge_20231208_0054"), + ("facility", "0402_patientconsultation_new_discharge_reason"), ] def clean_encounter_date(apps, schema_editor):