From 3f7f202d0c7220ee400c97761c852c8edf6d8f58 Mon Sep 17 00:00:00 2001 From: abhishek-p-s Date: Thu, 18 Jan 2024 18:18:43 +0530 Subject: [PATCH 1/5] [#990] autofield qustions color done --- backend/source/forms/1699353915355.prod.json | 434 ++++++++++++++----- backend/source/forms/1699354006503.prod.json | 193 +++++++-- backend/source/forms/1701172125596.prod.json | 71 ++- backend/source/forms/1701757876668.prod.json | 21 +- 4 files changed, 554 insertions(+), 165 deletions(-) diff --git a/backend/source/forms/1699353915355.prod.json b/backend/source/forms/1699353915355.prod.json index 3f66bd7f1..e868ef4d8 100644 --- a/backend/source/forms/1699353915355.prod.json +++ b/backend/source/forms/1699353915355.prod.json @@ -43,20 +43,50 @@ "pre": { "answer": ["New"], "fill": [ - { "id": 1699354220734, "answer": ["New"] }, - { "id": 1699417958748, "answer": ["Household head"] }, - { "id": 1699419372643, "answer": ["Other gender"] }, - { "id": 1699420160003, "answer": ["Yes, more than one person"] }, - { "id": 1699420491508, "answer": ["Yes, owned"] }, + { + "id": 1699354220734, + "answer": ["New"] + }, + { + "id": 1699417958748, + "answer": ["Household head"] + }, + { + "id": 1699419372643, + "answer": ["Other gender"] + }, + { + "id": 1699420160003, + "answer": ["Yes, more than one person"] + }, + { + "id": 1699420491508, + "answer": ["Yes, owned"] + }, { "id": 1699420621840, "answer": ["OTHER household (NOT in at-risk category)"] }, - { "id": 1699422286091, "answer": ["G0 No toilet"] }, - { "id": 1699423357200, "answer": ["G0 Non-functional toilet"] }, - { "id": 1699423571454, "answer": ["G0 No toilet privacy"] }, - { "id": 1699423696720, "answer": ["G0 No toilet"] }, - { "id": 1699423946170, "answer": ["G0 No toilet"] }, + { + "id": 1699422286091, + "answer": ["G0 No toilet"] + }, + { + "id": 1699423357200, + "answer": ["G0 Non-functional toilet"] + }, + { + "id": 1699423571454, + "answer": ["G0 No toilet privacy"] + }, + { + "id": 1699423696720, + "answer": ["G0 No toilet"] + }, + { + "id": 1699423946170, + "answer": ["G0 No toilet"] + }, { "id": 1699424375968, "answer": ["G0 VIP vent pipe without insect screen"] @@ -101,8 +131,14 @@ "id": 1702282796765, "answer": ["G0 High risk of groundwater contamination"] }, - { "id": 1699428072669, "answer": ["G0 No toilet, practice OD"] }, - { "id": 1699428351326, "answer": ["G0 No members use toilet"] }, + { + "id": 1699428072669, + "answer": ["G0 No toilet, practice OD"] + }, + { + "id": 1699428351326, + "answer": ["G0 No members use toilet"] + }, { "id": 1699428400205, "answer": ["G0 Toilet SHARED: MORE than 10-15 users"] @@ -123,12 +159,18 @@ "id": 1699429162796, "answer": ["G1 Handwashing facility in kitchen"] }, - { "id": 1699430427692, "answer": ["G0 No water available"] }, + { + "id": 1699430427692, + "answer": ["G0 No water available"] + }, { "id": 1699430472221, "answer": ["G0 No soap or other cleanser available"] }, - { "id": 1699430580239, "answer": ["G0 No handwashing facility"] }, + { + "id": 1699430580239, + "answer": ["G0 No handwashing facility"] + }, { "id": 1699430671868, "answer": [ @@ -139,10 +181,22 @@ "id": 1699430761393, "answer": ["G0 No collection or disposal of washing water"] }, - { "id": 1699430839676, "answer": ["G0 No handwashing facility"] }, - { "id": 1699431035188, "answer": ["G0 No handwashing facility"] }, - { "id": 1699431983680, "answer": ["G0 No handwashing facility"] }, - { "id": 1699432052966, "answer": ["G0 No handwashing facility"] }, + { + "id": 1699430839676, + "answer": ["G0 No handwashing facility"] + }, + { + "id": 1699431035188, + "answer": ["G0 No handwashing facility"] + }, + { + "id": 1699431983680, + "answer": ["G0 No handwashing facility"] + }, + { + "id": 1699432052966, + "answer": ["G0 No handwashing facility"] + }, { "id": 1699432663952, "answer": ["G0 Child or adult excreta observed in the compound"] @@ -159,20 +213,38 @@ "id": 1699432887212, "answer": ["G0 Visible dirt or contamination"] }, - { "id": 1699433027913, "answer": ["G0 No storage"] }, - { "id": 1699433058652, "answer": ["G0 On ground"] }, + { + "id": 1699433027913, + "answer": ["G0 No storage"] + }, + { + "id": 1699433058652, + "answer": ["G0 On ground"] + }, { "id": 1699433108344, "answer": ["G0 Visible dirt or contamination"] }, - { "id": 1699433162828, "answer": ["G0 No storage"] }, - { "id": 1699433205793, "answer": ["G0 On ground"] }, + { + "id": 1699433162828, + "answer": ["G0 No storage"] + }, + { + "id": 1699433205793, + "answer": ["G0 On ground"] + }, { "id": 1699433286697, "answer": ["G0 Visible dirt or contamination"] }, - { "id": 1699433337417, "answer": ["G0 No storage"] }, - { "id": 1699433394633, "answer": ["G0 On ground"] }, + { + "id": 1699433337417, + "answer": ["G0 No storage"] + }, + { + "id": 1699433394633, + "answer": ["G0 On ground"] + }, { "id": 1699433455365, "answer": ["G0 Visible dirt or contamination"] @@ -185,7 +257,10 @@ "id": 1699433564057, "answer": ["G0 Unsafe drinking water storage"] }, - { "id": 1699433637971, "answer": ["G0 Unsafe water use"] }, + { + "id": 1699433637971, + "answer": ["G0 Unsafe water use"] + }, { "id": 1699433719018, "answer": ["G0 Visible dirt or contamination"] @@ -218,10 +293,22 @@ "id": 1699434209933, "answer": ["G0 Animal waste storage is UNSAFELY managed"] }, - { "id": 1699434269372, "answer": ["G0 No animal pens"] }, - { "id": 1699434327613, "answer": ["G0 No animal pens"] }, - { "id": 1699434438966, "answer": ["G0 Visible wastewater"] }, - { "id": 1699434488410, "answer": ["G0 Significant erosion"] }, + { + "id": 1699434269372, + "answer": ["G0 No animal pens"] + }, + { + "id": 1699434327613, + "answer": ["G0 No animal pens"] + }, + { + "id": 1699434438966, + "answer": ["G0 Visible wastewater"] + }, + { + "id": 1699434488410, + "answer": ["G0 Significant erosion"] + }, { "id": 1699434553677, "answer": ["G0 Significant visible solid wastes"] @@ -238,15 +325,30 @@ "id": 1699434771449, "answer": ["G0 No treatment or management"] }, - { "id": 1699434939105, "answer": ["G1 All with dirty faces"] }, - { "id": 1699434983278, "answer": ["G1 All with dirty hands"] }, - { "id": 1699435026311, "answer": ["G1 No washing place"] }, - { "id": 1699435088758, "answer": ["G1 No disposal site"] }, + { + "id": 1699434939105, + "answer": ["G1 All with dirty faces"] + }, + { + "id": 1699434983278, + "answer": ["G1 All with dirty hands"] + }, + { + "id": 1699435026311, + "answer": ["G1 No washing place"] + }, + { + "id": 1699435088758, + "answer": ["G1 No disposal site"] + }, { "id": 1699435154797, "answer": ["G1 Materials are NOT available or NOT appropriate"] }, - { "id": 1699435207476, "answer": ["G1 No children vaccinated"] }, + { + "id": 1699435207476, + "answer": ["G1 No children vaccinated"] + }, { "id": 1699435265962, "answer": ["G1 No children received supplements"] @@ -602,7 +704,7 @@ "required": true, "meta": false, "options": null, - "displayOnly":true, + "displayOnly": true, "rule": null, "fn": { "fnColor": {}, @@ -620,7 +722,7 @@ "meta": false, "options": null, "rule": null, - "displayOnly":true, + "displayOnly": true, "fn": { "fnColor": {}, "fnString": "function(){return #1699419951523 + #1699420051321 + #1699420103720 + #1699420137191}", @@ -1014,7 +1116,10 @@ "options": null, "dependency": null, "fn": { - "fnColor": {}, + "fnColor": { + "G1 Functional toilet with privacy": "#93D371", + "G0 Toilet non-functional or not private": "#FD3F31" + }, "fnString": "function() { return (#1699422286091.includes(\"G1\") && #1699423357200.includes(\"G1\") && #1699423571454.includes(\"G1\"))\n? \"G1 Functional toilet with privacy\" : \"G0 Toilet non-functional or not private\"}", "multiline": false } @@ -1283,7 +1388,10 @@ "options": null, "dependency": null, "fn": { - "fnColor": {}, + "fnColor": { + "G1 Flyproof toilet": "#93D371", + "G0 Toilet NOT flyproof": "#FD3F31" + }, "fnString": "function() {\n return (\n #1699423696720.includes(\"G1\") &&\n #1699423946170.includes(\"G1\") &&\n #1699424375968.includes(\"G1\")\n )\n ? \"G1 Flyproof toilet\"\n : \"G0 Toilet NOT flyproof\"\n}", "multiline": false } @@ -1416,7 +1524,10 @@ "options": null, "dependency": null, "fn": { - "fnColor": {}, + "fnColor": { + "G1 Clean toilet": "#93D371", + "G0 Toilet NOT clean": "#FD3F31" + }, "fnString": "function() { return (#1699425852809.includes(\"G1\") && #1699425943159.includes(\"G1\") && #1699426059842.includes(\"G1\")) ? \"G1 Clean toilet\" : \"G0 Toilet NOT clean\"}", "multiline": false } @@ -1594,7 +1705,10 @@ "options": null, "dependency": null, "fn": { - "fnColor": {}, + "fnColor": { + "G2 Durable toilet": " #FDC74B", + "G0 Toilet NOT durable": "#FD3F31" + }, "fnString": "function() { return (#1699427405024.includes(\"G2\") && #1699427574765.includes(\"G2\")) ? \"G2 Durable toilet\" : \"G0 Toilet NOT durable\"}", "multiline": false } @@ -1730,7 +1844,10 @@ "options": null, "dependency": null, "fn": { - "fnColor": {}, + "fnColor": { + "G2 Toilet with safe containment": "#FDC74B", + "G0 Unsafe toilet containment": "#FD3F31" + }, "fnString": "function() { return (#1699427743413.includes(\"G2\") && #1699427885744.includes(\"G2\") && #1702282796765.includes(\"G2\")) ? \"G2 Toilet with safe containment\" : \"G0 Unsafe toilet containment\"}", "multiline": false } @@ -1857,7 +1974,10 @@ "meta": false, "options": null, "fn": { - "fnColor": {}, + "fnColor": { + "G1 Toilet use by all household members": "#93D371", + "G0 Toilet NOT used (or used by too many)": "#FD3F31" + }, "fnString": "function() {\n return (\n #1699428072669.includes(\"G1\") &&\n #1699428351326.includes(\"G1\") &&\n #1699428400205.includes(\"G1\")\n )\n ? \"G1 Toilet use by all household members\"\n : \"G0 Toilet NOT used (or used by too many)\"\n}", "multiline": false } @@ -1906,7 +2026,11 @@ "meta": false, "options": null, "fn": { - "fnColor": {}, + "fnColor": { + "G1 Some household members do not use their own toilet": "#93D371", + "G2 All household members use own toilet at all times": "#FDC74B", + "G0 All household members defecate in the open": "#FD3F31" + }, "fnString": "function(){ return (#1699428535663.includes(\"G2\")) ? \"G2 All household members use own toilet at all times\" : (#1699428535663.includes(\"G0\") ? \"G0 All household members defecate in the open\" : \"G1 Some household members do not use their own toilet\") }", "multiline": false } @@ -2062,7 +2186,11 @@ "meta": false, "options": null, "fn": { - "fnColor": {}, + "fnColor": { + "G3 Use of safely managed sanitation services": "#4088F4", + "G1 Inadequate sanitation services": "#93D371", + "G0 Sanitation services UNSAFELY managed": "#FD3F31" + }, "fnString": "function(){ return (#1699428661689.includes(\"G3\") && #1699428820338.includes(\"G3\")) ? \"G3 Use of safely managed sanitation services\" : ((#1699428661689.includes(\"G0\") && #1699428820338.includes(\"G0\")) ? \"G0 Sanitation services UNSAFELY managed\" : \"G1 Inadequate sanitation services\") }", "multiline": false } @@ -2207,7 +2335,10 @@ "meta": false, "options": null, "fn": { - "fnColor": {}, + "fnColor": { + "G1 Handwashing facility with soap and water": "#93D371", + "G0 Inadequate or no handwashing facility": "#FD3F31" + }, "fnString": "function() { return (#1699429162796.includes(\"G1\") && #1699430427692.includes(\"G1\") && #1699430472221.includes(\"G1\")) ? \"G1 Handwashing facility with soap and water\" : \"G0 Inadequate or no handwashing facility\"}", "multiline": false } @@ -2347,7 +2478,11 @@ "meta": false, "options": null, "fn": { - "fnColor": {}, + "fnColor": { + "G0 No or inadequate handwashing services": "#FD3F31", + "G3 Permanent handwashing services": "#4088F4", + "G1 Non-durable handwashing services": "#93D371" + }, "fnString": "function(){\n return (\n #1699430580239.includes(\"G0\") &&\n #1699430671868.includes(\"G0\") &&\n #1699430761393.includes(\"G0\")\n )\n ? \"G0 No or inadequate handwashing services\"\n : (\n #1699430580239.includes(\"G3\") &&\n #1699430671868.includes(\"G3\") &&\n #1699430761393.includes(\"G3\"))\n ? \"G3 Permanent handwashing services\"\n : \"G1 Non-durable handwashing services\"\n}", "multiline": false } @@ -2546,7 +2681,11 @@ "meta": false, "options": null, "fn": { - "fnColor": {}, + "fnColor": { + "G1 Some critical handwashing times NOT mentioned": "#93D371", + "G2 Handwashing with soap at ALL critical times": "#FDC74B", + "G0 No or inadequate handwashing services": "#FD3F31" + }, "fnString": "function(){ return (#1699430839676.includes(\"G0\") && #1699431035188.includes(\"G0\") && #1699431983680.includes(\"G0\") && #1699432052966.includes(\"G0\")) ? \"G0 No or inadequate handwashing services\" : ((#1699430839676.includes(\"G2\") && #1699431035188.includes(\"G2\") && #1699431983680.includes(\"G2\") && #1699432052966.includes(\"G2\")) ? \"G2 Handwashing with soap at ALL critical times\" : \"G1 Some critical handwashing times NOT mentioned\") }", "multiline": false } @@ -2597,7 +2736,10 @@ "meta": false, "options": null, "fn": { - "fnColor": {}, + "fnColor": { + "G1 No exposed human excreta in compound": "#93D371", + "G0 Child or adult excreta observed in compound": "#FD3F31" + }, "fnString": "function() {return (#1699432663952 ?? \"\").includes(\"G1\") ? \"G1 No exposed human excreta in compound\" : \"G0 Child or adult excreta observed in compound\"}", "multiline": false } @@ -2718,7 +2860,10 @@ "meta": false, "options": null, "fn": { - "fnColor": {}, + "fnColor": { + "G1 Safely managed child excreta and diapers": "#FD3F31", + "G0 Child excreta and diapers UNSAFELY managed": "#93D371" + }, "fnString": "function() { return (#1699432130951.includes(\"G1\") && #1699432802923.includes(\"G1\")) ? \"G1 Safely managed child excreta and diapers\" : \"G0 Child excreta and diapers UNSAFELY managed\"}", "multiline": false } @@ -2824,7 +2969,11 @@ "meta": false, "options": null, "fn": { - "fnColor": {}, + "fnColor": { + "G0 Food not clean and not safely stored": "#FD3F31", + "G2 Clean and safely stored food": "#FDC74B", + "G1 Food not adequately washed, or not safely stored": "#93D371" + }, "fnString": "function() {\n return (\n #1699432887212.includes(\"G0\") &&\n #1699433027913.includes(\"G0\") &&\n #1699433058652.includes(\"G0\")\n )\n ? \"G0 Food not clean and not safely stored\"\n : ((\n #1699432887212.includes(\"G2\") &&\n #1699433027913.includes(\"G2\") &&\n #1699433058652.includes(\"G2\"))\n ? \"G2 Clean and safely stored food\"\n : \"G1 Food not adequately washed, or not safely stored\"\n )\n}", "multiline": false } @@ -2932,7 +3081,11 @@ "meta": false, "options": null, "fn": { - "fnColor": {}, + "fnColor": { + "G0 Kitchen utensils not clean and not safely stored": "#FD3F31", + "G2 Clean and safely stored kitchen utensils": "#FDC74B", + "G1 Kitchen utensils not adequately washed, or not safely stored": "#93D371" + }, "fnString": "function() {\n return (\n #1699433108344.includes(\"G0\") &&\n #1699433162828.includes(\"G0\") &&\n #1699433205793.includes(\"G0\")\n )\n ? \"G0 Kitchen utensils not clean and not safely stored\"\n : ((\n #1699433108344.includes(\"G2\") &&\n #1699433162828.includes(\"G2\") &&\n #1699433205793.includes(\"G2\"))\n ? \"G2 Clean and safely stored kitchen utensils\"\n : \"G1 Kitchen utensils not adequately washed, or not safely stored\"\n )\n}", "multiline": false } @@ -3040,7 +3193,11 @@ "meta": false, "options": null, "fn": { - "fnColor": {}, + "fnColor": { + "G0 Milk containers not clean and not safely stored": "#FD3F31", + "G2 Clean and safely stored milk containers": "#FDC74B", + "G1 Milk containers not adequately washed, or not safely stored": "#93D371" + }, "fnString": "function() {\n return (\n #1699433286697.includes(\"G0\") &&\n #1699433337417.includes(\"G0\") &&\n #1699433394633.includes(\"G0\")\n )\n ? \"G0 Milk containers not clean and not safely stored\"\n : ((\n #1699433286697.includes(\"G2\") &&\n #1699433337417.includes(\"G2\") &&\n #1699433394633.includes(\"G2\"))\n ? \"G2 Clean and safely stored milk containers\"\n : \"G1 Milk containers not adequately washed, or not safely stored\"\n )\n}", "multiline": false } @@ -3194,7 +3351,11 @@ "meta": false, "options": null, "fn": { - "fnColor": {}, + "fnColor": { + "G0 Drinking water is UNSAFELY managed": "#FD3F31", + "G2 Safe management of drinking water": "#FDC74B", + "G1 Drinking water is NOT adequately managed": "#93D371" + }, "fnString": "function() {\n return (\n #1699433455365.includes(\"G0\") &&\n #1699433503692.includes(\"G0\") &&\n #1699433564057.includes(\"G0\") &&\n #1699433637971.includes(\"G0\")\n )\n ? \"G0 Drinking water is UNSAFELY managed\"\n : ((\n #1699433455365.includes(\"G2\") &&\n #1699433503692.includes(\"G2\") &&\n #1699433564057.includes(\"G2\") &&\n #1699433637971.includes(\"G2\"))\n ? \"G2 Safe management of drinking water\"\n : \"G1 Drinking water is NOT adequately managed\"\n )\n}", "multiline": false } @@ -3302,7 +3463,11 @@ "meta": false, "options": null, "fn": { - "fnColor": {}, + "fnColor": { + "G0 Water points are UNSAFELY managed": "#FD3F31", + "G2 Safe management of water points": "#FDC74B", + "G1 Water points are NOT adequately managed": "#93D371" + }, "fnString": "function() {\n return (\n #1699433719018.includes(\"G0\") &&\n #1699433765217.includes(\"G0\") &&\n #1699433833227.includes(\"G0\")\n )\n ? \"G0 Water points are UNSAFELY managed\"\n : ((\n #1699433719018.includes(\"G2\") &&\n #1699433765217.includes(\"G2\") &&\n #1699433833227.includes(\"G2\"))\n ? \"G2 Safe management of water points\"\n : \"G1 Water points are NOT adequately managed\"\n )\n}", "multiline": false } @@ -3379,7 +3544,11 @@ "meta": false, "options": null, "fn": { - "fnColor": {}, + "fnColor": { + "G0 Widespread presence of animal wastes": "#FD3F31", + "G1 Some animal wastes visible": "#93D371", + "G2 No visible animal wastes": "#FDC74B" + }, "fnString": "function() {\n return (\n #1699433937138.includes(\"G0\") &&\n #1699433983369.includes(\"G0\")\n )\n ? \"G0 Widespread presence of animal wastes\"\n : ((\n #1699433937138.includes(\"G2\") &&\n #1699433983369.includes(\"G2\"))\n ? \"G2 No visible animal wastes\"\n : \"G1 Some animal wastes visible\"\n )\n}", "multiline": false } @@ -3502,7 +3671,11 @@ "meta": false, "options": null, "fn": { - "fnColor": {}, + "fnColor": { + "G0 Animal wastes UNSAFELY managed": "#FD3F31", + "G2 Safely managed animal wastes": "#FDC74B", + "G1 Inadequate management of animal wastes": "#93D371" + }, "fnString": "function() {\n return (\n #1699434044707.includes(\"G0\") &&\n #1699434136823.includes(\"G0\") &&\n #1699434209933.includes(\"G0\")\n )\n ? \"G0 Animal wastes UNSAFELY managed\"\n : ((\n #1699434044707.includes(\"G2\") &&\n #1699434136823.includes(\"G2\") &&\n #1699434209933.includes(\"G0\"))\n ? \"G2 Safely managed animal wastes\"\n : \"G1 Inadequate management of animal wastes\"\n )\n}", "multiline": false } @@ -3589,7 +3762,11 @@ "meta": false, "options": null, "fn": { - "fnColor": {}, + "fnColor": { + "G0 Animals NOT separated from under-5 children": "#FD3F31", + "G2 Safe separation of animals from under-5 children": "#FDC74B", + "G1 Inadequate separation of animals from under-5 children": "#93D371" + }, "fnString": "function() {\n return (\n #1699434269372.includes(\"G0\") &&\n #1699434327613.includes(\"G0\")\n )\n ? \"G0 Animals NOT separated from under-5 children\"\n : ((\n #1699434269372.includes(\"G2\") &&\n #1699434327613.includes(\"G2\"))\n ? \"G2 Safe separation of animals from under-5 children\"\n : \"G1 Inadequate separation of animals from under-5 children\"\n )\n}", "multiline": false } @@ -3671,7 +3848,11 @@ "meta": false, "options": null, "fn": { - "fnColor": {}, + "fnColor": { + "G0 Liquid wastes UNSAFELY managed": "#FD3F31", + "G3 Safe management of liquid wastes": "#4088F4", + "G2 Inadequate management of liquid wastes": "#FDC74B" + }, "fnString": "function() {\n return (\n #1699434438966.includes(\"G0\") &&\n #1699434488410.includes(\"G0\")\n )\n ? \"G0 Liquid wastes UNSAFELY managed\"\n : ((\n #1699434438966.includes(\"G3\") &&\n #1699434488410.includes(\"G3\"))\n ? \"G3 Safe management of liquid wastes\"\n : \"G2 Inadequate management of liquid wastes\"\n )\n}", "multiline": false } @@ -3748,7 +3929,11 @@ "meta": false, "options": null, "fn": { - "fnColor": {}, + "fnColor": { + "G1 Liquid wastes UNSAFELY managed": "#93D371", + "G2 Inadequate management of solid wastes": "#FDC74B", + "G3 Safe management of solid wastes": "#4088F4" + }, "fnString": "function() {\n return (\n #1699434553677.includes(\"G0\") &&\n #1699434636655.includes(\"G0\")\n )\n ? \"G1 Liquid wastes UNSAFELY managed\"\n : ((\n #1699434553677.includes(\"G3\") &&\n #1699434636655.includes(\"G3\"))\n ? \"G3 Safe management of solid wastes\"\n : \"G2 Inadequate management of solid wastes\"\n )\n}", "multiline": false } @@ -3830,7 +4015,11 @@ "meta": false, "options": null, "fn": { - "fnColor": {}, + "fnColor": { + "G1 Lack of vector control": "#93D371", + "G2 Inadequate vector control": "#FDC74B", + "G3 Good vector control": "#4088F4" + }, "fnString": "function() {\n return (\n #1699434694439.includes(\"G0\") &&\n #1699434771449.includes(\"G0\")\n )\n ? \"G1 Lack of vector control\"\n : ((\n #1699434694439.includes(\"G3\") &&\n #1699434771449.includes(\"G3\"))\n ? \"G3 Good vector control\"\n : \"G2 Inadequate vector control\"\n )\n}", "multiline": false } @@ -3905,7 +4094,11 @@ "meta": false, "options": null, "fn": { - "fnColor": {}, + "fnColor": { + "G1 No personal hygiene": "#93D371", + "G2 Inadequate personal hygiene": "#FDC74B", + "G3 Good personal hygiene": "#4088F4" + }, "fnString": "function() {\n return (\n #1699434939105.includes(\"G0\") &&\n #1699434983278.includes(\"G0\")\n )\n ? \"G1 No personal hygiene\"\n : ((\n #1699434939105.includes(\"G3\") &&\n #1699434983278.includes(\"G3\"))\n ? \"G3 Good personal hygiene\"\n : \"G2 Inadequate personal hygiene\"\n )\n}", "multiline": false } @@ -4010,7 +4203,11 @@ "meta": false, "options": null, "fn": { - "fnColor": {}, + "fnColor": { + "G1 No personal hygiene": "#93D371", + "G2 Inadequate personal hygiene": "#FDC74B", + "G3 Good personal hygiene": "#4088F4" + }, "fnString": "function() {\n return (\n #1699435026311.includes(\"G0\") &&\n #1699435088758.includes(\"G0\") &&\n #1699435154797.includes(\"G0\")\n )\n ? \"G1 No personal hygiene\"\n : ((\n #1699435026311.includes(\"G3\") &&\n #1699435088758.includes(\"G3\") &&\n #1699435154797.includes(\"G3\"))\n ? \"G3 Good personal hygiene\"\n : \"G2 Inadequate personal hygiene\"\n )\n}", "multiline": false } @@ -4060,7 +4257,11 @@ "meta": false, "options": null, "fn": { - "fnColor": {}, + "fnColor": { + "G1 Low nutrition or protection": "#93D371", + "G2 Inadequate nutrition or protection": "#FDC74B", + "G3 Good nutrition and protection": "#4088F4" + }, "fnString": "function() {\n return (#1699435207476.includes(\"G1\"))\n ? \"G1 Low nutrition or protection\"\n : (\n #1699435207476.includes(\"G3\")\n ? \"G3 Good nutrition and protection\"\n : \"G2 Inadequate nutrition or protection\"\n )\n}", "multiline": false } @@ -4110,7 +4311,11 @@ "meta": false, "options": null, "fn": { - "fnColor": {}, + "fnColor": { + "G1 Low nutrition or protection": "#93D371", + "G2 Inadequate nutrition or protection": "#FDC74B", + "G3 Good nutrition and protection": "#4088F4" + }, "fnString": "function() {\n return #1699435265962.includes(\"G1\")\n ? \"G1 Low nutrition or protection\"\n : (\n #1699435265962.includes(\"G3\")\n ? \"G3 Good nutrition and protection\"\n : \"G2 Inadequate nutrition or protection\"\n )\n}", "multiline": false } @@ -4160,7 +4365,11 @@ "meta": false, "options": null, "fn": { - "fnColor": {}, + "fnColor": { + "G1 Low nutrition or protection": "#93D371", + "G2 Inadequate nutrition or protection": "#FDC74B", + "G3 Good nutrition and protection": "#4088F4" + }, "fnString": "function() {\n return #1699435329279.includes(\"G1\")\n ? \"G1 Low nutrition or protection\"\n : (\n #1699435329279.includes(\"G3\")\n ? \"G3 Good nutrition and protection\"\n : \"G2 Inadequate nutrition or protection\"\n )\n}", "multiline": false } @@ -4210,7 +4419,11 @@ "meta": false, "options": null, "fn": { - "fnColor": {}, + "fnColor": { + "G1 Low nutrition or protection": "#93D371", + "G2 Inadequate nutrition or protection": "#FDC74B", + "G3 Good nutrition and protection": "#4088F4" + }, "fnString": "function() {\n return #1699435397728.includes(\"G1\")\n ? \"G1 Low nutrition or protection\"\n : (\n #1699435397728.includes(\"G3\")\n ? \"G3 Good nutrition and protection\"\n : \"G2 Inadequate nutrition or protection\"\n )\n}", "multiline": false } @@ -4260,7 +4473,11 @@ "meta": false, "options": null, "fn": { - "fnColor": {}, + "fnColor": { + "G1 No malaria protection": "#93D371", + "G2 Inadequate malaria protection": "#FDC74B", + "G3 Malaria-safe home": "#4088F4" + }, "fnString": "function() {\n return #1699435455818.includes(\"G0\")\n ? \"G1 No malaria protection\"\n : (\n #1699435455818.includes(\"G3\")\n ? \"G3 Malaria-safe home\"\n : \"G2 Inadequate malaria protection\"\n )\n}", "multiline": false } @@ -4280,22 +4497,25 @@ "id": 1699435540083, "name": "G1 No deworming: no children or adults treated", "order": 1, - "color": "#ffc677" + "color": "#ffc7ce" }, { "id": 1699435540084, "name": "G2 Inadequate deworming: some children or adults not treated", - "order": 2 + "order": 2, + "color": "#ffeb9c" }, { "id": 1699435565694, "name": "G3 Dewormed home (all treated in last 12 months)", - "order": 3 + "order": 3, + "color": "#c6efce" }, { "id": 1699435572940, "name": "G3 NOT in STH-Endemic area", - "order": 4 + "order": 4, + "color": "#c6efce" } ], "fn": null @@ -4310,7 +4530,11 @@ "meta": false, "options": null, "fn": { - "fnColor": {}, + "fnColor": { + "G1 No deworming": "#93D371", + "G2 Inadequate deworming": "#FDC74B", + "G3 Dewormed home": "#4088F4" + }, "fnString": "function() {\n return #1699435526190.includes(\"G0\")\n ? \"G1 No deworming\"\n : (\n #1699435526190.includes(\"G3\")\n ? \"G3 Dewormed home\"\n : \"G2 Inadequate deworming\"\n )\n}", "multiline": false } @@ -4332,7 +4556,7 @@ "type": "autofield", "required": true, "meta": false, - "displayOnly":true, + "displayOnly": true, "fn": { "fnColor": {}, "fnString": "function(){return #1701810579091}", @@ -4346,7 +4570,7 @@ "type": "autofield", "required": true, "meta": false, - "displayOnly":true, + "displayOnly": true, "fn": { "fnColor": {}, "fnString": "function(){return #1702281084786}", @@ -4360,7 +4584,7 @@ "type": "autofield", "required": true, "meta": false, - "displayOnly":true, + "displayOnly": true, "fn": { "fnColor": {}, "fnString": "function(){return #1702282119933}", @@ -4374,7 +4598,7 @@ "type": "autofield", "required": true, "meta": false, - "displayOnly":true, + "displayOnly": true, "fn": { "fnColor": {}, "fnString": "function(){return #1702283171680}", @@ -4388,7 +4612,7 @@ "type": "autofield", "required": true, "meta": false, - "displayOnly":true, + "displayOnly": true, "fn": { "fnColor": {}, "fnString": "function(){return #1702283955461}", @@ -4402,7 +4626,7 @@ "type": "autofield", "required": true, "meta": false, - "displayOnly":true, + "displayOnly": true, "fn": { "fnColor": {}, "fnString": "function(){return #1702283955461}", @@ -4416,7 +4640,7 @@ "type": "autofield", "required": true, "meta": false, - "displayOnly":true, + "displayOnly": true, "fn": { "fnColor": {}, "fnString": "function(){return #1702284734752}", @@ -4430,7 +4654,7 @@ "type": "autofield", "required": true, "meta": false, - "displayOnly":true, + "displayOnly": true, "fn": { "fnColor": {}, "fnString": "function(){return #1702285101196}", @@ -4444,7 +4668,7 @@ "type": "autofield", "required": true, "meta": false, - "displayOnly":true, + "displayOnly": true, "fn": { "fnColor": {}, "fnString": "function(){return #1702285668136}", @@ -4458,7 +4682,7 @@ "type": "autofield", "required": true, "meta": false, - "displayOnly":true, + "displayOnly": true, "fn": { "fnColor": {}, "fnString": "function(){return #1702287053503}", @@ -4472,7 +4696,7 @@ "type": "autofield", "required": true, "meta": false, - "displayOnly":true, + "displayOnly": true, "fn": { "fnColor": {}, "fnString": "function(){return #1702287685048}", @@ -4486,7 +4710,7 @@ "type": "autofield", "required": true, "meta": false, - "displayOnly":true, + "displayOnly": true, "fn": { "fnColor": {}, "fnString": "function(){return #1702288599133}", @@ -4500,7 +4724,7 @@ "type": "autofield", "required": true, "meta": false, - "displayOnly":true, + "displayOnly": true, "fn": { "fnColor": {}, "fnString": "function(){return #1702289546185}", @@ -4514,7 +4738,7 @@ "type": "autofield", "required": true, "meta": false, - "displayOnly":true, + "displayOnly": true, "fn": { "fnColor": {}, "fnString": "function(){return #1702289725502}", @@ -4528,7 +4752,7 @@ "type": "autofield", "required": true, "meta": false, - "displayOnly":true, + "displayOnly": true, "fn": { "fnColor": {}, "fnString": "function(){return #1702295289084}", @@ -4542,7 +4766,7 @@ "type": "autofield", "required": true, "meta": false, - "displayOnly":true, + "displayOnly": true, "fn": { "fnColor": {}, "fnString": "function(){return #1702295769122}", @@ -4556,7 +4780,7 @@ "type": "autofield", "required": true, "meta": false, - "displayOnly":true, + "displayOnly": true, "fn": { "fnColor": {}, "fnString": "function(){return #1702296110410}", @@ -4570,7 +4794,7 @@ "type": "autofield", "required": true, "meta": false, - "displayOnly":true, + "displayOnly": true, "fn": { "fnColor": {}, "fnString": "function(){return #1702296406679}", @@ -4584,7 +4808,7 @@ "type": "autofield", "required": true, "meta": false, - "displayOnly":true, + "displayOnly": true, "fn": { "fnColor": {}, "fnString": "function(){return #1702296839468}", @@ -4598,7 +4822,7 @@ "type": "autofield", "required": true, "meta": false, - "displayOnly":true, + "displayOnly": true, "fn": { "fnColor": {}, "fnString": "function(){return #1702297046194}", @@ -4612,7 +4836,7 @@ "type": "autofield", "required": true, "meta": false, - "displayOnly":true, + "displayOnly": true, "fn": { "fnColor": {}, "fnString": "function(){return #1702297533085}", @@ -4626,7 +4850,7 @@ "type": "autofield", "required": true, "meta": false, - "displayOnly":true, + "displayOnly": true, "fn": { "fnColor": {}, "fnString": "function(){return #1702297797962}", @@ -4640,7 +4864,7 @@ "type": "autofield", "required": true, "meta": false, - "displayOnly":true, + "displayOnly": true, "fn": { "fnColor": {}, "fnString": "function(){return #1702298080560}", @@ -4654,7 +4878,7 @@ "type": "autofield", "required": true, "meta": false, - "displayOnly":true, + "displayOnly": true, "fn": { "fnColor": {}, "fnString": "function(){return #1702298318702}", @@ -4668,7 +4892,7 @@ "type": "autofield", "required": true, "meta": false, - "displayOnly":true, + "displayOnly": true, "fn": { "fnColor": {}, "fnString": "function(){return #1702298602672}", @@ -4682,7 +4906,7 @@ "type": "autofield", "required": true, "meta": false, - "displayOnly":true, + "displayOnly": true, "fn": { "fnColor": {}, "fnString": "function(){return #1702298863458}", @@ -4696,7 +4920,7 @@ "type": "autofield", "required": true, "meta": false, - "displayOnly":true, + "displayOnly": true, "fn": { "fnColor": {}, "fnString": "function(){return #1702301820095}", @@ -4710,7 +4934,7 @@ "type": "autofield", "required": true, "meta": false, - "displayOnly":true, + "displayOnly": true, "fn": { "fnColor": {}, "fnString": "function(){return #1702302041022}", @@ -4724,7 +4948,7 @@ "type": "autofield", "required": true, "meta": false, - "displayOnly":true, + "displayOnly": true, "fn": { "fnColor": {}, "fnString": "function(){return #1702302232732}", @@ -4738,7 +4962,7 @@ "type": "autofield", "required": true, "meta": false, - "displayOnly":true, + "displayOnly": true, "fn": { "fnColor": {}, "fnString": "function(){return #1702302427536}", @@ -4752,7 +4976,7 @@ "type": "autofield", "required": true, "meta": false, - "displayOnly":true, + "displayOnly": true, "fn": { "fnColor": {}, "fnString": "function(){return #1702302507816}", @@ -4766,7 +4990,7 @@ "type": "autofield", "required": true, "meta": false, - "displayOnly":true, + "displayOnly": true, "fn": { "fnColor": {}, "fnString": "function(){return #1702299714872}", @@ -4780,7 +5004,7 @@ "type": "autofield", "required": true, "meta": false, - "displayOnly":true, + "displayOnly": true, "fn": { "fnColor": {}, "fnString": "function(){return #1702299918738}", diff --git a/backend/source/forms/1699354006503.prod.json b/backend/source/forms/1699354006503.prod.json index 683e280eb..2a190e1fd 100644 --- a/backend/source/forms/1699354006503.prod.json +++ b/backend/source/forms/1699354006503.prod.json @@ -3,7 +3,9 @@ "form": "RTMIS Community Monitoring Form", "description": "Community monitoring", "defaultLanguage": "en", - "languages": ["en"], + "languages": [ + "en" + ], "version": 1, "type": 1, "translations": null, @@ -39,30 +41,63 @@ } ], "pre": { - "answer": ["New"], + "answer": [ + "New" + ], "fill": [ - { "id": 1699354006535, "answer": ["New"] }, + { + "id": 1699354006535, + "answer": [ + "New" + ] + }, { "id": 1699951538608, - "answer": ["Village chief/Community head"] + "answer": [ + "Village chief/Community head" + ] }, { "id": 1699951986776, - "answer": ["Medium drainage soil (medium sand, weathered rock)"] + "answer": [ + "Medium drainage soil (medium sand, weathered rock)" + ] + }, + { + "id": 1699952153243, + "answer": [ + "Less than 5m" + ] }, - { "id": 1699952153243, "answer": ["Less than 5m"] }, { "id": 1699952219561, "answer": [ "Protected groundwater sources (protected boreholes, protected dug wells or protected springs)" ] }, - { "id": 1699952295823, "answer": ["More than 25%"] }, - { "id": 1699952355848, "answer": ["More than 25%"] }, - { "id": 1699952418978, "answer": ["More than 25%"] }, + { + "id": 1699952295823, + "answer": [ + "More than 25%" + ] + }, + { + "id": 1699952355848, + "answer": [ + "More than 25%" + ] + }, + { + "id": 1699952418978, + "answer": [ + "More than 25%" + ] + }, { "id": 1702364544574, - "answer": ["G0 High risk of groundwater contamination"] + "answer": [ + "G0 High risk of groundwater contamination" + ] }, { "id": 1699958670124, @@ -84,19 +119,27 @@ }, { "id": 1699959743410, - "answer": ["G0 Used diapers visible in communal areas"] + "answer": [ + "G0 Used diapers visible in communal areas" + ] }, { "id": 1699959861479, - "answer": ["G0 Visible dirt or contamination"] + "answer": [ + "G0 Visible dirt or contamination" + ] }, { "id": 1699960025562, - "answer": ["G0 No protection of water points"] + "answer": [ + "G0 No protection of water points" + ] }, { "id": 1699960104326, - "answer": ["G0 Standing water visible around water point"] + "answer": [ + "G0 Standing water visible around water point" + ] }, { "id": 1699960255414, @@ -106,7 +149,9 @@ }, { "id": 1699960354498, - "answer": ["G0 Significant erosion in communal areas"] + "answer": [ + "G0 Significant erosion in communal areas" + ] }, { "id": 1699960411329, @@ -116,36 +161,57 @@ }, { "id": 1699960488230, - "answer": ["G0 Significant standing water in communal areas"] + "answer": [ + "G0 Significant standing water in communal areas" + ] }, { "id": 1699960542156, - "answer": ["G0 No treatment or management in communal areas"] + "answer": [ + "G0 No treatment or management in communal areas" + ] + }, + { + "id": 1699960591715, + "answer": [ + "School" + ] }, - { "id": 1699960591715, "answer": ["School"] }, { "id": 1699960963586, - "answer": ["G0 Non-functional toilets in institutions"] + "answer": [ + "G0 Non-functional toilets in institutions" + ] }, { "id": 1699961175102, - "answer": ["G0 Toilets NOT flyproof in institutions"] + "answer": [ + "G0 Toilets NOT flyproof in institutions" + ] }, { "id": 1699961260729, - "answer": ["G0 Toilets NOT clean in institutions"] + "answer": [ + "G0 Toilets NOT clean in institutions" + ] }, { "id": 1699961309670, - "answer": ["G0 Toilet slabs NOT durable in institutions"] + "answer": [ + "G0 Toilet slabs NOT durable in institutions" + ] }, { "id": 1699961394874, - "answer": ["G0 Toilet pits NOT durable in institutions"] + "answer": [ + "G0 Toilet pits NOT durable in institutions" + ] }, { "id": 1699961577575, - "answer": ["G0 Visible surface outflows from containment"] + "answer": [ + "G0 Visible surface outflows from containment" + ] }, { "id": 1699961683357, @@ -155,15 +221,34 @@ }, { "id": 1699961882642, - "answer": ["G0 No toilet, or no containment/collection system"] + "answer": [ + "G0 No toilet, or no containment/collection system" + ] + }, + { + "id": 1699962081417, + "answer": [ + "G0 No handwashing facility" + ] + }, + { + "id": 1699962192648, + "answer": [ + "G0 No water available" + ] }, - { "id": 1699962081417, "answer": ["G0 No handwashing facility"] }, - { "id": 1699962192648, "answer": ["G0 No water available"] }, { "id": 1699962251539, - "answer": ["G0 No soap or other cleanser available"] + "answer": [ + "G0 No soap or other cleanser available" + ] + }, + { + "id": 1699962342866, + "answer": [ + "G0 No handwashing facility" + ] }, - { "id": 1699962342866, "answer": ["G0 No handwashing facility"] }, { "id": 1699962446974, "answer": [ @@ -172,7 +257,9 @@ }, { "id": 1699962527375, - "answer": ["\"G0 No collection or disposal of washing water \""] + "answer": [ + "\"G0 No collection or disposal of washing water \"" + ] } ] } @@ -200,7 +287,9 @@ "dependency": [ { "id": 1699354220734, - "options": ["New"] + "options": [ + "New" + ] } ] }, @@ -688,7 +777,10 @@ "meta": false, "options": null, "fn": { - "fnColor": {}, + "fnColor": { + "G0 Child or adult excreta observed in compound": "#FD3F31", + "G1 No exposed human excreta in compound": "#93D371" + }, "fnString": "function(){ return (#1699959649782.includes(\"G1\")) ? \"G1 No exposed human excreta in compound\" : \"G0 Child or adult excreta observed in compound\" }", "multiline": false } @@ -753,7 +845,10 @@ "meta": false, "options": null, "fn": { - "fnColor": {}, + "fnColor": { + "G1 Safely managed diapers": "#93D371", + "G0 Diapers UNSAFELY managed": "#FD3F31" + }, "fnString": "function(){ return (#1699959743410.includes(\"G1\")) ? \"G1 Safely managed diapers\" : \"G0 Diapers UNSAFELY managed\" }", "multiline": false } @@ -864,7 +959,11 @@ "meta": false, "options": null, "fn": { - "fnColor": {}, + "fnColor": { + "G0 Communal water points are UNSAFELY managed": "#FD3F31", + "G1 Communal water points are NOT adequately managed": "#93D371", + "G2 Safe management of communal water points": "#FDC74B" + }, "fnString": "function(){ return (#1699959861479.includes(\"G0\") && #1699960025562.includes(\"G0\") && #1699960104326.includes(\"G0\"))\n? \"G0 Communal water points are UNSAFELY managed\"\n: (#1699959861479.includes(\"G2\") && #1699960025562.includes(\"G2\") && #1699960104326.includes(\"G2\") ? \"G2 Safe management of communal water points\" : \"G1 Communal water points are NOT adequately managed\");\n}", "multiline": false } @@ -917,7 +1016,11 @@ "meta": false, "options": null, "fn": { - "fnColor": {}, + "fnColor": { + "G0 Sanitation services UNSAFELY managed in communal areas": "#FD3F31", + "G1 Inadequate sanitation services in communal areas": "#93D371", + "G3 Use of safely managed sanitation services in communal areas": "#4088F4" + }, "fnString": "function(){ return (#1699960255414.includes(\"G0\")) ? \"G0 Sanitation services UNSAFELY managed in communal areas\" : (#1699960255414.includes(\"G3\") ? \"G3 Use of safely managed sanitation services in communal areas\" : \"G1 Inadequate sanitation services in communal areas\") }", "multiline": false } @@ -970,7 +1073,11 @@ "meta": false, "options": null, "fn": { - "fnColor": {}, + "fnColor": { + "G1 Liquid wastes UNSAFELY managed in communal areas": "#93D371", + "G2 Inadequate management of liquid wastes in communal areas": "#FDC74B", + "G3 Safe management of liquid wastes in communal areas": "#4088F4" + }, "fnString": "function(){ return (#1699960354498.includes(\"G0\")) ? \"G1 Liquid wastes UNSAFELY managed in communal areas\" : (#1699960354498.includes(\"G3\") ? \"G3 Safe management of liquid wastes in communal areas\" : \"G2 Inadequate management of liquid wastes in communal areas\") }", "multiline": false } @@ -1017,7 +1124,11 @@ "meta": false, "options": null, "fn": { - "fnColor": {}, + "fnColor": { + "G1 Liquid wastes UNSAFELY managed in communal areas": "#93D371", + "G2 Inadequate management of liquid wastes in communal areas": "#FDC74B", + "G3 Safe management of liquid wastes in communal areas": "#4088F4" + }, "fnString": "function(){ return (#1699960411329.includes(\"G0\")) ? \"G1 Liquid wastes UNSAFELY managed in communal areas\" : (#1699960411329.includes(\"G3\") ? \"G3 Safe management of liquid wastes in communal areas\" : \"G2 Inadequate management of liquid wastes in communal areas\") }", "multiline": false } @@ -1102,7 +1213,11 @@ "meta": false, "options": null, "fn": { - "fnColor": {}, + "fnColor": { + "G1 Lack of vector control in communal areas": "#93D371", + "G2 Inadequate vector control in communal areas": "#FDC74B", + "G3 Good vector control in communal areas": "#4088F4" + }, "fnString": "function(){ return (#1699960488230.includes(\"G0\") && #1699960542156.includes(\"G0\")) ? \"G1 Lack of vector control in communal areas\" : ((#1699960488230.includes(\"G3\") && #1699960542156.includes(\"G3\")) ? \"G3 Good vector control in communal areas\" : \"G2 Inadequate vector control in communal areas\") }", "multiline": false } @@ -1729,4 +1844,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/backend/source/forms/1701172125596.prod.json b/backend/source/forms/1701172125596.prod.json index 302208c2a..7f013a1d2 100644 --- a/backend/source/forms/1701172125596.prod.json +++ b/backend/source/forms/1701172125596.prod.json @@ -3,7 +3,9 @@ "form": "RTMIS Institution Form", "description": "Institution Form", "defaultLanguage": "en", - "languages": ["en"], + "languages": [ + "en" + ], "version": 1, "type": 1, "translations": null, @@ -39,16 +41,21 @@ } ], "pre": { - "answer": ["New"], + "answer": [ + "New" + ], "fill": [ - { "id": 1701172125598, "answer": ["New"] }, { - "id": 1701329787633, - "answer": ["Community: Village or other urban unit"] + "id": 1701172125598, + "answer": [ + "New" + ] }, { "id": 1701174317250, - "answer": ["School (select school from list of schools)"] + "answer": [ + "School (select school from list of schools)" + ] }, { "id": 1701329515408, @@ -58,23 +65,33 @@ }, { "id": 1701331306965, - "answer": ["G0 Toilets NOT flyproof in institutions"] + "answer": [ + "G0 Toilets NOT flyproof in institutions" + ] }, { "id": 1701331373050, - "answer": ["G0 Toilets NOT clean in institutions"] + "answer": [ + "G0 Toilets NOT clean in institutions" + ] }, { "id": 1701331438759, - "answer": ["G0 Toilet slabs NOT durable in institutions"] + "answer": [ + "G0 Toilet slabs NOT durable in institutions" + ] }, { "id": 1701331908015, - "answer": ["G0 Toilet pits NOT durable in institutions"] + "answer": [ + "G0 Toilet pits NOT durable in institutions" + ] }, { "id": 1701332234354, - "answer": ["G0 Visible surface outflows from containment"] + "answer": [ + "G0 Visible surface outflows from containment" + ] }, { "id": 1701332496414, @@ -84,17 +101,33 @@ }, { "id": 1701334423738, - "answer": ["G0 No toilet, or no containment/collection system"] + "answer": [ + "G0 No toilet, or no containment/collection system" + ] + }, + { + "id": 1701334833791, + "answer": [ + "G0 No handwashing facility" + ] + }, + { + "id": 1701334972999, + "answer": [ + "G0 No water available" + ] }, - { "id": 1701334833791, "answer": ["G0 No handwashing facility"] }, - { "id": 1701334972999, "answer": ["G0 No water available"] }, { "id": 1701335557029, - "answer": ["G0 No soap or other cleanser available"] + "answer": [ + "G0 No soap or other cleanser available" + ] }, { "id": 1701358601048, - "answer": ["G1 Jerrycan or other closed container"] + "answer": [ + "G1 Jerrycan or other closed container" + ] }, { "id": 1701359046016, @@ -104,7 +137,9 @@ }, { "id": 1701359231461, - "answer": ["G0 No collection or disposal of washing water"] + "answer": [ + "G0 No collection or disposal of washing water" + ] } ] } @@ -786,4 +821,4 @@ ] } ] -} +} \ No newline at end of file diff --git a/backend/source/forms/1701757876668.prod.json b/backend/source/forms/1701757876668.prod.json index fe7612612..d1904827e 100644 --- a/backend/source/forms/1701757876668.prod.json +++ b/backend/source/forms/1701757876668.prod.json @@ -3,7 +3,9 @@ "form": "RTMIS School WASH Form", "description": "School WASH", "defaultLanguage": "en", - "languages": ["en"], + "languages": [ + "en" + ], "version": 1, "type": 1, "translations": null, @@ -37,7 +39,20 @@ "name": "Update", "order": 2 } - ] + ], + "pre": { + "answer": [ + "New" + ], + "fill": [ + { + "id": 1701757914033, + "answer": [ + "New" + ] + } + ] + } } ] }, @@ -75,4 +90,4 @@ ] } ] -} +} \ No newline at end of file From 43c4cfd84a78004113c9e9d737a1bdeb251dcffd Mon Sep 17 00:00:00 2001 From: abhishek-p-s Date: Thu, 18 Jan 2024 19:03:46 +0530 Subject: [PATCH 2/5] [#990] colour changing issue working on --- backend/source/forms/1699353915355.prod.json | 104 ++++++------- backend/source/forms/1699354006503.prod.json | 148 ++++++------------- 2 files changed, 95 insertions(+), 157 deletions(-) diff --git a/backend/source/forms/1699353915355.prod.json b/backend/source/forms/1699353915355.prod.json index e868ef4d8..0e038e570 100644 --- a/backend/source/forms/1699353915355.prod.json +++ b/backend/source/forms/1699353915355.prod.json @@ -1117,7 +1117,7 @@ "dependency": null, "fn": { "fnColor": { - "G1 Functional toilet with privacy": "#93D371", + "G1 Functional toilet with privacy": "#FDC74B", "G0 Toilet non-functional or not private": "#FD3F31" }, "fnString": "function() { return (#1699422286091.includes(\"G1\") && #1699423357200.includes(\"G1\") && #1699423571454.includes(\"G1\"))\n? \"G1 Functional toilet with privacy\" : \"G0 Toilet non-functional or not private\"}", @@ -1389,7 +1389,7 @@ "dependency": null, "fn": { "fnColor": { - "G1 Flyproof toilet": "#93D371", + "G1 Flyproof toilet": "#FDC74B", "G0 Toilet NOT flyproof": "#FD3F31" }, "fnString": "function() {\n return (\n #1699423696720.includes(\"G1\") &&\n #1699423946170.includes(\"G1\") &&\n #1699424375968.includes(\"G1\")\n )\n ? \"G1 Flyproof toilet\"\n : \"G0 Toilet NOT flyproof\"\n}", @@ -1525,7 +1525,7 @@ "dependency": null, "fn": { "fnColor": { - "G1 Clean toilet": "#93D371", + "G1 Clean toilet": "#FDC74B", "G0 Toilet NOT clean": "#FD3F31" }, "fnString": "function() { return (#1699425852809.includes(\"G1\") && #1699425943159.includes(\"G1\") && #1699426059842.includes(\"G1\")) ? \"G1 Clean toilet\" : \"G0 Toilet NOT clean\"}", @@ -1706,7 +1706,7 @@ "dependency": null, "fn": { "fnColor": { - "G2 Durable toilet": " #FDC74B", + "G2 Durable toilet": " #93D371", "G0 Toilet NOT durable": "#FD3F31" }, "fnString": "function() { return (#1699427405024.includes(\"G2\") && #1699427574765.includes(\"G2\")) ? \"G2 Durable toilet\" : \"G0 Toilet NOT durable\"}", @@ -1845,7 +1845,7 @@ "dependency": null, "fn": { "fnColor": { - "G2 Toilet with safe containment": "#FDC74B", + "G2 Toilet with safe containment": "#93D371", "G0 Unsafe toilet containment": "#FD3F31" }, "fnString": "function() { return (#1699427743413.includes(\"G2\") && #1699427885744.includes(\"G2\") && #1702282796765.includes(\"G2\")) ? \"G2 Toilet with safe containment\" : \"G0 Unsafe toilet containment\"}", @@ -1975,7 +1975,7 @@ "options": null, "fn": { "fnColor": { - "G1 Toilet use by all household members": "#93D371", + "G1 Toilet use by all household members": "#FDC74B", "G0 Toilet NOT used (or used by too many)": "#FD3F31" }, "fnString": "function() {\n return (\n #1699428072669.includes(\"G1\") &&\n #1699428351326.includes(\"G1\") &&\n #1699428400205.includes(\"G1\")\n )\n ? \"G1 Toilet use by all household members\"\n : \"G0 Toilet NOT used (or used by too many)\"\n}", @@ -2027,8 +2027,8 @@ "options": null, "fn": { "fnColor": { - "G1 Some household members do not use their own toilet": "#93D371", - "G2 All household members use own toilet at all times": "#FDC74B", + "G1 Some household members do not use their own toilet": "#FDC74B", + "G2 All household members use own toilet at all times": "#93D371", "G0 All household members defecate in the open": "#FD3F31" }, "fnString": "function(){ return (#1699428535663.includes(\"G2\")) ? \"G2 All household members use own toilet at all times\" : (#1699428535663.includes(\"G0\") ? \"G0 All household members defecate in the open\" : \"G1 Some household members do not use their own toilet\") }", @@ -2188,7 +2188,7 @@ "fn": { "fnColor": { "G3 Use of safely managed sanitation services": "#4088F4", - "G1 Inadequate sanitation services": "#93D371", + "G1 Inadequate sanitation services": "#FDC74B", "G0 Sanitation services UNSAFELY managed": "#FD3F31" }, "fnString": "function(){ return (#1699428661689.includes(\"G3\") && #1699428820338.includes(\"G3\")) ? \"G3 Use of safely managed sanitation services\" : ((#1699428661689.includes(\"G0\") && #1699428820338.includes(\"G0\")) ? \"G0 Sanitation services UNSAFELY managed\" : \"G1 Inadequate sanitation services\") }", @@ -2336,7 +2336,7 @@ "options": null, "fn": { "fnColor": { - "G1 Handwashing facility with soap and water": "#93D371", + "G1 Handwashing facility with soap and water": "#FDC74B", "G0 Inadequate or no handwashing facility": "#FD3F31" }, "fnString": "function() { return (#1699429162796.includes(\"G1\") && #1699430427692.includes(\"G1\") && #1699430472221.includes(\"G1\")) ? \"G1 Handwashing facility with soap and water\" : \"G0 Inadequate or no handwashing facility\"}", @@ -2481,7 +2481,7 @@ "fnColor": { "G0 No or inadequate handwashing services": "#FD3F31", "G3 Permanent handwashing services": "#4088F4", - "G1 Non-durable handwashing services": "#93D371" + "G1 Non-durable handwashing services": "#FDC74B" }, "fnString": "function(){\n return (\n #1699430580239.includes(\"G0\") &&\n #1699430671868.includes(\"G0\") &&\n #1699430761393.includes(\"G0\")\n )\n ? \"G0 No or inadequate handwashing services\"\n : (\n #1699430580239.includes(\"G3\") &&\n #1699430671868.includes(\"G3\") &&\n #1699430761393.includes(\"G3\"))\n ? \"G3 Permanent handwashing services\"\n : \"G1 Non-durable handwashing services\"\n}", "multiline": false @@ -2682,8 +2682,8 @@ "options": null, "fn": { "fnColor": { - "G1 Some critical handwashing times NOT mentioned": "#93D371", - "G2 Handwashing with soap at ALL critical times": "#FDC74B", + "G1 Some critical handwashing times NOT mentioned": "#FDC74B", + "G2 Handwashing with soap at ALL critical times": "#93D371", "G0 No or inadequate handwashing services": "#FD3F31" }, "fnString": "function(){ return (#1699430839676.includes(\"G0\") && #1699431035188.includes(\"G0\") && #1699431983680.includes(\"G0\") && #1699432052966.includes(\"G0\")) ? \"G0 No or inadequate handwashing services\" : ((#1699430839676.includes(\"G2\") && #1699431035188.includes(\"G2\") && #1699431983680.includes(\"G2\") && #1699432052966.includes(\"G2\")) ? \"G2 Handwashing with soap at ALL critical times\" : \"G1 Some critical handwashing times NOT mentioned\") }", @@ -2737,7 +2737,7 @@ "options": null, "fn": { "fnColor": { - "G1 No exposed human excreta in compound": "#93D371", + "G1 No exposed human excreta in compound": "#FDC74B", "G0 Child or adult excreta observed in compound": "#FD3F31" }, "fnString": "function() {return (#1699432663952 ?? \"\").includes(\"G1\") ? \"G1 No exposed human excreta in compound\" : \"G0 Child or adult excreta observed in compound\"}", @@ -2862,7 +2862,7 @@ "fn": { "fnColor": { "G1 Safely managed child excreta and diapers": "#FD3F31", - "G0 Child excreta and diapers UNSAFELY managed": "#93D371" + "G0 Child excreta and diapers UNSAFELY managed": "#FDC74B" }, "fnString": "function() { return (#1699432130951.includes(\"G1\") && #1699432802923.includes(\"G1\")) ? \"G1 Safely managed child excreta and diapers\" : \"G0 Child excreta and diapers UNSAFELY managed\"}", "multiline": false @@ -2971,8 +2971,8 @@ "fn": { "fnColor": { "G0 Food not clean and not safely stored": "#FD3F31", - "G2 Clean and safely stored food": "#FDC74B", - "G1 Food not adequately washed, or not safely stored": "#93D371" + "G2 Clean and safely stored food": "#93D371", + "G1 Food not adequately washed, or not safely stored": "#FDC74B" }, "fnString": "function() {\n return (\n #1699432887212.includes(\"G0\") &&\n #1699433027913.includes(\"G0\") &&\n #1699433058652.includes(\"G0\")\n )\n ? \"G0 Food not clean and not safely stored\"\n : ((\n #1699432887212.includes(\"G2\") &&\n #1699433027913.includes(\"G2\") &&\n #1699433058652.includes(\"G2\"))\n ? \"G2 Clean and safely stored food\"\n : \"G1 Food not adequately washed, or not safely stored\"\n )\n}", "multiline": false @@ -3083,8 +3083,8 @@ "fn": { "fnColor": { "G0 Kitchen utensils not clean and not safely stored": "#FD3F31", - "G2 Clean and safely stored kitchen utensils": "#FDC74B", - "G1 Kitchen utensils not adequately washed, or not safely stored": "#93D371" + "G2 Clean and safely stored kitchen utensils": "#93D371", + "G1 Kitchen utensils not adequately washed, or not safely stored": "#FDC74B" }, "fnString": "function() {\n return (\n #1699433108344.includes(\"G0\") &&\n #1699433162828.includes(\"G0\") &&\n #1699433205793.includes(\"G0\")\n )\n ? \"G0 Kitchen utensils not clean and not safely stored\"\n : ((\n #1699433108344.includes(\"G2\") &&\n #1699433162828.includes(\"G2\") &&\n #1699433205793.includes(\"G2\"))\n ? \"G2 Clean and safely stored kitchen utensils\"\n : \"G1 Kitchen utensils not adequately washed, or not safely stored\"\n )\n}", "multiline": false @@ -3195,8 +3195,8 @@ "fn": { "fnColor": { "G0 Milk containers not clean and not safely stored": "#FD3F31", - "G2 Clean and safely stored milk containers": "#FDC74B", - "G1 Milk containers not adequately washed, or not safely stored": "#93D371" + "G2 Clean and safely stored milk containers": "#93D371", + "G1 Milk containers not adequately washed, or not safely stored": "#FDC74B" }, "fnString": "function() {\n return (\n #1699433286697.includes(\"G0\") &&\n #1699433337417.includes(\"G0\") &&\n #1699433394633.includes(\"G0\")\n )\n ? \"G0 Milk containers not clean and not safely stored\"\n : ((\n #1699433286697.includes(\"G2\") &&\n #1699433337417.includes(\"G2\") &&\n #1699433394633.includes(\"G2\"))\n ? \"G2 Clean and safely stored milk containers\"\n : \"G1 Milk containers not adequately washed, or not safely stored\"\n )\n}", "multiline": false @@ -3353,8 +3353,8 @@ "fn": { "fnColor": { "G0 Drinking water is UNSAFELY managed": "#FD3F31", - "G2 Safe management of drinking water": "#FDC74B", - "G1 Drinking water is NOT adequately managed": "#93D371" + "G2 Safe management of drinking water": "#93D371", + "G1 Drinking water is NOT adequately managed": "#FDC74B" }, "fnString": "function() {\n return (\n #1699433455365.includes(\"G0\") &&\n #1699433503692.includes(\"G0\") &&\n #1699433564057.includes(\"G0\") &&\n #1699433637971.includes(\"G0\")\n )\n ? \"G0 Drinking water is UNSAFELY managed\"\n : ((\n #1699433455365.includes(\"G2\") &&\n #1699433503692.includes(\"G2\") &&\n #1699433564057.includes(\"G2\") &&\n #1699433637971.includes(\"G2\"))\n ? \"G2 Safe management of drinking water\"\n : \"G1 Drinking water is NOT adequately managed\"\n )\n}", "multiline": false @@ -3465,8 +3465,8 @@ "fn": { "fnColor": { "G0 Water points are UNSAFELY managed": "#FD3F31", - "G2 Safe management of water points": "#FDC74B", - "G1 Water points are NOT adequately managed": "#93D371" + "G2 Safe management of water points": "#93D371", + "G1 Water points are NOT adequately managed": "#FDC74B" }, "fnString": "function() {\n return (\n #1699433719018.includes(\"G0\") &&\n #1699433765217.includes(\"G0\") &&\n #1699433833227.includes(\"G0\")\n )\n ? \"G0 Water points are UNSAFELY managed\"\n : ((\n #1699433719018.includes(\"G2\") &&\n #1699433765217.includes(\"G2\") &&\n #1699433833227.includes(\"G2\"))\n ? \"G2 Safe management of water points\"\n : \"G1 Water points are NOT adequately managed\"\n )\n}", "multiline": false @@ -3546,8 +3546,8 @@ "fn": { "fnColor": { "G0 Widespread presence of animal wastes": "#FD3F31", - "G1 Some animal wastes visible": "#93D371", - "G2 No visible animal wastes": "#FDC74B" + "G1 Some animal wastes visible": "#FDC74B", + "G2 No visible animal wastes": "#93D371" }, "fnString": "function() {\n return (\n #1699433937138.includes(\"G0\") &&\n #1699433983369.includes(\"G0\")\n )\n ? \"G0 Widespread presence of animal wastes\"\n : ((\n #1699433937138.includes(\"G2\") &&\n #1699433983369.includes(\"G2\"))\n ? \"G2 No visible animal wastes\"\n : \"G1 Some animal wastes visible\"\n )\n}", "multiline": false @@ -3673,8 +3673,8 @@ "fn": { "fnColor": { "G0 Animal wastes UNSAFELY managed": "#FD3F31", - "G2 Safely managed animal wastes": "#FDC74B", - "G1 Inadequate management of animal wastes": "#93D371" + "G2 Safely managed animal wastes": "#93D371", + "G1 Inadequate management of animal wastes": "#FDC74B" }, "fnString": "function() {\n return (\n #1699434044707.includes(\"G0\") &&\n #1699434136823.includes(\"G0\") &&\n #1699434209933.includes(\"G0\")\n )\n ? \"G0 Animal wastes UNSAFELY managed\"\n : ((\n #1699434044707.includes(\"G2\") &&\n #1699434136823.includes(\"G2\") &&\n #1699434209933.includes(\"G0\"))\n ? \"G2 Safely managed animal wastes\"\n : \"G1 Inadequate management of animal wastes\"\n )\n}", "multiline": false @@ -3764,8 +3764,8 @@ "fn": { "fnColor": { "G0 Animals NOT separated from under-5 children": "#FD3F31", - "G2 Safe separation of animals from under-5 children": "#FDC74B", - "G1 Inadequate separation of animals from under-5 children": "#93D371" + "G2 Safe separation of animals from under-5 children": "#93D371", + "G1 Inadequate separation of animals from under-5 children": "#FDC74B" }, "fnString": "function() {\n return (\n #1699434269372.includes(\"G0\") &&\n #1699434327613.includes(\"G0\")\n )\n ? \"G0 Animals NOT separated from under-5 children\"\n : ((\n #1699434269372.includes(\"G2\") &&\n #1699434327613.includes(\"G2\"))\n ? \"G2 Safe separation of animals from under-5 children\"\n : \"G1 Inadequate separation of animals from under-5 children\"\n )\n}", "multiline": false @@ -3851,7 +3851,7 @@ "fnColor": { "G0 Liquid wastes UNSAFELY managed": "#FD3F31", "G3 Safe management of liquid wastes": "#4088F4", - "G2 Inadequate management of liquid wastes": "#FDC74B" + "G2 Inadequate management of liquid wastes": "#93D371" }, "fnString": "function() {\n return (\n #1699434438966.includes(\"G0\") &&\n #1699434488410.includes(\"G0\")\n )\n ? \"G0 Liquid wastes UNSAFELY managed\"\n : ((\n #1699434438966.includes(\"G3\") &&\n #1699434488410.includes(\"G3\"))\n ? \"G3 Safe management of liquid wastes\"\n : \"G2 Inadequate management of liquid wastes\"\n )\n}", "multiline": false @@ -3930,8 +3930,8 @@ "options": null, "fn": { "fnColor": { - "G1 Liquid wastes UNSAFELY managed": "#93D371", - "G2 Inadequate management of solid wastes": "#FDC74B", + "G1 Liquid wastes UNSAFELY managed": "#FDC74B", + "G2 Inadequate management of solid wastes": "#93D371", "G3 Safe management of solid wastes": "#4088F4" }, "fnString": "function() {\n return (\n #1699434553677.includes(\"G0\") &&\n #1699434636655.includes(\"G0\")\n )\n ? \"G1 Liquid wastes UNSAFELY managed\"\n : ((\n #1699434553677.includes(\"G3\") &&\n #1699434636655.includes(\"G3\"))\n ? \"G3 Safe management of solid wastes\"\n : \"G2 Inadequate management of solid wastes\"\n )\n}", @@ -4016,8 +4016,8 @@ "options": null, "fn": { "fnColor": { - "G1 Lack of vector control": "#93D371", - "G2 Inadequate vector control": "#FDC74B", + "G1 Lack of vector control": "#FDC74B", + "G2 Inadequate vector control": "#93D371", "G3 Good vector control": "#4088F4" }, "fnString": "function() {\n return (\n #1699434694439.includes(\"G0\") &&\n #1699434771449.includes(\"G0\")\n )\n ? \"G1 Lack of vector control\"\n : ((\n #1699434694439.includes(\"G3\") &&\n #1699434771449.includes(\"G3\"))\n ? \"G3 Good vector control\"\n : \"G2 Inadequate vector control\"\n )\n}", @@ -4095,8 +4095,8 @@ "options": null, "fn": { "fnColor": { - "G1 No personal hygiene": "#93D371", - "G2 Inadequate personal hygiene": "#FDC74B", + "G1 No personal hygiene": "#FDC74B", + "G2 Inadequate personal hygiene": "#93D371", "G3 Good personal hygiene": "#4088F4" }, "fnString": "function() {\n return (\n #1699434939105.includes(\"G0\") &&\n #1699434983278.includes(\"G0\")\n )\n ? \"G1 No personal hygiene\"\n : ((\n #1699434939105.includes(\"G3\") &&\n #1699434983278.includes(\"G3\"))\n ? \"G3 Good personal hygiene\"\n : \"G2 Inadequate personal hygiene\"\n )\n}", @@ -4204,8 +4204,8 @@ "options": null, "fn": { "fnColor": { - "G1 No personal hygiene": "#93D371", - "G2 Inadequate personal hygiene": "#FDC74B", + "G1 No personal hygiene": "#FDC74B", + "G2 Inadequate personal hygiene": "#93D371", "G3 Good personal hygiene": "#4088F4" }, "fnString": "function() {\n return (\n #1699435026311.includes(\"G0\") &&\n #1699435088758.includes(\"G0\") &&\n #1699435154797.includes(\"G0\")\n )\n ? \"G1 No personal hygiene\"\n : ((\n #1699435026311.includes(\"G3\") &&\n #1699435088758.includes(\"G3\") &&\n #1699435154797.includes(\"G3\"))\n ? \"G3 Good personal hygiene\"\n : \"G2 Inadequate personal hygiene\"\n )\n}", @@ -4258,8 +4258,8 @@ "options": null, "fn": { "fnColor": { - "G1 Low nutrition or protection": "#93D371", - "G2 Inadequate nutrition or protection": "#FDC74B", + "G1 Low nutrition or protection": "#FDC74B", + "G2 Inadequate nutrition or protection": "#93D371", "G3 Good nutrition and protection": "#4088F4" }, "fnString": "function() {\n return (#1699435207476.includes(\"G1\"))\n ? \"G1 Low nutrition or protection\"\n : (\n #1699435207476.includes(\"G3\")\n ? \"G3 Good nutrition and protection\"\n : \"G2 Inadequate nutrition or protection\"\n )\n}", @@ -4312,8 +4312,8 @@ "options": null, "fn": { "fnColor": { - "G1 Low nutrition or protection": "#93D371", - "G2 Inadequate nutrition or protection": "#FDC74B", + "G1 Low nutrition or protection": "#FDC74B", + "G2 Inadequate nutrition or protection": "#93D371", "G3 Good nutrition and protection": "#4088F4" }, "fnString": "function() {\n return #1699435265962.includes(\"G1\")\n ? \"G1 Low nutrition or protection\"\n : (\n #1699435265962.includes(\"G3\")\n ? \"G3 Good nutrition and protection\"\n : \"G2 Inadequate nutrition or protection\"\n )\n}", @@ -4366,8 +4366,8 @@ "options": null, "fn": { "fnColor": { - "G1 Low nutrition or protection": "#93D371", - "G2 Inadequate nutrition or protection": "#FDC74B", + "G1 Low nutrition or protection": "#FDC74B", + "G2 Inadequate nutrition or protection": "#93D371", "G3 Good nutrition and protection": "#4088F4" }, "fnString": "function() {\n return #1699435329279.includes(\"G1\")\n ? \"G1 Low nutrition or protection\"\n : (\n #1699435329279.includes(\"G3\")\n ? \"G3 Good nutrition and protection\"\n : \"G2 Inadequate nutrition or protection\"\n )\n}", @@ -4420,8 +4420,8 @@ "options": null, "fn": { "fnColor": { - "G1 Low nutrition or protection": "#93D371", - "G2 Inadequate nutrition or protection": "#FDC74B", + "G1 Low nutrition or protection": "#FDC74B", + "G2 Inadequate nutrition or protection": "#93D371", "G3 Good nutrition and protection": "#4088F4" }, "fnString": "function() {\n return #1699435397728.includes(\"G1\")\n ? \"G1 Low nutrition or protection\"\n : (\n #1699435397728.includes(\"G3\")\n ? \"G3 Good nutrition and protection\"\n : \"G2 Inadequate nutrition or protection\"\n )\n}", @@ -4474,8 +4474,8 @@ "options": null, "fn": { "fnColor": { - "G1 No malaria protection": "#93D371", - "G2 Inadequate malaria protection": "#FDC74B", + "G1 No malaria protection": "#FDC74B", + "G2 Inadequate malaria protection": "#93D371", "G3 Malaria-safe home": "#4088F4" }, "fnString": "function() {\n return #1699435455818.includes(\"G0\")\n ? \"G1 No malaria protection\"\n : (\n #1699435455818.includes(\"G3\")\n ? \"G3 Malaria-safe home\"\n : \"G2 Inadequate malaria protection\"\n )\n}", @@ -4531,8 +4531,8 @@ "options": null, "fn": { "fnColor": { - "G1 No deworming": "#93D371", - "G2 Inadequate deworming": "#FDC74B", + "G1 No deworming": "#FDC74B", + "G2 Inadequate deworming": "#93D371", "G3 Dewormed home": "#4088F4" }, "fnString": "function() {\n return #1699435526190.includes(\"G0\")\n ? \"G1 No deworming\"\n : (\n #1699435526190.includes(\"G3\")\n ? \"G3 Dewormed home\"\n : \"G2 Inadequate deworming\"\n )\n}", diff --git a/backend/source/forms/1699354006503.prod.json b/backend/source/forms/1699354006503.prod.json index 2a190e1fd..c35d7e3c9 100644 --- a/backend/source/forms/1699354006503.prod.json +++ b/backend/source/forms/1699354006503.prod.json @@ -3,9 +3,7 @@ "form": "RTMIS Community Monitoring Form", "description": "Community monitoring", "defaultLanguage": "en", - "languages": [ - "en" - ], + "languages": ["en"], "version": 1, "type": 1, "translations": null, @@ -41,33 +39,23 @@ } ], "pre": { - "answer": [ - "New" - ], + "answer": ["New"], "fill": [ { "id": 1699354006535, - "answer": [ - "New" - ] + "answer": ["New"] }, { "id": 1699951538608, - "answer": [ - "Village chief/Community head" - ] + "answer": ["Village chief/Community head"] }, { "id": 1699951986776, - "answer": [ - "Medium drainage soil (medium sand, weathered rock)" - ] + "answer": ["Medium drainage soil (medium sand, weathered rock)"] }, { "id": 1699952153243, - "answer": [ - "Less than 5m" - ] + "answer": ["Less than 5m"] }, { "id": 1699952219561, @@ -77,27 +65,19 @@ }, { "id": 1699952295823, - "answer": [ - "More than 25%" - ] + "answer": ["More than 25%"] }, { "id": 1699952355848, - "answer": [ - "More than 25%" - ] + "answer": ["More than 25%"] }, { "id": 1699952418978, - "answer": [ - "More than 25%" - ] + "answer": ["More than 25%"] }, { "id": 1702364544574, - "answer": [ - "G0 High risk of groundwater contamination" - ] + "answer": ["G0 High risk of groundwater contamination"] }, { "id": 1699958670124, @@ -119,27 +99,19 @@ }, { "id": 1699959743410, - "answer": [ - "G0 Used diapers visible in communal areas" - ] + "answer": ["G0 Used diapers visible in communal areas"] }, { "id": 1699959861479, - "answer": [ - "G0 Visible dirt or contamination" - ] + "answer": ["G0 Visible dirt or contamination"] }, { "id": 1699960025562, - "answer": [ - "G0 No protection of water points" - ] + "answer": ["G0 No protection of water points"] }, { "id": 1699960104326, - "answer": [ - "G0 Standing water visible around water point" - ] + "answer": ["G0 Standing water visible around water point"] }, { "id": 1699960255414, @@ -149,9 +121,7 @@ }, { "id": 1699960354498, - "answer": [ - "G0 Significant erosion in communal areas" - ] + "answer": ["G0 Significant erosion in communal areas"] }, { "id": 1699960411329, @@ -161,57 +131,39 @@ }, { "id": 1699960488230, - "answer": [ - "G0 Significant standing water in communal areas" - ] + "answer": ["G0 Significant standing water in communal areas"] }, { "id": 1699960542156, - "answer": [ - "G0 No treatment or management in communal areas" - ] + "answer": ["G0 No treatment or management in communal areas"] }, { "id": 1699960591715, - "answer": [ - "School" - ] + "answer": ["School"] }, { "id": 1699960963586, - "answer": [ - "G0 Non-functional toilets in institutions" - ] + "answer": ["G0 Non-functional toilets in institutions"] }, { "id": 1699961175102, - "answer": [ - "G0 Toilets NOT flyproof in institutions" - ] + "answer": ["G0 Toilets NOT flyproof in institutions"] }, { "id": 1699961260729, - "answer": [ - "G0 Toilets NOT clean in institutions" - ] + "answer": ["G0 Toilets NOT clean in institutions"] }, { "id": 1699961309670, - "answer": [ - "G0 Toilet slabs NOT durable in institutions" - ] + "answer": ["G0 Toilet slabs NOT durable in institutions"] }, { "id": 1699961394874, - "answer": [ - "G0 Toilet pits NOT durable in institutions" - ] + "answer": ["G0 Toilet pits NOT durable in institutions"] }, { "id": 1699961577575, - "answer": [ - "G0 Visible surface outflows from containment" - ] + "answer": ["G0 Visible surface outflows from containment"] }, { "id": 1699961683357, @@ -221,33 +173,23 @@ }, { "id": 1699961882642, - "answer": [ - "G0 No toilet, or no containment/collection system" - ] + "answer": ["G0 No toilet, or no containment/collection system"] }, { "id": 1699962081417, - "answer": [ - "G0 No handwashing facility" - ] + "answer": ["G0 No handwashing facility"] }, { "id": 1699962192648, - "answer": [ - "G0 No water available" - ] + "answer": ["G0 No water available"] }, { "id": 1699962251539, - "answer": [ - "G0 No soap or other cleanser available" - ] + "answer": ["G0 No soap or other cleanser available"] }, { "id": 1699962342866, - "answer": [ - "G0 No handwashing facility" - ] + "answer": ["G0 No handwashing facility"] }, { "id": 1699962446974, @@ -257,9 +199,7 @@ }, { "id": 1699962527375, - "answer": [ - "\"G0 No collection or disposal of washing water \"" - ] + "answer": ["\"G0 No collection or disposal of washing water \""] } ] } @@ -287,9 +227,7 @@ "dependency": [ { "id": 1699354220734, - "options": [ - "New" - ] + "options": ["New"] } ] }, @@ -779,7 +717,7 @@ "fn": { "fnColor": { "G0 Child or adult excreta observed in compound": "#FD3F31", - "G1 No exposed human excreta in compound": "#93D371" + "G1 No exposed human excreta in compound": "#FDC74B" }, "fnString": "function(){ return (#1699959649782.includes(\"G1\")) ? \"G1 No exposed human excreta in compound\" : \"G0 Child or adult excreta observed in compound\" }", "multiline": false @@ -846,7 +784,7 @@ "options": null, "fn": { "fnColor": { - "G1 Safely managed diapers": "#93D371", + "G1 Safely managed diapers": "#FDC74B", "G0 Diapers UNSAFELY managed": "#FD3F31" }, "fnString": "function(){ return (#1699959743410.includes(\"G1\")) ? \"G1 Safely managed diapers\" : \"G0 Diapers UNSAFELY managed\" }", @@ -961,8 +899,8 @@ "fn": { "fnColor": { "G0 Communal water points are UNSAFELY managed": "#FD3F31", - "G1 Communal water points are NOT adequately managed": "#93D371", - "G2 Safe management of communal water points": "#FDC74B" + "G1 Communal water points are NOT adequately managed": "#FDC74B", + "G2 Safe management of communal water points": "#93D371" }, "fnString": "function(){ return (#1699959861479.includes(\"G0\") && #1699960025562.includes(\"G0\") && #1699960104326.includes(\"G0\"))\n? \"G0 Communal water points are UNSAFELY managed\"\n: (#1699959861479.includes(\"G2\") && #1699960025562.includes(\"G2\") && #1699960104326.includes(\"G2\") ? \"G2 Safe management of communal water points\" : \"G1 Communal water points are NOT adequately managed\");\n}", "multiline": false @@ -1018,7 +956,7 @@ "fn": { "fnColor": { "G0 Sanitation services UNSAFELY managed in communal areas": "#FD3F31", - "G1 Inadequate sanitation services in communal areas": "#93D371", + "G1 Inadequate sanitation services in communal areas": "#FDC74B", "G3 Use of safely managed sanitation services in communal areas": "#4088F4" }, "fnString": "function(){ return (#1699960255414.includes(\"G0\")) ? \"G0 Sanitation services UNSAFELY managed in communal areas\" : (#1699960255414.includes(\"G3\") ? \"G3 Use of safely managed sanitation services in communal areas\" : \"G1 Inadequate sanitation services in communal areas\") }", @@ -1074,8 +1012,8 @@ "options": null, "fn": { "fnColor": { - "G1 Liquid wastes UNSAFELY managed in communal areas": "#93D371", - "G2 Inadequate management of liquid wastes in communal areas": "#FDC74B", + "G1 Liquid wastes UNSAFELY managed in communal areas": "#FDC74B", + "G2 Inadequate management of liquid wastes in communal areas": "#93D371", "G3 Safe management of liquid wastes in communal areas": "#4088F4" }, "fnString": "function(){ return (#1699960354498.includes(\"G0\")) ? \"G1 Liquid wastes UNSAFELY managed in communal areas\" : (#1699960354498.includes(\"G3\") ? \"G3 Safe management of liquid wastes in communal areas\" : \"G2 Inadequate management of liquid wastes in communal areas\") }", @@ -1125,8 +1063,8 @@ "options": null, "fn": { "fnColor": { - "G1 Liquid wastes UNSAFELY managed in communal areas": "#93D371", - "G2 Inadequate management of liquid wastes in communal areas": "#FDC74B", + "G1 Liquid wastes UNSAFELY managed in communal areas": "#FDC74B", + "G2 Inadequate management of liquid wastes in communal areas": "#93D371", "G3 Safe management of liquid wastes in communal areas": "#4088F4" }, "fnString": "function(){ return (#1699960411329.includes(\"G0\")) ? \"G1 Liquid wastes UNSAFELY managed in communal areas\" : (#1699960411329.includes(\"G3\") ? \"G3 Safe management of liquid wastes in communal areas\" : \"G2 Inadequate management of liquid wastes in communal areas\") }", @@ -1214,8 +1152,8 @@ "options": null, "fn": { "fnColor": { - "G1 Lack of vector control in communal areas": "#93D371", - "G2 Inadequate vector control in communal areas": "#FDC74B", + "G1 Lack of vector control in communal areas": "#FDC74B", + "G2 Inadequate vector control in communal areas": "#93D371", "G3 Good vector control in communal areas": "#4088F4" }, "fnString": "function(){ return (#1699960488230.includes(\"G0\") && #1699960542156.includes(\"G0\")) ? \"G1 Lack of vector control in communal areas\" : ((#1699960488230.includes(\"G3\") && #1699960542156.includes(\"G3\")) ? \"G3 Good vector control in communal areas\" : \"G2 Inadequate vector control in communal areas\") }", @@ -1844,4 +1782,4 @@ ] } ] -} \ No newline at end of file +} From f6610ebd68b048ab0d504e7d6098d52b7af24163 Mon Sep 17 00:00:00 2001 From: joycarpediem Date: Thu, 18 Jan 2024 19:03:23 +0100 Subject: [PATCH 3/5] #990 form changes --- backend/source/forms/1699354006503.prod.json | 44 ++-- backend/source/forms/1701172125596.prod.json | 211 ++++++++++++------- 2 files changed, 164 insertions(+), 91 deletions(-) diff --git a/backend/source/forms/1699354006503.prod.json b/backend/source/forms/1699354006503.prod.json index c35d7e3c9..b9ab05fd5 100644 --- a/backend/source/forms/1699354006503.prod.json +++ b/backend/source/forms/1699354006503.prod.json @@ -226,7 +226,7 @@ "meta": true, "dependency": [ { - "id": 1699354220734, + "id": 1699354006535, "options": ["New"] } ] @@ -241,13 +241,19 @@ }, "required": true, "meta": true, - "options": null + "options": null, + "dependency": [ + { + "id": 1699354006535, + "options": ["New"] + } + ] } ] }, { "id": 1699951538607, - "question_group": "INTERVIEW: Community data (first time)", + "question_group": "INTERVIEW: Community data", "description": null, "order": 3, "repeatable": false, @@ -452,7 +458,7 @@ }, { "id": 1699952355848, - "question": "Distance of toilets from groundwater sources", + "question": "% of toilets less than 10m from groundwater sources", "order": 8, "type": "option", "tooltip": { @@ -520,11 +526,21 @@ "color": "#90D14F" } ] - }, + } + ] + }, + { + "id": 1699951538601, + "question_group": "INTERVIEW: Community toilet data", + "description": null, + "order": 3, + "repeatable": false, + "translations": null, + "questions": [ { "id": 1699958188283, "question": "G1: Number of households who own a toilet", - "order": 11, + "order": 1, "type": "number", "rule": { "min": 0 @@ -540,7 +556,7 @@ { "id": 1699958382023, "question": "G2: Number of households using durable toilets with safe containment", - "order": 12, + "order": 2, "type": "number", "rule": { "min": 0 @@ -556,7 +572,7 @@ { "id": 1699958427807, "question": "G3: Number of households with permanent handwashing stations", - "order": 13, + "order": 3, "type": "number", "rule": { "min": 0 @@ -572,7 +588,7 @@ { "id": 1699958464968, "question": "G1: Number of at-risk households who own a toilet", - "order": 14, + "order": 4, "type": "number", "rule": { "min": 0 @@ -588,7 +604,7 @@ { "id": 1699958555723, "question": "G2: Number of at-risk households using durable toilets with safe containment", - "order": 15, + "order": 5, "type": "number", "rule": { "min": 0 @@ -604,7 +620,7 @@ { "id": 1699958568410, "question": "G3: Number of at-risk households with permanent handwashing stations", - "order": 16, + "order": 6, "type": "number", "rule": { "min": 0 @@ -620,7 +636,7 @@ { "id": 1699958670124, "question": "Action plan for G2 status", - "order": 17, + "order": 7, "type": "option", "tooltip": { "text": "INTERVIEW: has an action plan for G2 status been approved?\nINTERVIEW: is the action plan for G2 status in use?" @@ -646,7 +662,7 @@ { "id": 1699958822791, "question": "Action plan for G3 status", - "order": 18, + "order": 8, "type": "option", "tooltip": { "text": "INTERVIEW: has an action plan for G3 status been approved?\nINTERVIEW: is the action plan for G3 status in use?" @@ -908,7 +924,7 @@ }, { "id": 1699960255414, - "question": "Safely managed sanitation services", + "question": "Faecal sludge disposal in communal areas", "order": 9, "type": "option", "tooltip": { diff --git a/backend/source/forms/1701172125596.prod.json b/backend/source/forms/1701172125596.prod.json index 7f013a1d2..1b1bbb28d 100644 --- a/backend/source/forms/1701172125596.prod.json +++ b/backend/source/forms/1701172125596.prod.json @@ -143,64 +143,46 @@ } ] } - } - ] - }, - { - "id": 1701173656312, - "question_group": "Community: Location", - "description": null, - "order": 2, - "repeatable": false, - "translations": null, - "questions": [ + }, { "id": 1701329787633, - "question": "What is the location of the institution?", - "order": 1, + "question": "What is the village of the institution?", + "order": 2, "type": "administration", "tooltip": { "text": "This question contains a list of possible household locations, starting with government area or district, down to the village." }, "required": true, - "meta": true + "meta": true, + "dependency": [ + { + "id": 1701172125598, + "options": ["New"] + } + ] }, { "id": 1701173656314, "question": "Geo-location of the institution", - "order": 2, + "order": 3, "type": "geo", "tooltip": { "text": "Record GPS coordinates of a central place in the institution (e.g. in front of entrance)" }, "required": true, "meta": true, - "options": null - } - ] - }, - { - "id": 1701174317249, - "question_group": "INTERVIEW: Institution data (first time)", - "description": null, - "order": 3, - "repeatable": false, - "translations": null, - "questions": [ - { - "id": 1701373837500, - "question": "Institution respondent: role in institution", - "order": 1, - "type": "text", - "required": true, - "meta": false, - "tooltip": null, - "options": null + "options": null, + "dependency": [ + { + "id": 1701172125598, + "options": ["New"] + } + ] }, { "id": 1701174317250, "question": "Type of institution", - "order": 2, + "order": 4, "type": "option", "required": true, "meta": true, @@ -268,7 +250,7 @@ { "id": 1699419048095232, "question": "Institution ID", - "order": 3, + "order": 5, "type": "text", "tooltip": null, "required": true, @@ -277,6 +259,27 @@ "rule": null, "fn": null }, + { + "id": 1701373837500, + "question": "Institution respondent: role in institution", + "order": 6, + "type": "text", + "required": true, + "meta": false, + "tooltip": null, + "options": null + } + ] + }, + { + "id": 1701174317249, + "question_group": "INTERVIEW: Institution data", + "description": null, + "order": 3, + "repeatable": false, + "translations": null, + "questions": [ + { "id": 1701329515408, "question": "Functional institutional toilet", @@ -290,28 +293,58 @@ "options": [ { "id": 1701331266939, - "name": "G0 All toilets in the institution are NON-functional (specify number of non-functional toilets)", + "name": "G0 All institution toilets are NON-functional", "order": 1, "color": "#db3b3b" }, { "id": 1701331266940, - "name": "G1 Some toilets in the institution are non-functional (specify number of functional toilets + number of non-functional toilets)", + "name": "G1 Some institution toilets are non-functional ", "order": 2, "color": "#ffc677" }, { "id": 1701331278390, - "name": "G3 All toilets in the institution are functional (specify number of functional toilets)", + "name": "G3 All toilets in the institution are functional", "order": 3, "color": "#2D9BF0" } ] }, + { + "id": 16994198156601, + "question": "Number of functional toilets", + "order": 5, + "type": "number", + "tooltip": null, + "required": true, + "meta": false, + "options": null, + "rule": { + "max": 100, + "min": 1 + }, + "fn": null + }, + { + "id": 16994198156602, + "question": "Number of non-functional toilets", + "order": 6, + "type": "number", + "tooltip": null, + "required": true, + "meta": false, + "options": null, + "rule": { + "max": 100, + "min": 1 + }, + "fn": null + }, { "id": 1701331306965, "question": "Flyproof institutional toilet", - "order": 5, + "order": 7, "type": "option", "required": true, "meta": false, @@ -321,22 +354,28 @@ "options": [ { "id": 1701331313074, - "name": "G0 Toilets NOT flyproof in institutions", + "name": "G0 All institution toilets are NOT flyproof", "order": 1, - "color": "#db3b3b" + "color": "#ffc7ce" }, { - "id": 1701331313075, - "name": "G3 Flyproof toilets in all institutions", + "id": 1701331313076, + "name": "G1 Some institution toilets are NOT flyproof", "order": 2, - "color": "#2D9BF0" + "color": "#ffeb9c" + }, + { + "id": 1701331313075, + "name": "G3 All functional toilets are flyproof", + "order": 3, + "color": "#c6efce" } ] }, { "id": 1701331373050, "question": "Clean institutional toilet", - "order": 6, + "order": 8, "type": "option", "required": true, "meta": false, @@ -345,23 +384,29 @@ }, "options": [ { - "id": 1701331399847, - "name": "G0 Toilets NOT clean in institutions", + "id": 17013313130741, + "name": "G0 All institution toilets are NOT clean", "order": 1, - "color": "#db3b3b" + "color": "#ffc7ce" }, { - "id": 1701331399848, - "name": "G3 Clean toilets in all institutions", + "id": 17013313130761, + "name": "G1 Some institution toilets are NOT clean", "order": 2, - "color": "#2D9BF0" + "color": "#ffeb9c" + }, + { + "id": 17013313130751, + "name": "G3 All functional toilets are clean", + "order": 3, + "color": "#c6efce" } ] }, { "id": 1701331438759, "question": "Durable institutional toilet slab", - "order": 7, + "order": 9, "type": "option", "required": true, "meta": false, @@ -370,23 +415,29 @@ }, "options": [ { - "id": 1701331448374, - "name": "G0 Toilet slabs NOT durable in institutions", + "id": 17013313130749, + "name": "G0 All institution toilet slabs are NOT durable", "order": 1, - "color": "#db3b3b" + "color": "#ffc7ce" }, { - "id": 1701331448375, - "name": "G3 Durable toilet slabs in all institutions", + "id": 17013313130769, + "name": "G1 Some institution toilet slabs are NOT durable", "order": 2, - "color": "#2D9BF0" + "color": "#ffeb9c" + }, + { + "id": 17013313130759, + "name": "G3 All institution functional toilet slabs are durable", + "order": 3, + "color": "#c6efce" } ] }, { "id": 1701331908015, "question": "Durable institutional toilet pits", - "order": 8, + "order": 10, "type": "option", "required": true, "meta": false, @@ -395,23 +446,29 @@ }, "options": [ { - "id": 1701332195341, - "name": "G0 Toilet pits NOT durable in institutions", + "id": 17013313130748, + "name": "G0 All institution toilet pits are NOT durable", "order": 1, - "color": "#db3b3b" + "color": "#ffc7ce" }, { - "id": 1701332195342, - "name": "G3 Durable toilet pits in all institutions", + "id": 17013313130768, + "name": "G1 Some institution toilet pits are NOT durable", "order": 2, - "color": "#2D9BF0" + "color": "#ffeb9c" + }, + { + "id": 17013313130758, + "name": "G3 All institution functional toilet pits are durable", + "order": 3, + "color": "#c6efce" } ] }, { "id": 1701332234354, "question": "Safely managed containment: wastewater contained", - "order": 9, + "order": 11, "type": "option", "required": true, "meta": false, @@ -442,7 +499,7 @@ { "id": 1701332496414, "question": "Safely managed containment: faecal sludge contained", - "order": 10, + "order": 12, "type": "option", "required": true, "meta": false, @@ -473,7 +530,7 @@ { "id": 1701334423738, "question": "Safely managed sanitation services: emptying, treatment & disposal", - "order": 11, + "order": 13, "type": "option", "required": true, "meta": false, @@ -576,7 +633,7 @@ { "id": 1701334833791, "question": "Handwashing facility observed in institution", - "order": 12, + "order": 14, "type": "option", "required": true, "meta": false, @@ -625,7 +682,7 @@ { "id": 1701334972999, "question": "Water available at institutional HWF", - "order": 13, + "order": 15, "type": "option", "required": true, "meta": false, @@ -656,7 +713,7 @@ { "id": 1701335557029, "question": "Soap available at institutional HWF", - "order": 14, + "order": 16, "type": "option", "required": true, "meta": false, @@ -693,7 +750,7 @@ { "id": 1701358601048, "question": "Institutional handwashing facility type", - "order": 15, + "order": 17, "type": "option", "required": true, "meta": false, @@ -747,7 +804,7 @@ { "id": 1701359046016, "question": "Hands-free operation of institutional handwashing facility", - "order": 16, + "order": 18, "type": "option", "required": true, "meta": false, @@ -790,7 +847,7 @@ { "id": 1701359231461, "question": "Adequate drainage of washing water", - "order": 17, + "order": 19, "type": "option", "required": true, "meta": false, From 1881221b496b711e26f57ee1afcf36d84d49c800 Mon Sep 17 00:00:00 2001 From: dedenbangkit Date: Fri, 19 Jan 2024 03:25:56 +0700 Subject: [PATCH 4/5] [#990] Renew institiution autofill form --- backend/source/forms/1701172125596.prod.json | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/backend/source/forms/1701172125596.prod.json b/backend/source/forms/1701172125596.prod.json index 1b1bbb28d..1b57582ae 100644 --- a/backend/source/forms/1701172125596.prod.json +++ b/backend/source/forms/1701172125596.prod.json @@ -60,31 +60,31 @@ { "id": 1701329515408, "answer": [ - "G0 All toilets in the institution are NON-functional (specify number of non-functional toilets)" + "G0 All institution toilets are NON-functional" ] }, { "id": 1701331306965, "answer": [ - "G0 Toilets NOT flyproof in institutions" + "G0 All institution toilets are NOT flyproof" ] }, { "id": 1701331373050, "answer": [ - "G0 Toilets NOT clean in institutions" + "G0 All institution toilets are NOT clean" ] }, { "id": 1701331438759, "answer": [ - "G0 Toilet slabs NOT durable in institutions" + "G0 All institution toilet slabs are NOT durable" ] }, { "id": 1701331908015, "answer": [ - "G0 Toilet pits NOT durable in institutions" + "G0 All institution toilet pits are NOT durable" ] }, { @@ -157,7 +157,9 @@ "dependency": [ { "id": 1701172125598, - "options": ["New"] + "options": [ + "New" + ] } ] }, @@ -175,7 +177,9 @@ "dependency": [ { "id": 1701172125598, - "options": ["New"] + "options": [ + "New" + ] } ] }, @@ -279,7 +283,6 @@ "repeatable": false, "translations": null, "questions": [ - { "id": 1701329515408, "question": "Functional institutional toilet", From a701f058c00bec50fb60f6dc8673cd1cbe2c71c0 Mon Sep 17 00:00:00 2001 From: dedenbangkit Date: Fri, 19 Jan 2024 03:32:01 +0700 Subject: [PATCH 5/5] [#990] Fix json format --- backend/source/forms/1701172125596.prod.json | 74 +++++--------------- backend/source/forms/1701757876668.prod.json | 14 ++-- 2 files changed, 23 insertions(+), 65 deletions(-) diff --git a/backend/source/forms/1701172125596.prod.json b/backend/source/forms/1701172125596.prod.json index 1b57582ae..42ed353c8 100644 --- a/backend/source/forms/1701172125596.prod.json +++ b/backend/source/forms/1701172125596.prod.json @@ -3,9 +3,7 @@ "form": "RTMIS Institution Form", "description": "Institution Form", "defaultLanguage": "en", - "languages": [ - "en" - ], + "languages": ["en"], "version": 1, "type": 1, "translations": null, @@ -41,57 +39,39 @@ } ], "pre": { - "answer": [ - "New" - ], + "answer": ["New"], "fill": [ { "id": 1701172125598, - "answer": [ - "New" - ] + "answer": ["New"] }, { "id": 1701174317250, - "answer": [ - "School (select school from list of schools)" - ] + "answer": ["School (select school from list of schools)"] }, { "id": 1701329515408, - "answer": [ - "G0 All institution toilets are NON-functional" - ] + "answer": ["G0 All institution toilets are NON-functional"] }, { "id": 1701331306965, - "answer": [ - "G0 All institution toilets are NOT flyproof" - ] + "answer": ["G0 All institution toilets are NOT flyproof"] }, { "id": 1701331373050, - "answer": [ - "G0 All institution toilets are NOT clean" - ] + "answer": ["G0 All institution toilets are NOT clean"] }, { "id": 1701331438759, - "answer": [ - "G0 All institution toilet slabs are NOT durable" - ] + "answer": ["G0 All institution toilet slabs are NOT durable"] }, { "id": 1701331908015, - "answer": [ - "G0 All institution toilet pits are NOT durable" - ] + "answer": ["G0 All institution toilet pits are NOT durable"] }, { "id": 1701332234354, - "answer": [ - "G0 Visible surface outflows from containment" - ] + "answer": ["G0 Visible surface outflows from containment"] }, { "id": 1701332496414, @@ -101,33 +81,23 @@ }, { "id": 1701334423738, - "answer": [ - "G0 No toilet, or no containment/collection system" - ] + "answer": ["G0 No toilet, or no containment/collection system"] }, { "id": 1701334833791, - "answer": [ - "G0 No handwashing facility" - ] + "answer": ["G0 No handwashing facility"] }, { "id": 1701334972999, - "answer": [ - "G0 No water available" - ] + "answer": ["G0 No water available"] }, { "id": 1701335557029, - "answer": [ - "G0 No soap or other cleanser available" - ] + "answer": ["G0 No soap or other cleanser available"] }, { "id": 1701358601048, - "answer": [ - "G1 Jerrycan or other closed container" - ] + "answer": ["G1 Jerrycan or other closed container"] }, { "id": 1701359046016, @@ -137,9 +107,7 @@ }, { "id": 1701359231461, - "answer": [ - "G0 No collection or disposal of washing water" - ] + "answer": ["G0 No collection or disposal of washing water"] } ] } @@ -157,9 +125,7 @@ "dependency": [ { "id": 1701172125598, - "options": [ - "New" - ] + "options": ["New"] } ] }, @@ -177,9 +143,7 @@ "dependency": [ { "id": 1701172125598, - "options": [ - "New" - ] + "options": ["New"] } ] }, @@ -881,4 +845,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/backend/source/forms/1701757876668.prod.json b/backend/source/forms/1701757876668.prod.json index d1904827e..f11f59f6e 100644 --- a/backend/source/forms/1701757876668.prod.json +++ b/backend/source/forms/1701757876668.prod.json @@ -3,9 +3,7 @@ "form": "RTMIS School WASH Form", "description": "School WASH", "defaultLanguage": "en", - "languages": [ - "en" - ], + "languages": ["en"], "version": 1, "type": 1, "translations": null, @@ -41,15 +39,11 @@ } ], "pre": { - "answer": [ - "New" - ], + "answer": ["New"], "fill": [ { "id": 1701757914033, - "answer": [ - "New" - ] + "answer": ["New"] } ] } @@ -90,4 +84,4 @@ ] } ] -} \ No newline at end of file +}