care icon indicating copy to clipboard operation
care copied to clipboard

Added is_occupied field in Bed

Open khavinshankar opened this issue 2 years ago • 3 comments

Proposed Changes

  • added is_occupied field in Bed
  • update is_occupied field when consultation bed is created (switch bed), patient consultation is created, and when the patient is discharged

Associated Issue

  • Fixes #1084

Architecture changes

  • nil

@coronasafe/code-reviewers

Merge Checklist

  • [ ] Tests added/fixed
  • [ ] Update docs in /docs
  • [ ] Linting Complete

khavinshankar avatar Nov 08 '22 05:11 khavinshankar

Codecov Report

Base: 55.98% // Head: 55.95% // Decreases project coverage by -0.02% :warning:

Coverage data is based on head (8e7fbf5) compared to base (eb52c8a). Patch coverage: 28.57% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1093      +/-   ##
==========================================
- Coverage   55.98%   55.95%   -0.03%     
==========================================
  Files         175      175              
  Lines        8685     8689       +4     
  Branches     1468     1484      +16     
==========================================
  Hits         4862     4862              
- Misses       3771     3775       +4     
  Partials       52       52              
Impacted Files Coverage Δ
care/facility/api/serializers/bed.py 41.02% <0.00%> (-0.72%) :arrow_down:
...e/facility/api/serializers/patient_consultation.py 32.96% <0.00%> (-0.19%) :arrow_down:
care/facility/api/viewsets/patient.py 47.91% <33.33%> (-0.34%) :arrow_down:
care/facility/models/bed.py 83.78% <100.00%> (+1.73%) :arrow_up:
care/users/api/viewsets/change_password.py 61.53% <0.00%> (+1.53%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

codecov-commenter avatar Nov 08 '22 05:11 codecov-commenter

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 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

sonarqubecloud[bot] avatar Nov 10 '22 13:11 sonarqubecloud[bot]

@rithviknishad @sainak review.

vigneshhari avatar Aug 08 '23 18:08 vigneshhari