Skip to content

Commit

Permalink
(fix) O3-2707: Patient Search: Start visit button doesn't work (#1570)
Browse files Browse the repository at this point in the history
fix: fix start visit on patient search
  • Loading branch information
usamaidrsk committed Jan 9, 2024
1 parent 1442849 commit 9e079cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion packages/esm-patient-chart-app/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ const StartVisitButton = ({ patientUuid }) => {
patientUuid,
workspaceName: 'start-visit-workspace-form',
});
navigate({
to: `\${openmrsSpaBase}/patient/${patientUuid}/chart`,
});
}, [patientUuid]);

return (
Expand Down

0 comments on commit 9e079cf

Please sign in to comment.