Skip to content

Commit

Permalink
Added missing KP discontinuation and rec ID (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
ckote authored Jul 12, 2023
1 parent 0862aae commit b26a50f
Show file tree
Hide file tree
Showing 3 changed files with 176 additions and 0 deletions.
10 changes: 10 additions & 0 deletions configuration/ampathforms/HTS_Eligibility_Screening.json
Original file line number Diff line number Diff line change
Expand Up @@ -1626,6 +1626,16 @@
]
}
},
{
"label": "Get HIV Risk Score :",
"type": "obs",
"id": "getHIVRiskScore",
"questionOptions": {
"concept": "160632AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "text",
"machineLearning": true
}
},
{
"label": "Generated HIV Risk Category",
"type": "obs",
Expand Down
50 changes: 50 additions & 0 deletions configuration/ampathforms/HTS_Retest.json
Original file line number Diff line number Diff line change
Expand Up @@ -1550,6 +1550,56 @@
}
]
},
{
"label": "Recency screening",
"isExpanded": "true",
"questions": [
{
"label": "Has recency screening been done:",
"type": "obs",
"questionOptions": {
"rendering": "radio",
"concept": "163777AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"answers": [
{
"concept": "1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Yes"
},
{
"concept": "1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "No"
}
]
},
"id": "recencyScreening",
"hide": {
"hideWhenExpression": "isEmpty(finalResult) || finalResult === '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
}
},
{
"type": "patientIdentifier",
"label": "Recency Id",
"questionInfo": "",
"id": "recencyId",
"required": "false",
"default": "",
"questionOptions": {
"rendering": "text",
"identifierType": "fd52829a-75d2-4732-8e43-4bff8e5b4f1a"
},
"validators": [
{
"type": "js_expression",
"failsWhenExpression": "doesNotMatchExpression('^REC\\\\d{5}-\\\\d{5,6}$', recencyId)",
"message": "Please provide the correct format for the recency id ie. REC+mflCode+number eg.REC11902-00062"
}
],
"hide": {
"hideWhenExpression": "isEmpty(finalResult) || finalResult === '664AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' || isEmpty(recencyScreening) || recencyScreening === '1066AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' "
}
}
]
},
{
"label": "Remarks",
"isExpanded": "true",
Expand Down
116 changes: 116 additions & 0 deletions configuration/ampathforms/KP_Client_Discontinuation
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
{
"name": "KP Client Discontinuation",
"description": "KP Discontinuation",
"version": "1",
"published": true,
"uuid": "1f76643e-2495-11e9-ab14-d663bd873d93 ",
"retired": false,
"encounter": "KP Discontinuation",
"meta": {
"programs": {
"uuid": "",
"isEnrollment": false,
"discontinuationDateQuestionId": "discontinueDate"
}
},
"pages": [
{
"label": "Discontinue KP Client",
"sections": [
{
"label": "Discontinue KP Client",
"isExpanded": "true",
"questions": [
{
"label": "Date:",
"type": "encounterDatetime",
"questionOptions": {
"rendering": "ui-select-extended"
},
"id": "encDate"
},
{
"label": "Reason:",
"type": "obs",
"id": "KpidReason",
"questionOptions": {
"concept": "161555AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "select",
"answers": [
{
"concept": "159492AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Transferred Out"
},
{
"concept": "160034AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Died"
},
{
"concept": "5240AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Lost to Follow"
},
{
"concept": "819AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Cannot afford Treatment"
},
{
"concept": "5622AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Other"
},
{
"concept": "1067AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"label": "Unknown"
}
]
}
},
{
"label": "If Patient Died, please provide Date of Death if Known:",
"type": "obs",
"id": "discontinueDate",
"questionOptions": {
"concept": "1543AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "date"
},
"validators": [
{
"type": "date",
"allowFutureDates": "false"
}
],
"hide": {
"hideWhenExpression": "KpidReason !== '160034AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
}
},
{
"label": "(If transferred out)</i> <br/>Transfer to Facility:",
"type": "obs",
"id": "kpTToUt",
"questionOptions": {
"concept": "159495AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "text"
},
"hide": {
"hideWhenExpression": "KpidReason !== '159492AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
}
},
{
"label": "Date Transferred Out:",
"type": "obs",
"questionOptions": {
"concept": "160649AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"rendering": "date"
},
"id": "TTouTDate",
"hide": {
"hideWhenExpression": "KpidReason !== '159492AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'"
}
}
]
}
]
}
],
"processor": "EncounterFormProcessor",
"referencedForms": []
}

0 comments on commit b26a50f

Please sign in to comment.