Repository navigation
Give the community desk's ED heads-up a narrow scoped list (D-154) - #1632
Merged
Merged
Conversation
A community team desk's movements hold only its own referrals' journeys, so the Your patients in ED card was empty there. scopeWorkspace now adds communityEdArrivals for a community team desk: its open-episode patients in an ED now, as UMRN, ED name and time only, read from the whole workspace. The ED journey and the person's record stay out of the view. The card reads the list through a new shell context. The mock episode team and status now live in one small list that the record mock-ups spread, so the access code does not load the record mock-ups. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GxPPxjdesrEjVU1zKyiFhd
Contributor
|
Warning Review limit reachedYour organization has reached its usage spending cap. Adjust your spending cap in the billing tab. Next included review available in 27 minutes. View limit details
|
BigSimmo
marked this pull request as ready for review
November 11, 2026 22:24
BigSimmo
enabled auto-merge
November 11, 2026 22:24
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
BigSimmo
pushed a commit
that referenced
this pull request
Nov 11, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GxPPxn8xZAWHw5dJPGdUjY
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GxPPxjdesrEjVU1zKyiFhd
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GxPPxjdesrEjVU1zKyiFhd
BigSimmo
pushed a commit
that referenced
this pull request
Nov 11, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GxPPxn8xZAWHw5dJPGdUjY
BigSimmo
pushed a commit
that referenced
this pull request
Nov 11, 2026
Conflicts: decisions.md keeps main's D-154 before this PR's D-155 and D-156, and D-155's gap note now says both D-153 and D-154 are recorded; script-budget.json takes main's limits plus this PR's own raises (Home +0.5, Movement +0.5, ED site +3.4); FACTS.md and OWNER-RULINGS.md regenerated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GxPPxn8xZAWHw5dJPGdUjY
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.
What this changes
This is the follow-up to #1606 that Josh approved ("Yes, in a follow-up PR", then "Yes I approve", 11 Nov 2026). It is recorded as D-154.
The item 46 "Your patients in ED" card (D-133, D-141) now works on a community team desk. That desk's scoped view only holds the journeys its own role may see, so the card had nothing to read. Now the desk's scoped workspace carries
communityEdArrivals, a narrow list of the team's own open-episode patients who are in an ED now.patients/community-episode-teams.ts, the one place they are typed.patient-record-extras.tsspreads those entries, so the card and the record can't disagree.home-team-heads-up-card.tsxreads the projected list throughuseCommunityEdArrivals()when it exists, and otherwise works it out from the whole workspace as before.scopeWardFlowState, which does not send this list yet, so the card stays empty there. Noted in D-154.Evidence (local)
npm run typecheck:internal: clean.tests/ward-community-ed-arrivals-scope.test.ts(new, 5 tests) checks:edName,key,sinceandumrn.OWNER-RULINGS.mdregenerated, and the decisions anchor check passes.Synthetic data only. Display only. No event, stored field or signed clinical value changes.
Generated by Claude Code