diff --git a/configuration/ampathforms/Family_History.json b/configuration/ampathforms/Family_History.json index 91d404af..2583a08a 100644 --- a/configuration/ampathforms/Family_History.json +++ b/configuration/ampathforms/Family_History.json @@ -179,7 +179,7 @@ ] }, "hide": { - "hideExpression": "hivStatus !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "hideWhenExpression": "hivStatus !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } }, { @@ -191,7 +191,7 @@ "rendering": "number" }, "hide": { - "hideExpression": "hivStatus !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "hideWhenExpression": "isEmpty(careStatus) && careStatus !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } } ], diff --git a/configuration/ampathforms/Peer_Calendar.json b/configuration/ampathforms/Peer_Calendar.json index 69a69413..1b86d264 100644 --- a/configuration/ampathforms/Peer_Calendar.json +++ b/configuration/ampathforms/Peer_Calendar.json @@ -1,609 +1,609 @@ { - "name": "Peer Calendar", - "description": "Peer Calendar", - "version": "1", - "published": true, - "uuid": "7492cffe-5874-4144-a1e6-c9e455472a35", - "retired": false, - "encounter": "KP Peer Calendar", - "pages": [ - { - "label": "Peer Calendar", - "sections": [ - { - "label": "Visit Details", - "isExpanded": "true", - "questions": [ - { - "label": "Date:", - "type": "encounterDatetime", - "questionOptions": { - "rendering": "ui-select-extended" - }, - "validators": [ - { - "type": "date", - "allowFutureDates": "false" - } - ], - "id": "encDate" - }, - { - "label": "Provider:", - "type": "encounterProvider", - "questionOptions": { - "rendering": "ui-select-extended" - }, - "id": "encProvider " - }, - { - "label": "Location:", - "type": "encounterLocation", - "questionOptions": { - "rendering": "ui-select-extended" - }, - "id": "encLocation" - } - ] - }, - { - "label": "Outreach Calendar", - "isExpanded": "true", - "questions": [ - { - "label": "1.Name of hotspot", - "type": "obs", - "id": "hotspotName", - "questionOptions": { - "concept": "07944782-2ad1-4319-b3bd-b5acd097a328", - "rendering": "text" - } - }, - { - "label": "2.Typology", - "type": "obs", - "id": "hotspotType", - "questionOptions": { - "concept": "8e636ff6-6907-4c7e-965a-5c178c3237c6", - "rendering": "select", - "answers": [ - { - "concept": "0eb70f95-c0bb-480a-b0c5-dc987c740940", - "label": "1 - Street" - }, - { - "concept": "c3231eda-d525-40b5-81ef-323d7ebec324", - "label": "2 - Injecting den" - }, - { - "concept": "c31e2ac5-edcb-4f5e-a5a3-09e6158332bb", - "label": "3 - Uninhabitable building" - }, - { - "concept": "0a802027-c3db-4c89-a06a-5172a5f57611", - "label": "4 - Park" - }, - { - "concept": "1536AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "5 - Homes" - }, - { - "concept": "45bd1bea-367d-45d5-b596-a81a4f095808", - "label": "6 - Beach" - }, - { - "concept": "4da6617b-0bce-4653-932f-b9aa85794f19", - "label": "7 - Casino" - }, - { - "concept": "8fa3458f-217d-41ec-99a1-e80cb9e76963", - "label": "8 - Bar with lodging" - }, - { - "concept": "8361b9dd-a67b-46cd-a7d8-4a49dc732a17", - "label": "9 - Bar without lodging" - }, - { - "concept": "500e6361-47d3-4239-81ae-cccca6999f08", - "label": "10 - Sex den" - }, - { - "concept": "7f9ab5d9-b95b-4341-9d99-3cd1a2d45752", - "label": "11 - Strip club" - }, - { - "concept": "17a0e078-4f8e-4993-ba93-26bbd6480069", - "label": "12 - Highways" - }, - { - "concept": "52fcebd8-62b1-4b4a-be41-2f0ed5cd0a77", - "label": "13 - Brothel" - }, - { - "concept": "50e3f356-04b7-47a6-89d4-b46b74fa68ac", - "label": "14 - Guest house/Hotels/Lodgings" - }, - { - "concept": "48ca7119-3535-48f7-877d-acd7c1d193dd", - "label": "15 - Massage parlor" - }, - { - "concept": "c042a7d4-a8fb-4b33-b638-15c4687912e7", - "label": "16 - Chang’aa den" - }, - { - "concept": "7e77fe7a-978a-48ba-b0ce-b5226fe61e25", - "label": "17 - Barbershop/Salon" - }, - { - "concept": "4d543570-a831-403d-a6c7-b054bf71440e", - "label": "18 - Virtual Space" - }, - { - "concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "19 - Other (Specify)" - } - ] - } - }, - { - "label": "Other Hotspots Specify", - "type": "obs", - "id": "otherHotspotsSpecify", - "questionOptions": { - "concept": "bae7d54d-4944-4be0-93fa-021b4a70cb0b", - "rendering": "text" - }, - "validators": [], - "hide": { - "hideWhenExpression": "isEmpty(hotspotType) || !arrayContains(hotspotType,'5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')" - } - }, - { - "label": "3. Average number of sex acts per week", - "type": "obs", - "id": "weeklyCondomRequirements", - "questionOptions": { - "concept": "25852ebc-9fc6-40fa-b502-1ce90bc2bcc8", - "rendering": "number", - "max": "100", - "min": "0" - } - }, - { - "label": "4. Condom requirements per month", - "type": "obs", - "id": "condomRequirementsMonth", - "questionOptions": { - "concept": "7b3f4d87-17ca-4660-b909-4c53c60cdcf1", - "rendering": "number", - "calculate": { - "calculateExpression": "weeklyCondomRequirements * 4" - } - } - }, - { - "label": "5. Average number of anal sex acts per week", - "type": "obs", - "id": "analSexActsWeek", - "questionOptions": { - "concept": "41ffeb50-07e6-480c-82da-49b4e2cd519c", - "rendering": "number", - "max": "100", - "min": "0" - } - }, - { - "label": "6. Lubricant requirements per month", - "type": "obs", - "id": "lubeRequirementMonth", - "questionOptions": { - "concept": "37c5e006-05f3-4534-a337-8447b50659de", - "rendering": "number", - "calculate": { - "calculateExpression": "analSexActsWeek * 4" - } - } - }, - { - "label": "7. Average number of injecting episodes per day", - "type": "obs", - "id": "dayInjectionEpisodes", - "questionOptions": { - "concept": "180e47e4-5d16-4a46-bd13-9229635889d6", - "rendering": "number", - "max": "100", - "min": "0" - } - }, - { - "label": "8. Needle and syringe requirements per month", - "type": "obs", - "id": "calculatedMonthlySR", - "questionOptions": { - "concept": "37c5e006-05f3-4534-a337-8447b50659de", - "rendering": "number", - "calculate": { - "calculateExpression": "dayInjectionEpisodes * 30" - } - } - }, - { - "label": "9. Duration in sex work / injecting drugs", - "type": "obs", - "id": "durationInSexWork", - "questionOptions": { - "concept": "f04d4ba6-9fd1-4882-8a8d-4b11e7fdc9c9", - "rendering": "number", - "max": "70", - "min": "0" - } - }, - { - "label": "10. Ever experienced violence", - "type": "obs", - "id": "expriencedViolence", - "questionOptions": { - "concept": "123160AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", - "answers": [ - { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No" - }, - { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" - } - ] - } - }, - { - "label": "Service Provided in the Last 1 Month", - "type": "obs", - "id": "serviceProvided", - "questionOptions": { - "concept": "63da4194-a26a-4aa5-b5d5-4125b4822cf7", - "rendering": "multiCheckbox", - "answers": [ - { - "concept": "159777AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Condoms" - }, - { - "concept": "8abb708f-508f-4af7-be12-ebdeb3f0ca0b", - "label": "N and S" - }, - { - "concept": "d83bca86-6734-4b26-b67c-c2133948fbac", - "label": "Contact" - }, - { - "concept": "161643AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Visited Clinic" - } - ] - } - } - ] - }, - { - "label": "Monthly Service Uptake", - "isExpanded": "true", - "questions": [ - { - "label": "Weekly Uptake", - "type": "obsGroup", - "questionOptions": { - "concept": "73647652-e26f-48cf-9c21-d5c20ada6d46", - "rendering": "repeating" - }, - "questions": [ - { - "label": "N and S distributed :", - "type": "obs", - "id": "nsDistributed", - "questionOptions": { - "concept": "27c0e645-674c-4b8a-ac6a-605e60564b97", - "rendering": "number" - } - }, - { - "label": "Lubes distributed :", - "type": "obs", - "id": "lubeDistributed", - "questionOptions": { - "concept": "bc8e7707-c95e-45dc-9367-e0ee75e9a126", - "rendering": "number" - } - }, - { - "label": "Male condoms distributed :", - "type": "obs", - "id": "condomDistributed", - "questionOptions": { - "concept": "771638d9-9600-4a6b-8e5d-c6dcdedbc9cd", - "rendering": "number" - } - }, - { - "label": "Female condoms distributed :", - "type": "obs", - "id": "fCondomDistributed", - "questionOptions": { - "concept": "14191f18-1629-4538-81b4-a9716a106cb4", - "rendering": "number" - } - }, - { - "label": "Health Eductaion", - "type": "obs", - "id": "healthEduc", - "questionOptions": { - "concept": "25143023-431f-4159-833a-195787e39aa6", - "rendering": "multiCheckbox", - "answers": [ - { - "concept": "b88c0b2d-b49e-4528-8e8b-fabd6da647cc", - "label": "1 - PreP Messaging" - }, - { - "concept": "31051745-2bb2-4dd1-addf-a9d7c4e15544", - "label": "2 - HIV Self Testing Message" - }, - { - "concept": "7989d8ed-abf9-42f3-816b-c0e69406cd03", - "label": "3 - Substance Abuse Message" - }, - { - "concept": "1382AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "4 - Family Planning Message" - }, - { - "concept": "1914AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "5 - HIV/STI Message" - }, - { - "concept": "39d37cb2-5b5b-468a-a598-b02a6cef1fd0", - "label": "6 - PEP Message" - } - ] - } - }, - { - "label": "Referred :", - "type": "obs", - "id": "referred", - "questionOptions": { - "concept": "1272AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "select", - "answers": [ - { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No" - }, - { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" - } - ] - } - }, - { - "label": "HIV self test kits distributed :", - "type": "obs", - "id": "selfTestKitsDistributed", - "questionOptions": { - "concept": "aac502fc-b457-4c6a-aa21-9527601ee1cd", - "rendering": "number" - } - }, - { - "label": "Received clinical service :", - "type": "obs", - "id": "clinicalServiceW1", - "questionOptions": { - "concept": "1774AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "select", - "answers": [ - { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No" - }, - { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" - } - ] - } - }, - { - "label": "Crisis / violence reported:", - "type": "obs", - "id": "reportedViolence", - "questionOptions": { - "concept": "1774AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "select", - "answers": [ - { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No" - }, - { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" - } - ] - } - }, - { - "label": "Remarks", - "type": "obs", - "id": "remarksW4", - "questionOptions": { - "concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "textarea" - } - } - ], - "id": "__JpvME1suG" - } - ] - }, - { - "label": "Peer Calendar Summary", - "isExpanded": "true", - "questions": [ - { - "label": "Total N and S distributed :", - "type": "obs", - "id": "total_ns_distributed", - "questionOptions": { - "concept": "f3d9f949-604d-4caf-b0ee-71ff9c099d66", - "rendering": "number", - "calculate": { - "calculateExpression": "(+nsDistributed)" - } - } - }, - { - "label": "Total Lubes distributed :", - "type": "obs", - "id": "totallubes_distributed", - "questionOptions": { - "concept": "bc8e7707-c95e-45dc-9367-e0ee75e9a126", - "rendering": "number", - "calculate": { - "calculateExpression": "(+lubeDistributed)" - } - } - }, - { - "label": "Totals Male condoms distributed :", - "type": "obs", - "id": "totalmCondom", - "questionOptions": { - "concept": "7e6c836b-b579-497c-bc40-72020fee2153", - "rendering": "number", - "calculate": { - "calculateExpression": "(+condomDistributed)" - } - } - }, - { - "label": "Totals Female condoms distributed :", - "type": "obs", - "id": "totalfCondom", - "questionOptions": { - "concept": "5b5aae9d-005a-47a7-9bb8-63d28c956ebd", - "rendering": "number", - "calculate": { - "calculateExpression": "(+fCondomDistributed)" - } - } - }, - { - "label": "Health education checked:", - "type": "obs", - "id": "healthGiven", - "questionOptions": { - "concept": "d0776798-042f-4ecb-b43d-f14d287adee1", - "rendering": "radio", - "calculate": { - "calculateExpression": "String(healthEduc) === 'b88c0b2d-b49e-4528-8e8b-fabd6da647cc' || String(healthEduc) === '31051745-2bb2-4dd1-addf-a9d7c4e15544' || String(healthEduc) === '7989d8ed-abf9-42f3-816b-c0e69406cd03' || String(healthEduc) === '1382AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || String(healthEduc) === '1914AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || String(healthEduc) === '39d37cb2-5b5b-468a-a598-b02a6cef1fd0' ? '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' : ''" - }, - "answers": [ - { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No" - }, - { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" - } - ] - } - }, - { - "label": "Referred selected:", - "type": "obs", - "id": "referred", - "questionOptions": { - "concept": "1749AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", - "answers": [ - { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No" - }, - { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" - } - ] - } - }, - { - "label": "Total HIV self test kits distributed :", - "type": "obs", - "id": "totaltestGiven", - "questionOptions": { - "concept": "631fe8a2-ce24-4141-b85b-0662f519ee4d", - "rendering": "number", - "calculate": { - "calculateExpression": "(+selfTestKitsDistributed)" - } - } - }, - { - "label": "Received clinical service :", - "type": "obs", - "id": "received_service", - "questionOptions": { - "concept": "1774AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", - "calculate": { - "calculateExpression": "String(clinicalServiceW1) === '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' : ''" - }, - "answers": [ - { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No" - }, - { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" - } - ] - } - }, - { - "label": "Crisis / violence reported:", - "type": "obs", - "id": "violence_reported", - "questionOptions": { - "concept": "123160AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", - "calculate": { - "calculateExpression": "String(reportedViolence) === '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' : ''" - }, - "answers": [ - { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No" - }, - { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" - } - ] - } - } - ] - } - ] - } - ], - "processor": "EncounterFormProcessor", - "referencedForms": [] -} + "name": "Peer Calendar", + "description": "Peer Calendar", + "version": "1", + "published": true, + "uuid": "7492cffe-5874-4144-a1e6-c9e455472a35", + "retired": false, + "encounter": "KP Peer Calendar", + "pages": [ + { + "label": "Peer Calendar", + "sections": [ + { + "label": "Visit Details", + "isExpanded": "true", + "questions": [ + { + "label": "Date:", + "type": "encounterDatetime", + "questionOptions": { + "rendering": "ui-select-extended" + }, + "validators": [ + { + "type": "date", + "allowFutureDates": "false" + } + ], + "id": "encDate" + }, + { + "label": "Provider:", + "type": "encounterProvider", + "questionOptions": { + "rendering": "ui-select-extended" + }, + "id": "encProvider " + }, + { + "label": "Location:", + "type": "encounterLocation", + "questionOptions": { + "rendering": "ui-select-extended" + }, + "id": "encLocation" + } + ] + }, + { + "label": "Outreach Calendar", + "isExpanded": "true", + "questions": [ + { + "label": "1.Name of hotspot", + "type": "obs", + "id": "hotspotName", + "questionOptions": { + "concept": "07944782-2ad1-4319-b3bd-b5acd097a328", + "rendering": "text" + } + }, + { + "label": "2.Typology", + "type": "obs", + "id": "hotspotType", + "questionOptions": { + "concept": "8e636ff6-6907-4c7e-965a-5c178c3237c6", + "rendering": "select", + "answers": [ + { + "concept": "0eb70f95-c0bb-480a-b0c5-dc987c740940", + "label": "1 - Street" + }, + { + "concept": "c3231eda-d525-40b5-81ef-323d7ebec324", + "label": "2 - Injecting den" + }, + { + "concept": "c31e2ac5-edcb-4f5e-a5a3-09e6158332bb", + "label": "3 - Uninhabitable building" + }, + { + "concept": "0a802027-c3db-4c89-a06a-5172a5f57611", + "label": "4 - Park" + }, + { + "concept": "1536AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "5 - Homes" + }, + { + "concept": "45bd1bea-367d-45d5-b596-a81a4f095808", + "label": "6 - Beach" + }, + { + "concept": "4da6617b-0bce-4653-932f-b9aa85794f19", + "label": "7 - Casino" + }, + { + "concept": "8fa3458f-217d-41ec-99a1-e80cb9e76963", + "label": "8 - Bar with lodging" + }, + { + "concept": "8361b9dd-a67b-46cd-a7d8-4a49dc732a17", + "label": "9 - Bar without lodging" + }, + { + "concept": "500e6361-47d3-4239-81ae-cccca6999f08", + "label": "10 - Sex den" + }, + { + "concept": "7f9ab5d9-b95b-4341-9d99-3cd1a2d45752", + "label": "11 - Strip club" + }, + { + "concept": "17a0e078-4f8e-4993-ba93-26bbd6480069", + "label": "12 - Highways" + }, + { + "concept": "52fcebd8-62b1-4b4a-be41-2f0ed5cd0a77", + "label": "13 - Brothel" + }, + { + "concept": "50e3f356-04b7-47a6-89d4-b46b74fa68ac", + "label": "14 - Guest house/Hotels/Lodgings" + }, + { + "concept": "48ca7119-3535-48f7-877d-acd7c1d193dd", + "label": "15 - Massage parlor" + }, + { + "concept": "c042a7d4-a8fb-4b33-b638-15c4687912e7", + "label": "16 - Chang’aa den" + }, + { + "concept": "7e77fe7a-978a-48ba-b0ce-b5226fe61e25", + "label": "17 - Barbershop/Salon" + }, + { + "concept": "4d543570-a831-403d-a6c7-b054bf71440e", + "label": "18 - Virtual Space" + }, + { + "concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "19 - Other (Specify)" + } + ] + } + }, + { + "label": "Other Hotspots Specify", + "type": "obs", + "id": "otherHotspotsSpecify", + "questionOptions": { + "concept": "bae7d54d-4944-4be0-93fa-021b4a70cb0b", + "rendering": "text" + }, + "validators": [], + "hide": { + "hideWhenExpression": "isEmpty(hotspotType) || !arrayContains(hotspotType,'5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')" + } + }, + { + "label": "3. Average number of sex acts per week", + "type": "obs", + "id": "weeklyCondomRequirements", + "questionOptions": { + "concept": "25852ebc-9fc6-40fa-b502-1ce90bc2bcc8", + "rendering": "number", + "max": "100", + "min": "0" + } + }, + { + "label": "4. Condom requirements per month", + "type": "obs", + "id": "condomRequirementsMonth", + "questionOptions": { + "concept": "7b3f4d87-17ca-4660-b909-4c53c60cdcf1", + "rendering": "number", + "calculate": { + "calculateExpression": "weeklyCondomRequirements * 4" + } + } + }, + { + "label": "5. Average number of anal sex acts per week", + "type": "obs", + "id": "analSexActsWeek", + "questionOptions": { + "concept": "41ffeb50-07e6-480c-82da-49b4e2cd519c", + "rendering": "number", + "max": "100", + "min": "0" + } + }, + { + "label": "6. Lubricant requirements per month", + "type": "obs", + "id": "lubeRequirementMonth", + "questionOptions": { + "concept": "37c5e006-05f3-4534-a337-8447b50659de", + "rendering": "number", + "calculate": { + "calculateExpression": "analSexActsWeek * 4" + } + } + }, + { + "label": "7. Average number of injecting episodes per day", + "type": "obs", + "id": "dayInjectionEpisodes", + "questionOptions": { + "concept": "180e47e4-5d16-4a46-bd13-9229635889d6", + "rendering": "number", + "max": "100", + "min": "0" + } + }, + { + "label": "8. Needle and syringe requirements per month", + "type": "obs", + "id": "calculatedMonthlySR", + "questionOptions": { + "concept": "37c5e006-05f3-4534-a337-8447b50659de", + "rendering": "number", + "calculate": { + "calculateExpression": "dayInjectionEpisodes * 30" + } + } + }, + { + "label": "9. Duration in sex work / injecting drugs", + "type": "obs", + "id": "durationInSexWork", + "questionOptions": { + "concept": "f04d4ba6-9fd1-4882-8a8d-4b11e7fdc9c9", + "rendering": "number", + "max": "70", + "min": "0" + } + }, + { + "label": "10. Ever experienced violence", + "type": "obs", + "id": "expriencedViolence", + "questionOptions": { + "concept": "123160AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "radio", + "answers": [ + { + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" + }, + { + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" + } + ] + } + }, + { + "label": "Service Provided in the Last 1 Month", + "type": "obs", + "id": "serviceProvided", + "questionOptions": { + "concept": "63da4194-a26a-4aa5-b5d5-4125b4822cf7", + "rendering": "multiCheckbox", + "answers": [ + { + "concept": "159777AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Condoms" + }, + { + "concept": "8abb708f-508f-4af7-be12-ebdeb3f0ca0b", + "label": "N and S" + }, + { + "concept": "d83bca86-6734-4b26-b67c-c2133948fbac", + "label": "Contact" + }, + { + "concept": "161643AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Visited Clinic" + } + ] + } + } + ] + }, + { + "label": "Monthly Service Uptake", + "isExpanded": "true", + "questions": [ + { + "label": "Weekly Uptake", + "type": "obsGroup", + "questionOptions": { + "concept": "73647652-e26f-48cf-9c21-d5c20ada6d46", + "rendering": "repeating" + }, + "questions": [ + { + "label": "N and S distributed :", + "type": "obs", + "id": "nsDistributed", + "questionOptions": { + "concept": "27c0e645-674c-4b8a-ac6a-605e60564b97", + "rendering": "number" + } + }, + { + "label": "Lubes distributed :", + "type": "obs", + "id": "lubeDistributed", + "questionOptions": { + "concept": "bc8e7707-c95e-45dc-9367-e0ee75e9a126", + "rendering": "number" + } + }, + { + "label": "Male condoms distributed :", + "type": "obs", + "id": "condomDistributed", + "questionOptions": { + "concept": "771638d9-9600-4a6b-8e5d-c6dcdedbc9cd", + "rendering": "number" + } + }, + { + "label": "Female condoms distributed :", + "type": "obs", + "id": "fCondomDistributed", + "questionOptions": { + "concept": "14191f18-1629-4538-81b4-a9716a106cb4", + "rendering": "number" + } + }, + { + "label": "Health Eductaion", + "type": "obs", + "id": "healthEduc", + "questionOptions": { + "concept": "25143023-431f-4159-833a-195787e39aa6", + "rendering": "multiCheckbox", + "answers": [ + { + "concept": "b88c0b2d-b49e-4528-8e8b-fabd6da647cc", + "label": "1 - PreP Messaging" + }, + { + "concept": "31051745-2bb2-4dd1-addf-a9d7c4e15544", + "label": "2 - HIV Self Testing Message" + }, + { + "concept": "7989d8ed-abf9-42f3-816b-c0e69406cd03", + "label": "3 - Substance Abuse Message" + }, + { + "concept": "1382AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "4 - Family Planning Message" + }, + { + "concept": "1914AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "5 - HIV/STI Message" + }, + { + "concept": "39d37cb2-5b5b-468a-a598-b02a6cef1fd0", + "label": "6 - PEP Message" + } + ] + } + }, + { + "label": "Referred :", + "type": "obs", + "id": "referred", + "questionOptions": { + "concept": "1272AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "select", + "answers": [ + { + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" + }, + { + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" + } + ] + } + }, + { + "label": "HIV self test kits distributed :", + "type": "obs", + "id": "selfTestKitsDistributed", + "questionOptions": { + "concept": "aac502fc-b457-4c6a-aa21-9527601ee1cd", + "rendering": "number" + } + }, + { + "label": "Received clinical service :", + "type": "obs", + "id": "clinicalServiceW1", + "questionOptions": { + "concept": "1774AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "select", + "answers": [ + { + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" + }, + { + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" + } + ] + } + }, + { + "label": "Crisis / violence reported:", + "type": "obs", + "id": "reportedViolence", + "questionOptions": { + "concept": "1774AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "select", + "answers": [ + { + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" + }, + { + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" + } + ] + } + }, + { + "label": "Remarks", + "type": "obs", + "id": "remarksW4", + "questionOptions": { + "concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "textarea" + } + } + ], + "id": "__JpvME1suG" + } + ] + }, + { + "label": "Peer Calendar Summary", + "isExpanded": "true", + "questions": [ + { + "label": "Total N and S distributed :", + "type": "obs", + "id": "total_ns_distributed", + "questionOptions": { + "concept": "f3d9f949-604d-4caf-b0ee-71ff9c099d66", + "rendering": "number", + "calculate": { + "calculateExpression": "(+nsDistributed)" + } + } + }, + { + "label": "Total Lubes distributed :", + "type": "obs", + "id": "totallubes_distributed", + "questionOptions": { + "concept": "bc8e7707-c95e-45dc-9367-e0ee75e9a126", + "rendering": "number", + "calculate": { + "calculateExpression": "(+lubeDistributed)" + } + } + }, + { + "label": "Totals Male condoms distributed :", + "type": "obs", + "id": "totalmCondom", + "questionOptions": { + "concept": "7e6c836b-b579-497c-bc40-72020fee2153", + "rendering": "number", + "calculate": { + "calculateExpression": "(+condomDistributed)" + } + } + }, + { + "label": "Totals Female condoms distributed :", + "type": "obs", + "id": "totalfCondom", + "questionOptions": { + "concept": "5b5aae9d-005a-47a7-9bb8-63d28c956ebd", + "rendering": "number", + "calculate": { + "calculateExpression": "(+fCondomDistributed)" + } + } + }, + { + "label": "Health education checked:", + "type": "obs", + "id": "healthGiven", + "questionOptions": { + "concept": "d0776798-042f-4ecb-b43d-f14d287adee1", + "rendering": "radio", + "calculate": { + "calculateExpression": "String(healthEduc) === 'b88c0b2d-b49e-4528-8e8b-fabd6da647cc' || String(healthEduc) === '31051745-2bb2-4dd1-addf-a9d7c4e15544' || String(healthEduc) === '7989d8ed-abf9-42f3-816b-c0e69406cd03' || String(healthEduc) === '1382AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || String(healthEduc) === '1914AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || String(healthEduc) === '39d37cb2-5b5b-468a-a598-b02a6cef1fd0' ? '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' : ''" + }, + "answers": [ + { + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" + }, + { + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" + } + ] + } + }, + { + "label": "Referred selected:", + "type": "obs", + "id": "referred", + "questionOptions": { + "concept": "1749AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "radio", + "answers": [ + { + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" + }, + { + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" + } + ] + } + }, + { + "label": "Total HIV self test kits distributed :", + "type": "obs", + "id": "totaltestGiven", + "questionOptions": { + "concept": "631fe8a2-ce24-4141-b85b-0662f519ee4d", + "rendering": "number", + "calculate": { + "calculateExpression": "(+selfTestKitsDistributed)" + } + } + }, + { + "label": "Received clinical service :", + "type": "obs", + "id": "received_service", + "questionOptions": { + "concept": "1774AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "radio", + "calculate": { + "calculateExpression": "String(clinicalServiceW1) === '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' : ''" + }, + "answers": [ + { + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" + }, + { + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" + } + ] + } + }, + { + "label": "Crisis / violence reported:", + "type": "obs", + "id": "violence_reported", + "questionOptions": { + "concept": "123160AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "radio", + "calculate": { + "calculateExpression": "String(reportedViolence) === '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' : ''" + }, + "answers": [ + { + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" + }, + { + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" + } + ] + } + } + ] + } + ] + } + ], + "processor": "EncounterFormProcessor", + "referencedForms": [] + } \ No newline at end of file diff --git a/configuration/ampathforms/Peer_Overdose_Reporting_Tool.json b/configuration/ampathforms/Peer_Overdose_Reporting_Tool.json index 4e16a110..07acb9f1 100644 --- a/configuration/ampathforms/Peer_Overdose_Reporting_Tool.json +++ b/configuration/ampathforms/Peer_Overdose_Reporting_Tool.json @@ -7,328 +7,339 @@ "retired": false, "encounter": "KP Peer Overdose reporting", "pages": [ - { - "label": "Peer Overdose Reporting Encounter", - "sections": [ - { - "label": "Visit Details", - "isExpanded": "true", - "questions": [ - { - "label": "Date:", - "type": "encounterDatetime", - "questionOptions": { - "rendering": "ui-select-extended" - }, - "validators": [ - { - "type": "date", - "allowFutureDates": "false" - } - ], - "id": "encDate" - }, - { - "label": "Provider:", - "type": "encounterProvider", - "questionOptions": { - "rendering": "ui-select-extended" - }, - "id": "encProvider " - }, - { - "label": "Location:", - "type": "encounterLocation", - "questionOptions": { - "rendering": "ui-select-extended" - }, - "id": "encLocation" - } - ] + { + "label": "Peer Overdose Reporting Encounter", + "sections": [ + { + "label": "Visit Details", + "isExpanded": "true", + "questions": [ + { + "label": "Date:", + "type": "encounterDatetime", + "questionOptions": { + "rendering": "ui-select-extended" }, - { - "label": "Overdose Encounter Reporting", - "isExpanded": "true", - "questions": [ - { - "label": "Physical address where overdose happened", - "type": "obs", - "id": "address", - "questionOptions": { - "concept": "162725AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "text" - } - }, - { - "label": "Date of overdose", - "type": "obs", - "id": "incidentDate", - "validators": [ - { - "type": "date", - "allowFutureDates": "false" - } - ], - "questionOptions": { - "concept": "796cf13b-0cea-4a5c-89b7-f484b71f7a59", - "rendering": "date" - } - }, - { - "label": "Drug overdose incident type", - "type": "obs", - "id": "overdoseIncident", - "questionOptions": { - "concept": "90c0407c-1664-4191-bae0-d24f9bba2fbf", - "rendering": "radio", - "answers": [ - { - "concept": "cee32394-2128-4f30-8b1a-add6d23d2a46", - "label": "Recurrent" - }, - { - "concept": "46b67e80-3a33-486e-a9cf-1f2f4cd45824", - "label": "New" - } - ] - } - }, - { - "label": "Name of hotspot", - "type": "obs", - "id": "nameHotspot", - "questionOptions": { - "concept": "07944782-2ad1-4319-b3bd-b5acd097a328", - "rendering": "text" - } - }, - { - "label": "Type of Hotspot", - "type": "obs", - "id": "hotspotType", - "questionOptions": { - "concept": "8e636ff6-6907-4c7e-965a-5c178c3237c6", - "rendering": "select", - "answers": [ - { - "concept": "4da6617b-0bce-4653-932f-b9aa85794f19", - "label": "Casino" - }, - { - "concept": "500e6361-47d3-4239-81ae-cccca6999f08", - "label": "Sex den" - }, - { - "concept": "50e3f356-04b7-47a6-89d4-b46b74fa68ac", - "label": "Guest house/hotel" - }, - { - "concept": "0a802027-c3db-4c89-a06a-5172a5f57611", - "label": "Public Park" - }, - { - "concept": "8fa3458f-217d-41ec-99a1-e80cb9e76963", - "label": "Bar with lodging" - }, - { - "concept": "52fcebd8-62b1-4b4a-be41-2f0ed5cd0a77", - "label": "Brothel" - }, - { - "concept": "8361b9dd-a67b-46cd-a7d8-4a49dc732a17", - "label": "Bar without lodging" - }, - { - "concept": "c3231eda-d525-40b5-81ef-323d7ebec324", - "label": "Injecting den" - }, - { - "concept": "45bd1bea-367d-45d5-b596-a81a4f095808", - "label": "Beach" - }, - { - "concept": "7f9ab5d9-b95b-4341-9d99-3cd1a2d45752", - "label": "Strip club" - }, - { - "concept": "0eb70f95-c0bb-480a-b0c5-dc987c740940", - "label": "Street" - }, - { - "concept": "c31e2ac5-edcb-4f5e-a5a3-09e6158332bb", - "label": "Uninhabitable building" - }, - { - "concept": "c042a7d4-a8fb-4b33-b638-15c4687912e7", - "label": "illicit brew den" - }, - { - "concept": "17a0e078-4f8e-4993-ba93-26bbd6480069", - "label": "Highway" - }, - { - "concept": "7e77fe7a-978a-48ba-b0ce-b5226fe61e25", - "label": "Barber shop/salon" - } - ] - } - }, - { - "label": "Naloxone provided", - "type": "obs", - "id": "naloxoneProvided", - "questionOptions": { - "concept": "fe3ae6c1-7582-49c7-95ee-a0badfee2133", - "rendering": "radio", - "answers": [ - { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" - }, - { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No" - } - ] - } - }, - { - "label": "Specific DrugUse", - "type": "obs", - "id": "drugUse", - "questionOptions": { - "concept": "1193AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "checkbox", - "answers": [ - { - "concept": "79661AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Methadone" - }, - { - "concept": "121725AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Alcohol" - }, - { - "concept": "146504AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Cannabis" - }, - { - "concept": "73650AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Cocaine" - }, - { - "concept": "76511AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Flunitrazepam (Tap tap, Bugizi)" - }, - { - "concept": "77443AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Heroine" - }, - { - "concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Other" - } - ] - } - }, - { - "label": "Other Drugs", - "type": "obs", - "id": "otherDrugsSpecify", - "questionOptions": { - "concept": "163101AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "text" - }, - "validators": [], - "hide": { - "hideWhenExpression": "isEmpty(drugUse) || !arrayContains(drugUse,'5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')" - } - }, - { - "label": "Overdose outcome", - "type": "obs", - "id": "overdoseOutcome", - "questionOptions": { - "concept": "b336c0e2-97af-4183-b74a-d42660319ce5", - "rendering": "radio", - "answers": [ - { - "concept": "1272AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Referred (Specify)" - }, - { - "concept": "160034AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Died" - } - ] - } - }, - { - "label": "Referred to", - "type": "obs", - "id": "referredSpecify", - "questionOptions": { - "concept": "161562AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "text" - }, - "validators": [], - "hide": { - "hideWhenExpression": "overdoseOutcome !== '1272AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - } - }, - { - "label": "Repported by", - "type": "obs", - "id": "healthCareProvider", - "questionOptions": { - "concept": "1473AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "text" - } - }, - { - "label": "Report Date", - "type": "obs", - "id": "reportedDate", - "validators": [ - { - "type": "date", - "allowFutureDates": "false" - } - ], - "questionOptions": { - "concept": "68bfa3f3-1fc7-4d9d-bb41-e897c3c430ef", - "rendering": "date" - } - }, - { - "label": "Witnessed by", - "type": "obs", - "id": "witnessName", - "questionOptions": { - "concept": "b7f19768-bb0e-4bd4-b24b-e53b566b6af9", - "rendering": "text" - } - }, - { - "label": "Date of Event", - "type": "obs", - "id": "witnessDate", - "validators": [ - { - "type": "date", - "allowFutureDates": "false" - } - ], - "questionOptions": { - "concept": "160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "date" - } - } - ] + "validators": [ + { + "type": "date", + "allowFutureDates": "false" + } + ], + "id": "encDate" + }, + { + "label": "Provider:", + "type": "encounterProvider", + "questionOptions": { + "rendering": "ui-select-extended" + }, + "id": "encProvider " + }, + { + "label": "Location:", + "type": "encounterLocation", + "questionOptions": { + "rendering": "ui-select-extended" + }, + "id": "encLocation" + } + ] + }, + { + "label": "Overdose Encounter Reporting", + "isExpanded": "true", + "questions": [ + { + "label": "1. Physical address where overdose happened", + "type": "obs", + "id": "address", + "questionOptions": { + "concept": "162725AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "text" + } + }, + { + "label": "Date of overdose", + "type": "obs", + "id": "incidentDate", + "required": "Yes", + "validators": [ + { + "type": "date", + "allowFutureDates": "false" + } + ], + "questionOptions": { + "concept": "796cf13b-0cea-4a5c-89b7-f484b71f7a59", + "rendering": "date" + } + }, + { + "label": "2. Drug overdose incident type", + "type": "obs", + "id": "overdoseIncident", + "required": "Yes", + "questionOptions": { + "concept": "90c0407c-1664-4191-bae0-d24f9bba2fbf", + "rendering": "radio", + "answers": [ + { + "concept": "cee32394-2128-4f30-8b1a-add6d23d2a46", + "label": "Recurrent" + }, + { + "concept": "46b67e80-3a33-486e-a9cf-1f2f4cd45824", + "label": "New" + } + ] + } + }, + { + "label": "3. Name of hotspot", + "type": "obs", + "id": "nameHotspot", + "questionOptions": { + "concept": "07944782-2ad1-4319-b3bd-b5acd097a328", + "rendering": "text" + } + }, + { + "label": "4. Type of Hotspot", + "type": "obs", + "id": "hotspotType", + "questionOptions": { + "concept": "8e636ff6-6907-4c7e-965a-5c178c3237c6", + "rendering": "select", + "answers": [ + { + "concept": "4da6617b-0bce-4653-932f-b9aa85794f19", + "label": "Casino" + }, + { + "concept": "500e6361-47d3-4239-81ae-cccca6999f08", + "label": "Sex den" + }, + { + "concept": "50e3f356-04b7-47a6-89d4-b46b74fa68ac", + "label": "Guest house/hotel" + }, + { + "concept": "0a802027-c3db-4c89-a06a-5172a5f57611", + "label": "Public Park" + }, + { + "concept": "8fa3458f-217d-41ec-99a1-e80cb9e76963", + "label": "Bar with lodging" + }, + { + "concept": "52fcebd8-62b1-4b4a-be41-2f0ed5cd0a77", + "label": "Brothel" + }, + { + "concept": "8361b9dd-a67b-46cd-a7d8-4a49dc732a17", + "label": "Bar without lodging" + }, + { + "concept": "c3231eda-d525-40b5-81ef-323d7ebec324", + "label": "Injecting den" + }, + { + "concept": "45bd1bea-367d-45d5-b596-a81a4f095808", + "label": "Beach" + }, + { + "concept": "7f9ab5d9-b95b-4341-9d99-3cd1a2d45752", + "label": "Strip club" + }, + { + "concept": "0eb70f95-c0bb-480a-b0c5-dc987c740940", + "label": "Street" + }, + { + "concept": "c31e2ac5-edcb-4f5e-a5a3-09e6158332bb", + "label": "Uninhabitable building" + }, + { + "concept": "c042a7d4-a8fb-4b33-b638-15c4687912e7", + "label": "illicit brew den" + }, + { + "concept": "17a0e078-4f8e-4993-ba93-26bbd6480069", + "label": "Highway" + }, + { + "concept": "7e77fe7a-978a-48ba-b0ce-b5226fe61e25", + "label": "Barber shop/salon" + } + ] + } + }, + { + "label": "5. Naloxone provided", + "type": "obs", + "id": "naloxoneProvided", + "questionOptions": { + "concept": "fe3ae6c1-7582-49c7-95ee-a0badfee2133", + "rendering": "radio", + "answers": [ + { + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" + }, + { + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" + } + ] + } + }, + { + "label": "6. Specific DrugUse", + "type": "obs", + "id": "drugUse", + "questionOptions": { + "concept": "1193AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "checkbox", + "answers": [ + { + "concept": "79661AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Methadone" + }, + { + "concept": "121725AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Alcohol" + }, + { + "concept": "146504AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Cannabis" + }, + { + "concept": "73650AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Cocaine" + }, + { + "concept": "76511AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Flunitrazepam (Tap tap, Bugizi)" + }, + { + "concept": "77443AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Heroine" + }, + { + "concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Other" + } + ] + } + }, + { + "label": "7. Remarks", + "type": "obs", + "id": "remarks", + "questionOptions": { + "concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "text" + } + }, + { + "label": "Other Drugs", + "type": "obs", + "id": "otherDrugsSpecify", + "questionOptions": { + "concept": "163101AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "text" + }, + "validators": [], + "hide": { + "hideWhenExpression": "isEmpty(drugUse) || !arrayContains(drugUse,'5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')" + } + }, + { + "label": "8. Outcome", + "type": "obs", + "id": "overdoseOutcome", + "questionOptions": { + "concept": "b336c0e2-97af-4183-b74a-d42660319ce5", + "rendering": "radio", + "answers": [ + { + "concept": "1272AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Referred (Specify)" + }, + { + "concept": "160034AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Died" + } + ] + } + }, + { + "label": "Referred to", + "type": "obs", + "id": "referredSpecify", + "questionOptions": { + "concept": "161562AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "text" + }, + "validators": [], + "hide": { + "hideWhenExpression": "overdoseOutcome !== '1272AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, + { + "label": "9. Reported by", + "type": "obs", + "id": "healthCareProvider", + "questionOptions": { + "concept": "1473AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "text" + } + }, + { + "label": "Report Date", + "type": "obs", + "id": "reportedDate", + "validators": [ + { + "type": "date", + "allowFutureDates": "false" + } + ], + "questionOptions": { + "concept": "68bfa3f3-1fc7-4d9d-bb41-e897c3c430ef", + "rendering": "date" + } + }, + { + "label": "10. Witnessed by", + "type": "obs", + "id": "witnessName", + "questionOptions": { + "concept": "b7f19768-bb0e-4bd4-b24b-e53b566b6af9", + "rendering": "text" + } + }, + { + "label": "Date of Event", + "type": "obs", + "id": "witnessDate", + "validators": [ + { + "type": "date", + "allowFutureDates": "false" + } + ], + "questionOptions": { + "concept": "160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "date" } + } ] - } + } + ] + } ], "processor": "EncounterFormProcessor", "referencedForms": [] -} + } \ No newline at end of file diff --git a/configuration/ampathforms/Peer_Tracking.json b/configuration/ampathforms/Peer_Tracking.json index f130b875..62854691 100644 --- a/configuration/ampathforms/Peer_Tracking.json +++ b/configuration/ampathforms/Peer_Tracking.json @@ -7,381 +7,381 @@ "retired": false, "encounter": "KP Tracing", "pages": [ - { - "label": "Peer Tracking ", - "sections": [ - { - "label": "Visit Details", - "isExpanded": "true", - "questions": [ - { - "label": "Date:", - "type": "encounterDatetime", - "validators": [ - { - "type": "date", - "allowFutureDates": "false" - } - ], - "questionOptions": { - "rendering": "ui-select-extended" - }, - "id": "encDate" - }, - { - "label": "Provider:", - "type": "encounterProvider", - "questionOptions": { - "rendering": "ui-select-extended" - }, - "id": "encProvider " - }, - { - "label": "Location:", - "type": "encounterLocation", - "questionOptions": { - "rendering": "ui-select-extended" - }, - "id": "encLocation" - } - ] + { + "label": "Peer Tracking ", + "sections": [ + { + "label": "Visit Details", + "isExpanded": "true", + "questions": [ + { + "label": "Date:", + "type": "encounterDatetime", + "validators": [ + { + "type": "date", + "allowFutureDates": "false" + } + ], + "questionOptions": { + "rendering": "ui-select-extended" }, - { - "label": "Client Follow Up Tracking", - "isExpanded": "true", - "questions": [ - { - "label": "Tracking attempted?", - "type": "obs", - "id": "trackingAttempted", - "questionOptions": { - "concept": "d83bca86-6734-4b26-b67c-c2133948fbac", - "rendering": "radio", - "answers": [ - { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" - }, - { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No" - } - ] - } - } - ] + "id": "encDate" + }, + { + "label": "Provider:", + "type": "encounterProvider", + "questionOptions": { + "rendering": "ui-select-extended" }, - { - "label": "Tracing attempt by PE/Health care worker", - "isExpanded": "true", - "questions": [ - { - "label": "Previous attempt number:", - "type": "obs", - "questionOptions": { - "rendering": "number", - "concept": "1639AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "max": "3", - "min": "1" - }, - "id": "attemptNumber", - "validators": [], - "required": "Yes", - "hide": { - "hideWhenExpression": "trackingAttempted !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - } - }, - { - "label": "Date", - "type": "obs", - "questionOptions": { - "rendering": "date", - "concept": "160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - }, - "id": "firstAttempt", - "validators": [ - { - "type": "date", - "allowFutureDates": "false" - } - ], - "required": "Yes", - "hide": { - "hideWhenExpression": "trackingAttempted !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - } - }, - { - "label": "Tracing type", - "type": "obs", - "questionOptions": { - "rendering": "radio", - "concept": "a55f9516-ddb6-47ec-b10d-cb99d1d0bd41", - "answers": [ - { - "concept": "eb113c76-aef8-4890-a611-fe22ba003123", - "label": "Physical" - }, - { - "concept": "1650AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Phone" - } - ] - }, - "id": "firstTracingType", - "validators": [], - "required": "Yes", - "hide": { - "hideWhenExpression": "trackingAttempted !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - } - }, - { - "label": "Tracing outcome", - "type": "obs", - "questionOptions": { - "rendering": "radio", - "concept": "160721AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "answers": [ - { - "concept": "160718AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "KP reached" - }, - { - "concept": "160720AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "KP not reached" - }, - { - "concept": "160717AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "KP not reached but other informant reached" - } - ] - }, - "id": "firstTracingOutcome", - "validators": [], - "required": "Yes", - "hide": { - "hideWhenExpression": "trackingAttempted !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - } - }, - { - "label": "Was the final outcome reached?", - "type": "obs", - "questionOptions": { - "rendering": "radio", - "concept": "163725AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "answers": [ - { - "concept": "1267AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" - }, - { - "concept": "163339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No" - } - ] - }, - "id": "finalOutcome", - "validators": [], - "required": "Yes", - "hide": { - "hideWhenExpression": "trackingAttempted !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - } - } - ] + "id": "encProvider " + }, + { + "label": "Location:", + "type": "encounterLocation", + "questionOptions": { + "rendering": "ui-select-extended" }, - { - "label": "Tracing outcome status", - "isExpanded": "true", - "questions": [ - { - "label": "Outcome Status", - "type": "obs", - "id": "tracingOutcomeStatus", - "questionOptions": { - "concept": "160433AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", - "answers": [ - { - "concept": "134236AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Enrolled in MAT (applicable to PWIDS only)" - }, - { - "concept": "162632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Found" - }, - { - "concept": "160432AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Dead" - }, - { - "concept": "ddac1f1b-a5c7-4c62-b034-5d0b97197fd5", - "label": "Voluntary exit" - }, - { - "concept": "162752AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Bedridden" - }, - { - "concept": "160415AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Relocated" - }, - { - "concept": "4e996d3a-103a-41b0-afef-a2101d4072be", - "label": "Untraceable" - }, - { - "concept": "156761AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Imprisoned" - } - ] - }, - "validators": [], - "hide": { - "hideWhenExpression": "trackingAttempted !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - } - }, - { - "label": "Comments explaining the reason(s) for voluntary exit", - "type": "obs", - "id": "commentVoluntaryExit", - "questionOptions": { - "concept": "160716AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "textarea" - }, - "validators": [], - "hide": { - "hideWhenExpression": "tracingOutcomeStatus !== 'ddac1f1b-a5c7-4c62-b034-5d0b97197fd5' || trackingAttempted !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - } - }, - { - "label": "Status in the programme", - "type": "obs", - "id": "statusInProgramme", - "questionOptions": { - "concept": "161641AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", - "answers": [ - { - "concept": "160031AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Defaulted" - }, - { - "concept": "161636AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Active" - }, - { - "concept": "5240AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Lost to follow up" - }, - { - "concept": "160432AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Dead" - } - ] - }, - "validators": [], - "hide": { - "hideWhenExpression": "trackingAttempted !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - } - }, - { - "label": "Source of information", - "type": "obs", - "id": "sourceInformation", - "questionOptions": { - "concept": "162568AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", - "answers": [ - { - "concept": "8f45b9c7-ee84-4ae8-b846-e6f1c1087a97", - "label": "PE" - }, - { - "concept": "bf850dd4-309b-4cbd-9470-9d8110ea5550", - "label": "KP" - }, - { - "concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Other informant-specify (friend/neighbor/spouse/ etc)" - } - ] - }, - "validators": [], - "hide": { - "hideWhenExpression": "trackingAttempted !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - } - }, - { - "label": "Other Source of information", - "type": "obs", - "id": "otherInformant", - "questionOptions": { - "concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "text" - }, - "validators": [], - "hide": { - "hideWhenExpression": "sourceInformation !== '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || trackingAttempted !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - } - } - ] + "id": "encLocation" + } + ] + }, + { + "label": "Client Follow Up Tracking", + "isExpanded": "true", + "questions": [ + { + "label": "Tracking attempted?", + "type": "obs", + "id": "trackingAttempted", + "questionOptions": { + "concept": "d83bca86-6734-4b26-b67c-c2133948fbac", + "rendering": "radio", + "answers": [ + { + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" + }, + { + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" + } + ] + } + } + ] + }, + { + "label": "Tracing attempt by PE/Health care worker", + "isExpanded": "true", + "questions": [ + { + "label": "Please specify the attempt number since last missed appointment (i.e. 1, 2, 3):", + "type": "obs", + "questionOptions": { + "rendering": "number", + "concept": "1639AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "required": "Yes", + "max": "10", + "min": "1" + }, + "id": "attemptNumber", + "validators": [], + "hide": { + "hideWhenExpression": "trackingAttempted !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, + { + "label": "Date", + "type": "obs", + "questionOptions": { + "rendering": "date", + "concept": "160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "required": "Yes" + }, + "id": "firstAttempt", + "validators": [ + { + "type": "date", + "allowFutureDates": "false" + } + ], + "hide": { + "hideWhenExpression": "trackingAttempted !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, + { + "label": "Tracing type", + "type": "obs", + "questionOptions": { + "rendering": "radio", + "concept": "a55f9516-ddb6-47ec-b10d-cb99d1d0bd41", + "required": "Yes", + "answers": [ + { + "concept": "1650AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Phone" + }, + { + "concept": "eb113c76-aef8-4890-a611-fe22ba003123", + "label": "Physical" + } + ] + }, + "id": "firstTracingType", + "validators": [], + "hide": { + "hideWhenExpression": "trackingAttempted !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, + { + "label": "Tracing outcome", + "type": "obs", + "questionOptions": { + "rendering": "radio", + "concept": "160721AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "answers": [ + { + "concept": "160718AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "KP reached" + }, + { + "concept": "160717AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "KP not reached but other informant reached" + }, + { + "concept": "160720AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "KP not reached" + } + ] + }, + "id": "firstTracingOutcome", + "validators": [], + "required": "Yes", + "hide": { + "hideWhenExpression": "trackingAttempted !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, + { + "label": "Was the final outcome reached?", + "type": "obs", + "questionOptions": { + "rendering": "radio", + "concept": "163725AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "answers": [ + { + "concept": "1267AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" + }, + { + "concept": "163339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" + } + ] + }, + "id": "finalOutcome", + "validators": [], + "required": "Yes", + "hide": { + "hideWhenExpression": "trackingAttempted !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + } + ] + }, + { + "label": "Tracing outcome status", + "isExpanded": "true", + "questions": [ + { + "label": "Outcome Status", + "type": "obs", + "id": "tracingOutcomeStatus", + "questionOptions": { + "concept": "160433AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "radio", + "answers": [ + { + "concept": "160432AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Dead" + }, + { + "concept": "160415AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Relocated" + }, + { + "concept": "ddac1f1b-a5c7-4c62-b034-5d0b97197fd5", + "label": "Voluntary exit" + }, + { + "concept": "134236AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Enrolled in MAT (applicable to PWIDS only)" + }, + { + "concept": "4e996d3a-103a-41b0-afef-a2101d4072be", + "label": "Untraceable" + }, + { + "concept": "162752AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Bedridden" + }, + { + "concept": "156761AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Imprisoned" + }, + { + "concept": "162632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Found" + } + ] + }, + "validators": [], + "hide": { + "hideWhenExpression": "trackingAttempted !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, + { + "label": "Comments explaining the reason(s) for voluntary exit", + "type": "obs", + "id": "commentVoluntaryExit", + "questionOptions": { + "concept": "160716AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "textarea" + }, + "validators": [], + "hide": { + "hideWhenExpression": "tracingOutcomeStatus !== 'ddac1f1b-a5c7-4c62-b034-5d0b97197fd5' || trackingAttempted !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, + { + "label": "Status in the programme", + "type": "obs", + "id": "statusInProgramme", + "questionOptions": { + "concept": "161641AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "radio", + "answers": [ + { + "concept": "5240AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Lost to follow up" + }, + { + "concept": "160031AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Defaulted" + }, + { + "concept": "161636AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Active" + }, + { + "concept": "160432AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Dead" + } + ] + }, + "validators": [], + "hide": { + "hideWhenExpression": "trackingAttempted !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, + { + "label": "Source of information", + "type": "obs", + "id": "sourceInformation", + "questionOptions": { + "concept": "162568AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "radio", + "answers": [ + { + "concept": "bf850dd4-309b-4cbd-9470-9d8110ea5550", + "label": "KP" + }, + { + "concept": "8f45b9c7-ee84-4ae8-b846-e6f1c1087a97", + "label": "PE" + }, + { + "concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Other informant-specify (friend/neighbor/spouse/ etc)" + } + ] + }, + "validators": [], + "hide": { + "hideWhenExpression": "trackingAttempted !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, + { + "label": "Specify other source of information", + "type": "obs", + "id": "otherInformant", + "questionOptions": { + "concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "text" + }, + "validators": [], + "hide": { + "hideWhenExpression": "sourceInformation !== '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || trackingAttempted !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + } + ] + }, + { + "label": "Reason not attempted", + "isExpanded": "true", + "questions": [ + { + "label": "Why was tracking not attempted?", + "type": "obs", + "id": "trackingNotAttempted", + "questionOptions": { + "concept": "0a96301c-9362-4597-a1db-21ab08a3e7be", + "rendering": "radio", + "answers": [ + { + "concept": "0c112728-17b5-4342-b603-ac6dd2acf9cd", + "label": "Contact information missing" + }, + { + "concept": "ac1fcb25-f443-4a32-b638-193f04d897a9", + "label": "Location listed too general to make tracking possible" + }, + { + "concept": "8877e01c-10ee-45c6-bf6d-645dc6e30f27", + "label": "Contact information illegible" + }, + { + "concept": "163777AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Cohort register/ peer outreach calendar reviewed and client not lost to follow up" + }, + { + "concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Other -specify" + } + ] + }, + "validators": [], + "hide": { + "hideWhenExpression": "trackingAttempted !== '1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, + { + "label": "Specify why was tracking not attempted?", + "type": "obs", + "id": "trueStatusOther", + "questionOptions": { + "concept": "161011AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "text" }, - { - "label": "Reason not attempted", - "isExpanded": "true", - "questions": [ - { - "label": "Why was tracking not attempted?", - "type": "obs", - "id": "trackingNotAttempted", - "questionOptions": { - "concept": "0a96301c-9362-4597-a1db-21ab08a3e7be", - "rendering": "radio", - "answers": [ - { - "concept": "0c112728-17b5-4342-b603-ac6dd2acf9cd", - "label": "Contact information missing" - }, - { - "concept": "ac1fcb25-f443-4a32-b638-193f04d897a9", - "label": "Location listed too general to make tracking possible" - }, - { - "concept": "8877e01c-10ee-45c6-bf6d-645dc6e30f27", - "label": "Contact information illegible" - }, - { - "concept": "163777AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Cohort register/ peer outreach calendar reviewed and client not lost to follow up" - }, - { - "concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Other -specify" - } - ] - }, - "validators": [], - "hide": { - "hideWhenExpression": "trackingAttempted !== '1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - } - }, - { - "label": "Why was tracking not attempted?", - "type": "obs", - "id": "trueStatusOther", - "questionOptions": { - "concept": "161011AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "text" - }, - "validators": [], - "hide": { - "hideWhenExpression": "trackingNotAttempted !== '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || trackingAttempted !== '1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - } - } - ] + "validators": [], + "hide": { + "hideWhenExpression": "trackingNotAttempted !== '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || trackingAttempted !== '1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } + } ] - } + } + ] + } ], "processor": "EncounterFormProcessor", "referencedForms": [] -} + } \ No newline at end of file diff --git a/configuration/ampathforms/Preventive_Services.json b/configuration/ampathforms/Preventive_Services.json index 9fd3b51e..fc0ccfcf 100644 --- a/configuration/ampathforms/Preventive_Services.json +++ b/configuration/ampathforms/Preventive_Services.json @@ -7,156 +7,164 @@ "retired": false, "encounter": "MCH Mother Consultation", "pages": [ - { - "label": "Preventive Services Form", - "sections": [ - { + { + "label": "Preventive Services Form", + "sections": [ + { + "label": "Preventive Services", + "isExpanded": "true", + "questions": [ + { + "label": "Date:", + "type": "encounterDatetime", + "questionOptions": { + "rendering": "ui-select-extended" + }, + "validators": [ + { + "type": "date", + "allowFutureDates": "false" + } + ], + "id": "encDate" + }, + { + "label": "Provider:", + "type": "encounterProvider", + "questionOptions": { + "rendering": "ui-select-extended" + }, + "id": "encProvider " + }, + { + "label": "Location:", + "type": "encounterLocation", + "questionOptions": { + "rendering": "ui-select-extended" + }, + "id": "encLocation" + } + ] + }, + { + "label": "General", + "isExpanded": "true", + "questions": [ + { + "label": "Preventive Services", + "type": "obsGroup", + "questionOptions": { + "concept": "160593AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "repeating" + }, + "questions": [ + { "label": "Preventive Services", - "isExpanded": "true", - "questions": [ + "type": "obs", + "id": "preventiveService", + "questionOptions": { + "concept": "984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "select", + "answers": [ { - "label": "Date:", - "type": "encounterDatetime", - "questionOptions": { - "rendering": "ui-select-extended" - }, - "validators": [ - { - "type": "date", - "allowFutureDates": "false" - } - ], - "id": "encDate" + "concept": "84879AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "TETANUS TOXOID" }, { - "label": "Provider:", - "type": "encounterProvider", - "questionOptions": { - "rendering": "ui-select-extended" - }, - "id": "encProvider " + "concept": "159610AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Malarial prophylaxis" }, { - "label": "Location:", - "type": "encounterLocation", - "questionOptions": { - "rendering": "ui-select-extended" - }, - "id": "encLocation" - } - ] - }, - { - "label": "General", - "isExpanded": "true", - "questions": [ + "concept": "104677AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "FOLATE / IRON" + }, + { + "concept": "76609AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "FOLATE" + }, + { + "concept": "78218AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "IRON" + }, + { + "concept": "79413AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "MEBENDAZOLE" + }, { - "label": "Preventive Services", - "type": "obsGroup", - "questionOptions": { - "concept": "160593AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "repeating" - }, - "questions": [ - { - "label": "Preventive Services", - "type": "obs", - "id": "preventiveService", - "questionOptions": { - "concept": "984AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "select", - "answers": [ - { - "concept": "84879AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "TETANUS TOXOID" - }, - { - "concept": "159610AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Malarial prophylaxis" - }, - { - "concept": "104677AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "FOLATE / IRON" - }, - { - "concept": "79413AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "MEBENDAZOLE" - }, - { - "concept": "160428AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Long-lasting insecticidal net" - } - ] - } - }, - { - "label": "Sequence No.", - "type": "obs", - "id": "sequenceNo", - "questionOptions": { - "concept": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "number", - "max": "20", - "min": "1" - } - }, - { - "label": "Vaccine Date", - "type": "obs", - "id": "vaccinDate", - "questionOptions": { - "concept": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "date" - }, - "validators": [ - { - "type": "date", - "allowFutureDates": "false" - }, - { - "type": "js_expression", - "failsWhenExpression": "(new moment(encDate)).isAfter((new moment(myValue)), 'day') || (new moment(encDate)).isSame((new moment(myValue)), 'day')", - "message": "Vaccine date should not be greater than the encounter date." - } - ] - }, - { - "label": "Comments", - "type": "obs", - "id": "Comments", - "questionOptions": { - "concept": "161011AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "text" - } - }, - { - "label": "Next Vaccine Date", - "type": "obs", - "id": "nextVaccineDate", - "questionOptions": { - "concept": "5096AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "date" - }, - "validators": [ - { - "type": "date", - "allowFutureDates": "true" - }, - { - "type": "js_expression", - "failsWhenExpression": "(new moment(encDate)).isAfter((new moment(myValue)), 'day') || (new moment(encDate)).isSame((new moment(myValue)), 'day')", - "message": "Next Vaccine date should be greater than the encounter date." - } - ] - } - ], - "id": "__ttIvHszwK" + "concept": "160428AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Long-lasting insecticidal net" } + ] + } + }, + { + "label": "Sequence No.", + "type": "obs", + "id": "sequenceNo", + "questionOptions": { + "concept": "1418AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "number", + "max": "20", + "min": "1" + } + }, + { + "label": "Vaccination Date", + "type": "obs", + "id": "vaccinDate", + "questionOptions": { + "concept": "1410AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "date" + }, + "validators": [ + { + "type": "date", + "allowFutureDates": "false" + }, + { + "type": "js_expression", + "failsWhenExpression": "(new moment(encDate)).isAfter((new moment(myValue)), 'day')", + "message": "Vaccine date should not be greater than the encounter date." + } + ] + }, + { + "label": "Comments", + "type": "obs", + "id": "Comments", + "questionOptions": { + "concept": "161011AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "text" + } + }, + { + "label": "Next Vaccine Date", + "type": "obs", + "id": "nextVaccineDate", + "questionOptions": { + "concept": "5096AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "date" + }, + "validators": [ + { + "type": "date", + "allowFutureDates": "true" + }, + { + "type": "js_expression", + "failsWhenExpression": "(new moment(encDate)).isAfter((new moment(myValue)), 'day') || (new moment(encDate)).isSame((new moment(myValue)), 'day')", + "message": "Next Vaccine date should be greater than the encounter date." + } ] - } + } + ], + "id": "__ttIvHszwK" + } ] - } + } + ] + } ], "processor": "EncounterFormProcessor", "referencedForms": [] -} \ No newline at end of file + } \ No newline at end of file diff --git a/configuration/ampathforms/Referral.json b/configuration/ampathforms/Referral.json index cc4048da..310fbd4f 100644 --- a/configuration/ampathforms/Referral.json +++ b/configuration/ampathforms/Referral.json @@ -80,7 +80,7 @@ "validators": [ { "type": "date", - "allowFutureDates": "true" + "allowFutureDates": "false" } ] }, @@ -127,6 +127,9 @@ "questionOptions": { "concept": "161011AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "text" + }, + "hide": { + "hideWhenExpression": "serviceReferred !== '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } }, {