From 4204c101f684b90bc5ee342f2574a9d83af12ec4 Mon Sep 17 00:00:00 2001 From: Kote Cosmas <110154947+ckote@users.noreply.github.com> Date: Tue, 24 Sep 2024 11:32:42 +0300 Subject: [PATCH] MAT_Psycho_social_Intake_Follow_up_Form_saving (#793) --- ...T_Psycho_social_Intake_Follow_up_Form.json | 1936 ++++++++--------- 1 file changed, 910 insertions(+), 1026 deletions(-) diff --git a/configuration/ampathforms/MAT_Psycho_social_Intake_Follow_up_Form.json b/configuration/ampathforms/MAT_Psycho_social_Intake_Follow_up_Form.json index 6d5a9a07..4c0bc6d4 100644 --- a/configuration/ampathforms/MAT_Psycho_social_Intake_Follow_up_Form.json +++ b/configuration/ampathforms/MAT_Psycho_social_Intake_Follow_up_Form.json @@ -9,1061 +9,945 @@ "encounter": "MAT Psychosocial intake and followup", "referencedForms": [], "pages": [ - { - "label": "Visit Details", - "sections": [ - { - "label": "Encounter Details", - "isExpanded": "true", - "questions": [ - { - "label": "Visit date:", - "type": "encounterDatetime", - "required": "true", - "id": "encDate", - "questionOptions": { - "rendering": "date" - }, - "validators": [ - { - "type": "date", - "allowFutureDates": "false" - } - ] - }, - { - "label": "Provider:", - "type": "encounterProvider", - "questionOptions": { - "rendering": "ui-select-extended" - }, - "id": "encProvider " - }, - { - "label": "Location:", - "type": "encounterLocation", - "questionOptions": { - "rendering": "ui-select-extended" - }, - "id": "encLocation" - } - ] - }, - { - "label": "Visit Type", - "isExpanded": "true", - "questions": [ - { - "label": "Type of Visit?", - "type": "obs", - "questionOptions": { - "rendering": "radio", - "concept": "165286AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "answers": [ - { - "concept": "164180AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Initial" - }, + { + "label": "Visit Details", + "sections": [ + { + "label": "Encounter Details", + "isExpanded": "true", + "questions": [ + { + "label": "Visit date:", + "type": "encounterDatetime", + "required": "true", + "id": "encDate", + "questionOptions": { + "rendering": "date" + }, + "validators": [ { - "concept": "160523AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Follow up" + "type": "date", + "allowFutureDates": "false" } ] }, - "id": "visitType", - "required": "true" - }, - { - "label": "Follow up Visit Number:", - "type": "obs", - "id": "followVisitNumber", - "questionOptions": { - "concept": "159893AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "number" + { + "label": "Provider:", + "type": "encounterProvider", + "questionOptions": { + "rendering": "ui-select-extended" + }, + "id": "encProvider " }, - "validators": [], - "hide": { - "hideWhenExpression": "visitType !== '160523AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + { + "label": "Location:", + "type": "encounterLocation", + "questionOptions": { + "rendering": "ui-select-extended" + }, + "id": "encLocation" } - } - ] - } - ] - }, - { - "label": "History Details", - "sections": [ - { - "label": "Social History", - "isExpanded": "true", - "questions": [ - { - "label": "Date of Intake review Visit", - "type": "obs", - "id": "intakeDate", - "questionOptions": { - "concept": "163181AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "date" - }, - "validators": [ - { - "type": "date", - "allowFutureDates": "false" + ] + }, + { + "label": "Visit Type", + "isExpanded": "true", + "questions": [ + { + "label": "Type of Visit?", + "type": "obs", + "questionOptions": { + "rendering": "radio", + "concept": "644504bd-23bc-4f1e-b9a0-d44f81f4148e", + "answers": [ + { + "concept": "164180AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Initial" + }, + { + "concept": "160523AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Follow up" + } + ] + }, + "id": "visitType", + "required": "true" + }, + { + "label": "Follow up Visit Number:", + "type": "obs", + "id": "followVisitNumber", + "questionOptions": { + "concept": "159893AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "number" + }, + "validators": [], + "hide": { + "hideWhenExpression": "visitType !== '160523AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } - ] - }, - { - "label": "Marital Status", - "type": "obs", - "questionOptions": { - "rendering": "radio", - "concept": "167823AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "answers": [ - { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Married" - }, - { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Remarried" - }, - { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Widowed" - }, - { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Separated" - }, - { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Divorced" - }, - { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Never Married " - }, - { - "concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Other" - } - ] - }, - "id": "maritalStat" - }, - { - "label": " Other Specify ", - "type": "obs", - "id": "OtherSpefy", - "questionOptions": { - "concept": "20395601-257c-490c-86c2-acffb627f91f", - "rendering": "textarea" - }, - "validators": [], - "hide": { - "hideWhenExpression": "isEmpty(maritalStat) || maritalStat !== '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - } - }, - { - "label": "How would you describe your usual living arrangements (past 3 months)?", - "type": "obs", - "questionOptions": { - "rendering": "radio", - "concept": "163577AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "answers": [ - { - "concept": "167049AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Stable Arrangement" - }, - { - "concept": "167048AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No Stable arrangement" - } - ] - }, - "id": "livingArrangemnt" - }, - { - "label": "Usual living arrangements in the past 3 months", - "type": "obs", - "questionOptions": { - "rendering": "checkbox", - "concept": "163575AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "answers": [ - { - "concept": "163575AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Family House" - }, - { - "concept": "167059AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Friends House" - }, - { - "concept": "163468AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Streets" - }, - { - "concept": "165013AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Abandoned buildings" - }, - { - "concept": "165014AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Public Areas" - }, - { - "concept": "167240AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Parks" - }, - { - "concept": "162973AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Bus Stations" - }, - { - "concept": "166488AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Tunnels" - }, - { - "concept": "165012AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Injecting Sites" - }, - { - "concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Other" - } - ] - }, - "id": "livingWhere" - }, - { - "label": " Other Specify ", - "type": "obs", - "id": "OthSpecify", - "questionOptions": { - "concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "textarea" - }, - "hide": { - "hideWhenExpression": "!arrayContains(livingWhere, '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')" } - }, - { - "label": "Have you been treated with mental illlness or substance use disorder", - "type": "obs", - "questionOptions": { - "rendering": "radio", - "concept": "165213AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "answers": [ - { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" - }, - { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No" - } - ] - }, - "id": "treatMental" - }, - { - "label": " If Yes Specify ", - "type": "obs", - "id": "speCfy", - "questionOptions": { - "concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "textarea" - }, - "validators": [], - "hide": { - "hideWhenExpression": "isEmpty(treatMental) || treatMental !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - } - } - ] - }, - { - "label": "Sexual History", - "isExpanded": "true", - "questions": [ - { - "label": "Have you been sexually active in the last 3 months?", - "type": "obs", - "questionOptions": { - "rendering": "radio", - "concept": "160109AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "answers": [ - { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" - }, - { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No" - } - ] - }, - "id": "sexHis" - }, - { - "label": "Have you had unprotected sex in the last 3 months?", - "type": "obs", - "questionOptions": { - "rendering": "radio", - "concept": "159218AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "answers": [ - { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" - }, - { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No" - } - ] - }, - "id": "unprotectedsexHis" - }, - { - "label": "Number of sexual partners in the last 3 months", - "type": "obs", - "questionOptions": { - "rendering": "radio", - "concept": "5570AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "answers": [ - { - "concept": "5615AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Single" - }, - { - "concept": "159385AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Multiple" - } - ] - }, - "id": "sexPartners" - } - ] - }, - { - "label": "Education and Occupational History", - "isExpanded": "true", - "questions": [ - { - "label": "What is your highest level of education", - "type": "obs", - "questionOptions": { - "rendering": "select", - "concept": "1712AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "answers": [ - { - "concept": "1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "None" - }, - { - "concept": "1713AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Primary", - "disableWhenExpression": "myValue === '1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - }, - { - "concept": "1714AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Secondary", - "disableWhenExpression": "myValue === '1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - }, - { - "concept": "159945AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Tertiary", - "disableWhenExpression": "myValue === '1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - } - ] - }, - "id": "eduLevel" - }, - { - "label": "Do you have a source of livelihood?", - "type": "obs", - "questionOptions": { - "rendering": "radio", - "concept": "159740AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "answers": [ - { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" - }, - { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No" - } - ] - }, - "id": "incomeSource" - }, - { - "label": " If Yes Specify ", - "type": "obs", - "id": "yeSSpecify", - "questionOptions": { - "concept": "165138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "textarea" - }, - "validators": [], - "hide": { - "hideWhenExpression": "isEmpty(incomeSource) || incomeSource !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - } - }, - { - "label": ". What is your employment status in the past 12 months?", - "type": "obs", - "questionOptions": { - "rendering": "checkbox", - "concept": "5608AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "answers": [ - { - "concept": "1540AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Employed Full time (40hrs) " - }, - { - "concept": "159613AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Employment Part time (<40hrs)" - }, - { - "concept": "123801AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Unemployed (Currently looking for work)" - }, - { - "concept": "160297AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Unemployed (Currently not working)" - }, - { - "concept": "159465AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Student" - }, - { - "concept": "159461AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Retired" - }, - { - "concept": "161382AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Self employed" - } - ] - }, - "id": "employStatus" - }, - { - "label": "Have you ever missed work because of your drug use", - "type": "obs", - "questionOptions": { - "rendering": "radio", - "concept": "165596AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "answers": [ - { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" - }, - { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No" - } - ] - }, - "hide": { - "hideWhenExpression": "!arrayContains(employStatus, '1540AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA') && !arrayContains(employStatus, '159613AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')" - }, - "id": "missedWork" - }, - { - "label": "Have you ever been fired from your work because of your drug use", - "type": "obs", - "questionOptions": { - "rendering": "radio", - "concept": "167682AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "answers": [ - { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" - }, - { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No" - } - ] - }, - "hide": { - "hideWhenExpression": "!arrayContains(employStatus, '1540AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA') && !arrayContains(employStatus, '159613AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')" - }, - "id": "workFired" - } - ] - }, - { - "label": "Family Relationships and Social Support", - "isExpanded": "true", - "questions": [ - { - "label": " Have you been Reintergrated back to Family or Community", - "type": "obs", - "questionOptions": { - "rendering": "radio", - "concept": "164352AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "answers": [ - { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" - }, - { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No" - } - ] - }, - "id": "famReintergration" - }, - { - "label": "Do you have a person(s) who regularly depends on you for food and shelter", - "type": "obs", - "questionOptions": { - "rendering": "radio", - "concept": "165294AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "answers": [ - { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" - }, + ] + } + ] + }, + { + "label": "History Details", + "sections": [ + { + "label": "Social History", + "isExpanded": "true", + "questions": [ + { + "label": "Date of Intake review Visit", + "type": "obs", + "id": "intakeDate", + "questionOptions": { + "concept": "163181AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "date" + }, + "validators": [ { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No" + "type": "date", + "allowFutureDates": "false" } ] }, - "id": "famRelation" - }, - { - "label": "Dependants", - "type": "obsGroup", - "questionOptions": { - "concept": "1560AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "repeating" + { + "label": "Marital Status", + "type": "obs", + "questionOptions": { + "rendering": "radio", + "concept": "1054AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "answers": [ + { + "concept": "5555AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Married" + }, + { + "concept": "1055AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Remarried" + }, + { + "concept": "1059AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Widowed" + }, + { + "concept": "1056AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Separated" + }, + { + "concept": "1058AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Divorced" + }, + { + "concept": "1057AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Never Married " + }, + { + "concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Other" + } + ] + }, + "id": "maritalStat" + }, + { + "label": " Other Specify ", + "type": "obs", + "id": "OtherSpefy", + "questionOptions": { + "concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "textarea" + }, + "validators": [], + "hide": { + "hideWhenExpression": "isEmpty(maritalStat) || maritalStat !== '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } }, - "validators": [], - "hide": { - "hideWhenExpression": "isEmpty(famRelation) || famRelation !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + { + "label": "How would you describe your usual living arrangements (past 3 months)?", + "type": "obs", + "questionOptions": { + "rendering": "radio", + "concept": "163577AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "answers": [ + { + "concept": "167049AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Stable Arrangement" + }, + { + "concept": "167048AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No Stable arrangement" + } + ] + }, + "id": "livingArrangemnt" + }, + { + "label": "Usual living arrangements in the past 3 months", + "type": "obs", + "questionOptions": { + "rendering": "checkbox", + "concept": "159821AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "answers": [ + { + "concept": "163575AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Family House" + }, + { + "concept": "167059AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Friends House" + }, + { + "concept": "163468AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Streets" + }, + { + "concept": "c31e2ac5-edcb-4f5e-a5a3-09e6158332bb", + "label": "Abandoned buildings" + }, + { + "concept": "0a802027-c3db-4c89-a06a-5172a5f57611", + "label": "Public Areas" + }, + { + "concept": "167240AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Parks" + }, + { + "concept": "162973AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Bus Stations" + }, + { + "concept": "166488AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Tunnels" + }, + { + "concept": "c3231eda-d525-40b5-81ef-323d7ebec324", + "label": "Injecting Sites" + }, + { + "concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Other" + } + ] + }, + "id": "livingWhere" + }, + { + "label": " Other Specify ", + "type": "obs", + "id": "OthSpecify", + "questionOptions": { + "concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "textarea" + }, + "hide": { + "hideWhenExpression": "!arrayContains(livingWhere, '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')" + } }, - "questions": [ - { - "label": "If yes, Who are the persons that depend on you", - "type": "obs", - "questionOptions": { - "rendering": "select", - "concept": "165241AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "answers": [ - { - "concept": "5617AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Spouse" - }, - { - "concept": "1528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Children" - }, - { - "concept": "1527AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Parent" - }, - { - "concept": "927AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Sibling" - }, - { - "concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Other" - } - ] - }, - "id": "dePendant" + { + "label": "Have you been treated with mental illlness or substance use disorder", + "type": "obs", + "questionOptions": { + "rendering": "radio", + "concept": "e00c3a27-ac81-4b0a-b741-4f104f4f6a61", + "answers": [ + { + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" + }, + { + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" + } + ] }, - { - "label": " Other Specify ", - "type": "obs", - "id": "othSPECIfy", - "questionOptions": { - "concept": "165230AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "textarea" - }, - "hide": { - "hideWhenExpression": "!arrayContains(dePendant, '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')" - } + "id": "treatMental" + }, + { + "label": " If Yes Specify ", + "type": "obs", + "id": "speCfy", + "questionOptions": { + "concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "textarea" }, - { - "label": "Choose support type", - "type": "obs", - "questionOptions": { - "rendering": "checkbox", - "concept": "1637664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "answers": [ - { - "concept": "162717AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Cash" - }, - { - "concept": "159597AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Food" - }, - { - "concept": "157519AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Shelter" - }, - { - "concept": "163469AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Psychological" - } - ] - }, - "id": "supportType" + "validators": [], + "hide": { + "hideWhenExpression": "isEmpty(treatMental) || treatMental !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } - ] - } - ] - }, - { - "label": "Gender Based Violence", - "isExpanded": "true", - "questions": [ - { - "label": "Has the client been a victim of GBV?", - "type": "obs", - "id": "gbvVictim", - "questionOptions": { - "concept": "167161AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", - "answers": [ - { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" - }, - { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No" - } - ] } - }, - { - "label": "Type of GBV Experienced?", - "type": "obs", - "id": "gbvExperienced", - "questionOptions": { - "concept": "163556AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "radio", - "answers": [ - { - "concept": "126582AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Sexual" - }, - { - "concept": "158358AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Physical" - }, - { - "concept": "118688AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Emotional/Psychological" - } - ] - }, - "validators": [], - "hide": { - "hideWhenExpression": "isEmpty(gbvVictim) || gbvVictim !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + ] + }, + { + "label": "Sexual History", + "isExpanded": "true", + "questions": [ + { + "label": "Have you been sexually active in the last 3 months?", + "type": "obs", + "questionOptions": { + "rendering": "radio", + "concept": "160109AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "answers": [ + { + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" + }, + { + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" + } + ] + }, + "id": "sexHis" + }, + { + "label": "Have you had unprotected sex in the last 3 months?", + "type": "obs", + "questionOptions": { + "rendering": "radio", + "concept": "159218AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "answers": [ + { + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" + }, + { + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" + } + ] + }, + "id": "unprotectedsexHis" + }, + { + "label": "Number of sexual partners in the last 3 months", + "type": "obs", + "questionOptions": { + "rendering": "radio", + "concept": "5570AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "answers": [ + { + "concept": "1", + "label": "Single" + }, + { + "concept": "2", + "label": "Multiple" + } + ] + }, + "id": "sexPartners" } - }, - { - "label": " Type of Support given ", - "type": "obs", - "id": "supportGiven", - "questionOptions": { - "concept": "165138AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "textarea" + ] + }, + { + "label": "Education and Occupational History", + "isExpanded": "true", + "questions": [ + { + "label": "What is your highest level of education", + "type": "obs", + "questionOptions": { + "rendering": "select", + "concept": "1712AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "answers": [ + { + "concept": "1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "None" + }, + { + "concept": "1713AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Primary", + "disableWhenExpression": "myValue === '1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + }, + { + "concept": "1714AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Secondary", + "disableWhenExpression": "myValue === '1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + }, + { + "concept": "159945AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Tertiary", + "disableWhenExpression": "myValue === '1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + ] + }, + "id": "eduLevel" + }, + { + "label": "Do you have a source of livelihood?", + "type": "obs", + "questionOptions": { + "rendering": "radio", + "concept": "159740AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "answers": [ + { + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" + }, + { + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" + } + ] + }, + "id": "incomeSource" + }, + { + "label": " If Yes Specify ", + "type": "obs", + "id": "yeSSpecify", + "questionOptions": { + "concept": "d7f01f09-1e8b-4129-bdf6-dbae6e9aa69c", + "rendering": "textarea" + }, + "validators": [], + "hide": { + "hideWhenExpression": "isEmpty(incomeSource) || incomeSource !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } }, - "hide": { - "hideWhenExpression": "!arrayContains(gbvExperienced, '126582AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA') && !arrayContains(gbvExperienced, '158358AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA') && !arrayContains(gbvExperienced, '118688AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')" + { + "label": ". What is your employment status in the past 12 months?", + "type": "obs", + "questionOptions": { + "rendering": "checkbox", + "concept": "5608AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "answers": [ + { + "concept": "1540AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Employed Full time (40hrs) " + }, + { + "concept": "159613AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Employment Part time (<40hrs)" + }, + { + "concept": "123801AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Unemployed (Currently looking for work)" + }, + { + "concept": "160297AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Unemployed (Currently not working)" + }, + { + "concept": "159465AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Student" + }, + { + "concept": "159461AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Retired" + }, + { + "concept": "161382AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Self employed" + } + ] + }, + "id": "employStatus" + }, + { + "label": "Have you ever missed work because of your drug use", + "type": "obs", + "questionOptions": { + "rendering": "radio", + "concept": "165596AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "answers": [ + { + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" + }, + { + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" + } + ] + }, + "hide": { + "hideWhenExpression": "!arrayContains(employStatus, '1540AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA') && !arrayContains(employStatus, '159613AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')" + }, + "id": "missedWork" + }, + { + "label": "Have you ever been fired from your work because of your drug use", + "type": "obs", + "questionOptions": { + "rendering": "radio", + "concept": "167682AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "answers": [ + { + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" + }, + { + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" + } + ] + }, + "hide": { + "hideWhenExpression": "!arrayContains(employStatus, '1540AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA') && !arrayContains(employStatus, '159613AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')" + }, + "id": "workFired" } - } - ] - }, - { - "label": "Legal criminal status", - "isExpanded": "true", - "questions": [ - { - "label": "Have you committed and /or arrested for crimes for drugs in the last 30 days", - "type": "obs", - "questionOptions": { - "rendering": "checkbox", - "concept": "167523AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "answers": [ - { - "concept": "126288AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Shoplifting/Vandalism" - }, - { - "concept": "167308AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Drunk and disorderly" - }, - { - "concept": "167309AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Drug possession" - }, - { - "concept": "165156AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Drug peddling" - }, - { - "concept": "167310AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Weapons Offense" - }, - { - "concept": "167311AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Burglary/Larceny" - }, - { - "concept": "167312AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Robbery" - }, - { - "concept": "121387AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Assault" - }, - { - "concept": "127910AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Rape" - }, - { - "concept": "127017AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Murder" - }, - { - "concept": "160579AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Sex work" - }, - { - "concept": "167313AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Fraud/ Forgery" - } - ] - }, - "id": "arrestCommit" - }, - { - "label": "Do you have any ongoing case", - "type": "obs", - "questionOptions": { - "rendering": "radio", - "concept": "167823AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "answers": [ - { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" - }, - { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No" - } - ] - }, - "id": "ongoingCase" - } - ] - } - ] - }, - { - "label": "Management Details", - "sections": [ - { - "label": "Treatment/Management Plan", - "isExpanded": "true", - "questions": [ - { - "label": "What is the current Stage of Treatment", - "type": "obs", - "required": true, - "id": "treatmentStage", - "questionOptions": { - "rendering": "radio", - "concept": "167530AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "conceptMappings": [ - { - "relationship": "SAME-AS", - "type": "CIEL", - "value": "167530" - }, - { - "relationship": "NARROWER-THAN", - "type": "SNOMED NP", - "value": "363819003" - } - ], - "answers": [ - { - "concept": "159795AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Induction stage" - }, - { - "concept": "167528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Re-induction stage" - }, - { - "concept": "1855AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Stabilization stage" - }, - { - "concept": "167527AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Maintenance stage" - }, - { - "concept": "167529AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Cessation stage" - }, - { - "concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Other" + ] + }, + { + "label": "Family Relationships and Social Support", + "isExpanded": "true", + "questions": [ + { + "label": " Have you been Reintergrated back to Family or Community", + "type": "obs", + "questionOptions": { + "rendering": "radio", + "concept": "164352AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "answers": [ + { + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" + }, + { + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" + } + ] + }, + "id": "famReintergration" + }, + { + "label": "Do you have a person(s) who regularly depends on you for food and shelter", + "type": "obs", + "questionOptions": { + "rendering": "radio", + "concept": "9e7792d6-ee26-4b4a-9683-24b6714e9a91", + "answers": [ + { + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" + }, + { + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" + } + ] + }, + "id": "famRelation" + }, + { + "label": "Dependants", + "type": "obsGroup", + "questionOptions": { + "concept": "1560AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "repeating" + }, + "validators": [], + "hide": { + "hideWhenExpression": "isEmpty(famRelation) || famRelation !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + }, + "questions": [ + { + "label": "If yes, Who are the persons that depend on you", + "type": "obs", + "questionOptions": { + "rendering": "select", + "concept": "c67be9a5-f497-4082-af81-11753f65ed4b", + "answers": [ + { + "concept": "5617AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Spouse" + }, + { + "concept": "1528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Children" + }, + { + "concept": "1527AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Parent" + }, + { + "concept": "927AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Sibling" + }, + { + "concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Other" + } + ] + }, + "id": "dePendant" + }, + { + "label": " Other Specify ", + "type": "obs", + "id": "othSPECIfy", + "questionOptions": { + "concept": "70f75275-5345-41e1-a17a-d7af70971885", + "rendering": "textarea" + }, + "hide": { + "hideWhenExpression": "!arrayContains(dePendant, '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')" + } + }, + { + "label": "Choose support type", + "type": "obs", + "questionOptions": { + "rendering": "checkbox", + "concept": "162663AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "answers": [ + { + "concept": "162717AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Cash" + }, + { + "concept": "159597AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Food" + }, + { + "concept": "157519AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Shelter" + }, + { + "concept": "163469AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Psychological" + } + ] + }, + "id": "supportType" } ] - }, - "validators": [] - }, - { - "label": " Other Specify ", - "type": "obs", - "id": "otherStage", - "questionOptions": { - "concept": "165230AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "textarea" - }, - "hide": { - "hideWhenExpression": "!arrayContains(treatmentStage, '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')" } - }, - { - "label": "Noted Domain Problems", - "type": "obs", - "required": false, - "id": "domainProblems", - "questionOptions": { - "rendering": "checkbox", - "concept": "6042AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "conceptMappings": [ - { - "relationship": "SAME-AS", - "type": "CIEL", - "value": "6042" - }, - { - "relationship": "NARROWER-THAN", - "type": "SNOMED NP", - "value": "439401001" - }, - { - "relationship": "SAME-AS", - "type": "SNOMED MVP", - "value": "60421000105005" - }, - { - "relationship": "SAME-AS", - "type": "AMPATH", - "value": "6042" - } - ], - "answers": [ - { - "concept": "118855", - "label": "Drug use" - }, - { - "concept": "163469", - "label": "Psychological" - }, - { - "concept": "1855", - "label": "Health" - }, - { - "concept": "135914", - "label": "Legal problem" - }, - { - "concept": "1391", - "label": "Physical health" - }, - { - "concept": "163108", - "label": "Social Functioning" - } - ] - }, - "validators": [] - }, - { - "label": "Psychological Outcomes", - "type": "obs", - "required": false, - "id": "psyOutcomes", - "questionOptions": { - "rendering": "checkbox", - "concept": "160433AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "conceptMappings": [ - { - "relationship": "SAME-AS", - "type": "PIH Malawi", - "value": "6538" - }, - { - "relationship": "NARROWER-THAN", - "type": "SNOMED NP", - "value": "365860008" - }, - { - "relationship": "SAME-AS", - "type": "CIEL", - "value": "160433" - } - ], - "answers": [ - { - "concept": "167528", - "label": "Reintergration" - }, - { - "concept": "141337", - "label": "Employment" - }, - { - "concept": "167049", - "label": "Stable accomodation" - }, - { - "concept": "167823", - "label": "legal problems" - }, - { - "concept": "1000475", - "label": "GBV" - }, - { - "concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Other " - } - ] + ] + }, + { + "label": "Gender Based Violence", + "isExpanded": "true", + "questions": [ + { + "label": "Has the client been a victim of GBV?", + "type": "obs", + "id": "gbvVictim", + "questionOptions": { + "concept": "167161AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "radio", + "answers": [ + { + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" + }, + { + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" + } + ] + } }, - "validators": [] - }, - { - "label": "Other (Specify) ", - "type": "obs", - "questionOptions": { - "rendering": "text", - "concept": "160632" + { + "label": "Type of GBV Experienced?", + "type": "obs", + "id": "gbvExperienced", + "questionOptions": { + "concept": "163556AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "radio", + "answers": [ + { + "concept": "126582AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Sexual" + }, + { + "concept": "158358AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Physical" + }, + { + "concept": "118688AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Emotional/Psychological" + } + ] + }, + "validators": [], + "hide": { + "hideWhenExpression": "isEmpty(gbvVictim) || gbvVictim !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } }, - "id": "otherOutcome", - "hide": { - "hideWhenExpression": "!arrayContains(psyOutcomes, '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')" + { + "label": " Type of Support given ", + "type": "obs", + "id": "supportGiven", + "questionOptions": { + "concept": "d7f01f09-1e8b-4129-bdf6-dbae6e9aa69c", + "rendering": "textarea" + }, + "hide": { + "hideWhenExpression": "!arrayContains(gbvExperienced, '126582AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA') && !arrayContains(gbvExperienced, '158358AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA') && !arrayContains(gbvExperienced, '118688AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')" + } } - }, - { - "label": "Case summary and intervntions", - "type": "obs", - "required": false, - "id": "summaryIntervention", - "questionOptions": { - "rendering": "textarea", - "concept": "162147AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "conceptMappings": [ - { - "relationship": "SAME-AS", - "type": "CIEL", - "value": "162147" - } - ], - "answers": [] - }, - "validators": [] - }, - { - "label": "Counsellor Name", - "type": "obs", - "required": false, - "id": "counsellorName", - "questionOptions": { - "rendering": "text", - "concept": "163258AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "conceptMappings": [ - { - "relationship": "NARROWER-THAN", - "type": "SNOMED NP", - "value": "70862002" - }, - { - "relationship": "SAME-AS", - "type": "CIEL", - "value": "163258" - } - ], - "answers": [] + ] + }, + { + "label": "Legal criminal status", + "isExpanded": "true", + "questions": [ + { + "label": "Have you committed and /or arrested for crimes for drugs in the last 30 days", + "type": "obs", + "questionOptions": { + "rendering": "checkbox", + "concept": "167523AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "answers": [ + { + "concept": "126288AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Shoplifting/Vandalism" + }, + { + "concept": "167308AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Drunk and disorderly" + }, + { + "concept": "167309AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Drug possession" + }, + { + "concept": "6fc66b50-133d-4c3d-b5dc-ff33fc135e08", + "label": "Drug peddling" + }, + { + "concept": "167310AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Weapons Offense" + }, + { + "concept": "167311AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Burglary/Larceny" + }, + { + "concept": "167312AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Robbery" + }, + { + "concept": "121387AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Assault" + }, + { + "concept": "127910AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Rape" + }, + { + "concept": "127017AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Murder" + }, + { + "concept": "160579AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Sex work" + }, + { + "concept": "167313AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Fraud/ Forgery" + } + ] + }, + "id": "arrestCommit" + }, + { + "label": "Do you have any ongoing case", + "type": "obs", + "questionOptions": { + "rendering": "radio", + "concept": "d3fb028f-5e8f-40a4-a60c-b56763b48060", + "answers": [ + { + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" + }, + { + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" + } + ] + }, + "id": "ongoingCase" } - }, - { - "label": "Next Appointment Date", - "type": "obs", - "required": false, - "id": "psychosocialAppointment", - "questionOptions": { - "rendering": "date", - "concept": "5096AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "conceptMappings": [ - { - "relationship": "SAME-AS", - "type": "AMPATH", - "value": "5096" - }, - { - "relationship": "SAME-AS", - "type": "SNOMED MVP", - "value": "50961000105000" - }, - { - "relationship": "SAME-AS", - "type": "org.openmrs.module.mdrtb", - "value": "RETURN VISIT DATE" - }, - { - "relationship": "SAME-AS", - "type": "PIH Malawi", - "value": "5096" - }, - { - "relationship": "SAME-AS", - "type": "CIEL", - "value": "5096" - }, - { - "relationship": "NARROWER-THAN", - "type": "SNOMED NP", - "value": "406543005" - } - ], - "answers": [] + ] + } + ] + }, + { + "label": "Management Details", + "sections": [ + { + "label": "Treatment/Management Plan", + "isExpanded": "true", + "questions": [ + { + "label": "What is the current Stage of Treatment", + "type": "obs", + "required": true, + "id": "treatmentStage", + "questionOptions": { + "rendering": "radio", + "concept": "167530AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "answers": [ + { + "concept": "159795AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Induction stage" + }, + { + "concept": "167528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Re-induction stage" + }, + { + "concept": "1855AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Stabilization stage" + }, + { + "concept": "167527AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Maintenance stage" + }, + { + "concept": "167529AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Cessation stage" + }, + { + "concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Other" + } + ] + }, + "validators": [] + }, + { + "label": " Other Specify ", + "type": "obs", + "id": "otherStage", + "questionOptions": { + "concept": "70f75275-5345-41e1-a17a-d7af70971885", + "rendering": "textarea" + }, + "hide": { + "hideWhenExpression": "!arrayContains(treatmentStage, '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')" + } }, - "validators": [ - { - "type": "date", - "allowFutureDates": "true" + { + "label": "Noted Domain Problems", + "type": "obs", + "required": false, + "id": "domainProblems", + "questionOptions": { + "rendering": "checkbox", + "concept": "6042AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "answers": [ + { + "concept": "118855AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Drug use" + }, + { + "concept": "163469AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Psychological" + }, + { + "concept": "1855AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Health" + }, + { + "concept": "135914AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Legal problem" + }, + { + "concept": "1391AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Physical health" + }, + { + "concept": "163108AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Social Functioning" + } + ] + }, + "validators": [] + }, + { + "label": "Psychological Outcomes", + "type": "obs", + "required": false, + "id": "psyOutcomes", + "questionOptions": { + "rendering": "checkbox", + "concept": "160433AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "answers": [ + { + "concept": "167528AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Reintergration" + }, + { + "concept": "141337AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Employment" + }, + { + "concept": "167049AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Stable accomodation" + }, + { + "concept": "d3fb028f-5e8f-40a4-a60c-b56763b48060", + "label": "legal problems" + }, + { + "concept": "8f41ddb8-1b90-4375-9c46-8a4acdeef12d", + "label": "GBV" + }, + { + "concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Other " + } + ] + }, + "validators": [] + }, + { + "label": "Other (Specify) ", + "type": "obs", + "questionOptions": { + "rendering": "text", + "concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" }, - { - "type": "js_expression", - "failsWhenExpression": "(new moment(encDate)).isAfter((new moment(myValue)), 'day') || (new moment(encDate)).isSame((new moment(myValue)), 'day')", - "message": "Next Appointment Date should be greater than the encounter date." + "id": "otherOutcome", + "hide": { + "hideWhenExpression": "!arrayContains(psyOutcomes, '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')" } - ] - } - ] - } - ] - } - ] + }, + { + "label": "Case summary and intervntions", + "type": "obs", + "required": false, + "id": "summaryIntervention", + "questionOptions": { + "rendering": "textarea", + "concept": "162147AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + }, + "validators": [] + }, + { + "label": "Counsellor Name", + "type": "obs", + "required": false, + "id": "counsellorName", + "questionOptions": { + "rendering": "text", + "concept": "163258AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" + } + }, + { + "label": "Next review date:", + "type": "obs", + "id": "appointmentWorkspaceLauncher", + "questionOptions": { + "rendering": "workspace-launcher", + "buttonLabel": "Add appointments", + "workspaceName": "appointments-form-workspace" + } + } + ] + } + ] + } + ] }