From 937d9b8ff7f8d5424cdf58701fa7821e481f941e Mon Sep 17 00:00:00 2001 From: reagan-meant Date: Thu, 24 Oct 2024 10:42:29 +0300 Subject: [PATCH] Move feature flag definition to routes --- packages/esm-patient-search-app/src/index.ts | 2 -- packages/esm-patient-search-app/src/routes.json | 7 +++++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/esm-patient-search-app/src/index.ts b/packages/esm-patient-search-app/src/index.ts index 2b67336989..28db569534 100644 --- a/packages/esm-patient-search-app/src/index.ts +++ b/packages/esm-patient-search-app/src/index.ts @@ -36,8 +36,6 @@ export const patientSearchBar = getSyncLifecycle(patientSearchBarComponent, opti export function startupApp() { defineConfigSchema(moduleName, configSchema); - registerFeatureFlag('mpiFlag', 'MPI Service', 'Enables the Master Patient Index workflows'); - setupDynamicOfflineDataHandler({ id: 'esm-patient-search-app:patient', type: 'patient', diff --git a/packages/esm-patient-search-app/src/routes.json b/packages/esm-patient-search-app/src/routes.json index 851460d2e8..1b160a3279 100644 --- a/packages/esm-patient-search-app/src/routes.json +++ b/packages/esm-patient-search-app/src/routes.json @@ -28,5 +28,12 @@ "slot": "patient-search-bar-slot", "offline": true } + ], + "featureFlags": [ + { + "flagName": "mpiFlag", + "label": "MPI Service", + "description": "Enables the Master Patient Index workflows." + } ] }