Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
92097e5
docs(ed-care-plans): land approved plan and apply four user decisions
BigSimmo Aug 20, 2026
3997ea3
docs(ed-care-plans): revise clinical content after design review
BigSimmo Aug 20, 2026
8a2e6a6
docs(care-plan): rename to Care Plan and apply the grilling-round design
BigSimmo Aug 20, 2026
bfbee15
feat(care-plan): define synthetic clinical domain
BigSimmo Aug 20, 2026
e5b3f4c
fix(care-plan): apply product rename and widen amendable fields
BigSimmo Aug 21, 2026
3423449
docs(care-plan): fix four defects the Task 1 implementer surfaced
BigSimmo Aug 21, 2026
2f5a6f3
fix(care-plan): move fictional numbers into the reserved fiction range
BigSimmo Aug 21, 2026
59d101f
fix(care-plan): restore the real crisis lines on the after-hours path
BigSimmo Aug 21, 2026
9d72974
fix(care-plan): make the clinical language guards able to fail
BigSimmo Aug 21, 2026
7b28645
docs(care-plan): derive review state instead of storing it
BigSimmo Aug 21, 2026
8652e73
fix(care-plan): guard fixture prose against impossible chronology
BigSimmo Aug 21, 2026
e796775
feat(care-plan): enforce longitudinal plan lifecycles
BigSimmo Aug 21, 2026
9600e12
docs(care-plan): fix three plan defects Task 2 surfaced
BigSimmo Aug 21, 2026
0e1fb4a
fix(care-plan): raise a participation trigger, drop the connectivity …
BigSimmo Aug 21, 2026
bdcf2f0
docs(care-plan): rule on three findings from the Task 2 review
BigSimmo Aug 21, 2026
def541e
fix(care-plan): reach the withdrawn cohort and cover the safety-plan …
BigSimmo Aug 21, 2026
9227ec4
docs(care-plan): commit the SDD ledger and session handoff
BigSimmo Aug 21, 2026
0447f35
docs(care-plan): record the relocated worktree verification state
BigSimmo Aug 21, 2026
809f360
docs(care-plan): add the complete cross-session work ledger
BigSimmo Aug 21, 2026
ff796ec
style(care-plan): format the handoff documents
BigSimmo Aug 21, 2026
4e34a0a
docs(care-plan): correct the relocation advice after a fourth destruc…
BigSimmo Aug 21, 2026
f01b858
docs(care-plan): the worktree destructions had a known cause, already…
BigSimmo Aug 21, 2026
3febc69
Merge remote-tracking branch 'origin/main' into claude/ed-care-plans-…
BigSimmo Aug 21, 2026
94ffdcd
docs(care-plan): record the origin/main merge and the new worktree
BigSimmo Aug 21, 2026
d421bc2
Merge remote-tracking branch 'origin/main' into claude/ed-care-plans-…
BigSimmo Aug 21, 2026
9d3a104
feat(care-plan): add gated clinical route shell
BigSimmo Aug 21, 2026
bb68ea8
fix(care-plan): keep the synthetic marker in print and key route focu…
BigSimmo Aug 21, 2026
a219158
docs(care-plan): close Task 3 in the ledger with its rulings
BigSimmo Aug 21, 2026
0c9b32c
feat(care-plan): deliver searchable clinical snapshot
BigSimmo Aug 21, 2026
773da7b
fix(care-plan): make the snapshot's safety guards able to fail
BigSimmo Aug 21, 2026
f2f6389
docs(care-plan): record Task 4 rulings and deferred minors
BigSimmo Aug 21, 2026
d66e7a3
fix(care-plan): keep the shell owning focus on every address change
BigSimmo Aug 21, 2026
9bab6ad
docs(care-plan): close Task 4 in the ledger
BigSimmo Aug 21, 2026
891f4bf
feat(care-plan): add management plan reading and print
BigSimmo Aug 22, 2026
90c1d01
fix(care-plan): record a print intent offline and state each plan fac…
BigSimmo Aug 22, 2026
f0a59d5
docs(care-plan): close Task 5 and Stage A in the ledger
BigSimmo Aug 22, 2026
f0ab0d4
docs(care-plan): record the Stage A checkpoint and what it could not …
BigSimmo Aug 22, 2026
01f386a
feat(care-plan): implement governed management plan authoring
BigSimmo Aug 22, 2026
65f9309
fix(care-plan): restore the pinned boundary link and show a first ver…
BigSimmo Aug 22, 2026
2113fe9
fix(care-plan): let the shared error summary keep focus on a failed s…
BigSimmo Aug 22, 2026
e02a03a
docs(care-plan): close Task 6 in the ledger with four rulings
BigSimmo Aug 22, 2026
2be157f
feat(care-plan): track ED presentation continuity
BigSimmo Aug 22, 2026
a8a8264
fix(care-plan): keep ED presentation corrections whole and visible
BigSimmo Aug 22, 2026
5e8f812
docs(care-plan): close Task 7 in the ledger with three rulings
BigSimmo Aug 22, 2026
87b28b3
feat(care-plan): add printable personal safety plans
BigSimmo Aug 22, 2026
79cfa97
fix(care-plan): never print blanks about a person's life on their own…
BigSimmo Aug 22, 2026
9804434
Merge branch 'main' into claude/ed-care-plans-impl-7f44cd
BigSimmo Aug 22, 2026
3456374
Merge branch 'main' into claude/ed-care-plans-impl-7f44cd
BigSimmo Aug 22, 2026
18765c9
fix(care-plan): close review and CI gaps
BigSimmo Aug 22, 2026
e5ee533
Merge remote-tracking branch 'refs/remotes/origin/main' into codex/re…
BigSimmo Aug 22, 2026
7d63632
chore(care-plan): record reviewed bundle baseline
BigSimmo Aug 22, 2026
94398f2
Merge remote-tracking branch 'refs/remotes/origin/claude/ed-care-plan…
BigSimmo Aug 22, 2026
2969b36
fix(care-plan): seed patient search without effect
BigSimmo Aug 22, 2026
f9b6295
Merge branch 'main' into claude/ed-care-plans-impl-7f44cd
BigSimmo Aug 22, 2026
37b03b8
Merge branch 'main' into claude/ed-care-plans-impl-7f44cd
BigSimmo Aug 22, 2026
62afd46
Fix Care Plan integration contracts
BigSimmo Aug 22, 2026
b7c33d4
Merge branch 'main' into claude/ed-care-plans-impl-7f44cd
BigSimmo Aug 22, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitleaksignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,5 @@ a394d76631c7ea3405037baf58091b1c4c47fa3f:tests/codex-cloud-setup.test.ts:generic
# still read on each run and has to be pinned by its own fingerprint. Rewriting it out
# of history would need a force-push, which is worse than one more pinned line.
14535ffc5f05d559f6bccac84099f9e6874bba6a:.gitleaksignore:generic-api-key:49
# Reviewed false positive: a localhost example URL with a dummy API key in a removed handoff document.
92097e53e096bc33c8b23f73874981b2e3214af3:docs/ed-care-plans/claude-build-handover-2026-08-21.md:generic-api-key:360
14 changes: 7 additions & 7 deletions bundle-budget.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@
"$comment": "Client JS bundle-size budgets captured from a known-good production build. `production` guards aggregate user-facing chunks, `routes` guards the five Lighthouse journeys against route-local growth, and `mockups` is a looser design-scratch hygiene ceiling. Refresh intentionally with `npm run check:bundle-budget -- --update`.",
"enforce": true,
"production": {
"gzipBytes": 1518033,
"gzipBytes": 1648623,
"tolerancePct": 10
},
"mockups": {
"gzipBytes": 379113,
"gzipBytes": 507074,
"tolerancePct": 25
},
"routes": {
"/": {
"gzipBytes": 203889,
"gzipBytes": 221945,
"tolerancePct": 10
},
"/documents/search": {
"gzipBytes": 206572,
"gzipBytes": 225102,
"tolerancePct": 10
}
},
"totalGzipBytes": 1708296,
"totalGzipBytes": 2155697,
"tolerancePct": 10,
"updatedAt": "2026-08-18T00:00:00.000Z",
"baselineSource": "9d832452dc317844349d178683ba15d185eceb5d"
"updatedAt": "2026-08-22T09:36:03.203Z",
"baselineSource": "e5ee533bc04ff0ab34ff17c23341cb67abf3d59a"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
| 2026-08-22 | PR #2274 | 9804434ca02c717ebad436ecc3dc545b8780eab8 | PR #2274 full diff vs refs/remotes/origin/main | Two P2 behavior defects fixed; CI policy, secret-scan, design-system, and bundle failures remediated; stale session artifacts removed; current Developer Hub integration restored with honest staged scope. | fresh Next build PASS; focused Care Plan and Developer Hub tests PASS 235/235; typecheck PASS; design-system PASS; bundle-budget PASS; production-readiness source checks PASS but provider configuration environment-gated |
135 changes: 135 additions & 0 deletions docs/care-plan-context.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
# Care Plan — domain glossary

