-
Notifications
You must be signed in to change notification settings - Fork 27
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
base: main
Are you sure you want to change the base?
Conversation
Thanks, @donaldkibet. I defer to the rest for their reviews |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @donaldkibet. CC @mogoodrich @denniskigen
There was a problem hiding this 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.', |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
Requirements
Summary
see https://openmrs.atlassian.net/browse/O3-3686
Screenshots
Kapture.2024-08-02.at.07.15.31.mp4
Related Issue
Other