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

Remove volunteer when patient is discharged #959

Merged
merged 2 commits into from
Aug 11, 2022

Conversation

Ashesh3
Copy link
Member

@Ashesh3 Ashesh3 commented Aug 1, 2022

Fixes coronasafe/care_fe#3272

Removed the assigned volunteer when the patient is discharged.

def discharge_patient
....
    patient.assigned_to = None
....

@Ashesh3 Ashesh3 requested a review from a team as a code owner August 1, 2022 14:24
@codecov-commenter
Copy link

Codecov Report

Merging #959 (0507d69) into master (12f9dc4) will decrease coverage by 1.42%.
The diff coverage is 51.35%.

@@            Coverage Diff             @@
##           master     #959      +/-   ##
==========================================
- Coverage   54.18%   52.75%   -1.43%     
==========================================
  Files         182      182              
  Lines        8930     8933       +3     
==========================================
- Hits         4839     4713     -126     
- Misses       4091     4220     +129     
Impacted Files Coverage Δ
care/facility/api/viewsets/patient.py 48.07% <51.35%> (-0.17%) ⬇️
...e/utils/serializer/phonenumber_ispossible_field.py 50.00% <0.00%> (-43.75%) ⬇️
config/serializers.py 36.84% <0.00%> (-31.58%) ⬇️
care/audit_log/middleware.py 47.36% <0.00%> (-22.81%) ⬇️
care/users/models.py 73.94% <0.00%> (-16.20%) ⬇️
...are/facility/models/mixins/permissions/facility.py 34.78% <0.00%> (-15.22%) ⬇️
care/users/api/viewsets/users.py 43.50% <0.00%> (-12.34%) ⬇️
care/facility/api/viewsets/facility.py 51.11% <0.00%> (-10.00%) ⬇️
care/users/api/serializers/user.py 57.50% <0.00%> (-9.17%) ⬇️
care/facility/models/patient.py 88.09% <0.00%> (-6.75%) ⬇️
... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 12f9dc4...0507d69. Read the comment docs.

@sonarcloud
Copy link

sonarcloud bot commented Aug 2, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.3% 0.3% Duplication

@vigneshhari vigneshhari merged commit a0e4ef1 into coronasafe:master Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Assign to Volunteer : Malfunction in Patient Detail
4 participants