Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

O3-2933 Add patient flag for billing app features #20

Merged
merged 1 commit into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/dashboard.meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ export const dashboardMeta = {
columns: 1,
title: 'Billing history',
path: 'Billing history',
hideDashboardTitle: true,
};
8 changes: 7 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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({
Expand Down
6 changes: 4 additions & 2 deletions src/routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"name": "billing",
"title": "billing",
"slot": "billing-dashboard-slot"
}
},
"featureFlag": "billing"
},
{
"component": "root",
Expand All @@ -44,7 +45,8 @@
"columnSpan": 1,
"slot": "patient-chart-billing-dashboard-slot",
"path": "Billing history"
}
},
"featureFlag": "billing"
},
{
"name": "billing-checkin-form",
Expand Down
Loading