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

(feat) O3-4370 : Discard Button to Return to Patient Search Instead of Closing Workspace #2265

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Muppasanipraneeth
Copy link
Contributor

Requirements

  • This PR has a title that briefly describes the work done including the ticket number. If there is a ticket, make sure your PR title includes a conventional commit label. See existing PR titles for inspiration.
  • My work conforms to the OpenMRS 3.0 Styleguide and design documentation.
  • My work includes tests or is validated by existing tests.

Summary

  • If the user clicks on the “Discard“ button when starting a visit in the queues app, it should return them to the patient search. Currently it closes the workspace.

Screenshots

Screen.Recording.2025-02-25.at.2.53.56.PM.mov

Related Issue

Jira ticket

Other

@Muppasanipraneeth
Copy link
Contributor Author

patient management pr

@Muppasanipraneeth
Copy link
Contributor Author

here while clicking on the discard it close the workspace as normally

Screen.Recording.2025-02-25.at.3.56.30.PM.mov

@Muppasanipraneeth
Copy link
Contributor Author

@denniskigen , @ibacher! Could you please review this PR

…-in-the-queues-app-should-return-to-patient-chart
…-in-the-queues-app-should-return-to-patient-chart
…-in-the-queues-app-should-return-to-patient-chart
@@ -6,9 +6,10 @@ import { showSnackbar } from '@openmrs/esm-framework';

interface StartVisitButtonProps {
patientUuid: string;
handleBackToSearchList: () => void;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Muppasanipraneeth the solution looks perfect, small nitpick shouldn't this new attribute be optional as the start visit button is used in other locations where it does not need to go back to search visit

Suggested change
handleBackToSearchList: () => void;
handleBackToSearchList?: () => void;

…-in-the-queues-app-should-return-to-patient-chart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants