Legal forms export includes admitted patients, and a This-shift request already ended is refused (D-157, D-158)
Follow-up to #1623, which merged at 8:46 AM AWST on 12 November 2026, just after Josh's rulings on its two review threads (8:44ā8:45 AM AWST). Those rulings were not in the merged head. Auto-merge on #1623 was not touched.
The first versions of this PR numbered those rulings D-155 and D-156. That clashed with #1626, which merged at 9:37 AM AWST (main 40ee2b6fd) and already uses D-155 (read-only clock offset check) and D-156 (live world reset, now withdrawn). These rulings are now D-157 and D-158, the next two free numbers after everything claimed on main.
D-157. Legal forms Print and Export include people admitted on a form
Print, Export and their disabled condition include the people in "Admitted on a form" together with the open-movement table rows, using the same admitted set the on-screen admitted group shows. The export's scope line says so. When only the admitted group has records, Print and Export stay available; they stay disabled only when both sets are empty.
Print is window.print() of the current page, so the Admitted on a form group also stays on the Checklist view (not only On a form / clocks). A Checklist print therefore includes those people.
D-158. A This-shift staff request is refused once that shift has ended
A this_shift staff request whose chosen shift has already ended is refused. The Staff needed sheet shows that refusal through its existing save error, with the words "This shift has already ended. Choose this shift or next shift again". A "Next shift" request whose save lands just after the shift changes still keeps the shift the desk chose.
Decision log
The dated entries are in docs/ward-flow/decisions.md. docs/FACTS.md (latest-decision D-158, next-decision D-159) and docs/ward-flow/OWNER-RULINGS.md were regenerated after #1626 released those files.
This PR is unarmed. Please do not arm auto-merge on my behalf.