The ubiquitous language for the Care Plan context. This glossary defines the clinical-workflow concepts without describing schemas, routes, components, or implementation choices.

## People and services

**Patient**:
A person whose recurrent emergency care may benefit from a shared continuity plan. A patient is never defined by their presentation count.
_Avoid_: Frequent flyer, high utilizer, problem patient

**Community Mental Health Team (CMHT)**:
The community service responsible for ongoing specialist mental-health care and coordination during its stated operating hours.
_Avoid_: Clinic, case-management inbox

**Care Coordinator**:
A named clinician who coordinates the patient's community care within the CMHT. The CMHT remains the durable service contact when the named person is unavailable.
_Avoid_: Plan owner, approver

**Support Person**:
A family member, carer, advocate, peer, cultural support, or other person the patient wants involved in communication or decisions.
_Avoid_: Next of kin, unless that legal relationship is specifically meant

## Presentation activity

**ED Presentation**:
One episode beginning when the patient arrives at an emergency department and ending in a recorded disposition. It is an episode record, not the patient and not the longitudinal plan.
_Avoid_: Visit, attendance, encounter

**Presenting Indication**:
A concise statement of why emergency assessment was sought during one ED Presentation. It is not automatically a diagnosis or a description of clinical severity.
_Avoid_: Chief complaint, diagnosis

