From 0d84399ec16f131bf89c5642698f4ab1891d0327 Mon Sep 17 00:00:00 2001 From: hadijahkyampeire Date: Tue, 3 Sep 2024 15:02:07 +0300 Subject: [PATCH] Use patient chart generic dasboard --- configs/frontend_config/clinical-visits.json | 2 +- configs/frontend_config/config.json | 55 +++++++++++++++++-- .../frontend_config/general-counselling.json | 2 +- .../frontend_config/partner-notification.json | 2 +- configs/frontend_config/patient-summary.json | 6 +- .../frontend_config/program-management.json | 2 +- 6 files changed, 56 insertions(+), 13 deletions(-) diff --git a/configs/frontend_config/clinical-visits.json b/configs/frontend_config/clinical-visits.json index 039e24b..6f2d0cc 100644 --- a/configs/frontend_config/clinical-visits.json +++ b/configs/frontend_config/clinical-visits.json @@ -1,7 +1,7 @@ { "@openmrs/esm-patient-chart-app": { "extensionSlots": { - "clinical-visits-dashboard": { + "hct-clinical-visits-dashboard-slot": { "add": [ "encounter-list-table-tabs" ], diff --git a/configs/frontend_config/config.json b/configs/frontend_config/config.json index 1b0226a..e00e492 100644 --- a/configs/frontend_config/config.json +++ b/configs/frontend_config/config.json @@ -23,12 +23,55 @@ }, "hiv-care-and-treatment-group-slot": { "add": [ - "hiv-patient-summary-dashboard", - "program-management-dashboard", - "clinical-visits-dashboard", - "general-counselling-dashboard", - "partner-notification-dashboard" - ] + "dashboard#hct-patient-summary", + "dashboard#hct-program-management", + "dashboard#hct-clinical-visits", + "dashboard#hct-general-counselling", + "dashboard#hct-partner-notification" + ], + "configure": { + "dashboard#hct-patient-summary": { + "title": "patientSummary", + "path": "hct-patient-summary", + "slot": "hct-patient-summary-dashboard-slot" + }, + "dashboard#hct-program-management": { + "title": "programManagement", + "path": "hct-program-management", + "slot": "hct-program-management-dashboard-slot" + }, + "dashboard#hct-clinical-visits": { + "title": "clinicalVisits", + "path": "hct-clinical-visits", + "slot": "hct-clinical-visits-dashboard-slot" + }, + "dashboard#hct-general-counselling": { + "title": "generalCounselling", + "path": "hct-general-counselling", + "slot": "hct-general-counselling-dashboard-slot" + }, + "dashboard#hct-partner-notification": { + "title": "partnerNotification", + "path": "hct-partner-notification", + "slot": "hct-partner-notification-dashboard-slot" + } + }, + "Translation overrides": { + "en": { + "patientSummary": "Patient Summary", + "programManagement": "Program Management", + "clinicalVisits": "Clinical Visists", + "partnerNotification": "Partner Notification", + "generalCounselling": "General Counselling" + }, + "fr": { + "patientSummary": "Résumé du patient", + "programManagement": "Gestion du programme", + "clinicalVisits": "Visites cliniques", + "partnerNotification": "Notification des partenaires", + "generalCounselling": "Conseil général" + } + } } } } diff --git a/configs/frontend_config/general-counselling.json b/configs/frontend_config/general-counselling.json index e9b9e76..efd9f7f 100644 --- a/configs/frontend_config/general-counselling.json +++ b/configs/frontend_config/general-counselling.json @@ -1,7 +1,7 @@ { "@openmrs/esm-patient-chart-app": { "extensionSlots": { - "general-counselling-dashboard": { + "hct-general-counselling-dashboard-slot": { "add": [ "encounter-list-table-tabs" ], diff --git a/configs/frontend_config/partner-notification.json b/configs/frontend_config/partner-notification.json index 391bf26..b460c11 100644 --- a/configs/frontend_config/partner-notification.json +++ b/configs/frontend_config/partner-notification.json @@ -1,7 +1,7 @@ { "@openmrs/esm-patient-chart-app": { "extensionSlots": { - "partner-notification-dashboard": { + "hct-partner-notification-dashboard-slot": { "add": [ "encounter-list-table-tabs" ], diff --git a/configs/frontend_config/patient-summary.json b/configs/frontend_config/patient-summary.json index 1647fac..a933f0e 100644 --- a/configs/frontend_config/patient-summary.json +++ b/configs/frontend_config/patient-summary.json @@ -1,12 +1,12 @@ { "@openmrs/esm-patient-chart-app": { "extensionSlots": { - "hiv-patient-summary-dashboard": { + "hct-patient-summary-dashboard-slot": { "add": [ - "encounter-tiles-group" + "program-summary" ], "configure": { - "encounter-tiles-group": { + "program-summary": { "tilesDefinitions": [ { "tileHeader": "characteristicsTitle", diff --git a/configs/frontend_config/program-management.json b/configs/frontend_config/program-management.json index d37a213..26e2fd2 100644 --- a/configs/frontend_config/program-management.json +++ b/configs/frontend_config/program-management.json @@ -1,7 +1,7 @@ { "@openmrs/esm-patient-chart-app": { "extensionSlots": { - "program-management-dashboard": { + "hct-program-management-dashboard-slot": { "add": [ "encounter-list-table-tabs" ],