-
Notifications
You must be signed in to change notification settings - Fork 234
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) - O3-4015 - Ward App - patient should get unassigned from bed at old l… #1326
Conversation
…ocation upon transfer to new location
Size Change: +62 B (0%) Total Size: 6.1 MB ℹ️ View Unchanged
|
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.
A couple comments/questions, but generally LGTM
const { emrConfiguration, isLoadingEmrConfiguration, errorFetchingEmrConfiguration } = useEmrConfiguration(); | ||
const [showErrorNotifications, setShowErrorNotifications] = useState(false); | ||
const wardPatientGrouping = useAppContext<WardPatientGroupDetails>('ward-patients-group'); | ||
const { isLoading, mutate: mutateAdmissionLocation } = wardPatientGrouping?.admissionLocationResponse ?? {}; | ||
const { mutate: mutateInpatientRequest } = wardPatientGrouping?.inpatientRequestResponse ?? {}; |
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.
Is this being used anywhere?
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.
yeah, I refactored this to use the wardPatientGroping
context instead of calling useInpatientRequest()
.
} | ||
return response; |
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.
This may not be needed, but there is still a path where this line could be reached, I think (patient was not assigned to a bed and also is not in a bed on the current ward)?
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.
Good point. I'll leave it in.
…ocation upon transfer to new location
Requirements
Summary
This PR fixes the following scenario:
The patient should have bed X unassigned.
Screenshots
Related Issue
Other