**Presentation Outcome**:
The concise assessment and disposition result recorded when an ED Presentation closes.
_Avoid_: Plan outcome, treatment success

**Presentation Activity**:
Objective counts of a patient's ED Presentations over an explicitly stated period. Activity can prompt human review but never determines a diagnosis, risk state, or mandatory pathway.
_Avoid_: Frequent-presenter score, risk score

**Presentation Amendment**:
A visible, attributed correction to a completed ED Presentation. It preserves the original record and states what changed and why.
_Avoid_: Edit, overwrite

## Identification

**Identification Policy**:
The locally governed rule describing when presentation activity or professional referral should prompt review for coordinated care planning. No approved numeric rule exists in this prototype.
_Avoid_: Algorithm, clinical rule

**Identification Review**:
A human multidisciplinary review of whether coordinated care planning may benefit the patient. It does not enrol the patient, create a plan, or make a severity judgment.
_Avoid_: Frequent-presenter flag, automatic enrolment

**Manual Referral**:
An authorised clinician's reasoned request for Identification Review independent of any numeric threshold.
_Avoid_: Override

## Management planning

**Management Plan**:
The patient's longitudinal clinician-facing continuity record for psychiatric ED presentations. It is one evolving plan composed of controlled versions, not a new plan for every presentation.
_Avoid_: ED note, treatment order, risk assessment

**Management Plan Version**:
One preserved edition of the Management Plan with an author, reason, state, and review history.
_Avoid_: Copy, document

**Current Plan**:
The single Management Plan Version approved for use now. Only named senior-clinician approval makes a version Current.
_Avoid_: Latest plan, active draft

**Draft**:
A proposed Management Plan Version that can be edited but is not approved for use. A Draft never displaces the Current Plan.
_Avoid_: Working Current Plan

**Awaiting Approval**:
A submitted Management Plan Version that is read-only while a senior clinician compares and approves it or returns it for changes.
_Avoid_: Current, approved

