Skip to content

Commit

Permalink
Relaxing validation check for Year injecting drugs (#826)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErickSomie authored Oct 3, 2024
1 parent 8e6ec30 commit ce4f063
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions configuration/ampathforms/KVP_Contact.json
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@
"id": "nameBeach",
"required": "true",
"questionOptions": {
"concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"concept": "166491AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "text"
},
"hide": {
Expand Down Expand Up @@ -754,7 +754,7 @@
]
},
"hide": {
"hideWhenExpression": " maleKeyPop !== '105AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && femaleKeyPop !== '105AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && maleKeyPop !== '160666AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && femaleKeyPop !== '160666AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
"hideWhenExpression": " maleKeyPop !== '105AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && femaleKeyPop !== '105AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && maleKeyPop !== '642945a8-045a-4010-b3f3-bc50aaaab386' && femaleKeyPop !== '642945a8-045a-4010-b3f3-bc50aaaab386'"
}
},
{
Expand All @@ -769,18 +769,13 @@
{
"type": "number"
},
{
"type": "js_expression",
"failsWhenExpression": "moment(myValue).isBefore(moment(birthdate), 'day')",
"message": "Should not be less than the date of birth."
},
{
"type": "date",
"allowFutureDates": "false"
}
],
"hide": {
"hideWhenExpression": " maleKeyPop !== '105AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && femaleKeyPop !== '105AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && maleKeyPop !== '160666AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && femaleKeyPop !== '160666AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
"hideWhenExpression": " maleKeyPop !== '105AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && femaleKeyPop !== '105AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && maleKeyPop !== '642945a8-045a-4010-b3f3-bc50aaaab386' && femaleKeyPop !== '642945a8-045a-4010-b3f3-bc50aaaab386'"
}
},
{
Expand All @@ -791,7 +786,15 @@
"concept": "164393AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "number"
},
"validators": [],
"validators": [
{
"type": "number"
},
{
"type": "date",
"allowFutureDates": "false"
}
],
"hide": {
"hideWhenExpression": " maleKeyPop !== '162198AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' && femaleKeyPop !== '162198AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
}
Expand All @@ -805,6 +808,9 @@
"rendering": "date"
},
"validators": [
{
"type": "number"
},
{
"type": "date",
"allowFutureDates": "false"
Expand Down

0 comments on commit ce4f063

Please sign in to comment.