Skip to content

Commit

Permalink
KHP3-3733 KP Tracing - Peer Tracing verification (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
CynthiaKamau authored Jul 26, 2023
1 parent 2701eb0 commit c2f174e
Showing 1 changed file with 38 additions and 18 deletions.
56 changes: 38 additions & 18 deletions configuration/ampathforms/Peer_Tracking.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@
"concept": "d83bca86-6734-4b26-b67c-c2133948fbac",
"rendering": "radio",
"answers": [
{
"concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "No"
},
{
"concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Yes"
},
{
"concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "No"
}
]
}
Expand All @@ -86,7 +86,10 @@
},
"id": "attemptNumber",
"validators": [],
"required": "Yes"
"required": "Yes",
"hide": {
"hideWhenExpression": "trackingAttempted !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
}
},
{
"label": "Date",
Expand All @@ -96,8 +99,16 @@
"concept": "160753AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
"id": "firstAttempt",
"validators": [],
"required": "Yes"
"validators": [
{
"type": "date",
"allowFutureDates": "false"
}
],
"required": "Yes",
"hide": {
"hideWhenExpression": "trackingAttempted !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
}
},
{
"label": "Tracing type",
Expand All @@ -118,7 +129,10 @@
},
"id": "firstTracingType",
"validators": [],
"required": "Yes"
"required": "Yes",
"hide": {
"hideWhenExpression": "trackingAttempted !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
}
},
{
"label": "Tracing outcome",
Expand All @@ -143,7 +157,10 @@
},
"id": "firstTracingOutcome",
"validators": [],
"required": "Yes"
"required": "Yes",
"hide": {
"hideWhenExpression": "trackingAttempted !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
}
},
{
"label": "Was the final outcome reached?",
Expand All @@ -152,19 +169,22 @@
"rendering": "radio",
"concept": "163725AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"answers": [
{
"concept": "163339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "No"
},
{
"concept": "1267AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Yes"
},
{
"concept": "163339AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "No"
}
]
},
"id": "finalOutcome",
"validators": [],
"required": "Yes"
"required": "Yes",
"hide": {
"hideWhenExpression": "trackingAttempted !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
}
}
]
},
Expand Down Expand Up @@ -229,7 +249,7 @@
},
"validators": [],
"hide": {
"hideWhenExpression": "tracingOutcomeStatus !== 'ddac1f1b-a5c7-4c62-b034-5d0b97197fd5'"
"hideWhenExpression": "tracingOutcomeStatus !== 'ddac1f1b-a5c7-4c62-b034-5d0b97197fd5' || trackingAttempted !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
}
},
{
Expand Down Expand Up @@ -291,7 +311,7 @@
}
},
{
"label": "Source of information",
"label": "Other Source of information",
"type": "obs",
"id": "otherInformant",
"questionOptions": {
Expand All @@ -300,7 +320,7 @@
},
"validators": [],
"hide": {
"hideWhenExpression": "sourceInformation !== '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
"hideWhenExpression": "sourceInformation !== '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || trackingAttempted !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
}
}
]
Expand Down Expand Up @@ -354,7 +374,7 @@
},
"validators": [],
"hide": {
"hideWhenExpression": "trackingNotAttempted !== '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
"hideWhenExpression": "trackingNotAttempted !== '5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || trackingAttempted !== '1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
}
}
]
Expand Down

0 comments on commit c2f174e

Please sign in to comment.