From 69ee0465ac7e1df028c48d2bfcecebe488988741 Mon Sep 17 00:00:00 2001 From: CynthiaKamau Date: Thu, 2 Nov 2023 13:14:57 +0300 Subject: [PATCH] KHP3-4498 Update appointments configuration based on tabs configuration (#253) --- configuration/dev-config.json | 46 ++++++++++++++++++++-------------- configuration/prod-config.json | 46 ++++++++++++++++++++-------------- 2 files changed, 54 insertions(+), 38 deletions(-) diff --git a/configuration/dev-config.json b/configuration/dev-config.json index 80001f00..5b29e1be 100644 --- a/configuration/dev-config.json +++ b/configuration/dev-config.json @@ -24,14 +24,10 @@ "@openmrs/esm-patient-chart-app": { "extensionSlots": { "patient-highlights-bar-slot": { - "remove": [ - "patient-flag-tags" - ] + "remove": ["patient-flag-tags"] }, "patient-chart-summary-dashboard-slot": { - "add": [ - "programs-overview-widget" - ] + "add": ["programs-overview-widget"] } }, "showServiceQueueFields": true, @@ -54,9 +50,7 @@ "@openmrs/esm-home-app": { "extensionSlots": { "homepage-widgets-slot": { - "remove": [ - "home-appointments" - ] + "remove": ["home-appointments"] } } }, @@ -80,11 +74,7 @@ { "id": "custom", "name": "Demographics", - "fields": [ - "maritalStatus", - "occupation", - "education" - ] + "fields": ["maritalStatus", "occupation", "education"] }, { "id": "contact", @@ -364,9 +354,7 @@ "statusConceptSetUuid": "9484732b-bcaf-429e-86cb-d6cf3da34211", "defaultStatusConceptUuid": "167407AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "defaultTransitionStatus": "167408AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "historicalObsConceptUuid": [ - "161643AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - ] + "historicalObsConceptUuid": ["161643AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"] }, "visitQueueNumberAttributeUuid": "c61ce16f-272a-41e7-9924-4c555d0932c5", "showQueueTableTab": true, @@ -385,7 +373,27 @@ }, "showServiceQueueFields": true, "defaultFacilityUrl": "/ws/rest/v1/kenyaemr/default-facility", - "patientIdentifierType": "Unique Patient Number" + "patientIdentifierType": "Unique Patient Number", + "extensionSlots": { + "scheduled-appointments-panels-slot": { + "add": ["early-appointments-panel"], + "remove": ["cancelled-appointments-panel"], + "configure": { + "early-appointments-panel": { + "showForPastDate": false, + "showForFutureDate": false + }, + "expected-appointments-panel": { + "showForPastDate": true, + "showForFutureDate": true + }, + "completed-appointments-panel": { + "showForPastDate": false, + "showForFutureDate": false + } + } + } + } }, "@openmrs/esm-patient-labs-app": { "concepts": [ @@ -430,4 +438,4 @@ "clinicianEncounterRole": "a0b03050-c99b-11e0-9572-0800200c9a66" } } -} \ No newline at end of file +} diff --git a/configuration/prod-config.json b/configuration/prod-config.json index 80001f00..5b29e1be 100644 --- a/configuration/prod-config.json +++ b/configuration/prod-config.json @@ -24,14 +24,10 @@ "@openmrs/esm-patient-chart-app": { "extensionSlots": { "patient-highlights-bar-slot": { - "remove": [ - "patient-flag-tags" - ] + "remove": ["patient-flag-tags"] }, "patient-chart-summary-dashboard-slot": { - "add": [ - "programs-overview-widget" - ] + "add": ["programs-overview-widget"] } }, "showServiceQueueFields": true, @@ -54,9 +50,7 @@ "@openmrs/esm-home-app": { "extensionSlots": { "homepage-widgets-slot": { - "remove": [ - "home-appointments" - ] + "remove": ["home-appointments"] } } }, @@ -80,11 +74,7 @@ { "id": "custom", "name": "Demographics", - "fields": [ - "maritalStatus", - "occupation", - "education" - ] + "fields": ["maritalStatus", "occupation", "education"] }, { "id": "contact", @@ -364,9 +354,7 @@ "statusConceptSetUuid": "9484732b-bcaf-429e-86cb-d6cf3da34211", "defaultStatusConceptUuid": "167407AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "defaultTransitionStatus": "167408AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "historicalObsConceptUuid": [ - "161643AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" - ] + "historicalObsConceptUuid": ["161643AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"] }, "visitQueueNumberAttributeUuid": "c61ce16f-272a-41e7-9924-4c555d0932c5", "showQueueTableTab": true, @@ -385,7 +373,27 @@ }, "showServiceQueueFields": true, "defaultFacilityUrl": "/ws/rest/v1/kenyaemr/default-facility", - "patientIdentifierType": "Unique Patient Number" + "patientIdentifierType": "Unique Patient Number", + "extensionSlots": { + "scheduled-appointments-panels-slot": { + "add": ["early-appointments-panel"], + "remove": ["cancelled-appointments-panel"], + "configure": { + "early-appointments-panel": { + "showForPastDate": false, + "showForFutureDate": false + }, + "expected-appointments-panel": { + "showForPastDate": true, + "showForFutureDate": true + }, + "completed-appointments-panel": { + "showForPastDate": false, + "showForFutureDate": false + } + } + } + } }, "@openmrs/esm-patient-labs-app": { "concepts": [ @@ -430,4 +438,4 @@ "clinicianEncounterRole": "a0b03050-c99b-11e0-9572-0800200c9a66" } } -} \ No newline at end of file +}