Skip to content

Commit

Permalink
KHP3-4498 Update appointments configuration based on tabs configurati…
Browse files Browse the repository at this point in the history
…on (#253)
  • Loading branch information
CynthiaKamau authored Nov 2, 2023
1 parent 1d10d14 commit 69ee046
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 38 deletions.
46 changes: 27 additions & 19 deletions configuration/dev-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -54,9 +50,7 @@
"@openmrs/esm-home-app": {
"extensionSlots": {
"homepage-widgets-slot": {
"remove": [
"home-appointments"
]
"remove": ["home-appointments"]
}
}
},
Expand All @@ -80,11 +74,7 @@
{
"id": "custom",
"name": "Demographics",
"fields": [
"maritalStatus",
"occupation",
"education"
]
"fields": ["maritalStatus", "occupation", "education"]
},
{
"id": "contact",
Expand Down Expand Up @@ -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,
Expand All @@ -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": [
Expand Down Expand Up @@ -430,4 +438,4 @@
"clinicianEncounterRole": "a0b03050-c99b-11e0-9572-0800200c9a66"
}
}
}
}
46 changes: 27 additions & 19 deletions configuration/prod-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -54,9 +50,7 @@
"@openmrs/esm-home-app": {
"extensionSlots": {
"homepage-widgets-slot": {
"remove": [
"home-appointments"
]
"remove": ["home-appointments"]
}
}
},
Expand All @@ -80,11 +74,7 @@
{
"id": "custom",
"name": "Demographics",
"fields": [
"maritalStatus",
"occupation",
"education"
]
"fields": ["maritalStatus", "occupation", "education"]
},
{
"id": "contact",
Expand Down Expand Up @@ -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,
Expand All @@ -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": [
Expand Down Expand Up @@ -430,4 +438,4 @@
"clinicianEncounterRole": "a0b03050-c99b-11e0-9572-0800200c9a66"
}
}
}
}

0 comments on commit 69ee046

Please sign in to comment.