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

update patient bed switching logic #854

Merged
merged 3 commits into from
Jul 6, 2022
Merged

Conversation

iamsdas
Copy link
Contributor

@iamsdas iamsdas commented Jun 11, 2022

Prevent patients from switching to the same bed during consultation while the previous one hasn't ended.
fixes: #850
fixes: #847 (both are similar/related issues)

@iamsdas iamsdas requested a review from a team as a code owner June 11, 2022 19:14
@iamsdas
Copy link
Contributor Author

iamsdas commented Jun 12, 2022

before merging, do confirm if this was actually a bug and not some design consideration.

@iamsdas iamsdas changed the title prevent switching patient to the same bed update patient bed switching logic Jun 14, 2022
@iamsdas
Copy link
Contributor Author

iamsdas commented Jun 14, 2022

Added commit for preventing bed switching after the patient has been discharged from care.

care/facility/api/serializers/bed.py Outdated Show resolved Hide resolved
care/facility/api/serializers/bed.py Outdated Show resolved Hide resolved
care/facility/api/serializers/bed.py Outdated Show resolved Hide resolved
@iamsdas
Copy link
Contributor Author

iamsdas commented Jun 22, 2022

Added a commit to prevent switching to occupied beds (regardless of consultation).
Added it to address this issue/comment.
This does not affect already existing multi-occupancies of beds. Should I add some kind of migration to handle them? (not sure how that would work though)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants