Repository navigation
[bot] Merge 26.7 to 26.11 - #793
Open
github-actions[bot] wants to merge 2 commits into
Open
github-actions[bot] wants to merge 2 commits into
github-actions[bot] wants to merge 2 commits into
Conversation
## Rationale This PR keeps a clinical case and the rest of its task in step whenever the case is saved from another form or closed, asks the user before a case form moves an existing Completed case to a new status, and stops same-day case closures from leaving the case's task impossible to save. Using Case Update on a case still in Review Required saved it from a new task, which moved only the case to Completed and left its remarks, observations and orders in review, still blocking death and departure entry for the animal; the Record Procedure and Record Treatment links did the same through the Clinical and Behavioral Rounds forms. Separately, closing a case before its automatic daily observation orders started gave those orders an end date before their start date, which raised a warning that disabled Submit Final on every later save of the task. ## Related Pull Requests None. ## Changes - Case Update opens the case's own task until the case is Completed; a Completed case, or one on no task, opens a new case form instead. - Submitting a clinical or behavioral case form for an existing case that is Completed or on no task asks whether to move the whole case to the new status and onto the form's task, or to save only the form's other records; the case's own edits save either way. - A save from another task keeps the case's status and task unless the user moves it; one that edits a case still unfinished on its own task and would change its status is rejected with a message pointing to the case's own task. - Saving a draft never takes a submitted case back to In Progress, and a draft that edits such a case is rejected. - Rounds forms hide the case's Edit button and lock its date and time inputs, so the case stays read-only there. - A saved case always opens locked behind Edit, including its date and time inputs, and Edit never unlocks the animal Id; a case created on the page stays open after Save Draft. - Closing a case ends its orders in the same save, ending an order that starts after the close on its own start date, and deletes the unstarted daily observation orders that have no recorded observations. - Closing a case never moves an earlier order end date later, and moving a close later or clearing it reopens the orders that close ended. - The form's stale copy of an order can no longer overwrite an end date that closing or reopening the case set. - A case save changes its orders as the EHR admin user, so the saving user needs no rights to the case's Completed and Review Required orders. - Tests cover the Case Update link, the own-task status guard, drafts and moves on a submitted case, same-day case closes, recording a procedure against a case in review, and a review round trip through the case status dialog.
This file contains hidden or 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
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.
Generated automatically.
Merging changes from: b780e23
Approve all matching PRs simultaneously.
Approval will trigger automatic merge.
Verify all PRs before approving: https://internal.labkey.com/Scrumtime/Backlog/harvest-gitOpenPullRequests.view?branch=26.11_fb_bot_merge_26.7