-
Notifications
You must be signed in to change notification settings - Fork 248
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
(fix) Revalidate visits after submitting the visit notes form #1701
Conversation
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.
Looks okay.
@@ -63,6 +64,45 @@ export function useVisitNotes(patientUuid: string): UseVisitNotes { | |||
}; | |||
} | |||
|
|||
export function useInfiniteVisits(patientUuid: string) { |
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.
@vasharma05, @ibacher, @brandones should this hook move to Common Lib instead? It's a copy of what exists in the Patient Chart here.
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.
Seems reasonable. It has a simple API and what it does is fairly complex; and it will be good to ensure that the cache gets hit 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.
Thanks, @nanfuka!
…s#1701) * Mutate visits when visit note is saved * Fix tests * Fix tests * Edit tests
Requirements
Summary
This pull request addresses an issue where the Visit Note was not appearing as saved if the user was on the Visits/Notes page when completing a visit note. The fix ensures that the Visit Note is displayed in both the visit summaries and all encounters.
Screenshots
latest.mp4
Related Issue
https://openmrs.atlassian.net/browse/O3-1721
Other