-
Notifications
You must be signed in to change notification settings - Fork 324
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
Fix for Incorrect Discharge Reasons in Patient Transfers and Readmissions #1712
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
and handle patient transfer validation
Ashesh3
requested review from
vigneshhari,
rithviknishad,
khavinshankar and
sainak
November 14, 2023 15:42
khavinshankar
approved these changes
Nov 14, 2023
rithviknishad
approved these changes
Nov 14, 2023
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #1712 +/- ##
==========================================
+ Coverage 60.43% 60.62% +0.18%
==========================================
Files 210 210
Lines 11473 11484 +11
Branches 1630 1633 +3
==========================================
+ Hits 6934 6962 +28
+ Misses 4307 4284 -23
- Partials 232 238 +6 ☔ View full report in Codecov by Sentry. |
LGTM |
sainak
requested changes
Nov 14, 2023
Co-authored-by: Aakash Singh <[email protected]>
sainak
approved these changes
Nov 14, 2023
vigneshhari
requested changes
Nov 15, 2023
vigneshhari
approved these changes
Nov 16, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes ohcnetwork/care_fe#6597
Fixes ohcnetwork/care_fe#6593
Overview
This pull request addresses two critical issues in the patient management system regarding the handling of discharge reasons during patient transfers and readmissions. The changes ensure accurate tracking of patient movements and statuses within the healthcare facilities.
Changes Made
Resolving 'Unknown' Discharge Reason in Patient Transfers (Issue #6593):
PatientTransferSerializer
to correctly set the discharge reason as "Referred" when a patient is transferred from one facility to another.patient.py
to reflect these changes, ensuring that the discharge reason is accurately updated in the system.Correcting Discharge Reason for Telemedicine Patients upon Readmission (Issue #6597):
patient.py
to handle cases where telemedicine patients are readmitted as regular patients. Previously, the discharge reason was incorrectly shown as "Unknown".viewsets/patient.py
to prevent transferring a patient to the same facility if there is already an active consultation for the patient. This change addresses the issue where the system incorrectly allowed such transfers, leading to data inconsistencies.Impact
These updates bring significant improvements to the system's accuracy in handling patient transfers and readmissions. They ensure that healthcare providers have access to correct and timely information regarding patient movements, which is crucial for effective patient care and administrative processes.
Testing
The changes have been thoroughly tested to ensure they address the issues without introducing any new bugs or regressions. The system now correctly reflects the "Referred" discharge reason for transferred patients and handles telemedicine patient readmissions appropriately, aligning with expected behaviors.
@coronasafe/care-backend-maintainers @coronasafe/care-backend-admins