Skip to content

[bot] Merge 26.7 to 26.11 - #793

Open
github-actions[bot] wants to merge 2 commits into
release26.11-SNAPSHOTfrom
26.11_fb_bot_merge_26.7
Open

github-actions[bot] wants to merge 2 commits into
release26.11-SNAPSHOTfrom
26.11_fb_bot_merge_26.7

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

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

labkey-martyp and others added 2 commits November 28, 2026 09:45
## 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants