Skip to content

Commit

Permalink
adds edits to F01-MHPSS_Baseline form json
Browse files Browse the repository at this point in the history
  • Loading branch information
pirupius committed Jun 10, 2024
1 parent 7d87f0a commit accb57c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"@openmrs/esm-implementer-tools-app": "latest",
"@openmrs/esm-devtools-app": "latest",
"@openmrs/esm-form-builder-app": "next",
"@openmrs/esm-patient-forms-app": "next",
"@openmrs/esm-form-engine-app": "next"
},
"__comment": "Excluding modules some default modules to ensure we are using the specified versions.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1900,7 +1900,7 @@
"rendering": "text",
"concept": "MHOS score",
"calculate": {
"calculateExpression": "(String(did_you_have_problems_performing_daily_activities_such_as_cooking_bathing_or_chores_outside_the_household_) === '160215AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : String(did_you_have_problems_performing_daily_activities_such_as_cooking_bathing_or_chores_outside_the_household_) === 'f6a5ea2d-fc7d-4e9e-8dfd-dbbea05cd9a0' ? 2 : String(did_you_have_problems_performing_daily_activities_such_as_cooking_bathing_or_chores_outside_the_household_) === '164493AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : String(did_you_have_problems_performing_daily_activities_such_as_cooking_bathing_or_chores_outside_the_household_) === 'de7fa192-bf2e-4991-a81f-582c4b50ae51' ? 4 : String(did_you_have_problems_performing_daily_activities_such_as_cooking_bathing_or_chores_outside_the_household_) === '0f074510-1ff6-4924-bfef-effdcffd44f8' ? 5 : 0) + (String(did_you_have_problems_getting_along_with_family_or_friends_) === '160215AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : String(did_you_have_problems_getting_along_with_family_or_friends_) === 'f6a5ea2d-fc7d-4e9e-8dfd-dbbea05cd9a0' ? 2 : String(did_you_have_problems_getting_along_with_family_or_friends_) === '164493AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : String(did_you_have_problems_getting_along_with_family_or_friends_) === 'de7fa192-bf2e-4991-a81f-582c4b50ae51' ? 4 : String(did_you_have_problems_getting_along_with_family_or_friends_) === '0f074510-1ff6-4924-bfef-effdcffd44f8' ? 5 : 0) + (String(_did_you_have_any_problems_sleeping_such_as_sleeping_too_much_or_not_enough_) === '160215AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : String(_did_you_have_any_problems_sleeping_such_as_sleeping_too_much_or_not_enough_) === 'f6a5ea2d-fc7d-4e9e-8dfd-dbbea05cd9a0' ? 2 : String(_did_you_have_any_problems_sleeping_such_as_sleeping_too_much_or_not_enough_) === '164493AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : String(_did_you_have_any_problems_sleeping_such_as_sleeping_too_much_or_not_enough_) === 'de7fa192-bf2e-4991-a81f-582c4b50ae51' ? 4 : String(_did_you_have_any_problems_sleeping_such_as_sleeping_too_much_or_not_enough_) === '0f074510-1ff6-4924-bfef-effdcffd44f8' ? 5 : 0) + (String(have_you_been_bothered_by_unpleasant_thoughts_worries_or_ideas_) === '160215AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : String(have_you_been_bothered_by_unpleasant_thoughts_worries_or_ideas_) === 'f6a5ea2d-fc7d-4e9e-8dfd-dbbea05cd9a0' ? 2 : String(have_you_been_bothered_by_unpleasant_thoughts_worries_or_ideas_) === '164493AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : String(have_you_been_bothered_by_unpleasant_thoughts_worries_or_ideas_) === 'de7fa192-bf2e-4991-a81f-582c4b50ae51' ? 4 : String(have_you_been_bothered_by_unpleasant_thoughts_worries_or_ideas_) === '0f074510-1ff6-4924-bfef-effdcffd44f8' ? 5 : 0) + (String(have_you_felt_sad_or_nervous_) === '160215AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : String(have_you_felt_sad_or_nervous_) === 'f6a5ea2d-fc7d-4e9e-8dfd-dbbea05cd9a0' ? 2 : String(have_you_felt_sad_or_nervous_) === '164493AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : String(have_you_felt_sad_or_nervous_) === 'de7fa192-bf2e-4991-a81f-582c4b50ae51' ? 4 : String(have_you_felt_sad_or_nervous_) === '0f074510-1ff6-4924-bfef-effdcffd44f8' ? 5 : 0) + (String(have_you_been_suffering_) === '160215AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : String(have_you_been_suffering_) === 'f6a5ea2d-fc7d-4e9e-8dfd-dbbea05cd9a0' ? 2 : String(have_you_been_suffering_) === '164493AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : String(have_you_been_suffering_) === 'de7fa192-bf2e-4991-a81f-582c4b50ae51' ? 4 : String(have_you_been_suffering_) === '0f074510-1ff6-4924-bfef-effdcffd44f8' ? 5 : 0)"
"calculateExpression": "(did_you_have_problems_performing_daily_activities_such_as_cooking_bathing_or_chores_outside_the_household_ === '160215AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : did_you_have_problems_performing_daily_activities_such_as_cooking_bathing_or_chores_outside_the_household_ === 'f6a5ea2d-fc7d-4e9e-8dfd-dbbea05cd9a0' ? 2 : did_you_have_problems_performing_daily_activities_such_as_cooking_bathing_or_chores_outside_the_household_ === '164493AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : did_you_have_problems_performing_daily_activities_such_as_cooking_bathing_or_chores_outside_the_household_ === 'de7fa192-bf2e-4991-a81f-582c4b50ae51' ? 4 : did_you_have_problems_performing_daily_activities_such_as_cooking_bathing_or_chores_outside_the_household_ === '0f074510-1ff6-4924-bfef-effdcffd44f8' ? 5 : 0) + (did_you_have_problems_getting_along_with_family_or_friends_ === '160215AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : did_you_have_problems_getting_along_with_family_or_friends_ === 'f6a5ea2d-fc7d-4e9e-8dfd-dbbea05cd9a0' ? 2 : did_you_have_problems_getting_along_with_family_or_friends_ === '164493AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : did_you_have_problems_getting_along_with_family_or_friends_ === 'de7fa192-bf2e-4991-a81f-582c4b50ae51' ? 4 : did_you_have_problems_getting_along_with_family_or_friends_ === '0f074510-1ff6-4924-bfef-effdcffd44f8' ? 5 : 0) + (_did_you_have_any_problems_sleeping_such_as_sleeping_too_much_or_not_enough_ === '160215AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : _did_you_have_any_problems_sleeping_such_as_sleeping_too_much_or_not_enough_ === 'f6a5ea2d-fc7d-4e9e-8dfd-dbbea05cd9a0' ? 2 : _did_you_have_any_problems_sleeping_such_as_sleeping_too_much_or_not_enough_ === '164493AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : _did_you_have_any_problems_sleeping_such_as_sleeping_too_much_or_not_enough_ === 'de7fa192-bf2e-4991-a81f-582c4b50ae51' ? 4 : _did_you_have_any_problems_sleeping_such_as_sleeping_too_much_or_not_enough_ === '0f074510-1ff6-4924-bfef-effdcffd44f8' ? 5 : 0) + (have_you_been_bothered_by_unpleasant_thoughts_worries_or_ideas_ === '160215AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : have_you_been_bothered_by_unpleasant_thoughts_worries_or_ideas_ === 'f6a5ea2d-fc7d-4e9e-8dfd-dbbea05cd9a0' ? 2 : have_you_been_bothered_by_unpleasant_thoughts_worries_or_ideas_ === '164493AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : have_you_been_bothered_by_unpleasant_thoughts_worries_or_ideas_ === 'de7fa192-bf2e-4991-a81f-582c4b50ae51' ? 4 : have_you_been_bothered_by_unpleasant_thoughts_worries_or_ideas_ === '0f074510-1ff6-4924-bfef-effdcffd44f8' ? 5 : 0) + (have_you_felt_sad_or_nervous_ === '160215AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : have_you_felt_sad_or_nervous_ === 'f6a5ea2d-fc7d-4e9e-8dfd-dbbea05cd9a0' ? 2 : have_you_felt_sad_or_nervous_ === '164493AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : have_you_felt_sad_or_nervous_ === 'de7fa192-bf2e-4991-a81f-582c4b50ae51' ? 4 : have_you_felt_sad_or_nervous_ === '0f074510-1ff6-4924-bfef-effdcffd44f8' ? 5 : 0) + (have_you_been_suffering_ === '160215AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : have_you_been_suffering_ === 'f6a5ea2d-fc7d-4e9e-8dfd-dbbea05cd9a0' ? 2 : have_you_been_suffering_ === '164493AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : have_you_been_suffering_ === 'de7fa192-bf2e-4991-a81f-582c4b50ae51' ? 4 : have_you_been_suffering_ === '0f074510-1ff6-4924-bfef-effdcffd44f8' ? 5 : 0)"
}
},
"validators": []
Expand All @@ -1914,7 +1914,7 @@
{
"label": "1. Little interest or pleasure in doing things",
"type": "control",
"id": "noInterest",
"id": "no_interest",
"questionOptions": {
"concept": "",
"rendering": "radio",
Expand Down Expand Up @@ -2161,7 +2161,7 @@
"concept": "Anxiety score rating",
"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)"
"calculateExpression": "(no_interest === '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : no_interest === '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 2 : no_interest === '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : 0) + (depressed === '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : depressed === '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 2 : depressed==='163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : 0) + (sleep === '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : sleep === '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 2 : sleep === '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : 0) + (feelingTired === '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : feelingTired === '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 2 : feelingTired === '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : 0) +(poorAppetite === '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : poorAppetite === '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 2 : poorAppetite === '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : 0) + (troubled === '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : troubled === '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 2 : troubled === '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : 0) + (feelingBad === '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : feelingBad === '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 2 : feelingBad === '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : 0) + (speakingSlowly === '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : speakingSlowly === '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 2 : speakingSlowly === '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : 0) + (betterDead === '163734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 1 : betterDead === '163735AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 2 : betterDead === '163736AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' ? 3 : 0)"
}
}
}
Expand Down Expand Up @@ -2562,7 +2562,7 @@
"label": "8. Has the patient experienced an act of aggression or violence?",
"type": "obs",
"required": false,
"id": "8_has_the_patient_experienced_an_act_of_aggression_or_violence_",
"id": "has_the_patient_experienced_an_act_of_aggression_or_violence",
"questionOptions": {
"rendering": "boolean",
"concept": "Has the patient experienced an act of aggression or violence?",
Expand Down

0 comments on commit accb57c

Please sign in to comment.