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-3686 Add ability to close active visit on medication dispense #115

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

Conversation

donaldkibet
Copy link
Member

Requirements

  • This PR has a title that briefly describes the work done, including the ticket number if there is a ticket.
  • My work conforms to the OpenMRS 3.0 Styleguide and design documentation.
  • My work includes tests or is validated by existing tests.

Summary

see https://openmrs.atlassian.net/browse/O3-3686

Screenshots

Kapture.2024-08-02.at.07.15.31.mp4

Related Issue

Other

@ojwanganto
Copy link

Thanks, @donaldkibet. I defer to the rest for their reviews

Copy link

@ojwanganto ojwanganto left a comment

Choose a reason for hiding this comment

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

Copy link
Member

@mogoodrich mogoodrich left a comment

Choose a reason for hiding this comment

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

Generally, LGTM, thanks @donaldkibet !

I didn't dig super-deep into the form handler, but it looks right, we can test.

One thing, it looks like you handled this, but since we can't handle this transactionally (all in one request) it's good to have as helpful error messages as possible, saying exactly what succeeded and what didn't.

enabled: {
_type: Type.Boolean,
_description:
'Enables or disables the ending of the current visit upon medication dispensing. When set to true, the system will attempt to end the visit after a successful medication dispense, subject to the conditions specified in the "visitTypes" config.',
Copy link
Member

Choose a reason for hiding this comment

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

Minor note, you might want to clarify that this renders a checkbox to close the visit, it doesn't automatically close the visit (if I'm understanding correctly)

Choose a reason for hiding this comment

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

+1

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.

3 participants