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

Cleanup leftover admitted_to references #841

Merged

Conversation

Ashesh3
Copy link
Member

@Ashesh3 Ashesh3 commented Jun 8, 2022

The attribute admitted_to was removed from the PatientConsultationSerializer (here) but is still referred to in some parts. This change cleans up all the leftover code working with admitted_to. It also removes ADMIT_CHOICES which was exclusively used by admitted_to.

This change would be an addition to fix coronasafe/care_fe#2642 since the search filter there (Last Admitted to (Bed Type)) points to this deprecated and removed attribute.

Also some formatting issues by pre-commit-hooks

Frontend change: coronasafe/care_fe#2659

closes #911

@Ashesh3 Ashesh3 requested a review from a team as a code owner June 8, 2022 16:51
Copy link
Member

@skks1212 skks1212 left a comment

Choose a reason for hiding this comment

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

LGTM

@vigneshhari
Copy link
Member

These changes needs to be vetted in detail since there might be a lot of broken references, This PR's review will be delayed.

@Ashesh3
Copy link
Member Author

Ashesh3 commented Jul 6, 2022

closes #911

@sainak
Copy link
Member

sainak commented Jul 12, 2022

merging with #924

@sainak sainak changed the base branch from master to sainAk/fix/regression-from-715 July 12, 2022 19:05
@sainak sainak merged commit 738d45c into coronasafe:sainAk/fix/regression-from-715 Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

python manage.py summarize is not working Patient list filter "Last Admitted" fails
5 participants