From b26a50f5d96f5de3aabb0f0b94c02a6e5670f63e Mon Sep 17 00:00:00 2001 From: Kote Cosmas <110154947+ckote@users.noreply.github.com> Date: Wed, 12 Jul 2023 13:42:02 +0300 Subject: [PATCH] Added missing KP discontinuation and rec ID (#124) --- .../HTS_Eligibility_Screening.json | 10 ++ configuration/ampathforms/HTS_Retest.json | 50 ++++++++ .../ampathforms/KP_Client_Discontinuation | 116 ++++++++++++++++++ 3 files changed, 176 insertions(+) create mode 100644 configuration/ampathforms/KP_Client_Discontinuation diff --git a/configuration/ampathforms/HTS_Eligibility_Screening.json b/configuration/ampathforms/HTS_Eligibility_Screening.json index 89dc97fb..4c9d99d0 100644 --- a/configuration/ampathforms/HTS_Eligibility_Screening.json +++ b/configuration/ampathforms/HTS_Eligibility_Screening.json @@ -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", diff --git a/configuration/ampathforms/HTS_Retest.json b/configuration/ampathforms/HTS_Retest.json index 769c04de..baafd9bc 100644 --- a/configuration/ampathforms/HTS_Retest.json +++ b/configuration/ampathforms/HTS_Retest.json @@ -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", diff --git a/configuration/ampathforms/KP_Client_Discontinuation b/configuration/ampathforms/KP_Client_Discontinuation new file mode 100644 index 00000000..b2045dcd --- /dev/null +++ b/configuration/ampathforms/KP_Client_Discontinuation @@ -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)
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": [] +} \ No newline at end of file