diff --git a/packages/esm-patient-chart-app/src/index.ts b/packages/esm-patient-chart-app/src/index.ts index 767187e71c..9b51c345a7 100644 --- a/packages/esm-patient-chart-app/src/index.ts +++ b/packages/esm-patient-chart-app/src/index.ts @@ -18,6 +18,7 @@ import patientChartPageComponent from './root.component'; import markPatientAliveActionButtonComponent from './actions-buttons/mark-patient-alive.component'; import markPatientDeceasedActionButtonComponent from './actions-buttons/mark-patient-deceased.component'; import startVisitActionButtonComponent from './actions-buttons/start-visit.component'; +import startVisitActionButtonOnPatientSearch from './visit/start-visit-button.component'; import stopVisitActionButtonComponent from './actions-buttons/stop-visit.component'; import cancelVisitActionButtonComponent from './actions-buttons/cancel-visit.component'; import addPastVisitActionButtonComponent from './actions-buttons/add-past-visit.component'; @@ -132,7 +133,7 @@ export const addPastVisitActionButton = getSyncLifecycle(addPastVisitActionButto moduleName, }); -export const startVisitPatientSearchActionButton = getSyncLifecycle(startVisitActionButtonComponent, { +export const startVisitPatientSearchActionButton = getSyncLifecycle(startVisitActionButtonOnPatientSearch, { featureName: 'start-visit-button-patient-search', moduleName, }); diff --git a/packages/esm-patient-chart-app/src/visit/start-visit-button.component.tsx b/packages/esm-patient-chart-app/src/visit/start-visit-button.component.tsx index 41f7986fb8..e1cc24e514 100644 --- a/packages/esm-patient-chart-app/src/visit/start-visit-button.component.tsx +++ b/packages/esm-patient-chart-app/src/visit/start-visit-button.component.tsx @@ -12,9 +12,6 @@ const StartVisitButton = ({ patientUuid }) => { patientUuid, workspaceName: 'start-visit-workspace-form', }); - navigate({ - to: `\${openmrsSpaBase}/patient/${patientUuid}/chart`, - }); }, [patientUuid]); return (