Skip to content

Commit

Permalink
(chore) update config to take advantage of translation overrides (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
donaldkibet authored Jul 11, 2023
1 parent af787dd commit 0a6f82b
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 39 deletions.
50 changes: 25 additions & 25 deletions configuration/dev-build-config.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
{
"frontendModules": {
"@openmrs/esm-devtools-app": "5.0.3-pre.857",
"@openmrs/esm-implementer-tools-app": "5.0.3-pre.857",
"@openmrs/esm-primary-navigation-app": "5.0.3-pre.857",
"@openmrs/esm-home-app": "4.2.1-pre.248",
"@openmrs/esm-form-entry-app": "4.6.1-pre.1909",
"@openmrs/esm-patient-allergies-app": "4.6.1-pre.1909",
"@openmrs/esm-patient-appointments-app": "4.6.1-pre.1909",
"@openmrs/esm-patient-banner-app": "4.6.1-pre.1909",
"@openmrs/esm-patient-biometrics-app": "4.6.1-pre.1909",
"@openmrs/esm-patient-chart-app": "4.6.1-pre.1909",
"@openmrs/esm-patient-conditions-app": "4.6.1-pre.1909",
"@openmrs/esm-patient-forms-app": "4.6.1-pre.1909",
"@openmrs/esm-patient-vitals-app": "4.6.1-pre.1909",
"@openmrs/esm-active-visits-app": "4.5.1-pre.1763",
"@openmrs/esm-appointments-app": "4.5.1-pre.1763",
"@openmrs/esm-outpatient-app": "4.5.1-pre.1763",
"@openmrs/esm-patient-search-app": "4.5.1-pre.1763",
"@openmrs/esm-form-builder-app": "1.2.1-pre.462",
"@openmrs/esm-patient-programs-app": "4.6.1-pre.1909",
"@openmrs/esm-system-admin-app": "3.0.1-pre.61",
"@kenyaemr/esm-patient-registration-app": "4.5.3",
"@kenyaemr/esm-login-app": "5.0.1",
"@kenyaemr/esm-patient-flags-app": "4.1.1-pre.86",
"@kenyaemr/esm-version-app": "4.1.1-pre.86",
"@kenyaemr/esm-care-panel-app": "4.1.1-pre.86"
"@openmrs/esm-devtools-app": "next",
"@openmrs/esm-implementer-tools-app": "next",
"@openmrs/esm-primary-navigation-app": "next",
"@openmrs/esm-home-app": "next",
"@openmrs/esm-form-entry-app": "next",
"@openmrs/esm-patient-allergies-app": "next",
"@openmrs/esm-patient-appointments-app": "next",
"@openmrs/esm-patient-banner-app": "next",
"@openmrs/esm-patient-biometrics-app": "next",
"@openmrs/esm-patient-chart-app": "next",
"@openmrs/esm-patient-conditions-app": "next",
"@openmrs/esm-patient-forms-app": "next",
"@openmrs/esm-patient-vitals-app": "next",
"@openmrs/esm-active-visits-app": "next",
"@openmrs/esm-appointments-app": "next",
"@openmrs/esm-outpatient-app": "next",
"@openmrs/esm-patient-search-app": "next",
"@openmrs/esm-form-builder-app": "next",
"@openmrs/esm-patient-programs-app": "next",
"@openmrs/esm-system-admin-app": "next",
"@kenyaemr/esm-patient-registration-app": "latest",
"@kenyaemr/esm-login-app": "latest",
"@kenyaemr/esm-patient-flags-app": "next",
"@kenyaemr/esm-version-app": "next",
"@kenyaemr/esm-care-panel-app": "next"
},
"spaPath": "/openmrs/spa",
"apiUrl": "/openmrs",
Expand Down
22 changes: 18 additions & 4 deletions configuration/dev-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,20 @@
"defaultFacilityUrl": "/ws/rest/v1/kenyaemr/default-facility",
"logo": {
"src": "/openmrs/spa/kenyaemr-primary-logo.png"
},
"Translation overrides": {
"en": {
"endVisit": "Check out",
"startVisit": "Check in"
}
}
},
"@openmrs/esm-home-app": {
"extensionSlots": {
"homepage-widgets-slot": {
"remove": ["home-appointments"]
"remove": [
"home-appointments"
]
}
}
},
Expand All @@ -88,7 +96,11 @@
{
"id": "custom",
"name": "Demographics",
"fields": ["maritalStatus", "occupation", "education"]
"fields": [
"maritalStatus",
"occupation",
"education"
]
},
{
"id": "contact",
Expand Down Expand Up @@ -359,7 +371,9 @@
"defaultStatusConceptUuid": "167407AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"defaultTransitionStatus": "167408AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"visitQueueNumberAttributeUuid": "c61ce16f-272a-41e7-9924-4c555d0932c5",
"historicalObsConceptUuid": ["161643AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"]
"historicalObsConceptUuid": [
"161643AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
]
},
"showQueueTableTab": true,
"defaultIdentifierTypes": [
Expand Down Expand Up @@ -390,4 +404,4 @@
}
]
}
}
}
33 changes: 23 additions & 10 deletions configuration/prod-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,20 @@
"defaultFacilityUrl": "/ws/rest/v1/kenyaemr/default-facility",
"logo": {
"src": "/openmrs/spa/kenyaemr-primary-logo.png"
},
"Translation overrides": {
"en": {
"endVisit": "Check out",
"startVisit": "Check in"
}
}
},
"@openmrs/esm-home-app": {
"extensionSlots": {
"homepage-widgets-slot": {
"remove": ["home-appointments"]
"remove": [
"home-appointments"
]
}
}
},
Expand All @@ -88,7 +96,11 @@
{
"id": "custom",
"name": "Demographics",
"fields": ["maritalStatus", "occupation", "education"]
"fields": [
"maritalStatus",
"occupation",
"education"
]
},
{
"id": "contact",
Expand Down Expand Up @@ -360,7 +372,9 @@
"defaultStatusConceptUuid": "167407AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"defaultTransitionStatus": "167408AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"visitQueueNumberAttributeUuid": "c61ce16f-272a-41e7-9924-4c555d0932c5",
"historicalObsConceptUuid": ["161643AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"]
"historicalObsConceptUuid": [
"161643AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
]
},
"showQueueTableTab": true,
"defaultIdentifierTypes": [
Expand Down Expand Up @@ -394,25 +408,24 @@
"patientUuid": "3d8e8417-77ca-496c-85f0-c2797e96bae8"
},
"@openmrs/esm-patient-banner-app": {
"contactAttributeType" : [
"contactAttributeType": [
"b2c38640-2603-4629-aebd-3b54f33f1e3a",
"b8d0b331-1d2d-4a9a-b741-1816f498bdb6",
"27573398-4651-4ce5-89d8-abec5998165c",
"342a1d39-c541-4b29-8818-930916f4c2dc",
"94614350-84c8-41e0-ac29-86bc107069be",
"830bef6d-b01f-449d-9f8d-ac0fede8dbd3",
"d0aa9fd1-2ac5-45d8-9c5e-4317c622c8f5"

],
"customAddressLabel": {
"district": "County",
"address4": "Ward",
"state": "Sub county",
"city": "Village",
"address1":"Postal Address",
"address6":"Location",
"address5":"Sub Location",
"address2":"Landmark"
"address1": "Postal Address",
"address6": "Location",
"address5": "Sub Location",
"address2": "Landmark"
}
}
}
}

0 comments on commit 0a6f82b

Please sign in to comment.