From 0f425edb97573bb992d2e6fda2dd8449c3860119 Mon Sep 17 00:00:00 2001 From: MOHANKUMAR T Date: Wed, 24 Jul 2024 23:39:50 +0530 Subject: [PATCH 1/3] BAH-4045 | Add. Privilege for getting program attribute types --- bahmnicore-omod/src/main/resources/config.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bahmnicore-omod/src/main/resources/config.xml b/bahmnicore-omod/src/main/resources/config.xml index 0111d342a..cc89fb354 100644 --- a/bahmnicore-omod/src/main/resources/config.xml +++ b/bahmnicore-omod/src/main/resources/config.xml @@ -98,6 +98,10 @@ app:lab-lite Will give access to Lab Lite app + + Get Patient Program Attribute Types + Ability to get program attribute types + org.openmrs.module.bahmniemrapi.encountertransaction.service.BahmniEncounterTransactionService From 124558a8a8793a0d900b8b8cef09d4de504bc43d Mon Sep 17 00:00:00 2001 From: MOHANKUMAR T Date: Thu, 25 Jul 2024 09:23:43 +0530 Subject: [PATCH 2/3] BAH-4045 | Add. Assign Get Patient Program Attribute Types privilege to clinical app readonly role --- .../src/main/resources/liquibase.xml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/bahmnicore-omod/src/main/resources/liquibase.xml b/bahmnicore-omod/src/main/resources/liquibase.xml index 0558ae4cc..4ecdf4fd6 100644 --- a/bahmnicore-omod/src/main/resources/liquibase.xml +++ b/bahmnicore-omod/src/main/resources/liquibase.xml @@ -4682,5 +4682,23 @@ Update the wards list sql to optimize for MySQL 8 - Bahmni Standard 1.0 + + + + select count(*) from privilege where privilege='Get Patient Program Attribute Types'; + + + select count(*) from role where role='Clinical-App-Read-Only'; + + + select count(*) from role_privilege where role='Clinical-App-Read-Only' and privilege='Get Patient Program Attribute Types'; + + + Adds Get Patient Program Attribute Types privilege to Clinical-App Read Only role + + Clinical-App-Read-Only + Get Patient Program Attribute Types + + From 75597c748450f36819d320d43d692c6284941c13 Mon Sep 17 00:00:00 2001 From: MOHANKUMAR T Date: Thu, 25 Jul 2024 17:47:02 +0530 Subject: [PATCH 3/3] Revert "BAH-4045 | Add. Assign Get Patient Program Attribute Types privilege to clinical app readonly role" - moved to config This reverts commit 124558a8a8793a0d900b8b8cef09d4de504bc43d. --- .../src/main/resources/liquibase.xml | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/bahmnicore-omod/src/main/resources/liquibase.xml b/bahmnicore-omod/src/main/resources/liquibase.xml index 4ecdf4fd6..0558ae4cc 100644 --- a/bahmnicore-omod/src/main/resources/liquibase.xml +++ b/bahmnicore-omod/src/main/resources/liquibase.xml @@ -4682,23 +4682,5 @@ Update the wards list sql to optimize for MySQL 8 - Bahmni Standard 1.0 - - - - select count(*) from privilege where privilege='Get Patient Program Attribute Types'; - - - select count(*) from role where role='Clinical-App-Read-Only'; - - - select count(*) from role_privilege where role='Clinical-App-Read-Only' and privilege='Get Patient Program Attribute Types'; - - - Adds Get Patient Program Attribute Types privilege to Clinical-App Read Only role - - Clinical-App-Read-Only - Get Patient Program Attribute Types - -