diff --git a/distro/configuration/ampathforms/covid_assessment_summary_v1.0.json b/distro/configuration/ampathforms/covid_assessment_summary_v1.0.json index 8a789c3fd..076aa11c0 100644 --- a/distro/configuration/ampathforms/covid_assessment_summary_v1.0.json +++ b/distro/configuration/ampathforms/covid_assessment_summary_v1.0.json @@ -502,7 +502,7 @@ } ], "processor": "EncounterFormProcessor", - "uuid": "xxxx", + "uuid": "bbb35235-7c31-4606-9a70-5bbfdc8132fc", "referencedForms": [], "allowUnspecifiedAll": true } diff --git a/distro/configuration/ampathforms/covid_case_assessment_v1.0.json b/distro/configuration/ampathforms/covid_case_assessment_v1.0.json index a84b0905b..a328fb9bf 100644 --- a/distro/configuration/ampathforms/covid_case_assessment_v1.0.json +++ b/distro/configuration/ampathforms/covid_case_assessment_v1.0.json @@ -1978,7 +1978,7 @@ "sections": [], "isSubform": "true", "subform": { - "name": "covid_lab_order", + "name": "COVID Lab Order Form", "package": "covid", "behaviours": [ { diff --git a/distro/configuration/ampathforms/covid_case_v1.0.json b/distro/configuration/ampathforms/covid_case_v1.0.json index d308ee174..d0ab67bb9 100644 --- a/distro/configuration/ampathforms/covid_case_v1.0.json +++ b/distro/configuration/ampathforms/covid_case_v1.0.json @@ -9,7 +9,7 @@ "sections": [], "isSubform": "true", "subform": { - "name": "covid_assessment", + "name": "COVID Assessment Form", "package": "covid", "behaviours": [ { @@ -25,7 +25,7 @@ "sections": [], "isSubform": "true", "subform": { - "name": "covid_outcome", + "name": "COVID Outcome Form", "package": "covid", "behaviours": [ { diff --git a/distro/configuration/ampathforms/covid_lab_order_cancellation_v1.0.json b/distro/configuration/ampathforms/covid_lab_order_cancellation_v1.0.json index 38e061250..0938e083c 100644 --- a/distro/configuration/ampathforms/covid_lab_order_cancellation_v1.0.json +++ b/distro/configuration/ampathforms/covid_lab_order_cancellation_v1.0.json @@ -9,7 +9,7 @@ "sections": [], "isSubform": "true", "subform": { - "name": "covid_lab_order", + "name": "COVID Lab Order Form", "package": "covid", "behaviours": [ { @@ -212,7 +212,7 @@ } ], "processor": "EncounterFormProcessor", - "uuid": "xxxx", + "uuid": "d38bc949-c95b-39eb-a2c5-08b82a36409c", "referencedForms": [], "encounterType": "a77d3e7f-5c8f-4074-a207-77a70e197b0c", "encounter": "COVID Lab Encounter", diff --git a/distro/configuration/ampathforms/covid_lab_result_v1.0.json b/distro/configuration/ampathforms/covid_lab_result_v1.0.json index 1de5650f8..42b6c50c5 100644 --- a/distro/configuration/ampathforms/covid_lab_result_v1.0.json +++ b/distro/configuration/ampathforms/covid_lab_result_v1.0.json @@ -9,7 +9,7 @@ "sections": [], "isSubform": "true", "subform": { - "name": "covid_lab_order", + "name": "COVID Lab Order Form", "package": "covid", "behaviours": [ { diff --git a/distro/configuration/ampathforms/covid_lab_test_v1.0.json b/distro/configuration/ampathforms/covid_lab_test_v1.0.json index 698972193..0d3040da5 100644 --- a/distro/configuration/ampathforms/covid_lab_test_v1.0.json +++ b/distro/configuration/ampathforms/covid_lab_test_v1.0.json @@ -44,7 +44,7 @@ "sections": [], "isSubform": "true", "subform": { - "name": "covid_lab_order", + "name": "COVID Lab Order Form", "package": "covid", "behaviours": [ { @@ -60,7 +60,7 @@ "sections": [], "isSubform": "true", "subform": { - "name": "covid_sample_collection", + "name": "Sample Collection", "package": "covid", "behaviours": [ { @@ -76,7 +76,7 @@ "sections": [], "isSubform": "true", "subform": { - "name": "covid_lab_order_cancellation", + "name": "Lab Order Cancellation", "package": "covid", "behaviours": [ { @@ -92,7 +92,7 @@ "sections": [], "isSubform": "true", "subform": { - "name": "covid_lab_result", + "name": "COVID Lab Result Form", "package": "covid", "behaviours": [ { diff --git a/distro/configuration/ampathforms/covid_outcome_tracking_v1.0.json b/distro/configuration/ampathforms/covid_outcome_tracking_v1.0.json index edc48cf06..9fff12521 100644 --- a/distro/configuration/ampathforms/covid_outcome_tracking_v1.0.json +++ b/distro/configuration/ampathforms/covid_outcome_tracking_v1.0.json @@ -195,7 +195,7 @@ } ], "processor": "EncounterFormProcessor", - "uuid": "xxxx", + "uuid": "d9bbee02-4f76-3e88-89b8-fb5b70d2cb2d", "referencedForms": [], "encounterType": "253a43d3-c99e-415c-8b78-ee7d4d3c1d54", "encounter": "COVID Case Assessment", diff --git a/distro/configuration/ampathforms/covid_outcome_v1.0.json b/distro/configuration/ampathforms/covid_outcome_v1.0.json index 81d0987b9..0b85677d7 100644 --- a/distro/configuration/ampathforms/covid_outcome_v1.0.json +++ b/distro/configuration/ampathforms/covid_outcome_v1.0.json @@ -9,7 +9,7 @@ "sections": [], "isSubform": "true", "subform": { - "name": "covid_assessment", + "name": "COVID Assessment Form", "package": "covid", "behaviours": [ { diff --git a/distro/configuration/ampathforms/ct_cd4_lab_results_v1.0.json b/distro/configuration/ampathforms/ct_cd4_lab_results_v1.0.json index d0e6e1db1..1c53296b0 100644 --- a/distro/configuration/ampathforms/ct_cd4_lab_results_v1.0.json +++ b/distro/configuration/ampathforms/ct_cd4_lab_results_v1.0.json @@ -242,7 +242,7 @@ } ], "processor": "EncounterFormProcessor", - "uuid": "xxxx", + "uuid": "a66197de-419a-3223-8691-f70d36b1524b", "referencedForms": [], "encounterType": "96adb28e-e417-43a3-8f7d-682f8af5e912", "encounter": "CD4 Lab results", diff --git a/distro/configuration/ampathforms/ct_clinical_visit_v1.0.json b/distro/configuration/ampathforms/ct_clinical_visit_v1.0.json index 86a608985..55516d9e4 100644 --- a/distro/configuration/ampathforms/ct_clinical_visit_v1.0.json +++ b/distro/configuration/ampathforms/ct_clinical_visit_v1.0.json @@ -8882,7 +8882,7 @@ "sections": [], "isSubform": "true", "subform": { - "name": "cd4_lab_results", + "name": "CD4 Lab Result", "package": "hiv", "behaviours": [ { @@ -8898,7 +8898,7 @@ "sections": [], "isSubform": "true", "subform": { - "name": "viral_load_results", + "name": "Viral Load Lab Result", "package": "hiv", "behaviours": [ { diff --git a/distro/configuration/ampathforms/ct_clinical_visit_v2.0.json b/distro/configuration/ampathforms/ct_clinical_visit_v2.0.json index b91f96227..451d58e3d 100644 --- a/distro/configuration/ampathforms/ct_clinical_visit_v2.0.json +++ b/distro/configuration/ampathforms/ct_clinical_visit_v2.0.json @@ -9075,7 +9075,7 @@ "sections": [], "isSubform": "true", "subform": { - "name": "cd4_lab_results", + "name": "CD4 Lab Result", "package": "hiv", "behaviours": [ { @@ -9091,7 +9091,7 @@ "sections": [], "isSubform": "true", "subform": { - "name": "viral_load_results", + "name": "Viral Load Lab Result", "package": "hiv", "behaviours": [ { diff --git a/distro/configuration/ampathforms/ct_lab_results_v1.0.json b/distro/configuration/ampathforms/ct_lab_results_v1.0.json index 8a53f321e..6e0dc1482 100644 --- a/distro/configuration/ampathforms/ct_lab_results_v1.0.json +++ b/distro/configuration/ampathforms/ct_lab_results_v1.0.json @@ -886,7 +886,7 @@ } ], "processor": "EncounterFormProcessor", - "uuid": "xxxx", + "uuid": "98621650-1e6c-3632-99e7-04afd1258d1e", "referencedForms": [], "encounterType": "15272be5-ae9c-4278-a303-4b8907eae73b", "encounter": "HIV Lab Order and Results", diff --git a/distro/configuration/ampathforms/ct_viral_load_request_v1.0.json b/distro/configuration/ampathforms/ct_viral_load_request_v1.0.json index 74e730e9a..1f70ea909 100644 --- a/distro/configuration/ampathforms/ct_viral_load_request_v1.0.json +++ b/distro/configuration/ampathforms/ct_viral_load_request_v1.0.json @@ -598,7 +598,7 @@ } ], "processor": "EncounterFormProcessor", - "uuid": "xxxx", + "uuid": "717eed11-55bb-3adb-9be4-3e92efcea2c8", "encounterType": "41af1931-184e-45f8-86ca-d42e0db0b8a1", "encounter": "Viral Load results", "referencedForms": [] diff --git a/distro/configuration/ampathforms/ct_viral_load_results_v1.0.json b/distro/configuration/ampathforms/ct_viral_load_results_v1.0.json index b72f6ef20..8cfefa620 100644 --- a/distro/configuration/ampathforms/ct_viral_load_results_v1.0.json +++ b/distro/configuration/ampathforms/ct_viral_load_results_v1.0.json @@ -445,7 +445,7 @@ } ], "processor": "EncounterFormProcessor", - "uuid": "xxxx", + "uuid": "c9eb639e-b5d0-3ed3-a3c7-0dc48fc6acb6", "referencedForms": [], "encounterType": "41af1931-184e-45f8-86ca-d42e0db0b8a1", "encounter": "Viral Load results", diff --git a/distro/configuration/ampathforms/pmtct_antenatal_v1.0.json b/distro/configuration/ampathforms/pmtct_antenatal_v1.0.json index 69afd5d54..fcb8460f5 100644 --- a/distro/configuration/ampathforms/pmtct_antenatal_v1.0.json +++ b/distro/configuration/ampathforms/pmtct_antenatal_v1.0.json @@ -3,6 +3,7 @@ "version": "1", "published": true, "retired": false, + "encounter": "Antenatal", "pages": [ { "label": "Antenatal Details", @@ -19,21 +20,21 @@ "concept": "163260AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "date" }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "unspecified": "true", - "hide": { - "hideWhenExpression": "false" + "intent":"*", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"false" }, "validators": [ { - "type": "date", - "allowFutureDates": "false" + "type":"date", + "allowFutureDates":"false" }, { - "type": "js_expression", - "failsWhenExpression": "isDateBefore(myValue, '1980-01-01') || myValue >= today()" + "type":"js_expression", + "failsWhenExpression":"isDateBefore(myValue, '1980-01-01') || myValue >= today()" } ] } @@ -61,12 +62,12 @@ } ] }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "false" + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"false" } } ] @@ -86,25 +87,26 @@ "rendering": "text", "usePreviousValueDisabled": "true", "calculate": { - "calculateExpression": "antenatal_visit_type == '160530AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? useFieldValue('latest_ptracker_number') : ''" + "calculateExpression": "antenatal_visit_type == '160530AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? latest_ptracker_number : ''" } }, "readonlyExpression": "antenatal_visit_type == '160530AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'", - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "unspecified": "false", - "hide": { - "hideWhenExpression": "false" + "intent":"*", + "required":"true", + "unspecified":"false", + "hide":{ + "hideWhenExpression":"false" }, - "validators": [ + "validators":[ { - "type": "js_expression", - "failsWhenExpression": "!/^[0-9]{5}[A-S]{1}[0-9]{6,8}$$/.test(myValue)", - "message": "Invalid Ptracker number" - } - ] + "type": "js_expression", + "failsWhenExpression": "!/^[0-9]{5}[A-S]{1}[0-9]{6,8}$$/.test(myValue)", + "message": "Invalid Ptracker number" + } + + ] } ] }, @@ -116,11 +118,11 @@ "concept": "", "rendering": "fixed-value", "calculate": { - "calculateExpression": "resolve(api.getLatestObs(patient.id, '6c45421e-2566-47cb-bbb3-07586fffbfe2', '2549af50-75c8-4aeb-87ca-4bb2cef6c69a')).valueString" + "calculateExpression": "resolve(api.getLatestObs(patient.id, '6c45421e-2566-47cb-bbb3-07586fffbfe2', '2549af50-75c8-4aeb-87ca-4bb2cef6c69a')).valueString" } }, - "hide": { - "hideWhenExpression": "true" + "hide":{ + "hideWhenExpression":"true" } } ] @@ -138,13 +140,13 @@ "usePreviousValueDisabled": "true", "rendering": "number" }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "unspecified": "true", - "hide": { - "hideWhenExpression": "antenatal_visit_type !== '164180AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"antenatal_visit_type !== '164180AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } } ] @@ -158,13 +160,13 @@ "usePreviousValueDisabled": "true", "rendering": "number" }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "unspecified": "true", - "hide": { - "hideWhenExpression": "antenatal_visit_type !== '164180AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"antenatal_visit_type !== '164180AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } } ] @@ -178,22 +180,22 @@ "usePreviousValueDisabled": "true", "rendering": "date" }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "unspecified": "true", - "hide": { - "hideWhenExpression": "antenatal_visit_type !== '164180AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"antenatal_visit_type !== '164180AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" }, "validators": [ { - "type": "date", - "allowFutureDates": "false" + "type":"date", + "allowFutureDates":"false" }, { - "type": "js_expression", - "failsWhenExpression": "isDateBefore(myValue, '1900-01-01') || myValue >= today() || myValue > useFieldValue('visit_date')" + "type":"js_expression", + "failsWhenExpression":"isDateBefore(myValue, '1900-01-01') || myValue >= today() || myValue > useFieldValue('visit_date')" } ] } @@ -210,13 +212,13 @@ "calculateExpression": "calcEDD('lmp')" } }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "unspecified": "true", - "hide": { - "hideWhenExpression": "antenatal_visit_type !== '164180AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || isEmpty('lmp')" + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"antenatal_visit_type !== '164180AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || isEmpty('lmp')" }, "validators": [ { @@ -232,11 +234,11 @@ ] } ], - "behaviours": [ + "behaviours":[ { - "intent": "*", - "hide": { - "hideWhenExpression": "antenatal_visit_type !== '164180AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "intent":"*", + "hide":{ + "hideWhenExpression":"antenatal_visit_type !== '164180AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } } ] @@ -250,6 +252,7 @@ "label": "HIV Testing and ART Initiation", "isExpanded": "true", "questions": [ + { "label": "HIV test status ", "type": "obs", @@ -276,12 +279,12 @@ } ] }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "antenatal_visit_type !== '164180AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && antenatal_visit_type !== '54b96458-6585-4c4c-a5b1-b3ca7f1be351' && antenatal_visit_type !== '54b96458-6585-4c4c-a5b1-b3ca7f1be351' && latest_hiv_test_result === '138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'|| antenatal_visit_type !== '164180AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && antenatal_visit_type !== '54b96458-6585-4c4c-a5b1-b3ca7f1be351' && antenatal_visit_type !== '54b96458-6585-4c4c-a5b1-b3ca7f1be351' && latest_hiv_test_status === '8b8951a8-e8d6-40ca-ad70-89e8f8f71fa8'" + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"latest_hiv_test_result == '138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } } ] @@ -294,9 +297,9 @@ "concept": "164401AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "fixed-value", "calculate": { - "calculateExpression": "resolve(api.getLatestObs(patient.id, '164401AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', '2549af50-75c8-4aeb-87ca-4bb2cef6c69a'))?.valueCodeableConcept?.coding[0]?.code" - }, - "answers": [ + "calculateExpression": "resolve(api.getLatestObs(patient.id, '164401AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', '2549af50-75c8-4aeb-87ca-4bb2cef6c69a'))?.valueCodeableConcept?.coding[0]?.code" + }, + "answers": [ { "concept": "6f041992-f0fd-4ec7-b7b6-c06b0f60bf3f", "label": "Tested for HIV during this visit" @@ -315,12 +318,12 @@ } ] }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "true" + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"true" } } ] @@ -351,12 +354,12 @@ } ] }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "hiv_test !== '6f041992-f0fd-4ec7-b7b6-c06b0f60bf3f'" + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"hiv_test !== '6f041992-f0fd-4ec7-b7b6-c06b0f60bf3f'" } } ] @@ -368,8 +371,8 @@ "questionOptions": { "concept": "159427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "fixed-field", - "calculate": { - "calculateExpression": "resolve(api.getLatestObs(patient.id, '159427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', '2549af50-75c8-4aeb-87ca-4bb2cef6c69a'))?.valueCodeableConcept?.coding[0]?.code" + "calculate":{ + "calculateExpression":"resolve(api.getLatestObs(patient.id, '159427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', '2549af50-75c8-4aeb-87ca-4bb2cef6c69a'))?.valueCodeableConcept?.coding[0]?.code" }, "answers": [ { @@ -390,12 +393,12 @@ } ] }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "true" + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"true" } } ] @@ -411,50 +414,50 @@ { "concept": "160120AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Started on ART in ANC current pregnancy", - "conceptMappings": [ + "conceptMappings":[ { - "type": "CIEL", - "value": "160120" + "type":"CIEL", + "value":"160120" }, { - "type": "PIH", - "value": "1256" + "type":"PIH", + "value":"1256" } ] }, { "concept": "160018AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Refused ART", - "conceptMappings": [ + "conceptMappings":[ { - "type": "CIEL", - "value": "160018" + "type":"CIEL", + "value":"160018" } ] }, { "concept": "1754AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Not started due to stockout of ART", - "conceptMappings": [ + "conceptMappings":[ { - "type": "CIEL", - "value": "1754" + "type":"CIEL", + "value":"1754" }, { - "type": "AMPATH", - "value": "664" + "type":"AMPATH", + "value":"664" }, { - "type": "SNOMED CT", - "value": "182856006" + "type":"SNOMED CT", + "value":"182856006" }, { - "type": "SNOMED MVP", - "value": "17541000105004" + "type":"SNOMED MVP", + "value":"17541000105004" }, { - "type": "PIH", - "value": "1761" + "type":"PIH", + "value":"1761" } ] }, @@ -464,12 +467,12 @@ } ] }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "hiv_test_result !== '138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && hiv_test !== '8b8951a8-e8d6-40ca-ad70-89e8f8f71fa8' || antenatal_visit_type == '160530AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"hiv_test !== '8b8951a8-e8d6-40ca-ad70-89e8f8f71fa8' && hiv_test_result !== '138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } } ] @@ -477,7 +480,7 @@ { "label": "ART initiation ", "type": "obs", - "id": "art_initiationn", + "id": "art_remove_initiation", "questionOptions": { "concept": "6e62bf7e-2107-4d09-b485-6e60cbbb2d08", "rendering": "radio", @@ -485,36 +488,36 @@ { "concept": "160018AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Refused ART", - "conceptMappings": [ + "conceptMappings":[ { - "type": "CIEL", - "value": "160018" + "type":"CIEL", + "value":"160018" } ] }, { "concept": "1754AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Not started due to stockout of ART", - "conceptMappings": [ + "conceptMappings":[ { - "type": "CIEL", - "value": "1754" + "type":"CIEL", + "value":"1754" }, { - "type": "AMPATH", - "value": "664" + "type":"AMPATH", + "value":"664" }, { - "type": "SNOMED CT", - "value": "182856006" + "type":"SNOMED CT", + "value":"182856006" }, { - "type": "SNOMED MVP", - "value": "17541000105004" + "type":"SNOMED MVP", + "value":"17541000105004" }, { - "type": "PIH", - "value": "1761" + "type":"PIH", + "value":"1761" } ] }, @@ -524,12 +527,12 @@ } ] }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": " antenatal_visit_type !== '160530AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || hiv_test_result !== '138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"true" } } ] @@ -542,13 +545,13 @@ "concept": "163322AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "textarea" }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "unspecified": "true", - "hide": { - "hideWhenExpression": "art_initiation !== '160018AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"art_initiation !== '160018AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } } ] @@ -563,12 +566,12 @@ "max": "999999999999", "min": "100000000000" }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "unspecified": "true", - "hide": { - "hideWhenExpression": "art_initiation !== '160119AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && art_initiation !== '160120AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "intent":"*", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"art_initiation !== '160120AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } } ] @@ -581,22 +584,22 @@ "concept": "159599AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "date" }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "unspecified": "true", - "hide": { - "hideWhenExpression": "art_initiation !== '160119AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && art_initiation !== '160120AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"art_initiation !== '160120AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" }, "validators": [ { - "type": "date", - "allowFutureDates": "false" + "type":"date", + "allowFutureDates":"false" }, { - "type": "js_expression", - "failsWhenExpression": "isDateBefore(myValue, '1980-01-01') || myValue >= today()" + "type":"js_expression", + "failsWhenExpression":"isDateBefore(myValue, '1980-01-01') || myValue >= today()" } ] } @@ -624,12 +627,12 @@ } ] }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "art_initiation !== '160119AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && art_initiation !== '160120AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"latest_hiv_test_result !== '138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || hiv_test_result !== '138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } } ] @@ -642,22 +645,22 @@ "concept": "163281AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "date" }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "unspecified": "true", - "hide": { - "hideWhenExpression": "recent_viral_load !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"recent_viral_load !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" }, "validators": [ { - "type": "date", - "allowFutureDates": "false" + "type":"date", + "allowFutureDates":"false" }, { - "type": "js_expression", - "failsWhenExpression": "isDateBefore(myValue, '1980-01-01') || myValue >= today()" + "type":"js_expression", + "failsWhenExpression":"isDateBefore(myValue, '1980-01-01') || myValue >= today()" } ] } @@ -693,12 +696,12 @@ } ] }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "recent_viral_load !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"recent_viral_load !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } } ] @@ -711,13 +714,13 @@ "concept": "856AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "number" }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "unspecified": "true", - "hide": { - "hideWhenExpression": "viral_load_results !== '1301AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"viral_load_results !== '1301AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } } ] @@ -748,12 +751,12 @@ } ] }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "antenatal_visit_type !== '164180AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && antenatal_visit_type !== '54b96458-6585-4c4c-a5b1-b3ca7f1be351' && antenatal_visit_type !== '54b96458-6585-4c4c-a5b1-b3ca7f1be351' && latest_partner_hiv_test_status === '8b8951a8-e8d6-40ca-ad70-89e8f8f71fa8'" + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"antenatal_visit_type !== '164180AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && antenatal_visit_type !== '54b96458-6585-4c4c-a5b1-b3ca7f1be351' && antenatal_visit_type !== '54b96458-6585-4c4c-a5b1-b3ca7f1be351' && latest_partner_hiv_test_status === '8b8951a8-e8d6-40ca-ad70-89e8f8f71fa8'" } } ] @@ -766,9 +769,9 @@ "concept": "161557AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "fixed-value", "calculate": { - "calculateExpression": "resolve(api.getLatestObs(patient.id, '161557AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', '2549af50-75c8-4aeb-87ca-4bb2cef6c69a'))?.valueCodeableConcept?.coding[0]?.code" - }, - "answers": [ + "calculateExpression": "resolve(api.getLatestObs(patient.id, '161557AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', '2549af50-75c8-4aeb-87ca-4bb2cef6c69a'))?.valueCodeableConcept?.coding[0]?.code" + }, + "answers": [ { "concept": "8b8951a8-e8d6-40ca-ad70-89e8f8f71fa8", "label": "Previously known positive" @@ -787,12 +790,12 @@ } ] }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "true" + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"true" } } ] @@ -808,62 +811,62 @@ { "concept": "138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Positive", - "conceptMappings": [ + "conceptMappings":[ { - "type": "CIEL", - "value": "138571" + "type":"CIEL", + "value":"138571" }, { - "type": "AMPATH", - "value": "1169" + "type":"AMPATH", + "value":"1169" }, { - "type": "SNOMED CT", - "value": "165816005" + "type":"SNOMED CT", + "value":"165816005" } ] }, { "concept": "664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Negative", - "conceptMappings": [ + "conceptMappings":[ { - "type": "CIEL", - "value": "664" + "type":"CIEL", + "value":"664" }, { - "type": "AMPATH", - "value": "664" + "type":"AMPATH", + "value":"664" }, { - "type": "SNOMED CT", - "value": "260385009" + "type":"SNOMED CT", + "value":"260385009" }, { - "type": "PIH", - "value": "664" + "type":"PIH", + "value":"664" } ] }, { "concept": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Unknown", - "conceptMappings": [ + "conceptMappings":[ { - "type": "CIEL", - "value": "1067" + "type":"CIEL", + "value":"1067" }, { - "type": "AMPATH", - "value": "1067" + "type":"AMPATH", + "value":"1067" }, { - "type": "SNOMED CT", - "value": "261665006" + "type":"SNOMED CT", + "value":"261665006" }, { - "type": "PIH", - "value": "1067" + "type":"PIH", + "value":"1067" } ] }, @@ -873,12 +876,12 @@ } ] }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "partner_hiv_test_done !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"partner_hiv_test_done !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } } ] @@ -891,21 +894,21 @@ "concept": "90bd8fec-3ff1-11e9-b210-d663bd873d93", "rendering": "date" }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "unspecified": "true", - "hide": { - "hideWhenExpression": "partner_hiv_test_done !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "intent":"*", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"partner_hiv_test_done !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" }, "validators": [ { - "type": "date", - "allowFutureDates": "false" + "type":"date", + "allowFutureDates":"false" }, { - "type": "js_expression", - "failsWhenExpression": "isDateBefore(myValue, '1980-01-01') || myValue >= today()" + "type":"js_expression", + "failsWhenExpression":"isDateBefore(myValue, '1980-01-01') || myValue >= today()" } ] } @@ -930,22 +933,22 @@ "concept": "5096AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "date" }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "unspecified": "true", - "hide": { - "hideWhenExpression": "false" + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"false" }, "validators": [ { - "type": "date", - "allowFutureDates": "true" + "type":"date", + "allowFutureDates":"true" }, { - "type": "js_expression", - "failsWhenExpression": "myValue < useFieldValue('visit_date')" + "type":"js_expression", + "failsWhenExpression":"myValue < useFieldValue('visit_date')" } ] } @@ -977,12 +980,12 @@ } ] }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "false" + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"false" } } ] @@ -996,13 +999,13 @@ "rendering": "encounter-location", "locationTag": "8d4626ca-7abd-42ad-be48-56767bbcf272" }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "unspecified": "true", - "hide": { - "hideWhenExpression": "transfer_out !== '160036AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"transfer_out !== '160036AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } } ] @@ -1012,18 +1015,19 @@ ] } ], - "availableIntents": [ + "availableIntents":[ { - "intent": "*", - "display": "Antenatal Form" + "intent":"*", + "display":"Antenatal Form" } ], - "processor": "EncounterFormProcessor", - "uuid":"5255a535-2acb-3f44-bd0a-3f80595dece1", - "referencedForms": [], - "encounterType": "2549af50-75c8-4aeb-87ca-4bb2cef6c69a", - "encounter": "Antenatal", + "processor":"EncounterFormProcessor", + "uuid":"12de5bc5-352e-4faf-9961-a2125085a75c", + "referencedForms":[], + "encounterType":"2549af50-75c8-4aeb-87ca-4bb2cef6c69a", "postSubmissionActions": ["PTrackerSubmissionAction", "ArtSubmissionAction"], - "allowUnspecifiedAll": true + "allowUnspecifiedAll":true, + "formOptions": { + "usePreviousValueDisabled": "true" + } } - diff --git a/distro/configuration/ampathforms/pmtct_infant_postnatal_v1.0.json b/distro/configuration/ampathforms/pmtct_infant_postnatal_v1.0.json index d732cf06b..4cae806fb 100644 --- a/distro/configuration/ampathforms/pmtct_infant_postnatal_v1.0.json +++ b/distro/configuration/ampathforms/pmtct_infant_postnatal_v1.0.json @@ -1,805 +1,902 @@ { - "name": "Infant - Postanal Form", - "version": "1", - "published": true, - "retired": false, - "pages": [ - { - "label": "HEI", - "sections": [ - { - "label": "Infant Exposure", - "isExpanded": "true", - "questions": [ - { - "label": "Visit Date", - "type": "obs", - "id": "visit_date", - "questionOptions": { - "concept": "159599AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "date" + "name": "Infant - Postanal Form", + "version": "1", + "published": true, + "retired": false, + "encounter": "Infant Postnatal", + "pages": [ + { + "label": "Infant - Postnatal", + "sections": [ + { + "label": "Infant Exposure", + "isExpanded": "true", + "questions": [ + { + "label": "Visit Date", + "type": "obs", + "id": "visit_date", + "questionOptions": { + "concept": "159599AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "date" + }, + "behaviours":[ + { + "intent":"*", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"false" + }, + "validators": [ + { + "type":"date", + "allowFutureDates":"false" + }, + { + "type":"js_expression", + "failsWhenExpression":"isDateBefore(myValue, '1980-01-01') || myValue >= today()", + "message": "Next visit date cannot be less than current visit date" + } + ] + } + ] }, - "behaviours": [ - { - "intent": "*", - "unspecified": "true", - "hide": { - "hideWhenExpression": "false" - }, - "validators": [ + { + "label": "PTracker ID", + "type": "obs", + "id": "ptracker_id", + "questionOptions": { + "concept": "6c45421e-2566-47cb-bbb3-07586fffbfe2", + "rendering": "text" + }, + "behaviours":[ + { + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"true" + } + } + ] + }, + { + "label": "Infant Exposure Status", + "type": "obs", + "id": "infant_hiv_exposure_status", + "questionOptions": { + "concept": "6027869c-5d7e-4a82-b22f-6d9c57d61a4d", + "rendering": "radio", + "answers": [ { - "type": "date", - "allowFutureDates": "false" + "concept": "54431b42-dae4-4d19-9034-44ba7489a334", + "label": "Currently Exposed" }, { - "type": "js_expression", - "failsWhenExpression": "isDateBefore(myValue, '1980-01-01') || myValue >= today()", - "message": "Next visit date cannot be less than current visit date" + "concept": "8c64a106-3db1-4a78-af11-df6f5a054945", + "label": "Currently Unexposed" + }, + { + "concept": "54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label": "Missing" } ] - } - ] - }, - { - "label": "Mother's Patient Identifier", - "type": "obs", - "id": "ptracker_id", - "questionOptions": { - "concept": "163530AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "text" - }, - "behaviours": [ - { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "false" - } - } - ] - }, - { - "label": "Infant Exposure Status", - "type": "obs", - "id": "infant-hiv-exposure-status", - "questionOptions": { - "concept": "1401AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", - "answers": [ - { - "concept": "1405AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Currently Exposed" - }, + }, + "behaviours":[ { - "concept": "1403AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Currently Unexposed" - }, - { - "concept": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Unknown" + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"false" + }, + "validators":[ + + ] } ] }, - "behaviours": [ + + { + "label": "Infant Prophylaxis Status", + "type": "obs", + "id": "infant_prophylaxis_status", + "questionOptions": { + "concept": "1148AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "radio", + "answers": [ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "false" - }, - "validators": [] - } - ] - } - ] - }, - { - "label": "Prophylaxis", - "isExpanded": "true", - "questions": [ - { - "label": "Infant Prophylaxis Status", - "type": "obs", - "id": "infant-prophylaxis-status", - "questionOptions": { - "concept": "1147AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", - "answers": [ - { - "concept": "1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Never received ARV prophylaxis" - }, - { - "concept": "1149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Received ARV prophylaxis" - }, - { - "concept": "167155AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Discontinued ARV prophylaxis" - } - ] - }, - "behaviours": [ + "concept": "e2ae63f3-e4c9-4822-bf18-c894928556c8", + "label": "Never received ARV prophylaxis" + }, { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "infant-hiv-exposure-status !== '1405AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - }, - "validators": [] + "concept": "857c5868-bdcd-4f5c-aadd-8b0fa7de8481", + "label": "Received ARV prophylaxis" + }, + { + "concept": "8eb8dee6-5342-4529-ad2f-4fc5a66becd9", + "label": "Stopped ARV prophylaxis according to guideline" + }, + { + "concept": "54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label": "Missing" } ] }, - { - "label": "Infant Prophylaxis Adherence", - "type": "obs", - "id": "infant-prophylaxis-adherence", - "questionOptions": { - "concept": "1658AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", - "answers": [ - { - "concept": "159405AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Good" - }, - { - "concept": "159406AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Fair" - }, - { - "concept": "159407AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Poor" - }, - { - "concept": "1256AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Starting prophylaxis on this visit" - } + "behaviours":[ + { + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"infant_hiv_exposure_status !== '54431b42-dae4-4d19-9034-44ba7489a334'" + }, + "validators":[ + ] - }, - "behaviours": [ + } + ] + }, + { + "label": "Infant Prophylaxis Adherence", + "type": "obs", + "id": "infant_prophylaxis_adherence", + "questionOptions": { + "concept": "1658AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "radio", + "answers": [ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "infant-hiv-exposure-status !== '1405AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || infant-prophylaxis-status !== '1149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - }, - "validators": [] + "concept": "159405AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Good" + }, + { + "concept": "159406AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Fair" + }, + { + "concept": "159407AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Poor" + }, + { + "concept": "1256AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Starting prophylaxis on this visit" + }, + { + "concept": "54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label": "Missing" } ] }, - { - "label": "Co-trimoxazole Status", - "type": "obs", - "id": "infant-Co-trimoxazole-status", - "questionOptions": { - "concept": "1261AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", - "answers": [ - { - "concept": "1090AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Never received Co-trimoxazole prophylaxis" - }, - { - "concept": "1256AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Received Co-trimoxazole prophylaxis" - }, - { - "concept": "1260AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Stopped Co-trimoxazole prophylaxis" - } + "behaviours":[ + { + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"infant_hiv_exposure_status !== '54431b42-dae4-4d19-9034-44ba7489a334' || infant_prophylaxis_status !== '857c5868-bdcd-4f5c-aadd-8b0fa7de8481'" + }, + "validators":[ + ] - }, - "behaviours": [ + } + ] + }, + { + "label": "CTX Status", + "type": "obs", + "id": "infant_ctx_status", + "questionOptions": { + "concept": "f3de6eb3-5d4a-43ca-8648-74649271238c", + "rendering": "radio", + "answers": [ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "infant-hiv-exposure-status !== '1405AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - }, - "validators": [] + "concept": "a1cab110-9652-4891-90e2-c01a5dbca453", + "label": "Never received CTX prophylaxis" + }, + { + "concept": "f3a26c7d-a612-4b71-bd30-a359cae817bc", + "label": "Received CTX prophylaxis" + }, + { + "concept": "3cc14c25-3117-4541-8f8e-705943087385", + "label": "Stopped CTX prophylaxis" + }, + { + "concept": "54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label": "Missing" } ] }, - { - "label": "Co-trimoxazole Adherence", - "type": "obs", - "id": "infant-Co-trimoxazole-adherence", - "questionOptions": { - "concept": "161652AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", - "answers": [ - { - "concept": "159405AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Good" - }, - { - "concept": "159406AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Fair" - }, - { - "concept": "159407AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Poor" - }, - { - "concept": "1256AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Starting prophylaxis on this visit" - } + "behaviours":[ + { + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"infant_hiv_exposure_status !== '54431b42-dae4-4d19-9034-44ba7489a334'" + }, + "validators":[ + ] - }, - "behaviours": [ + } + ] + }, + { + "label": "CTX Adherence", + "type": "obs", + "id": "infant_ctx_adherence", + "questionOptions": { + "concept": "161652AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "radio", + "answers": [ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "infant-Co-trimoxazole-status !== '1256AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - }, - "validators": [] - } - ] - } - ] - }, - { - "label": "HIV Testing", - "isExpanded": "true", - "questions": [ - { - "label": "HIV Test Done", - "type": "obs", - "id": "infant-hiv-test", - "questionOptions": { - "concept": "164401AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", - "answers": [ - { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" - }, - { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No" - } - ] - }, - "behaviours": [ + "concept": "159405AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Good" + }, { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "false" - }, - "validators": [] + "concept": "159406AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Fair" + }, + { + "concept": "159407AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Poor" + }, + { + "concept": "1256AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Starting prophylaxis on this visit" + }, + { + "concept": "54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label": "Missing" } ] }, - { - "label": "Test Type", - "type": "obs", - "id": "infant-test-type", - "questionOptions": { - "concept": "1271AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", - "answers": [ - { - "concept": "1042AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Rapid Test" - }, - { - "concept": "844AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "DNA PCR" - } + "behaviours":[ + { + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"infant_ctx_status !== 'f3a26c7d-a612-4b71-bd30-a359cae817bc'" + }, + "validators":[ + ] - }, - "behaviours": [ + } + ] + }, + { + "label": "HIV Test Done", + "type": "obs", + "id": "infant_hiv_test", + "questionOptions": { + "concept": "164401AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "radio", + "answers": [ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "infant-hiv-test !== '1256AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - }, - "validators": [] + "concept": "6f041992-f0fd-4ec7-b7b6-c06b0f60bf3f", + "label": "Tested for HIV during this visit" + }, + { + "concept": "d18fa331-f158-47d0-b344-cf147c7125a4", + "label": "Not tested for HIV during this visit" + }, + { + "concept": "54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label": "Missing" } ] }, - { - "label": "DNA PCR Test Results", - "type": "obs", - "id": "dnapcr-test-result", - "questionOptions": { - "concept": "164461AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", - "answers": [ - { - "concept": "159971AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Results Pending" - }, - { - "concept": "703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Positive" - }, - { - "concept": "664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Negative" - } + "behaviours":[ + { + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"false" + }, + "validators":[ + ] - }, - "behaviours": [ + } + ] + }, + { + "label": "Test Type", + "type": "obs", + "id": "infant_test_type", + "questionOptions": { + "concept": "ee8c0292-47f8-4c01-8b60-8ba13a560e1a", + "rendering": "radio", + "answers": [ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "infant-test-type !== '844AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - }, - "validators": [] + "concept": "1042AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Rapid Test" + }, + { + "concept": "844AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "DNA PCR" + }, + { + "concept": "54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label": "Missing" } ] }, - { - "label": "Rapid Test Results", - "type": "obs", - "id": "rapid-test-result", - "questionOptions": { - "concept": "164860AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", - "answers": [ - { - "concept": "703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Positive" - }, - { - "concept": "664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Negative" - } + "behaviours":[ + { + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"infant_hiv_test !== '6f041992-f0fd-4ec7-b7b6-c06b0f60bf3f'" + }, + "validators":[ + ] - }, - "behaviours": [ + } + ] + }, + { + "label": "DNA PCR Test Results", + "type": "obs", + "id": "dnapcr_test_result", + "questionOptions": { + "concept": "164461AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "radio", + "answers": [ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "infant-test-type !== '1042AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - }, - "validators": [] + "concept": "159971AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Results Pending" + }, + { + "concept": "703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Positive" + }, + { + "concept": "664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Negative" + }, + { + "concept": "54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label": "Missing" } ] }, - { - "label": "Confirmatory HIV Test Done", - "type": "obs", - "id": "confirmatory-test-done", - "questionOptions": { - "concept": "1201b688-45f8-4e56-b089-0b31138a19dd", - "rendering": "radio", - "answers": [ - { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No" - }, - { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" - } + "behaviours":[ + { + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"infant_test_type !== '844AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + }, + "validators":[ + ] - }, - "behaviours": [ + } + ] + }, + { + "label": "Rapid Test Results", + "type": "obs", + "id": "rapid_test_result", + "questionOptions": { + "concept": "164860AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "radio", + "answers": [ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "rapid-test-result !== '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && dnapcr-test-result !== '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - }, - "validators": [] + "concept": "703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Positive" + }, + { + "concept": "664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Negative" + }, + { + "concept": "54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label": "Missing" } ] }, - { - "label": "Final Test Results", - "type": "obs", - "id": "final-test-result", - "questionOptions": { - "concept": "164460AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", - "answers": [ - { - "concept": "159971AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Results Pending" - }, - { - "concept": "703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Positive" - }, - { - "concept": "664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Negative" - } + "behaviours":[ + { + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"infant_test_type !== '1042AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + }, + "validators":[ + ] - }, - "behaviours": [ + } + ] + }, + { + "label": "Confirmatory Test Done", + "type": "obs", + "id": "confirmatory_test_done", + "questionOptions": { + "concept": "8c2b3506-5b77-4916-a5c8-677a37a65007", + "rendering": "radio", + "answers": [ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "confirmatory-test-done !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - }, - "validators": [] + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" + }, + { + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" + }, + { + "concept": "54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label": "Missing" } ] }, - { - "label": "Link To ART", - "type": "obs", - "id": "link-to-art", - "questionOptions": { - "concept": "164849AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", - "answers": [ - { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No" - }, - { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" - } + "behaviours":[ + { + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"rapid_test_result !== '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && dnapcr_test_result !== '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + }, + "validators":[ + ] - }, - "behaviours": [ + } + ] + }, + { + "label": "Final Test Results", + "type": "obs", + "id": "final_test_result", + "questionOptions": { + "concept": "164460AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "radio", + "answers": [ { - "intent": "*", - "required": "true", - "unspecified": "true", - "hide": { - "hideWhenExpression": "confirmatory-test-done !== '1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || rapid-test-result !== '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && dnapcr-test-result !== '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - }, - "validators": [] + "concept": "159971AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Results Pending" + }, + { + "concept": "703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Positive" + }, + { + "concept": "664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Negative" + }, + { + "concept": "54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label": "Missing" } ] }, - { - "label": "Breastfeeding Type", - "type": "obs", - "id": "breastfeeding", - "questionOptions": { - "concept": "1151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", - "answers": [ - { - "concept": "5526AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Exclusive Breastfeeding" - }, - { - "concept": "159854AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Complementary Feeding" - }, - { - "concept": "6046AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Mixed Feeding" - }, - { - "concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Other" - } + "behaviours":[ + { + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"confirmatory_test_done !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + }, + "validators":[ + ] - }, - "behaviours": [ + } + ] + }, + { + "label": "Link To ART", + "type": "obs", + "id": "link_to_art", + "questionOptions": { + "concept": "a40d8bc4-56b8-4f28-a1dd-412da5cf20ed", + "rendering": "radio", + "answers": [ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "false" - }, - "validators": [] - } - ] - }, - { - "label": "Other BreastFeeding Method", - "type": "obs", - "id": "other_feeding_method", - "questionOptions": { - "concept": "163719AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "textarea" - }, - "behaviours": [ + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" + }, { - "intent": "*", - "required": "true", - "unspecified": "true", - "hide": { - "hideWhenExpression": "breastfeeding !== '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - }, - "validators": [] - } - ] - } - ] - }, - { - "label": "Outcomes", - "isExpanded": "true", - "questions": [ - { - "label": "Infant Outcome Status", - "type": "obs", - "id": "infant-transfer-status", - "questionOptions": { - "concept": "160433AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", - "answers": [ - { - "concept": "161636AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Still in Care" - }, - { - "concept": "5240AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Lost to Follow Up" - }, - { - "concept": "160432AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Dead" - }, - { - "concept": "164861AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Confirmed HIV negative infant (discharged from PMTCT)" - }, - { - "concept": "159492AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Transferred Out" - }, - { - "concept": "160563AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Transfer In to ART Clinic" - }, - { - "concept": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Unknown" - } - ] - }, - "behaviours": [ + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" + }, { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "infant-hiv-exposure-status !== '1405AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - }, - "validators": [] + "concept": "54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label": "Missing" } ] }, - { - "label": "Transfer to ART clinic", - "type": "obs", - "id": "transfer-in-from", - "questionOptions": { - "concept": "160535AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "encounter-location", - "locationTag": "8d4626ca-7abd-42ad-be48-56767bbcf272" - }, - "behaviours": [ + "behaviours":[ + { + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"confirmatory_test_done !== '1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || rapid_test_result !== '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && dnapcr_test_result !== '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + }, + "validators":[ + + ] + } + ] + }, + { + "label": "Infant ART Link", + "type": "obs", + "id": "infant_art_link", + "questionOptions": { + "concept": "a40d8bc4-56b8-4f28-a1dd-412da5cf20ed", + "rendering": "radio", + "answers": [ { - "intent": "*", - "required": "true", - "unspecified": "true", - "hide": { - "hideWhenExpression": "infant-transfer-status !== '160563AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - }, - "validators": [] - } - ] - }, - { - "label": "Transfer In Date", - "type": "obs", - "id": "transfer_in_date", - "questionOptions": { - "concept": "160534AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "date" - }, - "behaviours": [ + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" + }, { - "intent": "*", - "required": "true", - "unspecified": "true", - "hide": { - "hideWhenExpression": "infant-transfer-status !== '160563AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - }, - "validators": [ - { - "type": "date", - "allowFutureDates": "false" - }, - { - "type": "js_expression", - "failsWhenExpression": "isDateBefore(myValue, '1980-01-01') || myValue >= today()" - } - ] - } - ] - }, - { - "label": "Transfer Out to", - "type": "obs", - "id": "transfer-out-to", - "questionOptions": { - "concept": "159495AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "encounter-location", - "locationTag": "a2327745-2970-4752-ac8a-dd0ba131f40e" - }, - "behaviours": [ + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" + }, { - "intent": "*", - "required": "true", - "unspecified": "true", - "hide": { - "hideWhenExpression": "infant-transfer-status !== '159492AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - }, - "validators": [] + "concept": "54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label": "Missing" } ] }, - { - "label": "Transfer Out Date", - "type": "obs", - "id": "transfer_out_date", - "questionOptions": { - "concept": "160649AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "date" - }, - "behaviours": [ + "behaviours":[ + { + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"final_test_result !== '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || rapid_test_result !== '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && dnapcr_test_result !== '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + }, + "validators":[ + + ] + } + ] + }, + { + "label": "Breastfeeding Type", + "type": "obs", + "id": "breastfeeding", + "questionOptions": { + "concept": "1151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "radio", + "answers": [ { - "intent": "*", - "required": "true", - "unspecified": "true", - "hide": { - "hideWhenExpression": "infant-transfer-status !== '159492AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - }, - "validators": [ - { - "type": "date", - "allowFutureDates": "false" - }, - { - "type": "js_expression", - "failsWhenExpression": "false" - } - ] - } - ] - }, - { - "label": "Date of Event", - "type": "obs", - "id": "date_of_event", - "questionOptions": { - "concept": "160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "date" - }, - "behaviours": [ + "concept": "5526AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Exclusive Breastfeeding" + }, { - "intent": "*", - "required": "true", - "unspecified": "true", - "hide": { - "hideWhenExpression": "infant-transfer-status !== '5240AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - }, - "validators": [ - { - "type": "date", - "allowFutureDates": "false" - }, - { - "type": "js_expression", - "failsWhenExpression": "false" - } - ] - } - ] - }, - { - "label": "Date Confirmed HIV Negative", - "type": "obs", - "id": "date_confirmed_hiv_negative", - "questionOptions": { - "concept": "160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "date" - }, - "behaviours": [ + "concept": "159854AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Complementary Feeding" + }, { - "intent": "*", - "required": "true", - "unspecified": "true", - "hide": { - "hideWhenExpression": "infant-transfer-status !== '164861AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - }, - "validators": [ - { - "type": "date", - "allowFutureDates": "false" - }, - { - "type": "js_expression", - "failsWhenExpression": "false" - } - ] + "concept": "6046AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Mixed Feeding" + }, + { + "concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Other" + }, + { + "concept": "54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label": "Missing" } ] }, - { - "label": "Infant Death Date", - "type": "obs", - "id": "infant_death_date", - "questionOptions": { - "concept": "1543AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "date" - }, - "behaviours": [ + "behaviours":[ + { + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"false" + }, + "validators":[ + + ] + } + ] + }, + { + "label": "Other BreastFeeding Method", + "type": "obs", + "id": "other_feeding_method", + "questionOptions": { + "concept": "163719AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "textarea" + }, + "behaviours":[ + { + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"breastfeeding !== '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + }, + "validators":[ + + ] + } + ] + }, + { + "label": "Infant Outcome Status", + "type": "obs", + "id": "infant_transfer_status", + "questionOptions": { + "concept": "160433AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "radio", + "answers": [ { - "intent": "*", - "required": "true", - "unspecified": "true", - "hide": { - "hideWhenExpression": "infant-transfer-status !== '160432AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - }, - "validators": [ - { - "type": "date", - "allowFutureDates": "false" - }, - { - "type": "js_expression", - "failsWhenExpression": "false" - } - ] - } - ] - } - ] - }, - { - "label": "Next Appointment", - "isExpanded": "true", - "questions": [ - { - "label": "Next Visit Date", - "type": "obs", - "id": "next_visit_date", - "questionOptions": { - "concept": "5096AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "date" - }, - "behaviours": [ + "concept": "161636AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Still in Care" + }, { - "intent": "*", - "required": "true", - "unspecified": "true", - "hide": { - "hideWhenExpression": "infant-transfer-status !== '161636AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - }, - "validators": [ - { - "type": "js_expression", - "failsWhenExpression": "myValue <= useFieldValue('visit_date')" - } - ] + "concept": "5240AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Lost to Follow Up" + }, + { + "concept": "160432AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Dead" + }, + { + "concept": "164861AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Confirmed HIV negative infant (discharged from PMTCT)" + }, + { + "concept": "159492AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Transferred Out" + }, + { + "concept": "160563AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Transfer In to ART Clinic" + }, + { + "concept": "54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label": "Missing" } ] - } - ] - } - ] + }, + "behaviours":[ + { + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"infant_hiv_exposure_status !== '54431b42-dae4-4d19-9034-44ba7489a334'" + }, + "validators":[ + + ] + } + ] + }, + { + "label": "Transfer to ART clinic", + "type": "obs", + "id": "transfer_in_from", + "questionOptions": { + "concept": "160535AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "encounter-location", + "locationTag": "8d4626ca-7abd-42ad-be48-56767bbcf272" + }, + "behaviours":[ + { + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"infant_transfer_status !== '160563AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + }, + "validators":[ + + ] + } + ] + }, + { + "label": "Transfer In Date", + "type": "obs", + "id": "transfer_in_date", + "questionOptions": { + "concept": "160534AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "date" + }, + "behaviours":[ + { + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"infant_transfer_status !== '160563AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + }, + "validators":[ + { + "type":"date", + "allowFutureDates":"false" + }, + { + "type":"js_expression", + "failsWhenExpression":"isDateBefore(myValue, '1980-01-01') || myValue >= today()" + } + ] + } + ] + }, + { + "label": "Transfer Out to", + "type": "obs", + "id": "transfer_out_to", + "questionOptions": { + "concept": "159495AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "encounter-location", + "locationTag": "8d4626ca-7abd-42ad-be48-56767bbcf272" + }, + "behaviours":[ + { + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"infant_transfer_status !== '159492AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + }, + "validators":[ + + ] + } + ] + }, + { + "label": "Transfer Out Date", + "type": "obs", + "id": "transfer_out_date", + "questionOptions": { + "concept": "160649AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "date" + }, + "behaviours":[ + { + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"infant_transfer_status !== '159492AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + }, + "validators":[ + { + "type":"date", + "allowFutureDates":"false" + }, + { + "type":"js_expression", + "failsWhenExpression":"false" + } + ] + } + ] + }, + { + "label": "Date of Event", + "type": "obs", + "id": "date_of_event", + "questionOptions": { + "concept": "160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "date" + }, + "behaviours":[ + { + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"infant_transfer_status !== '5240AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + }, + "validators":[ + { + "type":"date", + "allowFutureDates":"false" + }, + { + "type":"js_expression", + "failsWhenExpression":"false" + } + ] + } + ] + }, + { + "label": "Date Confirmed HIV Negative", + "type": "obs", + "id": "date_confirmed_hiv_negative", + "questionOptions": { + "concept": "160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "date" + }, + "behaviours":[ + { + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"infant_transfer_status !== '164861AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + }, + "validators":[ + { + "type":"date", + "allowFutureDates":"false" + }, + { + "type":"js_expression", + "failsWhenExpression":"false" + } + ] + } + ] + }, + { + "label": "Infant Death Date", + "type": "obs", + "id": "infant_death_date", + "questionOptions": { + "concept": "1543AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "date" + }, + "behaviours":[ + { + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"infant_transfer_status !== '160432AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + }, + "validators":[ + { + "type":"date", + "allowFutureDates":"false" + }, + { + "type":"js_expression", + "failsWhenExpression":"false" + } + ] + } + ] + }, + { + "label": "Next Visit Date", + "type": "obs", + "id": "next_visit_date", + "questionOptions": { + "concept": "5096AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "date" + }, + "behaviours":[ + { + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"infant_transfer_status !== '161636AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + }, + "validators":[ + { + "type": "js_expression", + "failsWhenExpression": "myValue <= useFieldValue('visit_date')" + } + ] + } + ] + } + ] } - ], - "availableIntents": [ - { - "intent": "*", - "display": "HEI Form" + ] + } + ], + "availableIntents": [ + { + "intent": "*", + "display": "Infant - Postnatal Form" + } + ], + "processor": "EncounterFormProcessor", + "uuid": "5022c5d7-ea45-47ce-bd65-1ba1d8ad2467", + "referencedForms": [], + "encounterType": "af1f1b24-d2e8-4282-b308-0bf79b365584", + "allowUnspecifiedAll": true, + "formOptions": { + "usePreviousValueDisabled": "true" } - ], - "processor": "EncounterFormProcessor", - "uuid": "120048e5-4122-3c6d-8f77-c79e75b7b3fc", - "referencedForms": [], - "encounterType": "f3d92c68-27e3-4395-b002-5db5f3ca4ef7", - "encounter": "HIV Exposed Infant", - "allowUnspecifiedAll": true -} + } diff --git a/distro/configuration/ampathforms/pmtct_labour_and_delivery_v1.0.json b/distro/configuration/ampathforms/pmtct_labour_and_delivery_v1.0.json index 2128a57be..b1ba1753c 100644 --- a/distro/configuration/ampathforms/pmtct_labour_and_delivery_v1.0.json +++ b/distro/configuration/ampathforms/pmtct_labour_and_delivery_v1.0.json @@ -3,6 +3,7 @@ "version": "1", "published": true, "retired": false, + "encounter": "Labor and Delivery", "pages": [ { "label": "Mother Details", @@ -19,21 +20,21 @@ "concept": "163260AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "date" }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "unspecified": "true", - "hide": { - "hideWhenExpression": "false" + "intent":"*", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"false" }, "validators": [ { - "type": "date", - "allowFutureDates": "false" + "type":"date", + "allowFutureDates":"false" }, { - "type": "js_expression", - "failsWhenExpression": "isDateBefore(myValue, '1980-01-01') || myValue > today()" + "type":"js_expression", + "failsWhenExpression":"isDateBefore(myValue, '1980-01-01') || myValue > today()" } ] } @@ -54,75 +55,86 @@ { "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "No" + }, + { + "concept": "54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label": "Missing" } ] }, - "behaviours": [ + "behaviours":[ { - "intent": "*", + "intent":"*", "required": "false", - "hide": { - "hideWhenExpression": "false" + "hide":{ + "hideWhenExpression":"false" } } ] }, { - "label": "Latest Unique Pregnancy ID", + "label": "PTracker ID", "type": "obs", "id": "MotherPtracker_id", "questionOptions": { - "concept": "163530AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "6c45421e-2566-47cb-bbb3-07586fffbfe2", "rendering": "text", + "usePreviousValueDisabled": "true", "calculate": { "calculateExpression": "client_booked == '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? myValue = useFieldValue('latest_anc_ptracker_number'): ''" } }, - "behaviours": [ + "readonlyExpression": "client_booked == '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'", + "behaviours":[ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "false" + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"false" }, - "validators": [ + "validators":[ { - "type": "js_expression", - "warnsWhenExpression": "myValue == useFieldValue('latest_ptracker_number')", + "type":"js_expression", + "warnsWhenExpression":"myValue == useFieldValue('latest_ptracker_number')", "message": "Another L&D form exists for the same PTracker number. Do you still want to go ahead and create another form?" + }, + { + "type": "js_expression", + "failsWhenExpression": "!/^[0-9]{5}[A-S]{1}[0-9]{6,8}$$/.test(myValue)", + "message": "Invalid Ptracker number" } ] } ] }, { - "label": "Latest Unique Pregnancy ID", + "label": "Latest Ptracker number", "type": "obs", "id": "latest_ptracker_number", "questionOptions": { "concept": "", "rendering": "fixed-value", "calculate": { - "calculateExpression": "resolve(api.getLatestObs(patient.id, '163530AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', '6dc5308d-27c9-4d49-b16f-2c5e3c759757')).valueString" + "calculateExpression": "resolve(api.getLatestObs(patient.id, '6c45421e-2566-47cb-bbb3-07586fffbfe2', '2678423c-0523-4d76-b0da-18177b439eed')).valueString" } }, - "hide": { - "hideWhenExpression": "true" + "hide":{ + "hideWhenExpression":"true" } }, { - "label": "Latest Unique Pregnancy ID", + "label": "Latest ANC Ptracker number", "type": "obs", "id": "latest_anc_ptracker_number", "questionOptions": { "concept": "", "rendering": "fixed-value", "calculate": { - "calculateExpression": "resolve(api.getLatestObs(patient.id, '163530AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', '6dc5308d-27c9-4d49-b16f-2c5e3c759757')).valueString" + "calculateExpression": "resolve(api.getLatestObs(patient.id, '6c45421e-2566-47cb-bbb3-07586fffbfe2', '2549af50-75c8-4aeb-87ca-4bb2cef6c69a')).valueString" } }, - "hide": { - "hideWhenExpression": "true" + "hide":{ + "hideWhenExpression":"true" } } ] @@ -136,84 +148,110 @@ "type": "obs", "id": "anc_hiv_test_status", "questionOptions": { - "concept": "1396AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "c5f74c86-62cd-4d22-9260-4238f1e45fe0", "rendering": "radio", - "calculate": { - "calculateExpression": "resolve(api.getLatestObs('6dc5308d-27c9-4d49-b16f-2c5e3c759757', '164401AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'))" - }, + "calculate": {"calculateExpression": "resolve(api.getLatestObs('2549af50-75c8-4aeb-87ca-4bb2cef6c69a', '164401AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'))"}, "answers": [ { - "concept": "138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "8b8951a8-e8d6-40ca-ad70-89e8f8f71fa8", "label": "Previously known positive" }, + { + "concept": "703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Positive", + "conceptMappings":[ + { + "type":"CIEL", + "value":"703" + }, + { + "type":"AMPATH", + "value":"703" + }, + { + "type":"SNOMED CT", + "value":"10828004" + }, + { + "type":"PIH", + "value":"703" + } + ] + }, { "concept": "664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Negative", - "conceptMappings": [ + + "conceptMappings":[ { - "type": "CIEL", - "value": "664" + "type":"CIEL", + "value":"664" }, { - "type": "AMPATH", - "value": "664" + "type":"AMPATH", + "value":"664" }, { - "type": "SNOMED CT", - "value": "260385009" + "type":"SNOMED CT", + "value":"260385009" }, { - "type": "PIH", - "value": "664" + "type":"PIH", + "value":"664" } ] }, { "concept": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Unknown", - "conceptMappings": [ + "conceptMappings":[ { - "type": "CIEL", - "value": "1067" + "type":"CIEL", + "value":"1067" }, { - "type": "AMPATH", - "value": "1067" + "type":"AMPATH", + "value":"1067" }, { - "type": "SNOMED CT", - "value": "261665006" + "type":"SNOMED CT", + "value":"261665006" }, { - "type": "PIH", - "value": "1067" + "type":"PIH", + "value":"1067" } ] }, { "concept": "1402AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Not Tested", - "conceptMappings": [ + + "conceptMappings":[ { - "type": "CIEL", - "value": "1402" + "type":"CIEL", + "value":"1402" } ] + }, + { + "concept": "54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label": "Missing" } ] }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "" + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"anc_latest_hiv_test_result == '138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } } ] }, { - "label": "HIV Test Performed", + "label": "HIV Test Status at maternity/delivery", "type": "obs", "id": "hiv_test", "questionOptions": { @@ -221,25 +259,29 @@ "rendering": "radio", "answers": [ { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" + "concept": "6f041992-f0fd-4ec7-b7b6-c06b0f60bf3f", + "label": "Tested for HIV during this visit" }, { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No" + "concept": "8b8951a8-e8d6-40ca-ad70-89e8f8f71fa8", + "label": "Previously known positive" }, { - "concept": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Unknown" + "concept": "d18fa331-f158-47d0-b344-cf147c7125a4", + "label": "Not tested for HIV during this visit" + }, + { + "concept": "54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label": "Missing" } ] }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "anc_hiv_test_status !== '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && anc_hiv_test_status !== '1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && anc_hiv_test_status !== '1402AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && anc_hiv_test_status !== '54b96458-6585-4c4c-a5b1-b3ca7f1be351'" + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"anc_hiv_test_status !== '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && anc_hiv_test_status !== '1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && anc_hiv_test_status !== '1402AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && anc_hiv_test_status !== '54b96458-6585-4c4c-a5b1-b3ca7f1be351'" } } ] @@ -255,73 +297,78 @@ { "concept": "664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Negative", - "conceptMappings": [ + "conceptMappings":[ { - "type": "CIEL", - "value": "664" + "type":"CIEL", + "value":"664" }, { - "type": "AMPATH", - "value": "664" + "type":"AMPATH", + "value":"664" }, { - "type": "SNOMED CT", - "value": "260385009" + "type":"SNOMED CT", + "value":"260385009" }, { - "type": "PIH", - "value": "664" + "type":"PIH", + "value":"664" } ] }, { "concept": "138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Positive", - "conceptMappings": [ + "conceptMappings":[ { - "type": "CIEL", - "value": "138571" + "type":"CIEL", + "value":"138571" }, { - "type": "AMPATH", - "value": "1169" + "type":"AMPATH", + "value":"1169" }, { - "type": "SNOMED CT", - "value": "165816005" + "type":"SNOMED CT", + "value":"165816005" } ] + }, { "concept": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Unknown", - "conceptMappings": [ + "conceptMappings":[ { - "type": "CIEL", - "value": "1067" + "type":"CIEL", + "value":"1067" }, { - "type": "AMPATH", - "value": "1067" + "type":"AMPATH", + "value":"1067" }, { - "type": "SNOMED CT", - "value": "261665006" + "type":"SNOMED CT", + "value":"261665006" }, { - "type": "PIH", - "value": "1067" + "type":"PIH", + "value":"1067" } ] + }, + { + "concept": "54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label": "Missing" } ] }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "!includes('hiv_test', '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')" + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"!includes('hiv_test', '6f041992-f0fd-4ec7-b7b6-c06b0f60bf3f')" } } ] @@ -331,141 +378,218 @@ "type": "obs", "id": "anc_retest_thirty_six_weeks", "questionOptions": { - "concept": "1396AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "159803AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "radio", "answers": [ { "concept": "664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Negative", - "conceptMappings": [ + "conceptMappings":[ { - "type": "CIEL", - "value": "664" + "type":"CIEL", + "value":"664" }, { - "type": "AMPATH", - "value": "664" + "type":"AMPATH", + "value":"664" }, { - "type": "SNOMED CT", - "value": "260385009" + "type":"SNOMED CT", + "value":"260385009" }, { - "type": "PIH", - "value": "664" + "type":"PIH", + "value":"664" } ] }, { - "concept": "703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Positive", - "conceptMappings": [ + "conceptMappings":[ { - "type": "CIEL", - "value": "703" + "type":"CIEL", + "value":"138571" }, { - "type": "AMPATH", - "value": "704" + "type":"AMPATH", + "value":"1169" }, { - "type": "SNOMED CT", - "value": "10828004" + "type":"SNOMED CT", + "value":"165816005" } ] }, { "concept": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Unknown", - "conceptMappings": [ + "conceptMappings":[ { - "type": "CIEL", - "value": "1067" + "type":"CIEL", + "value":"1067" }, { - "type": "AMPATH", - "value": "1067" + "type":"AMPATH", + "value":"1067" }, { - "type": "SNOMED CT", - "value": "261665006" + "type":"SNOMED CT", + "value":"261665006" }, { - "type": "PIH", - "value": "1067" + "type":"PIH", + "value":"1067" } ] + }, + { + "concept": "d18fa331-f158-47d0-b344-cf147c7125a4", + "label": "Not tested for HIV during this visit" + }, + { + "concept": "54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label": "Missing" + } + ] + }, + "behaviours":[ + { + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"hiv_test !== 'd18fa331-f158-47d0-b344-cf147c7125a4'" + } + } + ] + }, + { + "label": "ANC Latest HIV test result ", + "type": "obs", + "id": "anc_latest_hiv_test_result", + "questionOptions": { + "concept": "159427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "fixed-field", + "calculate":{ + "calculateExpression":"resolve(api.getLatestObs(patient.id, '159427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', '2549af50-75c8-4aeb-87ca-4bb2cef6c69a'))?.valueCodeableConcept?.coding[0]?.code" + }, + "answers": [ + { + "concept": "138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Positive" + }, + { + "concept": "664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Negative" + }, + { + "concept": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Unknown" + }, + { + "concept": "54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label": "Missing" } ] }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "hiv_test !== '1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"true" } } ] }, { - "label": "Anti-retroviral treatment status", + "label": "ART initiation", "type": "obs", "id": "art_initiation", "questionOptions": { - "concept": "160117AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "6e62bf7e-2107-4d09-b485-6e60cbbb2d08", "rendering": "radio", "answers": [ { "concept": "160119AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Already on ART", - "conceptMappings": [ + "conceptMappings":[ { - "type": "CIEL", - "value": "160119" + "type":"CIEL", + "value":"160119" }, { - "type": "PIH Malawi", - "value": "7010" + "type":"PIH Malawi", + "value":"7010" }, { - "type": "PIH", - "value": "1257" + "type":"PIH", + "value":"1257" } ] }, { "concept": "160120AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Started on ART during Labour and Delivery", - "conceptMappings": [ + "conceptMappings":[ { - "type": "CIEL", - "value": "160120" + "type":"CIEL", + "value":"160120" }, { - "type": "PIH", - "value": "1256" + "type":"PIH", + "value":"1256" } ] }, { "concept": "160018AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Refused ART", - "conceptMappings": [ + "conceptMappings":[ + { + "type":"CIEL", + "value":"160018" + } + ] + }, + { + "concept": "1754AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Not started due to stockout of ART", + "conceptMappings":[ + { + "type":"CIEL", + "value":"1754" + }, + { + "type":"AMPATH", + "value":"664" + }, + { + "type":"SNOMED CT", + "value":"182856006" + }, + { + "type":"SNOMED MVP", + "value":"17541000105004" + }, { - "type": "CIEL", - "value": "160018" + "type":"PIH", + "value":"1761" } ] + }, + { + "concept": "54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label": "Missing" } ] }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "anc_hiv_test_status !== '138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && anc_hiv_test_status !== '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && anc_retest_thirty_six_weeks !== '138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && hiv_test !== '138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && hiv_test !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || hiv_test_result == '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"anc_hiv_test_status !== '8b8951a8-e8d6-40ca-ad70-89e8f8f71fa8' && anc_hiv_test_status !== '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && anc_retest_thirty_six_weeks !== '138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && hiv_test !== '8b8951a8-e8d6-40ca-ad70-89e8f8f71fa8' && hiv_test !== '6f041992-f0fd-4ec7-b7b6-c06b0f60bf3f' || hiv_test_result == '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || hiv_test_result == '1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || hiv_test_result == '54b96458-6585-4c4c-a5b1-b3ca7f1be351'" } } ] @@ -478,15 +602,19 @@ "concept": "164402AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "number", "max": "999999999999", - "min": "100000000000" + "min": "100000000000", + "calculate": { + "calculateExpression": "art_initiation == '160119AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? myValue = latest_anc_art_number : ''" + } + }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "unspecified": "true", - "hide": { - "hideWhenExpression": "art_initiation !== '160119AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && art_initiation !== '160120AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || anc_hiv_test_status !== '138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && anc_hiv_test_status !== '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"art_initiation !== '160119AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && art_initiation !== '160120AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || anc_hiv_test_status !== '8b8951a8-e8d6-40ca-ad70-89e8f8f71fa8' && anc_hiv_test_status !== '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } } ] @@ -497,24 +625,27 @@ "id": "art_start_date", "questionOptions": { "concept": "159599AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "date" + "rendering": "date", + "calculate": { + "calculateExpression": "art_initiation == '160119AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? myValue = formatDate('latest_anc_art_start_date') : ''" + } }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "unspecified": "true", - "hide": { - "hideWhenExpression": "art_initiation !== '160119AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && art_initiation !== '160120AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || anc_hiv_test_status !== '138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && anc_hiv_test_status !== '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"art_initiation !== '160119AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && art_initiation !== '160120AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || anc_hiv_test_status !== '8b8951a8-e8d6-40ca-ad70-89e8f8f71fa8' && anc_hiv_test_status !== '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" }, "validators": [ { - "type": "date", - "allowFutureDates": "false" + "type":"date", + "allowFutureDates":"false" }, { - "type": "js_expression", - "failsWhenExpression": "isDateBefore(myValue, '1980-01-01') || myValue >= today()" + "type":"js_expression", + "failsWhenExpression":"isDateBefore(myValue, '1980-01-01') || myValue >= today()" } ] } @@ -528,13 +659,13 @@ "concept": "163322AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "textarea" }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "unspecified": "true", - "hide": { - "hideWhenExpression": "art_initiation !== '160018AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || anc_hiv_test_status !== '138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && anc_hiv_test_status !== '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"art_initiation !== '160018AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } } ] @@ -554,15 +685,19 @@ { "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "No" + }, + { + "concept": "54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label": "Missing" } ] }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "art_initiation !== '160119AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && art_initiation !== '160120AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || anc_hiv_test_status !== '138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && anc_hiv_test_status !== '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"hiv_test_result == '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || hiv_test_result == '1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || hiv_test_result == '54b96458-6585-4c4c-a5b1-b3ca7f1be351' || art_initiation == '160018AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || art_initiation == '1754AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || art_initiation == '54b96458-6585-4c4c-a5b1-b3ca7f1be351' && anc_latest_hiv_test_result !== '138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } } ] @@ -575,22 +710,22 @@ "concept": "163281AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "date" }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "unspecified": "true", - "hide": { - "hideWhenExpression": "recent_viral_load !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"recent_viral_load !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" }, "validators": [ { - "type": "date", - "allowFutureDates": "false" + "type":"date", + "allowFutureDates":"false" }, { - "type": "js_expression", - "failsWhenExpression": "isDateBefore(myValue, '1980-01-01') || myValue >= today()" + "type":"js_expression", + "failsWhenExpression":"isDateBefore(myValue, '1980-01-01') || myValue >= today()" } ] } @@ -619,15 +754,19 @@ { "concept": "159971AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Results pending" + }, + { + "concept": "54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label": "Missing" } ] }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "recent_viral_load !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"recent_viral_load !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } } ] @@ -640,17 +779,48 @@ "concept": "856AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "number" }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "unspecified": "true", - "hide": { - "hideWhenExpression": "viral_load_results !== '1301AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"viral_load_results !== '1301AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } } ] + }, + { + "label": "Latest ANC ART number", + "type": "obs", + "id": "latest_anc_art_number", + "questionOptions": { + "concept": "", + "rendering": "fixed-value", + "calculate": { + "calculateExpression": "resolve(api.getLatestObs(patient.id, '164402AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', '2549af50-75c8-4aeb-87ca-4bb2cef6c69a'))?.valueQuantity?.value" + } + }, + "hide":{ + "hideWhenExpression":"true" + } + }, + { + "label": "Latest ANC ART start date", + "type": "obs", + "id": "latest_anc_art_start_date", + "questionOptions": { + "concept": "", + "rendering": "fixed-value", + "calculate": { + "calculateExpression": "resolve(api.getLatestObs(patient.id, '159599AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', '2549af50-75c8-4aeb-87ca-4bb2cef6c69a'))?.valueDateTime" + } + }, + "hide":{ + "hideWhenExpression":"true" + } } + ] }, { @@ -680,15 +850,19 @@ { "concept": "1692AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Discharged (Still Alive)" + }, + { + "concept": "54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label": "Missing" } ] }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "false" + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"false" } } ] @@ -701,22 +875,22 @@ "concept": "1641AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "date" }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "unspecified": "true", - "hide": { - "hideWhenExpression": "mother_status !== '1692AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"mother_status !== '1692AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" }, "validators": [ { - "type": "date", - "allowFutureDates": "false" + "type":"date", + "allowFutureDates":"false" }, { - "type": "js_expression", - "failsWhenExpression": "isDateBefore(myValue, '1980-01-01') || myValue >= today()" + "type":"js_expression", + "failsWhenExpression":"isDateBefore(myValue, '1980-01-01') || myValue >= today()" } ] } @@ -725,12 +899,12 @@ { "label": "Number of babies born from this pregnancy", "type": "obs", - "id": "birth-count", + "id": "birth_count", "questionOptions": { "concept": "1568AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "number", - "max": "10", - "min": "1" + "max":"10", + "min":"1" } } ] @@ -750,47 +924,50 @@ "type": "obsGroup", "questionOptions": { "rendering": "repeating", - "concept": "1c70c490-cafa-4c95-9fdd-a30b62bb78b8" + "concept": "1c70c490-cafa-4c95-9fdd-a30b62bb78b8", + "repeatOptions":{ + "limitExpression": "useFieldValue('birth_count')" + } }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "false", - "unspecified": "false", - "hide": { - "hideWhenExpression": "" + "intent":"*", + "required":"false", + "unspecified":"false", + "hide":{ + "hideWhenExpression":"" }, - "validators": [] + "validators":[] } ], "questions": [ { "label": "Sex", - "type": "obs", - "questionOptions": { - "rendering": "radio", - "concept": "1587AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "answers": [ + "type":"obs", + "questionOptions":{ + "rendering":"radio", + "concept":"1587AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "answers":[ { - "concept": "1535AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Female" + "concept":"1535AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label":"Female" }, { - "concept": "1534AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Male" + "concept":"1534AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label":"Male" } ] }, - "id": "childSex", - "behaviours": [ + "id":"childSex", + "behaviours":[ { - "intent": "*", - "required": "true", - "unspecified": "true", - "hide": { - "hideWhenExpression": "false" + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"false" }, - "validators": [] + "validators":[] } ] }, @@ -827,129 +1004,145 @@ }, { "label": "Infant Status at birth", - "type": "obs", - "questionOptions": { - "rendering": "radio", - "concept": "159917AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "answers": [ + "type":"obs", + "questionOptions":{ + "rendering":"radio", + "concept":"159917AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "answers":[ { - "concept": "151849AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Infant alive" + "concept":"151849AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label":"Infant alive" }, { - "concept": "154223AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Infant Died (Neonatal Death)" + "concept":"154223AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label":"Infant Died (Neonatal Death)" }, { - "concept": "125872AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Still Birth" + "concept":"125872AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label":"Still Birth" + }, + { + "concept": "54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label": "Missing" } ] }, - "id": "infantStatus", - "behaviours": [ + "id":"infantStatus", + "behaviours":[ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "false" + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"false" }, - "validators": [] + "validators":[] } ] }, { "label": "Infant Feeding at discharge", - "type": "obs", - "questionOptions": { - "rendering": "radio", - "concept": "1151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "answers": [ + "type":"obs", + "questionOptions":{ + "rendering":"radio", + "concept":"1151AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "answers":[ + { + "concept":"5526AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label":"EBF=Exclusive Breastfeeding" + }, { - "concept": "5526AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "EBF=Exclusive Breastfeeding" + "concept":"1595AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label":"RF=Replacement feeding" }, { - "concept": "1595AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "RF=Replacement feeding" + "concept": "54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label": "Missing" } ] }, - "id": "infantFeeding", - "behaviours": [ + "id":"infantFeeding", + "behaviours":[ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "infantStatus !== '151849AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && infantStatus !== '154223AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"infantStatus !== '151849AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && infantStatus !== '154223AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" }, - "validators": [] + "validators":[] } ] }, { "label": "Type of still birth", - "type": "obs", - "questionOptions": { - "rendering": "radio", - "concept": "125872AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "answers": [ + "type":"obs", + "questionOptions":{ + "rendering":"radio", + "concept":"125872AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "answers":[ + { + "concept":"159916AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label":"Fresh" + }, { - "concept": "159916AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Fresh" + "concept":"135436AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label":"Macerated" }, { - "concept": "135436AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Macerated" + "concept": "54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label": "Missing" } ] }, - "id": "stillBirthType", - "behaviours": [ + "id":"stillBirthType", + "behaviours":[ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "infantStatus !== '125872AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"infantStatus !== '125872AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" }, - "validators": [] + "validators":[] } ] }, { "label": "Infant Received ARV", - "type": "obs", - "questionOptions": { - "rendering": "radio", - "concept": "1147AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "answers": [ + "type":"obs", + "questionOptions":{ + "rendering":"radio", + "concept":"1148AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "answers":[ + { + "concept":"83a60fef-31c6-4937-907b-42ced15474e3", + "label":"NVP Prophylaxis daily up to 6 weeks" + }, { - "concept": "631AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "NVP Prophylaxis daily up to 6 weeks" + "concept":"99b29c50-fc67-11e8-8eb2-f2801f1b9fd1", + "label":"Infant received NVP + AZT prophylaxis up to 6 weeks" }, { - "concept": "1148AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Infant received NVP + AZT prophylaxis up to 6 weeks" + "concept":"127750AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label":"Refused ARV Prophylaxis" }, { - "concept": "1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Refused ARV Prophylaxis" + "concept":"1754AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label":"Stock-out of ARV Prophylaxis" }, { - "concept": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Stock-out of ARV Prophylaxis" + "concept": "54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label": "Missing" } ] }, - "id": "receivedARV", - "behaviours": [ + "id":"receivedARV", + "behaviours":[ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "infantStatus !== '151849AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && infantStatus !== '154223AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"infantStatus !== '151849AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && infantStatus !== '154223AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" }, - "validators": [] + "validators":[] } ] }, @@ -961,13 +1154,13 @@ "concept": "163322AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "textarea" }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "unspecified": "true", - "hide": { - "hideWhenExpression": "receivedARV !== '127750AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"receivedARV !== '127750AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } } ] @@ -1003,7 +1196,7 @@ ] }, { - "label": "Infant Unique ID", + "label": "Infant PTracker ID", "type": "obs", "id": "infantPtrackerid", "questionOptions": { @@ -1013,13 +1206,20 @@ "calculateExpression": "!isEmpty('MotherPtracker_id') ? myValue = useFieldValue('MotherPtracker_id') : ''" } }, - "behaviours": [ + "behaviours":[ { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "infantStatus === '125872AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - } + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"infantStatus === '125872AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + }, + "validators": [ + { + "type": "js_expression", + "failsWhenExpression": "!/^[0-9]{5}[A-Z]{1}[0-9]{7,8}$$/.test(myValue)", + "message": "Invalid Ptracker number" + } + ] } ] } @@ -1030,22 +1230,18 @@ ] } ], - "availableIntents": [ + "availableIntents":[ { - "intent": "*", - "display": "Labour & Delivery Form" + "intent":"*", + "display":"Labour & Delivery Form" } ], - "processor": "EncounterFormProcessor", - "uuid": "b420d75c-12b1-4c8a-80d1-d41a95ae1bc3", - "referencedForms": [], - "encounterType": "6dc5308d-27c9-4d49-b16f-2c5e3c759757", - "encounter": "Labor and Delivery", - "postSubmissionActions": [ - "MotherToChildLinkageSubmissionAction", - "ArtSubmissionAction" - ], - "allowUnspecifiedAll": true, + "processor":"EncounterFormProcessor", + "uuid":"1e5614d6-5306-11e6-beb8-9e71128cae77", + "referencedForms":[], + "encounterType":"2678423c-0523-4d76-b0da-18177b439eed", + "postSubmissionActions": ["MotherToChildLinkageSubmissionAction", "ArtSubmissionAction"], + "allowUnspecifiedAll":true, "formOptions": { "usePreviousValueDisabled": "true" } diff --git a/distro/configuration/ampathforms/pmtct_mother_postnatal_v1.0.json b/distro/configuration/ampathforms/pmtct_mother_postnatal_v1.0.json index 1965339c2..dc93f0342 100644 --- a/distro/configuration/ampathforms/pmtct_mother_postnatal_v1.0.json +++ b/distro/configuration/ampathforms/pmtct_mother_postnatal_v1.0.json @@ -1,507 +1,665 @@ { - "name": "Mother - Postnatal Form", - "version": "1", - "published": true, - "retired": false, - "pages": [ - { - "label": "Visit Details", - "sections": [ - { - "label": "Patient ID Capture", - "isExpanded": "true", - "questions": [ - { - "label": "Visit Date", - "type": "obs", - "id": "visit_date", - "questionOptions": { - "concept": "163260AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "date" - }, - "behaviours": [ - { - "intent": "*", - "required": "true", - "unspecified": "true", - "hide": { - "hideWhenExpression": "false" - }, - "validators": [ - { - "type": "date", - "allowFutureDates": "false" - }, - { - "type": "js_expression", - "failsWhenExpression": "isDateBefore(myValue, '1980-01-01') || myValue >= today()" - } - ] - } - ] - }, - { - "label": "Mother's patient identifier", - "type": "obs", - "id": "ptrackerid", - "questionOptions": { - "concept": "163530AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "text" - }, - "behaviours": [ - { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "false" - } - } - ] - } - ] - } - ] - }, - { - "label": "HTS and ART", - "sections": [ - { - "label": "HIV Testing And ART Initiation", - "isExpanded": "true", - "questions": [ - { - "label": "ANC HIV test status ", - "type": "obs", - "id": "testStatusAtANC", - "questionOptions": { - "concept": "164401AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "fixed-value", - "calculate": { - "calculateExpression": "resolve(api.getLatestObs(patient.id, '164401AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', '677d1a80-dbbe-4399-be34-aa7f54f11405 '))?.valueCodeableConcept?.coding[0]?.code" - }, - "answers": [ - { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Tested for HIV" - }, - { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Not tested for HIV" - }, - { - "concept": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Unknown" - } - ] - }, - "behaviours": [ - { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "true" - } - } - ] - }, - { - "label": "ANC HIV test result ", - "type": "obs", - "id": "ancHivTestResult", - "questionOptions": { - "concept": "159427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", - "calculate": { - "calculateExpression": "resolve(api.getLatestObs(patient.id, '159427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', '677d1a80-dbbe-4399-be34-aa7f54f11405 '))?.valueCodeableConcept?.coding[0]?.code" - }, - "answers": [ - { - "concept": "703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Positive" - }, - { - "concept": "664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Negative" - }, - { - "concept": "1138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Unknown" - } - ] - }, - "behaviours": [ - { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "true" - } - } - ] - }, - { - "label": "HIV Test Performed", - "type": "obs", - "id": "hiv_test", - "questionOptions": { - "concept": "164401AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", - "answers": [ - { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" - }, - { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No" - }, - { - "concept": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Unknown" - } - ] - }, - "behaviours": [ - { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "testStatusAtANC == '138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || ancHivTestResult == '138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - }, - "validators": [] - } - ] - }, - { - "label": "HIV Test Result", - "type": "obs", - "id": "hiv-test-result", - "questionOptions": { - "concept": "159427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", - "answers": [ - { - "concept": "1138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Indeterminate" - }, - { - "concept": "703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Positive" - }, - { - "concept": "664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Negative" - } - ] - }, - "behaviours": [ - { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "!includes('hiv-test','1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')" - }, - "validators": [] - } - ] - }, - { - "label": "ART Initiation", - "type": "obs", - "id": "art-initiation", - "questionOptions": { - "concept": "160117AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", - "answers": [ - { - "concept": "160119AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Currently taking ART" - }, - { - "concept": "160120AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Started on ART" - }, + "name":"Mother - Postnatal Form", + "version": "1", + "published": true, + "retired": false, + "encounter": "Mother Postnatal", + "pages":[ + { + "label":"Visit Details", + "sections":[ + { + "label":"PTracker ID Capture", + "isExpanded":"true", + "questions":[ { - "concept": "160121AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Discontinued ART" + "label": "Visit Date", + "type": "obs", + "id": "visit_date", + "questionOptions": { + "concept": "163260AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "date" + }, + "behaviours":[ + { + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"false" + }, + "validators": [ + { + "type":"date", + "allowFutureDates":"false" + }, + { + "type":"js_expression", + "failsWhenExpression":"isDateBefore(myValue, '1980-01-01') || myValue >= today()" + } + ] + } + ] }, { - "concept": "160122AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Change of ART" - }, + "label": "Was this client booked (Does Client have a pink book?) at ANC? ", + "type": "obs", + "id": "client_booked", + "questionOptions": { + "concept": "1719AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "radio", + "answers": [ + { + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" + }, + { + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" + }, + { + "concept": "54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label": "Missing" + } + ] + }, + "behaviours":[ + { + "intent":"*", + "required": "false", + "hide":{ + "hideWhenExpression":"false" + } + } + ] + }, { - "concept": "1461AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Refused ART" + "label": "PTracker ID", + "type": "obs", + "id": "PtrackerId", + "questionOptions": { + "concept": "6c45421e-2566-47cb-bbb3-07586fffbfe2", + "rendering": "text", + "usePreviousValueDisabled": "true", + "calculate": { + "calculateExpression": "client_booked == '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && !isEmpty('latest_anc_ptracker_number') ? useFieldValue('latest_anc_ptracker_number') : ''" + } + }, + "readonlyExpression": "client_booked == '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && !isEmpty('latest_anc_ptracker_number')", + "behaviours":[ + { + "intent":"*", + "required":"true", + "unspecified":"false", + "hide":{ + "hideWhenExpression":"false" + }, + "validators":[ + { + "type": "js_expression", + "failsWhenExpression": "!/^[0-9]{5}[A-S]{1}[0-9]{6,8}$$/.test(myValue)", + "message": "Invalid Ptracker number" + } + + ] + } + ] }, { - "concept": "160118AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "ART Date Unknown" + "label": "Latest ANC Ptracker number", + "type": "obs", + "id": "latest_anc_ptracker_number", + "questionOptions": { + "concept": "", + "rendering": "fixed-value", + "calculate": { + "calculateExpression": "resolve(api.getLatestObs(patient.id, '6c45421e-2566-47cb-bbb3-07586fffbfe2', '2549af50-75c8-4aeb-87ca-4bb2cef6c69a')).valueString" + } + }, + "hide":{ + "hideWhenExpression":"true" + } } ] - }, - "behaviours": [ - { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "hiv-test-result !== '138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && hiv-test !== '138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - }, - "validators": [] - } - ] + } + ] }, { - "label": "ART Unique Number", - "type": "obs", - "id": "art-number", - "questionOptions": { - "concept": "164402AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "number" - }, - "behaviours": [ - { - "intent": "*", - "required": "true", - "unspecified": "true", - "hide": { - "hideWhenExpression": "art-initiation !== '160119AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || art-initiation !== '160120AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - }, - "validators": [] - } - ] - }, - { - "label": "Reason why client has refused ART", - "type": "obs", - "id": "reason-for-refusing-art", - "questionOptions": { - "concept": "163322AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "textarea", - "rows": "" - }, - "behaviours": [ - { - "intent": "*", - "required": "true", - "unspecified": "true", - "hide": { - "hideWhenExpression": "art-initiation !== '160018AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - }, - "validators": [] - } - ] - }, - { - "label": "ART Start Date", - "type": "obs", - "id": "art_start_date", - "questionOptions": { - "concept": "159599AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "date" - }, - "behaviours": [ - { - "intent": "*", - "required": "true", - "unspecified": "true", - "hide": { - "hideWhenExpression": "art-initiation !== '160119AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && art-initiation !== '160120AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - }, - "validators": [] - } - ] - }, - { - "label": "Has the patient had a recent viral load test?", - "type": "obs", - "id": "recent-viral-load", - "questionOptions": { - "concept": "163310AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", - "answers": [ - { - "concept": "1267AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" - }, + "label": "HTS and ART", + "sections": [ + { + "label":"HIV Testing And ART Initiation", + "isExpanded":"true", + "questions":[ { - "concept": "1118AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Not done" - }, - { - "concept": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Unknown" - } - ] - }, - "behaviours": [ - { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "art-initiation !== '160119AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && art-initiation !== '160120AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - }, - "validators": [] - } - ] - }, - { - "label": "Viral Load Test Date", - "type": "obs", - "id": "viral_load_test_date", - "questionOptions": { - "concept": "163281AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "date" - }, - "behaviours": [ - { - "intent": "*", - "required": "true", - "unspecified": "true", - "hide": { - "hideWhenExpression": "!includes('recent-viral-load','1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')" - }, - "validators": [] - } - ] - }, - { - "label": "Viral Load Results", - "type": "obs", - "id": "viral-load-results", - "questionOptions": { - "concept": "1305AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", - "answers": [ - { - "concept": "159971AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Results pending" - }, - { - "concept": "1304AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Sample Rejected" - }, - { - "concept": "1301AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Detected" - }, - { - "concept": "1302AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Not Detected" - } - ] - }, - "behaviours": [ - { - "intent": "*", - "required": "true", - "hide": { - "hideWhenExpression": "!includes('recent-viral-load','1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')" - }, - "validators": [] - } - ] - }, - { - "label": "Viral Load Copies", - "type": "obs", - "id": "viral_load_copies", - "questionOptions": { - "concept": "856AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "number" - }, - "behaviours": [ - { - "intent": "*", - "required": "true", - "unspecified": "true", - "hide": { - "hideWhenExpression": "!includes('viral-load-results','1301AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')" - }, - "validators": [] - } - ] - } - ] - } - ] - }, - { - "label": "Next Appointment", - "sections": [ - { - "label": "Follow Up", - "isExpanded": "true", - "questions": [ - { - "label": "Next Vist Date", - "type": "obs", - "id": "next_visit_date", - "questionOptions": { - "concept": "5096AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "date" - }, - "behaviours": [ - { - "intent": "*", - "required": "true", - "unspecified": "true", - "hide": { - "hideWhenExpression": "false" - }, - "validators": [ - { - "type": "date", - "allowFutureDates": "true" + "label": "ANC HIV test status ", + "type": "obs", + "id": "testStatusAtANC", + "questionOptions": { + "concept": "164401AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "fixed-value", + "calculate": { + "calculateExpression": "resolve(api.getLatestObs(patient.id, '164401AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', '2549af50-75c8-4aeb-87ca-4bb2cef6c69a'))?.valueCodeableConcept?.coding[0]?.code" + }, + "answers": [ + { + "concept": "6f041992-f0fd-4ec7-b7b6-c06b0f60bf3f", + "label": "Tested for HIV during this visit" + }, + { + "concept": "8b8951a8-e8d6-40ca-ad70-89e8f8f71fa8", + "label": "Previously known positive" + }, + { + "concept": "d18fa331-f158-47d0-b344-cf147c7125a4", + "label": "Not tested for HIV during this visit" + }, + { + "concept": "54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label": "Missing" + } + ] + }, + "behaviours":[ + { + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"true" + } + } + ] + }, + { + "label": "ANC HIV test result ", + "type": "obs", + "id": "ancHivTestResult", + "questionOptions": { + "concept": "159427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "fixed-field", + "calculate":{ + "calculateExpression":"resolve(api.getLatestObs(patient.id, '159427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA', '2549af50-75c8-4aeb-87ca-4bb2cef6c69a'))?.valueCodeableConcept?.coding[0]?.code" + }, + "answers": [ + { + "concept": "138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Positive" + }, + { + "concept": "664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Negative" + }, + { + "concept": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Unknown" + }, + { + "concept": "54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label": "Missing" + } + ] + }, + "behaviours":[ + { + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"true" + } + } + ] + }, + { + "label":"HIV Test Status", + "type":"obs", + "id":"hiv_test_status_pnc", + "questionOptions":{ + "concept":"164401AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering":"radio", + "answers":[ + { + "concept":"6f041992-f0fd-4ec7-b7b6-c06b0f60bf3f", + "label":"Tested for HIV during this visit" + }, + { + "concept":"d18fa331-f158-47d0-b344-cf147c7125a4", + "label":"Not tested for HIV during this visit" + }, + { + "concept":"8b8951a8-e8d6-40ca-ad70-89e8f8f71fa8", + "label":"Previously known positive" + }, + { + "concept":"54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label":"Missing" + } + ] + }, + "behaviours":[ + { + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"testStatusAtANC == '8b8951a8-e8d6-40ca-ad70-89e8f8f71fa8' || ancHivTestResult == '138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + }, + "validators":[ + + ] + } + ] + }, + { + "label":"HIV Test Result", + "type":"obs", + "id":"pnc_hiv_test_result", + "questionOptions":{ + "concept":"159427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering":"radio", + "answers":[ + { + "concept":"1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label":"Unknown" + }, + { + "concept":"138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label":"Positive" + }, + { + "concept":"664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label":"Negative" + }, + { + "concept":"54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label":"Missing" + } + ] + }, + "behaviours":[ + { + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"hiv_test_status_pnc !== '6f041992-f0fd-4ec7-b7b6-c06b0f60bf3f'" + }, + "validators":[] + } + ] + }, + { + "label":"ART Initiation", + "type":"obs", + "id":"pnc_art_initiation", + "questionOptions":{ + "concept":"6e62bf7e-2107-4d09-b485-6e60cbbb2d08", + "rendering":"radio", + "answers":[ + { + "concept":"160018AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label":"Refused ART" + }, + { + "concept":"160120AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label":"Started on ART in PNC" + }, + { + "concept":"1754AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label":"Not started due to stockout of ART" + }, + { + "concept":"160119AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label":"Already on ART" + }, + { + "concept":"54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label":"Missing" + } + ] + }, + "behaviours":[ + { + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"hiv_test_status_pnc !== '8b8951a8-e8d6-40ca-ad70-89e8f8f71fa8' && pnc_hiv_test_result !== '138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + }, + "validators":[ + ] + } + ] + }, + { + "label":"ART Unique Number", + "type":"obs", + "id":"art_number", + "questionOptions":{ + "concept":"164402AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering":"number" }, - { - "type": "js_expression", - "failsWhenExpression": "myValue <= useFieldValue('visit_date')", - "message": "Next visit date cannot be less than current visit date" - } - ] - } - ] - }, - { - "label": "Facility of next appointment", - "type": "obs", - "required": false, - "id": "facilityName", - "questionOptions": { - "rendering": "text", - "concept": "162724AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "conceptMappings": [ - { - "relationship": "SAME-AS", - "type": "CIEL", - "value": "160632" - }, - { - "relationship": "SAME-AS", - "type": "AMPATH", - "value": "1915" - } + "behaviours":[ + { + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"pnc_art_initiation !== '160119AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && pnc_art_initiation !== '160120AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + }, + "validators":[ + + ] + } + ] + }, + { + "label":"Reason why client has refused ART", + "type":"obs", + "id":"reason-for-refusing-art", + "questionOptions":{ + "concept":"163322AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering":"textarea", + "rows":"" + }, + "behaviours":[ + { + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"pnc_art_initiation !== '160018AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + }, + "validators":[] + } + ] + }, + { + "label":"ART Start Date", + "type":"obs", + "id":"art_start_date", + "questionOptions":{ + "concept":"159599AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering":"date" + }, + "behaviours":[ + { + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"pnc_art_initiation !== '160119AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && pnc_art_initiation !== '160120AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + }, + "validators":[ + + ] + } + ] + }, + { + "label":"Has the patient had a recent viral load test?", + "type":"obs", + "id":"pnc_recent_viral_load", + "questionOptions":{ + "concept":"163310AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering":"radio", + "answers":[ + { + "concept":"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label":"Yes" + }, + { + "concept":"1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label":"No" + }, + { + "concept":"54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label":"Missing" + } + ] + }, + "behaviours":[ + { + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"hiv_test_status_pnc == 'd18fa331-f158-47d0-b344-cf147c7125a4' || hiv_test_status_pnc == '54b96458-6585-4c4c-a5b1-b3ca7f1be351' || pnc_hiv_test_result == '1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || pnc_hiv_test_result == '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || pnc_hiv_test_result == '54b96458-6585-4c4c-a5b1-b3ca7f1be351' || pnc_art_initiation == '160018AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || pnc_art_initiation == '1754AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || pnc_art_initiation == '54b96458-6585-4c4c-a5b1-b3ca7f1be351'" + }, + "validators":[ + + ] + } + ] + }, + { + "label":"Viral Load Test Date", + "type":"obs", + "id":"viral_load_test_date", + "questionOptions":{ + "concept":"163281AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering":"date" + }, + "behaviours":[ + { + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"!includes('pnc_recent_viral_load','1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')" + }, + "validators":[ + + ] + } + ] + }, + { + "label":"Viral Load Results", + "type":"obs", + "id":"pnc_viral_load_results", + "questionOptions":{ + "concept":"1305AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering":"radio", + "answers":[ + { + "concept":"159971AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label":"Results pending" + }, + { + "concept":"1304AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label":"Sample Rejected" + }, + { + "concept":"1301AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label":"Target Detected" + }, + { + "concept":"1306AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label":"Not Detected" + }, + { + "concept":"54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label":"Missing" + } + ] + }, + "behaviours":[ + { + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"!includes('pnc_recent_viral_load','1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')" + }, + "validators":[ + + ] + } + ] + }, + { + "label":"Viral Load Copies", + "type":"obs", + "id":"viral_load_copies", + "questionOptions":{ + "concept":"856AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering":"number" + }, + "behaviours":[ + { + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"!includes('pnc_viral_load_results','1301AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')" + }, + "validators":[ + + ] + } + ] + } + ] + } + ] + }, + { + "label": "Next Appointment", + "sections": [ + { + "label":"Follow Up", + "isExpanded":"true", + "questions":[ + { + "label":"Next Vist Date", + "type":"obs", + "id":"next_visit_date", + "questionOptions":{ + "concept":"5096AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering":"date" + }, + "behaviours":[ + { + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"false" + }, + "validators":[ + { + "type": "date", + "allowFutureDates": "true" + }, + { + "type": "js_expression", + "failsWhenExpression": "myValue <= useFieldValue('visit_date')", + "message": "Next visit date cannot be less than current visit date" + } + ] + } + ] + }, + { + "label":"Facility of next appointment", + "type":"obs", + "id":"pnc_transfer_out", + "questionOptions":{ + "concept":"efc87cd5-2fd8-411c-ba52-b0d858f541e7", + "rendering":"radio", + "answers":[ + { + "concept":"160036AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label":"Transfer out" + }, + { + "concept":"163266AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label":"This facility" + }, + { + "concept":"52f7fc03-611b-4b62-8498-37beb2fa99ed", + "label":"In Transit" + }, + { + "concept":"54b96458-6585-4c4c-a5b1-b3ca7f1be351", + "label":"Missing" + } + ] + }, + "behaviours":[ + { + "intent":"*", + "required":"true", + "hide":{ + "hideWhenExpression":"false" + }, + "validators":[ + + ] + } + ] + }, + { + "label":"Tranfer Out To", + "type":"obs", + "id":"transfer-out-to", + "questionOptions":{ + "concept":"159495AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "encounter-location", + "locationTag": "8d4626ca-7abd-42ad-be48-56767bbcf272" + }, + "behaviours":[ + { + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"pnc_transfer_out !== '160036AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + }, + "validators":[ + + ] + } + ] + }, + { + "label":"Transfer Out Date", + "type":"obs", + "id":"transfer_out_date", + "questionOptions":{ + "concept":"160649AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering":"date" + }, + "behaviours":[ + { + "intent":"*", + "required":"true", + "unspecified":"true", + "hide":{ + "hideWhenExpression":"pnc_transfer_out !== '160036AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + }, + "validators":[ + { + "type": "date", + "allowFutureDates": "" + } + ] + } + ] + } ] - } - } + } ] - } - ] - } - ], - "availableIntents": [ - { - "intent": "*", - "display": "Postnatal Form" + } + ], + "availableIntents":[ + { + "intent":"*", + "display":"Mother - Postnatal Form" + } + ], + "processor":"EncounterFormProcessor", + "uuid":"e6b67aa4-6c59-4470-8ad5-b994efeda553", + "referencedForms":[], + "encounterType":"269bcc7f-04f8-4ddc-883d-7a3a0d569aad", + "postSubmissionActions": ["ArtSubmissionAction"], + "allowUnspecifiedAll":true, + "formOptions": { + "usePreviousValueDisabled": "true" } - ], - "processor": "EncounterFormProcessor", - "uuid": "2105c8ae-1935-375c-a7cc-e2ca04c8f6be", - "referencedForms": [], - "encounterType": "4362fd2d-1866-4ea0-84ef-5e5da9627440", - "encounter": "Postnatal", - "postSubmissionActions": [ - "ArtSubmissionAction" - ], - "allowUnspecifiedAll": true -} + } diff --git a/distro/distro.properties b/distro/distro.properties index 3bba099f1..bf3f9c2f9 100644 --- a/distro/distro.properties +++ b/distro/distro.properties @@ -38,3 +38,9 @@ omod.ohricore=${ohricore.version} omod.ohrireports=${ohrireports.version} # omod.casereport=${casereport.version} omod.patientflags=${patientflags.version} + +omod.emrapi=${emrapi.version} +omod.event=${event.version} +omod.event.groupId=org.openmrs +omod.providermanagement=${providermanagement.version} +omod.uilibrary=${uilibrary.version} diff --git a/distro/pom.xml b/distro/pom.xml index 87b608d17..a71db22f5 100644 --- a/distro/pom.xml +++ b/distro/pom.xml @@ -66,6 +66,11 @@ 1.0.2-SNAPSHOT 1.0.0 + 1.32.0 + 2.10.0 + 2.13.0 + 2.0.7 + @@ -232,6 +237,35 @@ ${ohricore.version} provided + + + org.openmrs.module + emrapi-omod + ${emrapi.version} + provided + + + + org.openmrs + event-omod + ${event.version} + pom + provided + + + + org.openmrs.module + providermanagement-omod + ${providermanagement.version} + provided + + + + org.openmrs.module + uilibrary-omod + ${uilibrary.version} + provided +