From 04a7fd3a13f1c604fb604b571ffa4da652e2c320 Mon Sep 17 00:00:00 2001 From: Aakash Singh Date: Sun, 22 Dec 2024 12:47:06 +0530 Subject: [PATCH] add ngo/cbo facility types closes https://github.com/ohcnetwork/care_fe/issues/9529 --- ...3_alter_facility_facility_type_and_more.py | 23 +++++++++++++++++++ care/facility/models/facility.py | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 care/facility/migrations/0473_alter_facility_facility_type_and_more.py diff --git a/care/facility/migrations/0473_alter_facility_facility_type_and_more.py b/care/facility/migrations/0473_alter_facility_facility_type_and_more.py new file mode 100644 index 0000000000..a65a6302f4 --- /dev/null +++ b/care/facility/migrations/0473_alter_facility_facility_type_and_more.py @@ -0,0 +1,23 @@ +# Generated by Django 5.1.3 on 2024-12-22 07:16 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('facility', '0472_historicalpatientregistration_mobility_status_and_more'), + ] + + operations = [ + migrations.AlterField( + model_name='facility', + name='facility_type', + field=models.IntegerField(choices=[(1, 'Educational Inst'), (2, 'Private Hospital'), (3, 'Other'), (4, 'Hostel'), (5, 'Hotel'), (6, 'Lodge'), (7, 'TeleMedicine'), (9, 'Govt Labs'), (10, 'Private Labs'), (800, 'Primary Health Centres'), (802, 'Family Health Centres'), (803, 'Community Health Centres'), (830, 'Taluk Hospitals'), (840, 'Women and Child Health Centres'), (860, 'District Hospitals'), (870, 'Govt Medical College Hospitals'), (900, 'Co-operative hospitals'), (910, 'Autonomous healthcare facility'), (1010, 'COVID-19 Domiciliary Care Center'), (1100, 'First Line Treatment Centre'), (1200, 'Second Line Treatment Center'), (1300, 'Shifting Centre'), (1400, 'Covid Management Center'), (1500, 'Request Approving Center'), (1510, 'Request Fulfilment Center'), (1600, 'District War Room'), (3000, 'Non Governmental Organization'), (4000, 'Community Based Organization')]), + ), + migrations.AlterField( + model_name='shiftingrequest', + name='assigned_facility_type', + field=models.IntegerField(blank=True, choices=[(1, 'Educational Inst'), (2, 'Private Hospital'), (3, 'Other'), (4, 'Hostel'), (5, 'Hotel'), (6, 'Lodge'), (7, 'TeleMedicine'), (9, 'Govt Labs'), (10, 'Private Labs'), (800, 'Primary Health Centres'), (802, 'Family Health Centres'), (803, 'Community Health Centres'), (830, 'Taluk Hospitals'), (840, 'Women and Child Health Centres'), (860, 'District Hospitals'), (870, 'Govt Medical College Hospitals'), (900, 'Co-operative hospitals'), (910, 'Autonomous healthcare facility'), (1010, 'COVID-19 Domiciliary Care Center'), (1100, 'First Line Treatment Centre'), (1200, 'Second Line Treatment Center'), (1300, 'Shifting Centre'), (1400, 'Covid Management Center'), (1500, 'Request Approving Center'), (1510, 'Request Fulfilment Center'), (1600, 'District War Room'), (3000, 'Non Governmental Organization'), (4000, 'Community Based Organization')], default=None, null=True), + ), + ] diff --git a/care/facility/models/facility.py b/care/facility/models/facility.py index 19cef7ac80..885829fb7c 100644 --- a/care/facility/models/facility.py +++ b/care/facility/models/facility.py @@ -125,6 +125,8 @@ class FacilityFeature(models.IntegerChoices): (1510, "Request Fulfilment Center"), # Use 16xx for War Rooms. (1600, "District War Room"), + (3000, "Non Governmental Organization"), + (4000, "Community Based Organization"), ] REVERSE_FACILITY_TYPES = reverse_choices(FACILITY_TYPES)