From 7840a30acfcd7f05223b0e203b1d663637c3d5eb Mon Sep 17 00:00:00 2001 From: Kazooba B Lawrence <36139599+kazlaw@users.noreply.github.com> Date: Fri, 24 Nov 2023 11:28:37 +0300 Subject: [PATCH] KH-365: Create a link to the drug order basket (#247) --- .../ampathforms/NCD_Consultation.json | 14 ++++++++++++++ .../openmrs_config/ampathforms/NCD_Screening.json | 13 +++++++++++++ 2 files changed, 27 insertions(+) diff --git a/configs/openmrs_config/ampathforms/NCD_Consultation.json b/configs/openmrs_config/ampathforms/NCD_Consultation.json index 95d706cc..0f136420 100644 --- a/configs/openmrs_config/ampathforms/NCD_Consultation.json +++ b/configs/openmrs_config/ampathforms/NCD_Consultation.json @@ -1256,6 +1256,20 @@ "type": "obs", "validators": [] }, + { + "questionOptions": { + "rendering": "workspace-launcher", + "workspaceName": "add-drug-order", + "buttonType": "ghost", + "buttonLabel": "Add +", + "id": "ordering-id" + }, + "id": "orderDrugs", + "label": "Order for Drugs here:", + "hide": { + "hideWhenExpression": "isEmpty(medicinePrescribed) || medicinePrescribed !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, { "id": "medicineDetails", "hide": { diff --git a/configs/openmrs_config/ampathforms/NCD_Screening.json b/configs/openmrs_config/ampathforms/NCD_Screening.json index fb11c922..bb59a433 100644 --- a/configs/openmrs_config/ampathforms/NCD_Screening.json +++ b/configs/openmrs_config/ampathforms/NCD_Screening.json @@ -1188,6 +1188,19 @@ "type": "obs", "validators": [] }, + { + "questionOptions": { + "rendering": "workspace-launcher", + "workspaceName": "add-drug-order", + "buttonType": "ghost", + "buttonLabel": "Add +" + }, + "id": "orderDrugs", + "label": "Order for Drugs here:", + "hide": { + "hideWhenExpression": "isEmpty(medicinePrescribed) || medicinePrescribed !== '1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'" + } + }, { "id": "medicineDetails", "hide": {