From dade09b2e1eb1b374defd0294d917557e2fc8c11 Mon Sep 17 00:00:00 2001 From: mmatheka <99263785+mmatheka@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:06:44 +0300 Subject: [PATCH] update MAT Initial form (#382) --- .../Depression_Screening_PHQ-9.json | 866 +++++++++++------- configuration/ampathforms/HIV_Enrollment.json | 60 +- .../MAT_Initial_Registration_Form.json | 46 +- configuration/ampathforms/PrEP_Initial.json | 340 ++++--- 4 files changed, 745 insertions(+), 567 deletions(-) diff --git a/configuration/ampathforms/Depression_Screening_PHQ-9.json b/configuration/ampathforms/Depression_Screening_PHQ-9.json index 9ccd8869..85ab4f86 100644 --- a/configuration/ampathforms/Depression_Screening_PHQ-9.json +++ b/configuration/ampathforms/Depression_Screening_PHQ-9.json @@ -7,353 +7,531 @@ "retired": false, "encounter": "KP Depression screening", "pages": [ - { - "label": "Depression Screening PHQ9", - "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": "Depression Screening PHQ9", + "sections": [ + { + "label": "Visit Details", + "isExpanded": "true", + "questions": [ + { + "label": "Date:", + "type": "encounterDatetime", + "questionOptions": { + "rendering": "ui-select-extended" }, - { - "label": "Over the last 2 weeks, how often have you been bothered by any of the following problems?", - "isExpanded": "true", - "questions": [ - { - "label": "1. Little interest or pleasure in doing things", - "type": "control", - "id": "noInterest", - "questionOptions": { - "concept": "", - "rendering": "radio", - "answers": [ - { - "concept": "163733AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Not at all" - }, - { - "concept": "163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Several days " - }, - { - "concept": "163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "More than half the days" - }, - { - "concept": "163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Nearly every day" - } - ] - } - }, - { - "label": "2. Feeling down, depressed, or hopeless", - "type": "control", - "id": "depressed", - "questionOptions": { - "concept": "", - "rendering": "radio", - "answers": [ - { - "concept": "163733AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Not at all" - }, - { - "concept": "163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Several days " - }, - { - "concept": "163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "More than half the days" - }, - { - "concept": "163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Nearly every day" - } - ] - } - }, - { - "label": "3. Trouble falling or staying asleep, or sleeping too much ", - "type": "control", - "id": "sleep", - "questionOptions": { - "concept": "", - "rendering": "radio", - "answers": [ - { - "concept": "163733AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Not at all" - }, - { - "concept": "163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Several days " - }, - { - "concept": "163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "More than half the days" - }, - { - "concept": "163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Nearly every day" - } - ] - } - }, - { - "label": "4. Feeling tired or having little energy", - "type": "control", - "id": "feelingTired", - "questionOptions": { - "concept": "", - "rendering": "radio", - "answers": [ - { - "concept": "163733AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Not at all" - }, - { - "concept": "163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Several days " - }, - { - "concept": "163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "More than half the days" - }, - { - "concept": "163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Nearly every day" - } - ] - } - }, - { - "label": "5. Poor appetite or overeating", - "type": "control", - "id": "poorAppetite", - "questionOptions": { - "concept": "", - "rendering": "radio", - "answers": [ - { - "concept": "163733AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Not at all" - }, - { - "concept": "163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Several days " - }, - { - "concept": "163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "More than half the days" - }, - { - "concept": "163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Nearly every day" - } - ] - } - }, - { - "label": "6. Feeling bad about yourself, or that you are a failure,or that you have let yourself or your family down", - "type": "control", - "id": "feelingBad", - "questionOptions": { - "concept": "", - "rendering": "radio", - "answers": [ - { - "concept": "163733AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Not at all" - }, - { - "concept": "163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Several days " - }, - { - "concept": "163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "More than half the days" - }, - { - "concept": "163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Nearly every day" - } - ] - } - }, - { - "label": "7. Trouble concentrating on things (linked with patient usual activities,such as reading the newspaper or listening to a radio programme)", - "type": "control", - "id": "troubled", - "questionOptions": { - "concept": "", - "rendering": "radio", - "answers": [ - { - "concept": "163733AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Not at all" - }, - { - "concept": "163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Several days " - }, - { - "concept": "163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "More than half the days" - }, - { - "concept": "163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Nearly every day" - } - ] - } - }, - { - "label": "8. Moving or speaking so slowly that other people could have noticed.Or the opposite, being so fidgety or restless that you have been moving around a lot more than usual", - "type": "control", - "id": "speakingSlowly", - "questionOptions": { - "concept": "", - "rendering": "radio", - "answers": [ - { - "concept": "163733AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Not at all" - }, - { - "concept": "163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Several days " - }, - { - "concept": "163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "More than half the days" - }, - { - "concept": "163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Nearly every day" - } - ] - } - }, - { - "label": "9. Thoughts that you would be better off dead or of hurting yourself in some way", - "type": "control", - "id": "betterDead", - "questionOptions": { - "concept": "", - "rendering": "radio", - "answers": [ - { - "concept": "163733AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Not at all" - }, - { - "concept": "163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Several days " - }, - { - "concept": "163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "More than half the days" - }, - { - "concept": "163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Nearly every day" - } - ] - } - }, - { - "label": "Anxiety score rating:", - "id": "anxietyScore", - "questionOptions": { - "concept": "", - "rendering": "text", - "calculate": { - "calculateExpression": "(String(noInterest) === '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : String(noInterest) === '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 2 : String(noInterest) === '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : 0) + (String(depressed) === '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : String(depressed) === '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 2 : String(depressed)==='163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : 0) + (String(sleep) === '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : String(sleep) === '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 2 : String(sleep) === '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : 0) + (String(feelingTired) === '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : String(feelingTired) === '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 2 : String(feelingTired) === '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : 0) +(String(poorAppetite) === '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : String(poorAppetite) === '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 2 : String(poorAppetite) === '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : 0) + (String(troubled) === '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : String(troubled) === '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 2 : String(troubled) === '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : 0) + (String(feelingBad) === '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : String(feelingBad) === '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 2 : String(feelingBad) === '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : 0) + (String(speakingSlowly) === '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : String(speakingSlowly) === '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 2 : String(speakingSlowly) === '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : 0) + (String(betterDead) === '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : String(betterDead) === '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 2 : String(betterDead) === '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : 0)" - } - }, - "type": "control", - "validators": [], - "hide": { - "hideWhenExpression": "isEmpty(myValue) || !isEmpty(myValue)" - } - } - ] + "validators": [ + { + "type": "date", + "allowFutureDates": "false" + } + ], + "id": "encDate" + }, + { + "label": "Provider:", + "type": "encounterProvider", + "questionOptions": { + "rendering": "ui-select-extended" }, - { - "label": "Depression Assessment Score", - "isExpanded": "true", - "questions": [ - { - "label": "Depression Assessment Score", - "type": "obs", - "id": "assessmentOutcome", - "questionOptions": { - "concept": "33bb96f8-e009-482a-ba68-212281780fb8", - "rendering": "select", - "answers": [ - { - "concept": "1115AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Depression unlikely" - }, - { - "concept": "157790AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Mild depression" - }, - { - "concept": "134011AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Moderate depression" - }, - { - "concept": "134017AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Moderate severe depression" - }, - { - "concept": "126627AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Severe depression" - } - ], - "calculate": { - "calculateExpression": "(!isEmpty(noInterest) || !isEmpty(depressed) || !isEmpty(speakingSlowly) || !isEmpty(betterDead) || !isEmpty(sleep) || !isEmpty(feelingTired) || !isEmpty(poorAppetite)|| !isEmpty(troubled)|| !isEmpty(feelingBad) ) && parseInt(anxietyScore) < 5 ? '1115AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' : ( parseInt(anxietyScore) > 4 && parseInt(anxietyScore) < 10 ) ? '157790AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' : ( parseInt(anxietyScore) > 9 && parseInt(anxietyScore) < 15 ) ? '134011AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA': ( parseInt(anxietyScore) > 14 && parseInt(anxietyScore) < 20 ) ? '134017AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA': parseInt(anxietyScore) >= 19 ? '126627AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' : ''" - } - } - } - ] + "id": "encProvider " + }, + { + "label": "Location:", + "type": "encounterLocation", + "questionOptions": { + "rendering": "ui-select-extended" + }, + "id": "encLocation" + } + ] + }, + { + "label": "Over the last 2 weeks, how often have you been bothered by any of the following problems?", + "isExpanded": "true", + "questions": [ + { + "label": "1. Little interest or pleasure in doing things", + "type": "control", + "required": true, + "id": "noInterest", + "questionOptions": { + "concept": "", + "rendering": "radio", + "answers": [ + { + "concept": "163733AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Not at all" + }, + { + "concept": "163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Several days " + }, + { + "concept": "163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "More than half the days" + }, + { + "concept": "163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Nearly every day" + } + ] + } + }, + { + "label": "2. Feeling down, depressed, or hopeless", + "type": "control", + "id": "depressed", + "required": true, + "questionOptions": { + "concept": "", + "rendering": "radio", + "answers": [ + { + "concept": "163733AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Not at all" + }, + { + "concept": "163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Several days " + }, + { + "concept": "163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "More than half the days" + }, + { + "concept": "163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Nearly every day" + } + ] + } + }, + { + "label": "3. Trouble falling or staying asleep, or sleeping too much ", + "type": "control", + "id": "sleep", + "questionOptions": { + "concept": "", + "rendering": "radio", + "answers": [ + { + "concept": "163733AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Not at all" + }, + { + "concept": "163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Several days " + }, + { + "concept": "163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "More than half the days" + }, + { + "concept": "163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Nearly every day" + } + ] + }, + "hide": { + "hideWhenExpression": "isEmpty(noInterest) || noInterest !== '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && noInterest !== '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && noInterest !== '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && depressed !== '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && depressed !== '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && depressed !== '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, + { + "label": "4. Feeling tired or having little energy", + "type": "control", + "id": "feelingTired", + "questionOptions": { + "concept": "", + "rendering": "radio", + "answers": [ + { + "concept": "163733AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Not at all" + }, + { + "concept": "163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Several days " + }, + { + "concept": "163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "More than half the days" + }, + { + "concept": "163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Nearly every day" + } + ] + }, + "hide": { + "hideWhenExpression": "isEmpty(noInterest) || noInterest !== '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && noInterest !== '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && noInterest !== '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && depressed !== '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && depressed !== '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && depressed !== '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, + { + "label": "5. Poor appetite or overeating", + "type": "control", + "id": "poorAppetite", + "questionOptions": { + "concept": "", + "rendering": "radio", + "answers": [ + { + "concept": "163733AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Not at all" + }, + { + "concept": "163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Several days " + }, + { + "concept": "163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "More than half the days" + }, + { + "concept": "163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Nearly every day" + } + ] + }, + "hide": { + "hideWhenExpression": "isEmpty(noInterest) || noInterest !== '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && noInterest !== '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && noInterest !== '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && depressed !== '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && depressed !== '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && depressed !== '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, + { + "label": "6. Feeling bad about yourself, or that you are a failure,or that you have let yourself or your family down", + "type": "control", + "id": "feelingBad", + "questionOptions": { + "concept": "", + "rendering": "radio", + "answers": [ + { + "concept": "163733AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Not at all" + }, + { + "concept": "163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Several days " + }, + { + "concept": "163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "More than half the days" + }, + { + "concept": "163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Nearly every day" + } + ] + }, + "hide": { + "hideWhenExpression": "isEmpty(noInterest) || noInterest !== '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && noInterest !== '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && noInterest !== '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && depressed !== '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && depressed !== '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && depressed !== '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, + { + "label": "7. Trouble concentrating on things (linked with patient usual activities,such as reading the newspaper or listening to a radio programme)", + "type": "control", + "id": "troubled", + "questionOptions": { + "concept": "", + "rendering": "radio", + "answers": [ + { + "concept": "163733AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Not at all" + }, + { + "concept": "163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Several days " + }, + { + "concept": "163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "More than half the days" + }, + { + "concept": "163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Nearly every day" + } + ] + }, + "hide": { + "hideWhenExpression": "isEmpty(noInterest) || noInterest !== '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && noInterest !== '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && noInterest !== '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && depressed !== '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && depressed !== '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && depressed !== '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, + { + "label": "8. Moving or speaking so slowly that other people could have noticed.Or the opposite, being so fidgety or restless that you have been moving around a lot more than usual", + "type": "control", + "id": "speakingSlowly", + "questionOptions": { + "concept": "", + "rendering": "radio", + "answers": [ + { + "concept": "163733AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Not at all" + }, + { + "concept": "163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Several days " + }, + { + "concept": "163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "More than half the days" + }, + { + "concept": "163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Nearly every day" + } + ] + }, + "hide": { + "hideWhenExpression": "isEmpty(noInterest) || noInterest !== '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && noInterest !== '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && noInterest !== '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && depressed !== '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && depressed !== '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && depressed !== '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, + { + "label": "9. Thoughts that you would be better off dead or of hurting yourself in some way", + "type": "control", + "id": "betterDead", + "questionOptions": { + "concept": "", + "rendering": "radio", + "answers": [ + { + "concept": "163733AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Not at all" + }, + { + "concept": "163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Several days " + }, + { + "concept": "163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "More than half the days" + }, + { + "concept": "163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Nearly every day" + } + ] + }, + "hide": { + "hideWhenExpression": "isEmpty(noInterest) || noInterest !== '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && noInterest !== '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && noInterest !== '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && depressed !== '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && depressed !== '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && depressed !== '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, + { + "label": "Anxiety score rating:", + "id": "anxietyScore", + "questionOptions": { + "concept": "", + "rendering": "text", + "calculate": { + "calculateExpression": "(String(noInterest) === '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : String(noInterest) === '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 2 : String(noInterest) === '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : 0) + (String(depressed) === '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : String(depressed) === '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 2 : String(depressed)==='163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : 0) + (String(sleep) === '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : String(sleep) === '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 2 : String(sleep) === '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : 0) + (String(feelingTired) === '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : String(feelingTired) === '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 2 : String(feelingTired) === '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : 0) +(String(poorAppetite) === '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : String(poorAppetite) === '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 2 : String(poorAppetite) === '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : 0) + (String(troubled) === '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : String(troubled) === '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 2 : String(troubled) === '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : 0) + (String(feelingBad) === '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : String(feelingBad) === '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 2 : String(feelingBad) === '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : 0) + (String(speakingSlowly) === '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : String(speakingSlowly) === '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 2 : String(speakingSlowly) === '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : 0) + (String(betterDead) === '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : String(betterDead) === '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 2 : String(betterDead) === '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : 0)" + } + }, + "type": "control", + "validators": [], + "hide": { + "hideWhenExpression": "isEmpty(myValue) || !isEmpty(myValue)" + } + } + ] + }, + { + "label": "Depression Assessment Score", + "isExpanded": "true", + "questions": [ + { + "label": "Depression Assessment Score", + "type": "obs", + "id": "assessmentOutcome", + "questionOptions": { + "concept": "33bb96f8-e009-482a-ba68-212281780fb8", + "rendering": "radio", + "answers": [ + { + "concept": "1115AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Depression unlikely" + }, + { + "concept": "157790AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Mild depression" + }, + { + "concept": "134011AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Moderate depression" + }, + { + "concept": "134017AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Moderate severe depression" + }, + { + "concept": "126627AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Severe depression" + } + ], + "calculate": { + "calculateExpression": "(!isEmpty(noInterest) || !isEmpty(depressed) || !isEmpty(speakingSlowly) || !isEmpty(betterDead) || !isEmpty(sleep) || !isEmpty(feelingTired) || !isEmpty(poorAppetite)|| !isEmpty(troubled)|| !isEmpty(feelingBad) ) && parseInt(anxietyScore) < 5 ? '1115AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' : ( parseInt(anxietyScore) > 4 && parseInt(anxietyScore) < 10 ) ? '157790AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' : ( parseInt(anxietyScore) > 9 && parseInt(anxietyScore) < 15 ) ? '134011AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA': ( parseInt(anxietyScore) > 14 && parseInt(anxietyScore) < 20 ) ? '134017AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA': parseInt(anxietyScore) >= 19 ? '126627AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' : ''" + } + } + } + ] + }, + { + "label": "Psychological First Aid", + "isExpanded": "true", + "questions": [ + { + "label": "Psychological First Aid (PFA) offered?", + "type": "obs", + "required": false, + "id": "psychologicalFirstAidOffered", + "questionOptions": { + "rendering": "radio", + "concept": "63da4194-a26a-4aa5-b5d5-4125b4822cf7", + "answers": [ + { + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" + }, + { + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" + } + ] + }, + "validators": [], + "hide": { + "hideWhenExpression": "isEmpty(assessmentOutcome) || assessmentOutcome === '1115AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + } + ] + }, + { + "label": "Referrals", + "isExpanded": "true", + "questions": [ + { + "label": "Client referred? ", + "type": "obs", + "required": false, + "id": "clientReferred", + "questionOptions": { + "rendering": "radio", + "concept": "166656AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "conceptMappings": [ + { + "relationship": "NARROWER-THAN", + "type": "SNOMED CT", + "value": "309018005" + }, + { + "relationship": "SAME-AS", + "type": "KenyaEMR", + "value": "165093" + }, + { + "relationship": "SAME-AS", + "type": "CIEL", + "value": "166656" + } + ], + "answers": [ + { + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" + }, + { + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" + } + ] + }, + "validators": [], + "hide": { + "hideWhenExpression": "isEmpty(assessmentOutcome) || assessmentOutcome === '1115AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || assessmentOutcome === '157790AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || psychologicalFirstAidOffered !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, + { + "label": "Facility referred?", + "type": "obs", + "required": true, + "id": "facilityReffered", + "questionOptions": { + "rendering": "radio", + "concept": "166636AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "conceptMappings": [], + "answers": [ + { + "concept": "163266AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "This facility" + }, + { + "concept": "164407AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Other health facility" + } + ] + }, + "validators": [], + "hide": { + "hideWhenExpression": "isEmpty(clientReferred) || clientReferred !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, + { + "label": "Other Facility:", + "type": "obs", + "id": "otherfacility", + "questionOptions": { + "concept": "162724AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "text" + }, + "hide": { + "hideWhenExpression": "isEmpty(facilityReffered) || facilityReffered !== '164407AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, + { + "label": "This Facility:", + "type": "obs", + "id": "thisfacility", + "questionOptions": { + "concept": "162724AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "text", + "calculate": { + "calculateExpression": "facilityReffered === '163266AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && userLocation.display" + } + }, + "hide": { + "hideWhenExpression": "isEmpty(facilityReffered) || facilityReffered !== '163266AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, + { + "label": "Service referred for?", + "type": "obs", + "required": true, + "id": "serviceReferredFor", + "questionOptions": { + "rendering": "checkbox", + "concept": "d7a3441d-6aeb-49be-b7d6-b2a3bb39e78d", + "conceptMappings": [], + "answers": [ + { + "concept": "167061AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Psychiatric service" + }, + { + "concept": "163312AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Psychotherapy service " + } + ] + }, + "validators": [], + "hide": { + "hideWhenExpression": "isEmpty(clientReferred) || clientReferred !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } + } ] - } + } + ] + } ], "processor": "EncounterFormProcessor", - "referencedForms": [] -} \ No newline at end of file + "referencedForms": [], + "encounterType": "899d64ad-be13-4071-a879-2153847206b7" + } \ No newline at end of file diff --git a/configuration/ampathforms/HIV_Enrollment.json b/configuration/ampathforms/HIV_Enrollment.json index fb37cf3b..7242cca8 100644 --- a/configuration/ampathforms/HIV_Enrollment.json +++ b/configuration/ampathforms/HIV_Enrollment.json @@ -1233,62 +1233,6 @@ "hide": { "hideWhenExpression": "patientType === '4bd29eed-e486-426d-a2b6-7e5bb75319f6' || patientType === '159833AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || sex !== 'F'" } - }, - { - "label": "Weight (Kg)", - "type": "obs", - "id": "weight", - "required": "true", - "questionOptions": { - "concept": "5089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "number", - "min": "0" - }, - "hide": { - "hideWhenExpression": "patientType === '4bd29eed-e486-426d-a2b6-7e5bb75319f6' || patientType === '159833AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - } - }, - { - "label": "Height(cm)", - "type": "obs", - "id": "height", - "required": "true", - "questionOptions": { - "concept": "5090AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "number", - "min": "0" - }, - "hide": { - "hideWhenExpression": "patientType === '4bd29eed-e486-426d-a2b6-7e5bb75319f6' || patientType === '159833AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - } - }, - { - "label": "BMI", - "type": "obs", - "id": "bodyMassIndex", - "questionOptions": { - "rendering": "number", - "concept": "1342AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "calculate": { - "calculateExpression": "calcBMI(height,weight)" - } - }, - "hide": { - "hideWhenExpression": "patientType === '4bd29eed-e486-426d-a2b6-7e5bb75319f6' || patientType === '159833AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - } - }, - { - "label": "MUAC", - "type": "obs", - "id": "muac", - "questionOptions": { - "concept": "1343AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "number", - "min": "0" - }, - "hide": { - "hideWhenExpression": "pregnant !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || patientType === '4bd29eed-e486-426d-a2b6-7e5bb75319f6' || patientType === '159833AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" - } } ] }, @@ -1371,12 +1315,12 @@ "hide": { "hideWhenExpression": "isEmpty(patientType) || age > 18 || patientType === '4bd29eed-e486-426d-a2b6-7e5bb75319f6' || patientType === '159833AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" }, - "validators":[ + "validators": [ { "type": "js_expression", "failsWhenExpression": "myValue && doesNotMatchExpression('^0([0-9](?:(?:[0-9][0-9])|(?:0[0-8])|(4[0-1]))[0-9]{6})$',myValue)", "message": "Please enter the telephone number in the correct format e.g 0720200200 thats is 10 digits" - } + } ] }, { diff --git a/configuration/ampathforms/MAT_Initial_Registration_Form.json b/configuration/ampathforms/MAT_Initial_Registration_Form.json index 5e56367f..02da6ae9 100644 --- a/configuration/ampathforms/MAT_Initial_Registration_Form.json +++ b/configuration/ampathforms/MAT_Initial_Registration_Form.json @@ -4,7 +4,6 @@ "uuid": "9a9cadd7-fba1-4a24-94aa-43edfbecf8d9", "published": true, "retired": false, - "processor": "EncounterFormProcessor", "referencedForms": [], "version": "1.0", "encounter": "MAT Initial registration Encounter", @@ -74,7 +73,7 @@ }, "validators": [], "hide": { - "hideWhenExpression": "clientType !== '164180AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || clientType !== '160530AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' " + "hideWhenExpression": "clientType !== '164180AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && clientType !== '160530AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' " }, "id": "matNewID" }, @@ -102,11 +101,11 @@ "label": "CSO" }, { - "concept": "167667AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "334d4b72-26fb-442e-a148-a2cd469f5796", "label": "Criminal Justice System" }, { - "concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Other" } ] @@ -123,7 +122,7 @@ }, "validators": [], "hide": { - "hideWhenExpression": "isEmpty(referralType) || referralType !== '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "hideWhenExpression": "isEmpty(referralType) || referralType !== '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } }, { @@ -158,23 +157,23 @@ "concept": "160112AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "answers": [ { - "concept": "1527AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "1527AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Parent" }, { - "concept": "5617AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "5617AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Partner" }, { - "concept": "5618AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "5618AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Friend" }, { - "concept": "1555AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "1555AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Outreach worker" }, { - "concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Other" } ] @@ -191,7 +190,7 @@ }, "validators": [], "hide": { - "hideWhenExpression": "isEmpty(accompBy) || accompBy !== '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "hideWhenExpression": "isEmpty(accompBy) || accompBy !== '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } }, { @@ -199,7 +198,7 @@ "type": "obs", "id": "workerName", "questionOptions": { - "concept": "161141AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "160638AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "text" } }, @@ -208,7 +207,7 @@ "type": "obs", "id": "phoneNumber", "questionOptions": { - "concept": "1631520AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "text" } }, @@ -217,7 +216,7 @@ "type": "obs", "id": "supporterName", "questionOptions": { - "concept": "161642AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "160638AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "text" } }, @@ -226,7 +225,7 @@ "type": "obs", "id": "cellPhoneNo", "questionOptions": { - "concept": "159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "163152AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "text" } }, @@ -235,7 +234,7 @@ "type": "obs", "id": "relationTreatment", "questionOptions": { - "concept": "159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "160638AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "text" } }, @@ -244,7 +243,7 @@ "type": "obs", "id": "serviceProvName", "questionOptions": { - "concept": "1473AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "concept": "1473AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "text" } }, @@ -255,11 +254,18 @@ "questionOptions": { "concept": "163181AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "rendering": "date" - } + }, + "validators": [ + { + "type": "date", + "allowFutureDates": "false" + } + ] } ] } ] } - ] -} + ], + "processor": "EncounterFormProcessor" +} \ No newline at end of file diff --git a/configuration/ampathforms/PrEP_Initial.json b/configuration/ampathforms/PrEP_Initial.json index 1f573de7..02620056 100644 --- a/configuration/ampathforms/PrEP_Initial.json +++ b/configuration/ampathforms/PrEP_Initial.json @@ -46,6 +46,36 @@ } ] }, + { + "label": "Partner HIV Status", + "isExpanded": "true", + "questions": [ + { + "label": "What is the partner HIV status?", + "type": "obs", + "questionOptions": { + "concept": "162216AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "radio", + "answers": [ + { + "concept": "703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Positive" + }, + { + "concept": "664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Negative" + }, + { + "concept": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Unknown" + } + ] + }, + "validators": [], + "id": "partnerStatus" + } + ] + }, { "label": "HIV Positive Partner Profile", "type": "obsGroup", @@ -57,101 +87,114 @@ "id": "hivPositivePartner", "validators": [], "questions": [ - { - "label": "HIV+ partner CCC Number", - "type": "obs", - "questionInfo": "", - "id": "pArtnersCcc", - "default": "", - "questionOptions": { - "concept": "162053AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "string" - }, - "validators": [ - { - "type": "js_expression", - "failsWhenExpression": "doesNotMatchExpression('^\\\\\\d{10}$', pArtnersCcc)", - "message": "Please provide the correct format for the UPN ie. mflCode+number eg.1190200062" - } - ] + { + "label": "HIV+ partner CCC Number", + "type": "obs", + "id": "partnersCcc", + "questionOptions": { + "concept": "162053AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "number" }, - { - "label": "CCC number/Enrollment status unknown", - "type": "obs", - "id": "ccc-enrollment-status", - "questionOptions": { - "concept": "159812AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "checkbox", - "answers": [ - { - "concept": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "CCC number/Enrollment status unknown" - } - ] + "validators": [], + "hide": { + "hideWhenExpression": "partnerStatus !=='703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, + { + "label": "CCC number/Enrollment status unknown", + "type": "obs", + "id": "cccEnrollmentStatus", + "questionOptions": { + "concept": "159812AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "checkbox", + "answers": [ + { + "concept": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "CCC number/Enrollment status unknown", + "disableWhenExpression": "myValue === '162053AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } - }, + ] + }, + "hide": { + "hideWhenExpression": "partnerStatus !=='703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, + { + "label": "HIV+ partners ART start date", + "type": "obs", + "id": "artStartDate", + "questionOptions": { + "concept": "159599AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "date" + }, + "validators": [ { - "label": "HIV+ partners ART start date", - "type": "obs", - "id": "artStartDate", - "questionOptions": { - "concept": "159599AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "date" + "type": "date", + "allowFutureDates": "false" + } + ], + "hide": { + "hideWhenExpression": "partnerStatus !=='703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, + { + "label": "Time known to be HIV- serodiscordant (Year(s)", + "type": "obs", + "id": "years", + "questionOptions": { + "concept": "164393AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "number" + }, + "hide": { + "hideWhenExpression": "partnerStatus !=='703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, + { + "label": "Month(s)", + "type": "obs", + "id": "months", + "questionOptions": { + "concept": "4978edd0-75ab-40a9-9c07-d4bbeb43fed5", + "rendering": "number" + }, + "hide": { + "hideWhenExpression": "partnerStatus !=='703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, + { + "label": "Sex without a condom with a HIV+ partner in the past 30 days", + "type": "obs", + "id": "sexWithoutCondom", + "questionOptions": { + "concept": "6cb0434b-baa2-4862-aec8-9c468a7340ba", + "rendering": "radio", + "answers": [ + { + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" }, - "validators": [ - { - "type": "date", - "allowFutureDates": "false" - } - ] - }, - { - "label": "Time known to be HIV- serodiscordant (Year(s)", - "type": "obs", - "id": "years", - "questionOptions": { - "concept": "164393AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "number" - } - }, - { - "label": "Month(s)", - "type": "obs", - "id": "months", - "questionOptions": { - "concept": "4978edd0-75ab-40a9-9c07-d4bbeb43fed5", - "rendering": "number" - } - }, - { - "label": "Sex without a condom with a HIV+ partner in the past 30 days", - "type": "obs", - "id": "sex-without-condom", - "questionOptions": { - "concept": "6cb0434b-baa2-4862-aec8-9c468a7340ba", - "rendering": "radio", - "answers": [ - { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" - }, - { - "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No" - } - - ] - } - }, - { - "label": "Number of living children with HIV+ partner", - "type": "obs", - "id": "number-of-children", - "questionOptions": { - "concept": "1825AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "number" + { + "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No" } - } + ] + }, + "hide": { + "hideWhenExpression": "partnerStatus !=='703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, + { + "label": "Number of living children with HIV+ partner", + "type": "obs", + "id": "numberOfChildren", + "questionOptions": { + "concept": "1825AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "rendering": "number" + }, + "hide": { + "hideWhenExpression": "partnerStatus !=='703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + } ] }, { @@ -168,14 +211,13 @@ "rendering": "radio", "answers": [ { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" }, { "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "No" } - ] } }, @@ -284,8 +326,8 @@ "rendering": "radio", "answers": [ { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" }, { "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", @@ -312,8 +354,8 @@ "rendering": "radio", "answers": [ { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" }, { "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", @@ -338,8 +380,8 @@ "label": "Unknown" }, { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" }, { "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", @@ -360,8 +402,8 @@ "rendering": "radio", "answers": [ { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" }, { "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", @@ -414,7 +456,7 @@ "type": "js_expression", "failsWhenExpression": "!isEmpty(myValue) && moment(myValue).isBefore(moment(birthdate), 'day')", "message": "LMP date should not be before the date of birth." - } + } ], "hide": { "hideWhenExpression": "menoPausE ==='134346AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || sex !== 'F'" @@ -469,8 +511,8 @@ "rendering": "radio", "answers": [ { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" }, { "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", @@ -491,8 +533,8 @@ "rendering": "radio", "answers": [ { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" }, { "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", @@ -513,8 +555,8 @@ "rendering": "radio", "answers": [ { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" }, { "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", @@ -626,8 +668,8 @@ "rendering": "radio", "answers": [ { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" }, { "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", @@ -1582,8 +1624,8 @@ "rendering": "radio", "answers": [ { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" }, { "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", @@ -1606,8 +1648,8 @@ "concept": "aba5a106-719b-46f3-9199-224f3881a738", "answers": [ { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" }, { "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", @@ -1626,8 +1668,8 @@ "concept": "906ac5d0-566a-466e-93e4-2f23b4fb319b", "answers": [ { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" }, { "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", @@ -1685,32 +1727,32 @@ "label": "Shared with others" }, { - "concept": "1064AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "No perceived risk" + "concept": "1064AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "No perceived risk" }, { - "concept": "160588AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Pill burden" + "concept": "160588AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Pill burden" }, { - "concept": "160584AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Lost/out of pills" + "concept": "160584AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Lost/out of pills" }, { - "concept": "1056AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Separated from HIV+" + "concept": "1056AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Separated from HIV+" }, { - "concept": "159935AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Side effects" + "concept": "159935AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Side effects" }, { - "concept": "160587AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Forgot" + "concept": "160587AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Forgot" }, { - "concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Other-Specify" + "concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Other-Specify" } ] }, @@ -1744,19 +1786,23 @@ }, { "concept": "138571AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Confirmed HIV+" + "label": "Confirmed HIV+", + "disableWhenExpression": "myValue === '1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" }, { "concept": "155589AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Renal impairment" + "label": "Renal impairment", + "disableWhenExpression": "myValue === '1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" }, { "concept": "127750AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Not willing" + "label": "Not willing", + "disableWhenExpression": "myValue === '1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" }, { "concept": "39fa4212-1210-49e0-ad62-d01090c1cf67", - "label": "Less than 30ks and under 15 yrs" + "label": "Less than 30ks and under 15 yrs", + "disableWhenExpression": "myValue === '1107AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } ] } @@ -1771,6 +1817,10 @@ "calculateExpression": "String(hivSigns) === '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? '1260AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' : ''" }, "answers": [ + { + "concept": "981AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Start" + }, { "concept": "1257AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "label": "Continue" @@ -1853,8 +1903,8 @@ "rendering": "radio", "answers": [ { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" }, { "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", @@ -1893,7 +1943,7 @@ ] }, "hide": { - "hideWhenExpression": "prescribedPrepToday !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "hideWhenExpression": "prescribedPrepToday !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } }, { @@ -1943,8 +1993,8 @@ "rendering": "radio", "answers": [ { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" }, { "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", @@ -1981,8 +2031,8 @@ "concept": "7bfe041e-e921-4798-b9fd-a8f222a56be2", "answers": [ { - "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "label": "Yes" + "concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", + "label": "Yes" }, { "concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", @@ -2008,10 +2058,10 @@ "type": "js_expression", "failsWhenExpression": "(new moment(encDate)).isAfter((new moment(myValue)), 'day') || (new moment(encDate)).isSame((new moment(myValue)), 'day')", "message": "Return to clinic date should be greater than the encounter date." - } + } ], "hide": { - "hideWhenExpression": "isEmpty(nextAppClient) || nextAppClient !== '1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "hideWhenExpression": "isEmpty(nextAppClient) || nextAppClient !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } }, { @@ -2033,7 +2083,7 @@ ] }, "hide": { - "hideWhenExpression": "isEmpty(nextAppClient) || nextAppClient === '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + "hideWhenExpression": "isEmpty(nextAppClient) || nextAppClient === '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" } } ] @@ -2060,4 +2110,4 @@ "processor": "EncounterFormProcessor", "referencedForms": [], "encounterType": "706a8b12-c4ce-40e4-aec3-258b989bf6d3" - } + } \ No newline at end of file