**Superseded Plan**:
A previously Current Management Plan Version replaced by a newer approved version. It remains available as history and never becomes Current again automatically.
_Avoid_: Expired plan

**Withdrawn Plan**:
A formerly Current Management Plan Version deliberately removed from current use with a recorded reason. Withdrawal leaves no Current Plan unless another version is separately approved.
_Avoid_: Deleted plan

**Review State**:
The currency of a Current Plan relative to its formal review expectation: within review, due soon, or overdue. An overdue Current Plan remains Current until reviewed, replaced, or withdrawn.
_Avoid_: Version state, expiry

**Plan Owner**:
The clinician or team accountable for coordinating review and keeping the Management Plan current. Ownership does not itself grant approval.
_Avoid_: Care Coordinator, approver

**Approver**:
The named senior clinician who confirms that a submitted Management Plan Version can become Current.
_Avoid_: Author, owner

**Review Trigger**:
A reason the Current Plan should be reconsidered, such as ineffective guidance, changed circumstances, repeated deviation, or stale contact information. A trigger never changes the plan automatically.
_Avoid_: Alert, automatic update

**Plan-use Feedback**:
The ED clinician's structured account of whether the Current Plan was available, used, and helpful during one ED Presentation.
_Avoid_: Compliance score, effectiveness verdict

## Personal safety planning

**Personal Safety Plan**:
A distinct patient-owned, patient-voice plan for recognising distress, using coping strategies, making the environment safer, and reaching personal and professional support.
_Avoid_: Management Plan section, risk-management plan

**Personal Safety Plan Version**:
One preserved edition of the Personal Safety Plan with a collaboration and patient-confirmation state. It does not require Management Plan approval.
_Avoid_: Clinical plan version

**Patient Confirmation**:
The recorded state of the patient's involvement with a Personal Safety Plan Version: confirmed, discussed but not confirmed, declined, or unavailable.
_Avoid_: Clinical approval, compliance

## Communication and evidence

**Contact Action**:
An explicit attempt to open an external telephone or email application using displayed service details. It is not evidence that communication occurred.
_Avoid_: Contact completed, message sent

**Contact Verification**:
Confirmation that a CMHT's shared contact details and operating hours were checked on a stated date.
_Avoid_: Service availability guarantee

