-
Notifications
You must be signed in to change notification settings - Fork 363
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
fixed location encounter bug #2882
base: develop
Are you sure you want to change the base?
fixed location encounter bug #2882
Conversation
📝 WalkthroughWalkthroughThis PR enhances the transactional integrity of the encounter handling logic. The function Changes
Sequence Diagram(s)sequenceDiagram
participant E as Encounter Object
participant L as FacilityLocation
participant LE as FacilityLocationEncounter
participant TX as Transaction Block
E->>+TX: Trigger close_related_location_from_encounter
TX->>L: Set current_encounter to None
TX->>LE: Update end_datetime and status for non-completed encounters
TX-->>-E: Commit transaction and finish update
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
⏰ Context from checks skipped due to timeout of 90000ms (2)
🔇 Additional comments (2)
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #2882 +/- ##
===========================================
- Coverage 56.29% 56.28% -0.01%
===========================================
Files 226 226
Lines 10978 10979 +1
Branches 1117 1117
===========================================
Hits 6180 6180
- Misses 4781 4782 +1
Partials 17 17 ☔ View full report in Codecov by Sentry. |
Proposed Changes
Associated Issue
-Fixes ohcnetwork/care_fe#10909
Only PR's with test cases included and passing lint and test pipelines will be reviewed
@ohcnetwork/care-backend-maintainers @ohcnetwork/care-backend-admins
Summary by CodeRabbit
Bug Fixes
Tests