Skip to content

Commit

Permalink
KHP3-3717: Complete validation CWC follow up form schema (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldkibet authored Jul 18, 2023
1 parent 475ed5f commit b4d70b0
Showing 1 changed file with 43 additions and 28 deletions.
71 changes: 43 additions & 28 deletions configuration/ampathforms/CWC_Follow_Up.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@
"answers": [
{
"concept": "160552AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Nutrion services"
"label": "Nutrition services"
},
{
"concept": "161624AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Rehabilitaon services"
"label": "Rehabilitation services"
},
{
"concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
Expand Down Expand Up @@ -148,9 +148,9 @@
{
"label": "Specify :",
"type": "obs",
"id": "otherspecifyfollowup",
"id": "primaryCaregiverOther",
"questionOptions": {
"concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"concept": "167214AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "text"
},
"hide": {
Expand Down Expand Up @@ -372,14 +372,36 @@
{
"concept": "80586AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "NEVIRAPINE (NVP)"
},
}
]
}
},
{
"label": "Is patient reported currently on PCP prophylaxis?",
"type": "obs",
"id": "currentlyOnPCPProphylaxis",
"questionOptions": {
"concept": "1109AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "checkbox",
"answers": [
{
"concept": "105281AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "SULFAMETHOXAZOLE / TRIMETHOPRIM (CTX)"
},
"label": "SULFAMETHOXAZOLE / TRIMETHOPRIM"
}
]
}
},
{
"label": "Current drugs used",
"type": "obs",
"id": "currentDrugsUsed",
"questionOptions": {
"concept": "1193AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "checkbox",
"answers": [
{
"concept": "461AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "MULTIVITAMIN (M/vit)"
"label": "MULTIVITAMIN"
}
]
}
Expand Down Expand Up @@ -649,7 +671,7 @@
},
{
"concept": "115122AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Mulnutrition"
"label": "Malnutrition"
},
{
"concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
Expand All @@ -673,7 +695,7 @@
]
},
{
"label": "Labaratory Information",
"label": "Laboratory Information",
"isExpanded": "true",
"questions": [
{
Expand Down Expand Up @@ -821,7 +843,7 @@
]
},
{
"label": "Early Eye Examination and Deworming",
"label": "Early Eye Examination and De-worming",
"sections": [
{
"label": "Eye Care Assessment",
Expand Down Expand Up @@ -936,6 +958,15 @@
]
}
},
{
"label": "Date medication refill due",
"type": "obs",
"id": "dateMedicationDue",
"questionOptions": {
"concept": "162549AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "date"
}
},
{
"label": "AGE",
"type": "obs",
Expand Down Expand Up @@ -976,22 +1007,6 @@
}
]
}
},
{
"label": "Date Of Next Visit",
"type": "obs",
"id": "dateOfNextVisit",
"questionOptions": {
"concept": "5096AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "date"
},
"validators": [
{
"type": "js_expression",
"failsWhenExpression": "(new moment(encDate)).isAfter((new moment(myValue)), 'day') || (new moment(encDate)).isSame((new moment(myValue)), 'day')",
"message": "Date of next visit should be greater than the encounter date."
}
]
}
],
"id": "__r2ovtspGn"
Expand Down Expand Up @@ -1104,7 +1119,7 @@
"isExpanded": "true",
"questions": [
{
"label": "Physical features: ",
"label": "Physical features: e.g Congenital abnormalities etc",
"type": "obs",
"id": "physicalFeatures",
"questionOptions": {
Expand Down

0 comments on commit b4d70b0

Please sign in to comment.