**Audit Event**:
An attributed record that a meaningful workflow action occurred inside Care Plan. It describes only evidence the application actually has.
_Avoid_: Activity feed, communication log
7 changes: 6 additions & 1 deletion docs/design-system/adoption-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,11 @@
"preview": ".design-sync/previews/ErrorSummary.tsx",
"previewValid": true
},
"testFiles": ["tests/design-sync-visual-exports.test.ts", "tests/ui-v2-form-field.dom.test.tsx"],
"testFiles": [
"tests/care-plan-linked-routes.dom.test.tsx",
"tests/design-sync-visual-exports.test.ts",
"tests/ui-v2-form-field.dom.test.tsx"
],
"baseline": {
"targetLayer": "v2",
"liveLayer": "v2",
Expand Down Expand Up @@ -1634,6 +1638,7 @@
"tests/mobile-sheet-safe-area-contract.test.ts",
"tests/mode-nav-contract.test.ts",
"tests/mode-nav.dom.test.tsx",
"tests/print-output-capabilities.dom.test.tsx",
"tests/rag-answer-fallback.test.ts",
"tests/settings-dialog-actions.dom.test.tsx",
"tests/sheet-focus-stress.dom.test.tsx",
Expand Down
21 changes: 21 additions & 0 deletions docs/site-map.md
Original file line number Diff line number Diff line change
Expand Up @@ -1153,6 +1153,27 @@ This file is generated by `npm run docs:update` (or `npm run sitemap:update` dir
- `/mockups/calculators-popup-sheet` - Route discovered from app directory Source: `src/app/mockups/calculators-popup-sheet/page.tsx`.
- `/mockups/calculators-search` - Route discovered from app directory Source: `src/app/mockups/calculators-search/page.tsx`.
- `/mockups/calculators-search-page` - Route discovered from app directory Source: `src/app/mockups/calculators-search-page/page.tsx`.
- `/mockups/care-plan` - Route discovered from app directory Source: `src/app/mockups/care-plan/page.tsx`.
- `/mockups/care-plan/governance` - Route discovered from app directory Source: `src/app/mockups/care-plan/governance/page.tsx`.
- `/mockups/care-plan/patients` - Route discovered from app directory Source: `src/app/mockups/care-plan/patients/page.tsx`.
- `/mockups/care-plan/patients/[patientId]` - Route discovered from app directory Source: `src/app/mockups/care-plan/patients/[patientId]/page.tsx`.
- `/mockups/care-plan/patients/[patientId]/history` - Route discovered from app directory Source: `src/app/mockups/care-plan/patients/[patientId]/history/page.tsx`.
- `/mockups/care-plan/patients/[patientId]/management-plan` - Route discovered from app directory Source: `src/app/mockups/care-plan/patients/[patientId]/management-plan/page.tsx`.
- `/mockups/care-plan/patients/[patientId]/management-plan/edit` - Route discovered from app directory Source: `src/app/mockups/care-plan/patients/[patientId]/management-plan/edit/page.tsx`.
- `/mockups/care-plan/patients/[patientId]/management-plan/print` - Route discovered from app directory Source: `src/app/mockups/care-plan/patients/[patientId]/management-plan/print/page.tsx`.
- `/mockups/care-plan/patients/[patientId]/management-plan/review` - Route discovered from app directory Source: `src/app/mockups/care-plan/patients/[patientId]/management-plan/review/page.tsx`.
- `/mockups/care-plan/patients/[patientId]/patient-plan` - Route discovered from app directory Source: `src/app/mockups/care-plan/patients/[patientId]/patient-plan/page.tsx`.
- `/mockups/care-plan/patients/[patientId]/patient-plan/edit` - Route discovered from app directory Source: `src/app/mockups/care-plan/patients/[patientId]/patient-plan/edit/page.tsx`.
- `/mockups/care-plan/patients/[patientId]/patient-plan/print` - Route discovered from app directory Source: `src/app/mockups/care-plan/patients/[patientId]/patient-plan/print/page.tsx`.
- `/mockups/care-plan/patients/[patientId]/presentations` - Route discovered from app directory Source: `src/app/mockups/care-plan/patients/[patientId]/presentations/page.tsx`.
- `/mockups/care-plan/patients/[patientId]/presentations/[presentationId]` - Route discovered from app directory Source: `src/app/mockups/care-plan/patients/[patientId]/presentations/[presentationId]/page.tsx`.
- `/mockups/care-plan/patients/[patientId]/presentations/new` - Route discovered from app directory Source: `src/app/mockups/care-plan/patients/[patientId]/presentations/new/page.tsx`.
- `/mockups/care-plan/patients/[patientId]/safety-plan` - Route discovered from app directory Source: `src/app/mockups/care-plan/patients/[patientId]/safety-plan/page.tsx`.
- `/mockups/care-plan/patients/[patientId]/safety-plan/edit` - Route discovered from app directory Source: `src/app/mockups/care-plan/patients/[patientId]/safety-plan/edit/page.tsx`.
- `/mockups/care-plan/patients/[patientId]/safety-plan/print` - Route discovered from app directory Source: `src/app/mockups/care-plan/patients/[patientId]/safety-plan/print/page.tsx`.
- `/mockups/care-plan/reviews` - Route discovered from app directory Source: `src/app/mockups/care-plan/reviews/page.tsx`.
- `/mockups/care-plan/system-states` - Route discovered from app directory Source: `src/app/mockups/care-plan/system-states/page.tsx`.
- `/mockups/care-plan/team` - Route discovered from app directory Source: `src/app/mockups/care-plan/team/page.tsx`.
- `/mockups/caring-contacts` - Route discovered from app directory Source: `src/app/mockups/caring-contacts/page.tsx`.
- `/mockups/caring-contacts/contacts/[contactId]` - Route discovered from app directory Source: `src/app/mockups/caring-contacts/contacts/[contactId]/page.tsx`.
- `/mockups/caring-contacts/guidance` - Route discovered from app directory Source: `src/app/mockups/caring-contacts/guidance/page.tsx`.
Expand Down
Loading
Loading