From 747b626e7522d469ed45b4c4f76ab698e8f8fa4d Mon Sep 17 00:00:00 2001 From: slubwama1 Date: Thu, 5 Jun 2025 11:08:06 +0300 Subject: [PATCH] update frontend build files to uniformity across distributions. --- .../configuration/frontend-config.json | 89 +++++++++++++++---- .../configuration/spa-build-config.json | 56 ++++++------ 2 files changed, 101 insertions(+), 44 deletions(-) diff --git a/tools/src/main/resources/frontendconfigs/configuration/frontend-config.json b/tools/src/main/resources/frontendconfigs/configuration/frontend-config.json index 7e707fb80..895f32275 100644 --- a/tools/src/main/resources/frontendconfigs/configuration/frontend-config.json +++ b/tools/src/main/resources/frontendconfigs/configuration/frontend-config.json @@ -720,10 +720,26 @@ "value": "Female", "label": "Female" } - ] + ], + "address": { + "useAddressHierarchy": { + "useAddressHierarchyLabel": { + "countyDistrict": "County", + "address4": "Ward", + "stateProvince": "Sub county" + }, + "searchAddressByLevel": true + } + }, + "causeOfDeath": { + "conceptUuid": "dca2c3f2-30ab-102d-86b0-7a5022ba4115" + } }, "registrationObs": { "encounterTypeUuid": "1458b726-4a62-4444-be97-bb3e08c73745" + }, + "causeOfDeath": { + "conceptUuid": "dca2c3f2-30ab-102d-86b0-7a5022ba4115" } }, "@openmrs/esm-home-app": { @@ -1077,15 +1093,35 @@ "@openmrs/esm-patient-banner-app": { "extensionSlots": { "patient-actions-slot": { - "remove": [ - "stop-visit-button", - "mark-patient-deceased-button", - "start-visit-button", - "cancel-visit-button", - "delete-visit-button" - ], "configure": { - + "start-visit-button": { + "Display conditions": { + "privileges": [ + "Start Visit Button" + ] + } + }, + "stop-visit-button": { + "Display conditions": { + "privileges": [ + "Stop Visit Button" + ] + } + }, + "cancel-visit-button": { + "Display conditions": { + "privileges": [ + "Cancel Visit Button" + ] + } + }, + "mark-patient-deceased-button": { + "Display conditions": { + "privileges": [ + "Mark Dead Button" + ] + } + }, "edit-patient-details-button": { "Display conditions": { "privileges": [ @@ -1165,14 +1201,35 @@ "@openmrs/esm-patient-search-app": { "extensionSlots": { "patient-actions-slot": { - "remove": [ - "start-visit-button", - "stop-visit-button", - "cancel-visit-button", - "mark-patient-deceased-button", - "delete-visit-button" - ], "configure": { + "start-visit-button": { + "Display conditions": { + "privileges": [ + "Start Visit Button" + ] + } + }, + "stop-visit-button": { + "Display conditions": { + "privileges": [ + "Stop Visit Button" + ] + } + }, + "cancel-visit-button": { + "Display conditions": { + "privileges": [ + "Cancel Visit Button" + ] + } + }, + "mark-patient-deceased-button": { + "Display conditions": { + "privileges": [ + "Mark Dead Button" + ] + } + }, "edit-patient-details-button": { "Display conditions": { "privileges": [ diff --git a/tools/src/main/resources/frontendconfigs/configuration/spa-build-config.json b/tools/src/main/resources/frontendconfigs/configuration/spa-build-config.json index 3043a3569..7c4c33f2a 100644 --- a/tools/src/main/resources/frontendconfigs/configuration/spa-build-config.json +++ b/tools/src/main/resources/frontendconfigs/configuration/spa-build-config.json @@ -1,40 +1,40 @@ { "frontendModules": { - "@ugandaemr/esm-patient-flags-app": "next", - "@openmrs/esm-home-app": "next", - "@ugandaemr/esm-data-visualizer-app": "next", - "@openmrs/esm-form-engine-app": "next", - "@openmrs/esm-patient-search-app": "next", - "@openmrs/esm-form-builder-app": "next", - "@openmrs/esm-dispensing-app": "next", "@openmrs/esm-appointments-app": "next", - "@openmrs/esm-patient-programs-app": "next", - "@ugandaemr/esm-laboratory-app": "next", - "@openmrs/esm-patient-banner-app": "next", - "@ugandaemr/esm-ugandaemr-app": "next", - "@openmrs/esm-patient-vitals-app": "next", "@openmrs/esm-cohort-builder-app": "next", - "@ugandaemr/esm-patient-registration-app": "next", - "@ugandaemr/esm-login-app": "next", - "@openmrs/esm-patient-chart-app": "next", + "@openmrs/esm-devtools-app": "next", + "@openmrs/esm-dispensing-app": "next", + "@openmrs/esm-form-builder-app": "next", + "@openmrs/esm-form-engine-app": "next", + "@openmrs/esm-help-menu-app": "next", + "@openmrs/esm-home-app": "next", "@openmrs/esm-implementer-tools-app": "next", + "@openmrs/esm-patient-allergies-app": "next", + "@openmrs/esm-patient-attachments-app": "next", + "@openmrs/esm-patient-banner-app": "next", + "@openmrs/esm-patient-chart-app": "next", + "@openmrs/esm-patient-conditions-app": "next", "@openmrs/esm-patient-forms-app": "next", "@openmrs/esm-patient-list-app": "next", - "@openmrs/esm-devtools-app": "next", - "@openmrs/esm-system-admin-app": "next", "@openmrs/esm-patient-medications-app": "next", - "@openmrs/esm-patient-allergies-app": "next", - "@ugandaemr/esm-care-panel-app": "next", - "@openmrs/esm-stock-management-app": "next", - "@ugandaemr/esm-patient-queues-app": "next", - "@openmrs/esm-patient-conditions-app": "next", - "@openmrs/esm-help-menu-app": "next", - "@ugandaemr/esm-ugandaemr-exchange-app": "next", - "@openmrs/esm-patient-attachments-app": "next", + "@openmrs/esm-patient-notes-app": "next", "@openmrs/esm-patient-orders-app": "next", - "@openmrs/esm-primary-navigation-app": "next", + "@openmrs/esm-patient-programs-app": "next", + "@openmrs/esm-patient-search-app": "next", "@openmrs/esm-patient-tests-app": "next", - "@openmrs/esm-patient-notes-app": "next" + "@openmrs/esm-patient-vitals-app": "next", + "@openmrs/esm-primary-navigation-app": "next", + "@openmrs/esm-stock-management-app": "next", + "@openmrs/esm-system-admin-app": "next", + "@ugandaemr/esm-care-panel-app": "next", + "@ugandaemr/esm-data-visualizer-app": "next", + "@ugandaemr/esm-laboratory-app": "next", + "@ugandaemr/esm-login-app": "next", + "@ugandaemr/esm-patient-flags-app": "next", + "@ugandaemr/esm-patient-queues-app": "next", + "@ugandaemr/esm-patient-registration-app": "next", + "@ugandaemr/esm-ugandaemr-app": "next", + "@ugandaemr/esm-ugandaemr-exchange-app": "next" }, "importmap": "/openmrs/spa/importmap.json", "apiUrl": "/openmrs/", @@ -42,4 +42,4 @@ "${openmrsSpaBase}/config.json" ], "spaPath": "/openmrs/spa/" -} \ No newline at end of file +}