Skip to content

Commit

Permalink
101 update not sure selection options (#102)
Browse files Browse the repository at this point in the history
* feat: updated configs with not-sure handling

* fix: removed periods from keys due to angular forms
  • Loading branch information
nicoalee authored Oct 26, 2023
1 parent 6e8a5b6 commit 30da4d6
Showing 1 changed file with 35 additions and 35 deletions.
70 changes: 35 additions & 35 deletions populate-scripts/update-db.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9968,7 +9968,7 @@ UPDATE tasks set
"fr": "Je m’intéresse plus au présent qu’au futur."
},
"validation":{
"required":true
"required": true
},
"key": "I am more interested in the present than the future",
"options": [
Expand Down Expand Up @@ -10010,9 +10010,9 @@ UPDATE tasks set
"fr": "Sélectionnez « Rarement/Jamais ». Ceci sert à vérifier votre niveau d’attention!"
},
"validation":{
"required":true
"required": true
},
"key": "attentionCheck-Select the first option if you are paying attention.",
"key": "attentionCheck-Select rarely/never if you are paying attention",
"options": [
{
"label": {
Expand Down Expand Up @@ -12933,7 +12933,7 @@ UPDATE tasks set
"validation": {
"required":true
},
"key": "I would find pleasure in small things, e.g. bright sunny day, a telephone call from a friend",
"key": "I would find pleasure in small things, eg bright sunny day, a telephone call from a friend",
"options": [
{
"label": {
Expand Down Expand Up @@ -13182,7 +13182,7 @@ UPDATE tasks set
"validation": {
"required":true
},
"key": "How much DIFFICULTY do you currently have keeping track of time (e.g. using a clock)",
"key": "How much DIFFICULTY do you currently have keeping track of time (eg using a clock)",
"options": [
{
"label": {
Expand Down Expand Up @@ -13280,7 +13280,7 @@ UPDATE tasks set
"validation": {
"required":true
},
"key": "How much DIFFICULTY do you currently have reading and following complex instructions (e.g. directions for a new medication)",
"key": "How much DIFFICULTY do you currently have reading and following complex instructions (eg directions for a new medication)",
"options": [
{
"label": {
Expand Down Expand Up @@ -13329,7 +13329,7 @@ UPDATE tasks set
"validation": {
"required":true
},
"key": "How much DIFFICULTY do you currently have handling an unfamiliar problem (e.g. getting the refrigerator fixed)",
"key": "How much DIFFICULTY do you currently have handling an unfamiliar problem (eg getting the refrigerator fixed)",
"options": [
{
"label": {
Expand Down Expand Up @@ -16352,7 +16352,7 @@ UPDATE tasks SET
"validation": {
"required": true
},
"key": "Gaining a new family member (i.e…. Birth, adoption, older adult moving in, etc.)",
"key": "Gaining a new family member (ie Birth, adoption, older adult moving in, etc)",
"options": [
{
"label": {
Expand Down Expand Up @@ -16408,7 +16408,7 @@ UPDATE tasks SET
"validation": {
"required": true
},
"key": "Major change in financial state (i.e. a lot worse or better off than usual)",
"key": "Major change in financial state (ie a lot worse or better off than usual)",
"options": [
{
"label": {
Expand Down Expand Up @@ -16492,7 +16492,7 @@ UPDATE tasks SET
"validation": {
"required": true
},
"key": "Major change in the number of arguments with spouse (i.e…. Either a lot more or a lot less than usual regarding child rearing, personal habits, etc.)",
"key": "Major change in the number of arguments with spouse (ie Either a lot more or a lot less than usual regarding child rearing, personal habits, etc)",
"options": [
{
"label": {
Expand Down Expand Up @@ -16576,7 +16576,7 @@ UPDATE tasks SET
"validation": {
"required": true
},
"key": "Major change in responsibilities at work (i.e. promotion, demotion, etc.)",
"key": "Major change in responsibilities at work (ie promotion, demotion, etc)",
"options": [
{
"label": {
Expand Down Expand Up @@ -16604,7 +16604,7 @@ UPDATE tasks SET
"validation": {
"required": true
},
"key": "Son or daughter leaving home (marriage, attending college, joined mil.)",
"key": "Son or daughter leaving home (marriage, attending college, joined mil)",
"options": [
{
"label": {
Expand Down Expand Up @@ -16744,7 +16744,7 @@ UPDATE tasks SET
"validation": {
"required": true
},
"key": "Major change in living condition (new home, remodeling, deterioration of neighborhood or home etc.)",
"key": "Major change in living condition (new home, remodeling, deterioration of neighborhood or home etc)",
"options": [
{
"label": {
Expand Down Expand Up @@ -16996,7 +16996,7 @@ UPDATE tasks SET
"validation": {
"required": true
},
"key": "Major change in social activities (clubs, movies, visiting, etc.)",
"key": "Major change in social activities (clubs, movies, visiting, etc)",
"options": [
{
"label": {
Expand Down Expand Up @@ -17024,7 +17024,7 @@ UPDATE tasks SET
"validation": {
"required": true
},
"key": "Taking on a loan (car, tv, freezer, etc.)",
"key": "Taking on a loan (car, tv, freezer, etc)",
"options": [
{
"label": {
Expand Down Expand Up @@ -30195,8 +30195,8 @@ UPDATE tasks SET
"fr": ""
},
"actions": {
"clearOtherOptionsWhenValueSelected": ["not-sure", "prefer-not-to-answer"],
"onlyDisableOtherOptionsWhenValueSelected": ["not-sure", "prefer-not-to-answer"]
"clearOtherOptionsWhenValueSelected": ["prefer-not-to-answer"],
"onlyDisableOtherOptionsWhenValueSelected": ["prefer-not-to-answer"]
},
"indent": 1,
"allowMultipleSelections": true,
Expand Down Expand Up @@ -30393,8 +30393,8 @@ UPDATE tasks SET
"required": true
},
"actions": {
"clearOtherOptionsWhenValueSelected": ["not-sure", "prefer-not-to-answer"],
"onlyDisableOtherOptionsWhenValueSelected": ["not-sure", "prefer-not-to-answer"]
"clearOtherOptionsWhenValueSelected": ["prefer-not-to-answer"],
"onlyDisableOtherOptionsWhenValueSelected": ["prefer-not-to-answer"]
},
"options": [
{
Expand Down Expand Up @@ -30492,9 +30492,9 @@ UPDATE tasks SET
"dependsOnKey": "12-how-i-learned-thinking-changes-are-symptoms-of-PD",
"doConditional": {
"onlyHideWhenEmpty": true,
"hideWhenValuesSelected": [ "not-sure", "prefer-not-to-answer" ],
"hideWhenValuesSelected": [ "prefer-not-to-answer" ],
"populateResultsBasedOnSelectedValues": {
"valuesToHide": []
"valuesToHide": ["not-sure"]
}
}
},
Expand Down Expand Up @@ -30890,8 +30890,8 @@ UPDATE tasks SET
"fr": ""
},
"actions": {
"onlyDisableOtherOptionsWhenValueSelected": ["prefer-not-to-answer", "not-sure"],
"clearOtherOptionsWhenValueSelected": ["prefer-not-to-answer", "not-sure"]
"onlyDisableOtherOptionsWhenValueSelected": ["prefer-not-to-answer"],
"clearOtherOptionsWhenValueSelected": ["prefer-not-to-answer"]
},
"allowMultipleSelections": true,
"options": [
Expand Down Expand Up @@ -31093,8 +31093,8 @@ UPDATE tasks SET
"required": true
},
"actions": {
"clearOtherOptionsWhenValueSelected": ["not-sure", "prefer-not-to-answer"],
"onlyDisableOtherOptionsWhenValueSelected": ["not-sure", "prefer-not-to-answer"]
"clearOtherOptionsWhenValueSelected": ["prefer-not-to-answer"],
"onlyDisableOtherOptionsWhenValueSelected": ["prefer-not-to-answer"]
},
"options": [
{
Expand Down Expand Up @@ -31192,9 +31192,9 @@ UPDATE tasks SET
"dependsOnKey": "19-how-i-learned-mood-changes-are-symptoms-of-PD",
"doConditional": {
"onlyHideWhenEmpty": true,
"hideWhenValuesSelected": [ "not-sure", "prefer-not-to-answer" ],
"hideWhenValuesSelected": [ "prefer-not-to-answer" ],
"populateResultsBasedOnSelectedValues": {
"valuesToHide": []
"valuesToHide": ["not-sure"]
}
}
},
Expand Down Expand Up @@ -32146,8 +32146,8 @@ UPDATE tasks SET
}
},
"actions": {
"clearOtherOptionsWhenValueSelected": ["not-sure", "prefer-not-to-answer"],
"onlyDisableOtherOptionsWhenValueSelected": ["not-sure", "prefer-not-to-answer"]
"clearOtherOptionsWhenValueSelected": ["prefer-not-to-answer"],
"onlyDisableOtherOptionsWhenValueSelected": ["prefer-not-to-answer"]
},
"options": [
{
Expand Down Expand Up @@ -32246,8 +32246,8 @@ UPDATE tasks SET
}
},
"actions": {
"clearOtherOptionsWhenValueSelected": ["not-sure", "prefer-not-to-answer"],
"onlyDisableOtherOptionsWhenValueSelected": ["not-sure", "prefer-not-to-answer"]
"clearOtherOptionsWhenValueSelected": ["prefer-not-to-answer"],
"onlyDisableOtherOptionsWhenValueSelected": ["prefer-not-to-answer"]
},
"options": [
{
Expand Down Expand Up @@ -32713,8 +32713,8 @@ UPDATE tasks SET
"required": true
},
"actions": {
"clearOtherOptionsWhenValueSelected": ["not-sure", "prefer-not-to-answer"],
"onlyDisableOtherOptionsWhenValueSelected": ["not-sure", "prefer-not-to-answer"]
"clearOtherOptionsWhenValueSelected": ["prefer-not-to-answer"],
"onlyDisableOtherOptionsWhenValueSelected": ["prefer-not-to-answer"]
},
"options": [
{
Expand Down Expand Up @@ -32843,8 +32843,8 @@ UPDATE tasks SET
}
},
"actions": {
"clearOtherOptionsWhenValueSelected": ["not-sure", "prefer-not-to-answer"],
"onlyDisableOtherOptionsWhenValueSelected": ["not-sure", "prefer-not-to-answer"]
"clearOtherOptionsWhenValueSelected": ["prefer-not-to-answer"],
"onlyDisableOtherOptionsWhenValueSelected": ["prefer-not-to-answer"]
},
"textContent": {
"en": "<b>What</b> is the value to you of discussing your cognitive and mood symptoms with your medical team? Please select all that apply:",
Expand Down

0 comments on commit 30da4d6

Please sign in to comment.