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

Create ConsultationBed only on if Admission and migrates existing non-admission ConsultationBeds. #1314

Merged
merged 4 commits into from
May 25, 2023

Conversation

rithviknishad
Copy link
Member

@rithviknishad rithviknishad commented May 24, 2023

Proposed Changes

  • Create ConsultationBed only if the decision after consultation is "Admission"
  • Migrates existing such ConsultationBeds to have end_date equal to discharge_date (since its soft delete) and soft deletes it too.

Before Migration

image
image

After Migration

image

Associated Issue

Architecture changes

@coronasafe/code-reviewers

Merge Checklist

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

@rithviknishad rithviknishad added waiting-for-review P1 High priority; urgent labels May 24, 2023
@rithviknishad rithviknishad requested a review from a team as a code owner May 24, 2023 15:27
@codecov-commenter
Copy link

codecov-commenter commented May 25, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (7979928) 56.72% compared to head (7f10979) 56.72%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1314   +/-   ##
=======================================
  Coverage   56.72%   56.72%           
=======================================
  Files         199      199           
  Lines        9863     9863           
  Branches     1645     1645           
=======================================
  Hits         5595     5595           
  Misses       4213     4213           
  Partials       55       55           
Impacted Files Coverage Δ
...e/facility/api/serializers/patient_consultation.py 37.10% <0.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@sonarcloud
Copy link

sonarcloud bot commented May 25, 2023

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

@nihal467
Copy link
Member

LGTM after testing it in @rithviknishad tunnel

@vigneshhari vigneshhari merged commit 29c77fb into master May 25, 2023
6 checks passed
yaswanthsaivendra pushed a commit to yaswanthsaivendra/care that referenced this pull request May 30, 2023
…on-admission `ConsultationBed`s. (coronasafe#1314)

* create consultation bed only on admission

* migratees existing non-admission consultation beds

* optimize query

* delete after update
@sainak sainak deleted the consultation-bed-only-on-admission branch June 6, 2023 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 High priority; urgent waiting-for-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bed Droplist is malfunctioning across the platform
4 participants