From 05de493867e767fa3877f94a6029d8b5d0e6d041 Mon Sep 17 00:00:00 2001 From: CynthiaKamau Date: Wed, 6 Mar 2024 14:15:44 +0300 Subject: [PATCH] O3-2933 Add patient flag for billing app features --- src/dashboard.meta.ts | 1 + src/index.ts | 8 +++++++- src/routes.json | 6 ++++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/dashboard.meta.ts b/src/dashboard.meta.ts index baa6cb5..a946afd 100644 --- a/src/dashboard.meta.ts +++ b/src/dashboard.meta.ts @@ -3,4 +3,5 @@ export const dashboardMeta = { columns: 1, title: 'Billing history', path: 'Billing history', + hideDashboardTitle: true, }; diff --git a/src/index.ts b/src/index.ts index 8b1ecf4..9a19a32 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,7 +2,7 @@ import { configSchema } from './config-schema'; import { createDashboardLink } from '@openmrs/esm-patient-common-lib'; import { createLeftPanelLink } from './left-panel-link.component'; import { dashboardMeta } from './dashboard.meta'; -import { defineConfigSchema, getSyncLifecycle } from '@openmrs/esm-framework'; +import { defineConfigSchema, getSyncLifecycle, registerFeatureFlag } from '@openmrs/esm-framework'; import BillableServiceHome from './billable-services/billable-services-home.component'; import BillableServicesCardLink from './billable-services-admin-card-link.component'; import BillHistory from './bill-history/bill-history.component'; @@ -21,6 +21,12 @@ const options = { moduleName, }; +registerFeatureFlag( + 'billing', + 'Billing module', + 'This feature introduces navigation links on the patient chart and home page to allow accessing the billing module features', +); + // t('billing', 'Billing') export const billingDashboardLink = getSyncLifecycle( createLeftPanelLink({ diff --git a/src/routes.json b/src/routes.json index ef2fca9..23c4393 100644 --- a/src/routes.json +++ b/src/routes.json @@ -18,7 +18,8 @@ "name": "billing", "title": "billing", "slot": "billing-dashboard-slot" - } + }, + "featureFlag": "billing" }, { "component": "root", @@ -44,7 +45,8 @@ "columnSpan": 1, "slot": "patient-chart-billing-dashboard-slot", "path": "Billing history" - } + }, + "featureFlag": "billing" }, { "name": "billing-checkin-form",