Skip to content

Commit 2c20a43

Browse files
authored
Merge pull request #814 from slubwama/U4X-1029
U4X-1029: Standardize frontend build files across UgandaEMR distributions
2 parents cd2be49 + 747b626 commit 2c20a43

File tree

2 files changed

+101
-44
lines changed

2 files changed

+101
-44
lines changed

tools/src/main/resources/frontendconfigs/configuration/frontend-config.json

Lines changed: 73 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -720,10 +720,26 @@
720720
"value": "Female",
721721
"label": "Female"
722722
}
723-
]
723+
],
724+
"address": {
725+
"useAddressHierarchy": {
726+
"useAddressHierarchyLabel": {
727+
"countyDistrict": "County",
728+
"address4": "Ward",
729+
"stateProvince": "Sub county"
730+
},
731+
"searchAddressByLevel": true
732+
}
733+
},
734+
"causeOfDeath": {
735+
"conceptUuid": "dca2c3f2-30ab-102d-86b0-7a5022ba4115"
736+
}
724737
},
725738
"registrationObs": {
726739
"encounterTypeUuid": "1458b726-4a62-4444-be97-bb3e08c73745"
740+
},
741+
"causeOfDeath": {
742+
"conceptUuid": "dca2c3f2-30ab-102d-86b0-7a5022ba4115"
727743
}
728744
},
729745
"@openmrs/esm-home-app": {
@@ -1077,15 +1093,35 @@
10771093
"@openmrs/esm-patient-banner-app": {
10781094
"extensionSlots": {
10791095
"patient-actions-slot": {
1080-
"remove": [
1081-
"stop-visit-button",
1082-
"mark-patient-deceased-button",
1083-
"start-visit-button",
1084-
"cancel-visit-button",
1085-
"delete-visit-button"
1086-
],
10871096
"configure": {
1088-
1097+
"start-visit-button": {
1098+
"Display conditions": {
1099+
"privileges": [
1100+
"Start Visit Button"
1101+
]
1102+
}
1103+
},
1104+
"stop-visit-button": {
1105+
"Display conditions": {
1106+
"privileges": [
1107+
"Stop Visit Button"
1108+
]
1109+
}
1110+
},
1111+
"cancel-visit-button": {
1112+
"Display conditions": {
1113+
"privileges": [
1114+
"Cancel Visit Button"
1115+
]
1116+
}
1117+
},
1118+
"mark-patient-deceased-button": {
1119+
"Display conditions": {
1120+
"privileges": [
1121+
"Mark Dead Button"
1122+
]
1123+
}
1124+
},
10891125
"edit-patient-details-button": {
10901126
"Display conditions": {
10911127
"privileges": [
@@ -1165,14 +1201,35 @@
11651201
"@openmrs/esm-patient-search-app": {
11661202
"extensionSlots": {
11671203
"patient-actions-slot": {
1168-
"remove": [
1169-
"start-visit-button",
1170-
"stop-visit-button",
1171-
"cancel-visit-button",
1172-
"mark-patient-deceased-button",
1173-
"delete-visit-button"
1174-
],
11751204
"configure": {
1205+
"start-visit-button": {
1206+
"Display conditions": {
1207+
"privileges": [
1208+
"Start Visit Button"
1209+
]
1210+
}
1211+
},
1212+
"stop-visit-button": {
1213+
"Display conditions": {
1214+
"privileges": [
1215+
"Stop Visit Button"
1216+
]
1217+
}
1218+
},
1219+
"cancel-visit-button": {
1220+
"Display conditions": {
1221+
"privileges": [
1222+
"Cancel Visit Button"
1223+
]
1224+
}
1225+
},
1226+
"mark-patient-deceased-button": {
1227+
"Display conditions": {
1228+
"privileges": [
1229+
"Mark Dead Button"
1230+
]
1231+
}
1232+
},
11761233
"edit-patient-details-button": {
11771234
"Display conditions": {
11781235
"privileges": [
Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
11
{
22
"frontendModules": {
3-
"@ugandaemr/esm-patient-flags-app": "next",
4-
"@openmrs/esm-home-app": "next",
5-
"@ugandaemr/esm-data-visualizer-app": "next",
6-
"@openmrs/esm-form-engine-app": "next",
7-
"@openmrs/esm-patient-search-app": "next",
8-
"@openmrs/esm-form-builder-app": "next",
9-
"@openmrs/esm-dispensing-app": "next",
103
"@openmrs/esm-appointments-app": "next",
11-
"@openmrs/esm-patient-programs-app": "next",
12-
"@ugandaemr/esm-laboratory-app": "next",
13-
"@openmrs/esm-patient-banner-app": "next",
14-
"@ugandaemr/esm-ugandaemr-app": "next",
15-
"@openmrs/esm-patient-vitals-app": "next",
164
"@openmrs/esm-cohort-builder-app": "next",
17-
"@ugandaemr/esm-patient-registration-app": "next",
18-
"@ugandaemr/esm-login-app": "next",
19-
"@openmrs/esm-patient-chart-app": "next",
5+
"@openmrs/esm-devtools-app": "next",
6+
"@openmrs/esm-dispensing-app": "next",
7+
"@openmrs/esm-form-builder-app": "next",
8+
"@openmrs/esm-form-engine-app": "next",
9+
"@openmrs/esm-help-menu-app": "next",
10+
"@openmrs/esm-home-app": "next",
2011
"@openmrs/esm-implementer-tools-app": "next",
12+
"@openmrs/esm-patient-allergies-app": "next",
13+
"@openmrs/esm-patient-attachments-app": "next",
14+
"@openmrs/esm-patient-banner-app": "next",
15+
"@openmrs/esm-patient-chart-app": "next",
16+
"@openmrs/esm-patient-conditions-app": "next",
2117
"@openmrs/esm-patient-forms-app": "next",
2218
"@openmrs/esm-patient-list-app": "next",
23-
"@openmrs/esm-devtools-app": "next",
24-
"@openmrs/esm-system-admin-app": "next",
2519
"@openmrs/esm-patient-medications-app": "next",
26-
"@openmrs/esm-patient-allergies-app": "next",
27-
"@ugandaemr/esm-care-panel-app": "next",
28-
"@openmrs/esm-stock-management-app": "next",
29-
"@ugandaemr/esm-patient-queues-app": "next",
30-
"@openmrs/esm-patient-conditions-app": "next",
31-
"@openmrs/esm-help-menu-app": "next",
32-
"@ugandaemr/esm-ugandaemr-exchange-app": "next",
33-
"@openmrs/esm-patient-attachments-app": "next",
20+
"@openmrs/esm-patient-notes-app": "next",
3421
"@openmrs/esm-patient-orders-app": "next",
35-
"@openmrs/esm-primary-navigation-app": "next",
22+
"@openmrs/esm-patient-programs-app": "next",
23+
"@openmrs/esm-patient-search-app": "next",
3624
"@openmrs/esm-patient-tests-app": "next",
37-
"@openmrs/esm-patient-notes-app": "next"
25+
"@openmrs/esm-patient-vitals-app": "next",
26+
"@openmrs/esm-primary-navigation-app": "next",
27+
"@openmrs/esm-stock-management-app": "next",
28+
"@openmrs/esm-system-admin-app": "next",
29+
"@ugandaemr/esm-care-panel-app": "next",
30+
"@ugandaemr/esm-data-visualizer-app": "next",
31+
"@ugandaemr/esm-laboratory-app": "next",
32+
"@ugandaemr/esm-login-app": "next",
33+
"@ugandaemr/esm-patient-flags-app": "next",
34+
"@ugandaemr/esm-patient-queues-app": "next",
35+
"@ugandaemr/esm-patient-registration-app": "next",
36+
"@ugandaemr/esm-ugandaemr-app": "next",
37+
"@ugandaemr/esm-ugandaemr-exchange-app": "next"
3838
},
3939
"importmap": "/openmrs/spa/importmap.json",
4040
"apiUrl": "/openmrs/",
4141
"configUrls": [
4242
"${openmrsSpaBase}/config.json"
4343
],
4444
"spaPath": "/openmrs/spa/"
45-
}
45+
}

0 commit comments

Comments
 (0)