From 17015532732d4d1435e883780d7733e7481e609e Mon Sep 17 00:00:00 2001 From: Daphne <89844768+Daphne210@users.noreply.github.com> Date: Fri, 29 Sep 2023 20:18:02 +0300 Subject: [PATCH] Changing Laboratory on the patient chart to Invesitgative Results (#6) --- src/index.ts | 2 +- src/routes.json | 97 ++++++++++++++++++++++++------------------------- 2 files changed, 48 insertions(+), 51 deletions(-) diff --git a/src/index.ts b/src/index.ts index fb36512..fa83527 100644 --- a/src/index.ts +++ b/src/index.ts @@ -44,7 +44,7 @@ export const laboratoryComponent = getAsyncLifecycle( export const laboratoryOrderDashboardLink = getSyncLifecycle( createDashboardLink({ path: "laboratory-orders", - title: "Laboratory", + title: "Investigative Results", moduleName, }), options diff --git a/src/routes.json b/src/routes.json index 0ea4f34..27e590a 100644 --- a/src/routes.json +++ b/src/routes.json @@ -1,52 +1,49 @@ { - "$schema": "https://json.openmrs.org/routes.schema.json", - "backendDependencies": { - "fhir2": "^1.2.0", - "webservices.rest": "^2.24.0" - }, - "pages": [ - { - "component": "root", - "route": "laboratory" - } - ], - "extensions": [ - { - "name": "laboratory-dashboard", - "slot": "laboratory-dashboard-slot", - "component": "root" + "$schema": "https://json.openmrs.org/routes.schema.json", + "backendDependencies": { + "fhir2": "^1.2.0", + "webservices.rest": "^2.24.0" }, - { - "name": "laboratory-dashboard-link", - "slot": "homepage-dashboard-slot", - "component": "laboratoryDashboardLink", - "meta": { - "name": "laboratory", - "slot": "laboratory-dashboard-slot", - "title": "Laboratory" - } - }, - { - "name": "laboratory-patient-chart-link", - "slot": "patient-chart-dashboard-slot", - "component": "laboratoryOrderDashboardLink", - "order": 13, - "meta": { - "path": "laboratory-orders", - "slot": "laboratory-orders-dashboard-slot", - "title": "Laboratory", - "columns": 1, - "layoutMode": "anchored" - } - }, - { - "name": "laboratory-orders-summary", - "slot": "laboratory-orders-dashboard-slot", - "component": "laboratoryOrderComponent" - }, - { - "name": "add-to-worklist-dialog", - "component": "addToWorklistDialog" - } - ] -} + "pages": [{ + "component": "root", + "route": "laboratory" + }], + "extensions": [{ + "name": "laboratory-dashboard", + "slot": "laboratory-dashboard-slot", + "component": "root" + }, + { + "name": "laboratory-dashboard-link", + "slot": "homepage-dashboard-slot", + "component": "laboratoryDashboardLink", + "meta": { + "name": "laboratory", + "slot": "laboratory-dashboard-slot", + "title": "Laboratory" + } + }, + { + "name": "laboratory-patient-chart-link", + "slot": "patient-chart-dashboard-slot", + "component": "laboratoryOrderDashboardLink", + "order": 13, + "meta": { + "path": "laboratory-orders", + "slot": "laboratory-orders-dashboard-slot", + "title": "Investigative Results", + "columns": 1, + "layoutMode": "anchored" + } + }, + { + "name": "laboratory-orders-summary", + "slot": "laboratory-orders-dashboard-slot", + "component": "laboratoryOrderComponent" + }, + { + "name": "add-to-worklist-dialog", + "component": "addToWorklistDialog" + } + ] +} \ No newline at end of file