33 — Care Pathways (Planning Ahead)
Version: 1.3
Last Updated: 2026-06-04
Status: Product specification complete — not implemented (no migrations, router, or shipped UI)
Implementation: 04-ROADMAP.md §10.5 (D31) · debt 32 D31
Illustrative UI: docs/01 - BUSINESS REQUIRMENTS/assets/planning-ahead-mockup.html (asset not currently in repo) (open in browser)
Master requirements: 02-REQUIREMENTS.md §7.40 (REQ-PATH-01–34)
Archetype context: Palliative Care Archetypes.md §10 · Daily self-care catalogue: §3.6
Roadmap: 04-ROADMAP.md §10.5 · §Master Phase 2 (planned Stream 3 extension)
Design system: 03-DESIGN-SYSTEM.md — Calm Care tokens (cc-card,cc-btn-*, warm canvas)
Module slug: care_pathways
Tier: Family, Complete (bundled with palliative coordination features; same commercial posture as condition_templates)
Route (planned): /planning-ahead
Depends on: Patient has at least one Care Archetype selected (patients.archetype_id — via API or future family UI; archetype onboarding UI withdrawn 2026-06-26)
1. Purpose
Section titled “1. Purpose”Care Pathways gives families a separate, reflective surface for understanding where they may be in the lifecycle of their care situation — and for choosing, without pressure, which topics they want to think about, discuss, or act on.
It addresses a gap the daily modules do not cover:
| Daily modules (Home, meds, observations) | Care Pathways |
|---|---|
| Record what happened today | Prepare for what might come next |
| Operational, fast, shift-focused | Informative, paced, family-dialogue-driven |
| Stock alerts, due doses | Anticipatory medicines, equipment, wishes, crisis plans |
| System can count doses | System cannot infer clinical stage from drug names alone |
Care Pathways is support UX, not compliance UX. Nothing is mandatory. Stages are informative. Placement is self-declared after reading. Individual topics can be promoted to tasks or set aside (dulled, not hidden).
2. Product philosophy (locked decisions)
Section titled “2. Product philosophy (locked decisions)”These decisions come from product research (GSF, SPICT, PCOC, anticipatory prescribing literature) and family-centric design sessions (2026-06-04).
| Principle | Rule |
|---|---|
| Informative, not compulsory | No progress bars, no “complete your pathway”, no locked features behind stage completion. |
| Self-declared stage | Only a human taps “Do you think you’re approaching this stage?” after reading. The system never auto-assigns a stage. Care alert notifies the circle when a carer/admin acknowledges (§7.3). |
| Peer-level care circle | Any carer or admin with patient access may acknowledge or undo a stage. No weighting, no “primary carer wins”. Observers read-only. |
| Family dialogue assumed | The app records choices; it does not adjudicate family disagreement. |
| Reversible | Stage acknowledgment has undo (“We’re not at this stage after all”). Undo clears current and later stage highlights; restores previous placement or none. Care alert notifies the circle on undo as well (§7.3). |
| Per-topic interest | Each consideration card — curated or family-added — offers Add to our tasks (prominent) or Not for us right now (dulled, still visible). |
| Family additions | Carers/admins may add their own topics to any stage (especially the stage they believe they are in). Custom items are managed the same way as curated cards (§5.4). |
| Task ownership | Planning tasks support I’ll take this on — assignee visible to the whole care circle (§5.5). |
| Tasks survive undo | Undoing a stage does not delete tasks already created from cards. |
| Insights navigate only | Data trends may suggest “You may want to read…” — never “You are now in stage X”. |
| No pharmacological inference | Medication frequency alone cannot determine stage (same molecule, different intent; PRN ≠ trajectory). |
| Register R2 | All family UI copy from plain-language standard (Palliative §4.4). |
| Not prescribing | Copy directs families to discuss with their care team; LynCareOS coordinates, clinicians prescribe and administer. |
3. Position in the four-layer product model
Section titled “3. Position in the four-layer product model”Care Pathways is the fourth layer alongside the existing three (Palliative §1.1):
| Layer | Question | Example |
|---|---|---|
| Care Archetype | What daily coordination pattern? | Medication Orchestra |
| Care Profile | What labels, observations, shift tasks? | Cancer at Home |
| Care Start | Seed patient record in one transaction | apply_care_start_pack() |
| Care Pathway | At this point in the journey, what might we consider? | Stage 3 topics + interested tasks |
4. Clinical reference model (internal — Register R3)
Section titled “4. Clinical reference model (internal — Register R3)”Content authors use these frameworks; families never see these names in the UI.
| Framework | Use in LynCareOS |
|---|---|
| GSF — identify, assess, plan; needs-based stages; three trajectories (rapid / erratic / gradual) | Informs stage ordering and which workflows appear per archetype |
| SPICT — think, check, act | Informs consideration card topics when decline signals exist (manual + data-nudge to read) |
| PCOC Palliative Care Phase — stable, unstable, deteriorating, terminal, bereavement | Informs internal phase tags on stages for clinical export only |
| Anticipatory / just-in-case prescribing (community palliative practice) | Informs Stage 3+ consideration cards — medicines and equipment at home before need; syringe driver when indicated by clinician, not pre-prescribed by families |
Export pairing (REQ-PATH-22): PDF/MDT summaries may include R3 phase labels paired with R2 stage titles on the same line.
5. Stage model
Section titled “5. Stage model”5.1 Structure
Section titled “5.1 Structure”Each Care Archetype has an ordered list of 4–5 stages. Stages are:
- Sequential for mental preparation (reading stage 4 implies awareness of 1–3)
- Non-prescriptive (families may acknowledge stage 4 without “completing” 2–3 content)
- Non-linear in life (undo and re-acknowledge allowed)
Each stage contains:
- Stage narrative (R2) — what families often notice at this point
- Consideration cards (R2) — discrete topics (3–8 curated per stage) plus family-added topics (§5.4)
- Optional “Read when ready” links — key contacts, shopping, future goals-of-care docs
5.2 Stage acknowledgment UX
Section titled “5.2 Stage acknowledgment UX”Before acknowledgment: stage appears in the journey rail as available (readable, not highlighted).
Action: primary button at bottom of stage detail:
Do you think you’re approaching this stage?
After acknowledgment:
- Selected stage marked “Where we think we are” (accent ring / filled node on journey rail)
- Stages 1…N all show as reached (soft check or filled connector)
- Quiet attribution: “Sarah · 4 Jun 2026” (last acknowledgment event)
- Care alert raised for the care circle (
pathway_stage_acknowledged, §7.3) — only because a human acknowledged, not because the system inferred anything
Undo: secondary control on acknowledged stage:
We’re not at this stage after all
Undo semantics:
- Clears highlight on acknowledged stage and all later stages
- Restores previous highest acknowledged stage, or none if first acknowledgment undone
- Does not revert card interest/dismiss states or delete linked tasks
- Writes audit row (
pathway_stage_undone) - Care alert raised for the care circle (
pathway_stage_undone, §7.3) — same human-initiated notification pattern as acknowledge
Re-acknowledgment: any carer/admin may acknowledge a different stage later; replaces current placement (with history preserved in audit).
5.3 Consideration card interaction
Section titled “5.3 Consideration card interaction”Each card — curated seed content or family-added — has title, optional body (2–4 sentences for curated; family may write their own), and two actions:
| Action | Label (R2) | Effect |
|---|---|---|
| Interest | Add to our tasks | Card prominent; creates pathway_planning_task (§5.5, §8.1) |
| Dismiss | Not for us right now | Card dulled (~55% opacity, muted text); remains expandable; reversible via Show again |
Neutral state: card at full opacity; neither action chosen.
Shared state: preferences apply to the patient for the whole care circle (not per-user bookmarks).
Visual distinction: family-added cards show a quiet chip Added by your family and attribution Sarah · 4 Jun 2026 — never second-class in interaction (same buttons, same task pipeline).
5.4 Family-added consideration items
Section titled “5.4 Family-added consideration items”Families often need topics the seed catalogue does not cover — a supplier they use, equipment their team mentioned once, a local arrangement. LynCareOS lets the care circle add their own consideration items to a stage.
Who may add: any carer or admin with patient access. Observers read-only.
Where they appear: on the stage detail screen, below curated cards, in the same list component. Sorted: curated cards first (seed sort_order), then family items (newest first).
Add flow:
- On stage detail, tap Add something for us (soft button below card list).
- Short form: Title (required, ≤120 chars), Notes (optional, ≤500 chars), Relates to (optional category — see §8.2).
- Save → item appears immediately for the whole care circle on that stage.
Parity rules (locked):
| Capability | Curated card | Family-added item |
|---|---|---|
| Add to our tasks | Yes | Yes — identical task record shape |
| Not for us right now | Yes | Yes — same dull/highlight behaviour |
| Show again | Yes | Yes |
| Survives stage undo | Prefs + tasks persist | Same (§2 philosophy) |
| Edit / remove | System seed only (clinical review) | Creator or any admin may edit title/notes/category; soft-delete with audit |
| Clinical review gate | REQ-PATH-24 before seed SQL | Not required — family-authored |
Scope: items are tied to patient_id + stage_id — not global. Archetype change archives them with prior pathway state (read-only history).
Limits (MVP): max 20 active family items per stage per patient (prevents list abuse; admin may raise per tenant later).
Example (Archetype B, stage 2): family adds “Order portable oxygen cylinders from Acme Gas” with category Oxygen & breathing. Same card actions as “Oxygen and equipment as part of life” seed card. When promoted to a task, follow-through links offer script photo → medications, cylinder stock → respiratory module (§8.2).
5.5 Planning task ownership and follow-through
Section titled “5.5 Planning task ownership and follow-through”When someone taps Add to our tasks, a pathway_planning_task is created — shared, patient-scoped, listed under Our planning tasks on the journey overview and on /planning-ahead/tasks.
Ownership (same pattern as family help — REQ-HELP-05, REQ-CAL-20):
| State | UI |
|---|---|
| Open, unassigned | Prominent I’ll take this on button; quiet Nobody assigned yet |
| Taken | Assignee name + avatar visible to all carers/admins; status taken |
| Done | Strikethrough title; Completed by Sarah · 4 Jun |
Any carer/admin may take an open task. Assignee may Mark done or Hand back (returns to open, re-visible to others). Optional care alert on take/hand-back (pathway_task_taken) — P2; MVP requires visibility only.
Task detail — operational follow-through:
Tasks inherit optional link_module from the source card (curated link_hint or family Relates to picker). When set, task detail shows a Next steps section with deep links into operational modules — the family’s planning item becomes actionable in daily care:
Our planning tasks┌─────────────────────────────────────────────┐│ Order portable oxygen cylinders ││ Sarah is handling this ││ Next steps: ││ [Photograph O₂ script] [Add to medications]││ [Track cylinder stock] [Log hours today] ││ [Mark done] │└─────────────────────────────────────────────┘Bridges are offers, not automation — the system never infers clinical intent from a custom title alone. User confirms each step.
5.6 Archetype change
Section titled “5.6 Archetype change”If patients.archetype_id changes:
- Previous pathway acknowledgment archived (read-only history)
- New archetype’s stage 1…n shown fresh
- Prompt: “Your care situation profile changed — your planning journey starts fresh for [new pattern].”
- Family-added consideration items for the prior archetype archived with pathway history (read-only), not deleted
Operational layer (REQ-CARE-START-04): this section covers Planning Ahead only. Medicines, dispensings, observations, pain/vitals, calendar, contacts, and audit history must not be deleted. Care Start seed correction is merge/add with dedupe; unused seeded labels may be hidden. Full policy: Palliative §7.5.
Required R2 framing when changing pattern:
“Your medicines and daily records stay with [name]. We’ll update planning guidance for this person.”
6. Stage catalogues (Register R2 seed content)
Section titled “6. Stage catalogues (Register R2 seed content)”Full seed SQL targets pathway_stages and pathway_consideration_cards (§9). Below: authoritative content for Archetype A (full) and summary tables for B–G.
6.1 Archetype A — Medication Orchestra (medication_orchestra)
Section titled “6.1 Archetype A — Medication Orchestra (medication_orchestra)”| Order | Slug | Family stage title | PCOC tag (R3 internal) |
|---|---|---|---|
| 1 | a_stage_rhythm | Getting the medicine rhythm | Stable |
| 2 | a_stage_complex | When the schedule gets harder | Stable / deteriorating |
| 3 | a_stage_prepare | Preparing for harder days | Deteriorating |
| 4 | a_stage_swallow | If swallowing or keeping medicines down becomes difficult | Deteriorating / unstable |
| 5 | a_stage_last_days | Last days at home | Terminal |
Stage 1 — Getting the medicine rhythm
Section titled “Stage 1 — Getting the medicine rhythm”Narrative:
Medicines are the backbone of the day. Different carers, different times, one shared record. This stage is about building a rhythm everyone trusts — not perfection.
Consideration cards:
| Slug | Title | Summary |
|---|---|---|
a_s1_shared_record | One record every carer uses | Agree where doses are logged and how handover works between shifts. |
a_s1_pharmacy_plan | Pharmacy and weekend coverage | Know which pharmacy holds the scripts and what happens if a dose runs low on a Saturday. |
a_s1_prn_labels | Clear labels for as-needed doses | Reason labels everyone understands (“breakthrough pain”, not ward jargon). |
a_s1_key_contacts | Who to call about medicines | GP, palliative nurse, after-hours — in Key Contacts for every carer. |
Stage 2 — When the schedule gets harder
Section titled “Stage 2 — When the schedule gets harder”Narrative:
Breakthrough doses may happen more often. More carers may join. The notebook isn’t enough. This is a common point to tighten coordination — not a sign anyone has failed.
Consideration cards:
| Slug | Title | Summary |
|---|---|---|
a_s2_breakthrough_pattern | Notice when extra pain relief is needed | Tracking helps your team see patterns — it does not tell you what stage you are in. |
a_s2_carer_alignment | Same understanding across carers | Short handover notes: what was given, what to watch for next shift. |
a_s2_stock_buffer | Buffer before the bottle runs empty | Prescription stock alerts help; someone still owns calling the pharmacy. |
a_s2_team_review | Ask for a medicines review | GP or palliative team can simplify or adjust the plan as needs change. |
Stage 3 — Preparing for harder days
Section titled “Stage 3 — Preparing for harder days”Narrative:
Many families talk with their team about comfort medicines kept at home before they are urgently needed — so a nurse or doctor can act quickly if symptoms worsen. This is a conversation, not something families decide alone.
Consideration cards:
| Slug | Title | Summary |
|---|---|---|
a_s3_discuss_anticipatory | Discuss comfort medicines kept at home | Ask GP or palliative service whether just-in-case medicines are appropriate and who would give them. |
a_s3_jic_location | Know where supplies would be kept | If your team provides a box, agree where it lives and who knows about it. |
a_s3_equipment_supplies | Syringes, needles, sharps box | Usually supplied with anticipatory medicines — confirm with your pharmacy or nursing team. |
a_s3_out_of_hours | Out-of-hours plan | Who to call overnight and weekend; numbers in Key Contacts. |
a_s3_wishes | Wishes and plans for care | Preferred place of care, hospital transfers — discuss with team; record when ready (goals_of_care Future). |
Stage 4 — If swallowing or keeping medicines down becomes difficult
Section titled “Stage 4 — If swallowing or keeping medicines down becomes difficult”Narrative:
If someone cannot swallow reliably or keep oral medicines down, the route may need to change. That is always a clinical decision — usually community nursing or palliative care. Families coordinate; they do not start infusions or pumps themselves unless explicitly trained and directed.
Consideration cards:
| Slug | Title | Summary |
|---|---|---|
a_s4_swallow_signs | Signs swallowing is getting harder | Choking, refusing tablets, vomiting after doses — tell the team promptly. |
a_s4_nurse_visit | Community or palliative nurse visit | Subcutaneous medicines or a comfort medicine pump may be discussed — only when clinically indicated. |
a_s4_oral_vs_other | Oral route may not be enough | Do not wait until crisis; call the team early if oral medicines are not working. |
a_s4_crisis_numbers | Numbers visible to every carer | Post crisis steps near the bed when your team provides them. |
Stage 5 — Last days at home
Section titled “Stage 5 — Last days at home”Narrative:
If your person is dying at home, practical preparation reduces panic: who to call when death occurs, how remaining medicines are handled, who stays with whom.
Consideration cards:
| Slug | Title | Summary |
|---|---|---|
a_s5_who_present | Who will be here | Shift coverage so no one is alone unexpectedly. |
a_s5_after_death | When the time comes — first calls | GP verification, funeral director, who the family calls first — team-specific. |
a_s5_medicine_disposal | Leftover medicines | Nursing team or pharmacy often collects anticipatory medicines after death. |
a_s5_carer_support | Support for carers afterward | Bereavement is part of the journey — practical and emotional support (carer_wellbeing Future). |
6.2 Archetype B — Breath-by-Breath (breath_by_breath)
Section titled “6.2 Archetype B — Breath-by-Breath (breath_by_breath)”| Order | Slug | Title |
|---|---|---|
| 1 | b_stage_daily | Living with breathlessness every day |
| 2 | b_stage_equipment | Oxygen and equipment as part of life |
| 3 | b_stage_worse | When breathing gets worse |
| 4 | b_stage_crisis | Sudden breathlessness — the bedside plan |
| 5 | b_stage_last_days | Last days at home |
Key workflow themes: O₂ cylinder counting, prescribed vs actual hours, crisis plan (future REQ-RO-10), palliative nurse contact, fan/upright positioning — not ventilator prescribing.
6.3 Archetype C — Long Watch (long_watch)
Section titled “6.3 Archetype C — Long Watch (long_watch)”| Order | Slug | Title |
|---|---|---|
| 1 | c_stage_routine | Holding their routines and dignity |
| 2 | c_stage_communication | When they cannot tell you what they need |
| 3 | c_stage_pain_cues | Pain and distress without words |
| 4 | c_stage_swallow | Eating, drinking, and swallowing safely |
| 5 | c_stage_last_days | Last days at home |
Key themes: person-centred guide, observational pain, behaviour as signal, swallowing safety, relief carer briefing.
What families often notice (self-care signals — collapsible in UI)
- Stage 1 — Routines: grooming takes longer; favourite clothes left unworn
- Stage 3 — Pain cues: flinching during bathing or toileting; resisting personal care
- Stage 4 — Swallowing: eating moves from on their own → a little help; more coughing at meals
When bathing or toileting scores worsen ≥7 of 14 days, nudge engine may suggest reading Pain and distress without words (§7.4).
Optional consideration card bridge: link_module → custom_observations — Track personal-care comfort daily (opens Daily self-care group on /observations).
6.4 Archetype D — Storm and the Calm (storm_and_calm)
Section titled “6.4 Archetype D — Storm and the Calm (storm_and_calm)”| Order | Slug | Title |
|---|---|---|
| 1 | d_stage_stable | Good stretches and daily monitoring |
| 2 | d_stage_triggers | Learning the warning signs |
| 3 | d_stage_crisis_plan | The written plan for crisis days |
| 4 | d_stage_rescue | Rescue medicines and when to use them |
| 5 | d_stage_last_days | Last days at home |
Key themes: weight/fluid (heart), seizure timeline (epilepsy), written escalation, avoid unwanted hospital admission.
6.5 Archetype E — Shrinking World (shrinking_world)
Section titled “6.5 Archetype E — Shrinking World (shrinking_world)”| Order | Slug | Title |
|---|---|---|
| 1 | e_stage_adapting | Adapting as abilities change |
| 2 | e_stage_voice | Recording their wishes while they can still communicate |
| 3 | e_stage_equipment | Equipment milestones |
| 4 | e_stage_swallow_breathe | Swallowing, breathing, and comfort |
| 5 | e_stage_last_days | Last days at home |
Key themes: ventilator/hoist planning, therapy continuity, patient voice, equipment register (Future).
What families often notice (self-care signals — collapsible in UI)
- Stage 1 — Adapting: bathing and dressing need a little help first (Katz early loss)
- Stage 3 — Equipment: mobility shifts to full help; transfers need hoist planning
- Stage 4 — Swallow/breathe: eating → full help or didn’t do / couldn’t safely; strongest late-loss signal
Archetype E has the strongest ADL–stage fit in the catalogue. Early-loss domains (bathing, grooming, dressing) → suggest Adapting; middle loss (toileting, mobility) → Equipment milestones; late eating loss → Swallowing, breathing, and comfort.
6.6 Archetype F — Small Astronaut (small_astronaut)
Section titled “6.6 Archetype F — Small Astronaut (small_astronaut)”| Order | Slug | Title |
|---|---|---|
| 1 | f_stage_team | Many specialists — one family coordinator |
| 2 | f_stage_daily | Daily care across home, school, and hospital |
| 3 | f_stage_equipment | Equipment checks every shift |
| 4 | f_stage_respiratory | Breathing and secretions |
| 5 | f_stage_last_days | Last days together |
Key themes: ring binder → shared record, rescue meds visible, ventilator/O₂/suction checks (§3.5 F shift tasks).
6.7 Archetype G — Invisible Decline (invisible_decline)
Section titled “6.7 Archetype G — Invisible Decline (invisible_decline)”| Order | Slug | Title |
|---|---|---|
| 1 | g_stage_patchwork | Many conditions, no single name |
| 2 | g_stage_frailty | Getting frailer — noticing the pattern |
| 3 | g_stage_wishes | Naming what matters |
| 4 | g_stage_comfort | Comfort over unnecessary treatment |
| 5 | g_stage_last_days | Last days at home |
Key themes: falls cluster, polypharmacy review, advance care planning, avoiding default hospital pathway.
What families often notice (self-care signals — collapsible in UI)
- Stage 2 — Frailty: multiple domains worsen together — bathing, dressing, mobility, not just one
- Falls observation ↑ combined with mobility full help → strongest nudge to Getting frailer
- Toileting and eating may lag; do not wait for all six domains before suggesting a read
7. Data-informed suggestions (navigation only)
Section titled “7. Data-informed suggestions (navigation only)”7.1 Rules v1
Section titled “7.1 Rules v1”Suggestions appear as quiet dashboard cards or inline observation summary notes — max one active pathway nudge per patient at a time.
| Signal | Suggestion copy (R2) | Deep link |
|---|---|---|
| PRN / breakthrough reason types ↑ 14d vs prior 14d | “Extra pain relief has been logged more often lately. You may want to read Preparing for harder days.” | Stage 3 (A) or archetype-equivalent |
| Appetite / fluids observation ↓ trend | “Intake has been lower. See Eating and drinking topics when you’re ready.” | Swallowing-related stage |
| Breathlessness out of band (REQ-OBS-11) | “Breathing readings have been higher than usual. See When breathing gets worse.” | Stage 3–4 (B) |
| Weight ↑ + leg swelling (D observations) | “Fluid signs are shifting. Worth reviewing Warning signs with your team.” | Stage 2 (D) |
| Falls ↑ (G) | “Falls have been recorded more often. See Getting frailer.” | Stage 2 (G) |
| Self-care domain worsening (REQ-OBS-13) — archetype-weighted | “Daily self-care has needed more help lately. You may want to read {stage title}.” | Per §7.4 matrix |
| Self-care recovery after crisis (D) — domain improves within 14d | (Suppress nudge) — Storm and Calm regression rule | — |
Self-care nudge policy: independence scale ordinals (independent=0 → full_help=3; not_today treated as missing for trend). Default threshold: ≥7 of last 14 days show worse score than prior 14-day median for the domain. Max one active pathway nudge per patient (existing rule). Never auto-acknowledge stage; never care alert from ADL data alone.
Never: auto-acknowledge stage; never display “Stage 3 activated”.
7.2 Dismissal
Section titled “7.2 Dismissal”Nudge has Not now (snooze 7 days, per-user) — distinct from pathway card dismiss (patient-scoped).
7.3 Care alerts — human stage placement changes only
Section titled “7.3 Care alerts — human stage placement changes only”When a carer or admin self-declares or reverses a stage placement, LynCareOS raises a shared in-app care alert so the rest of the care circle knows the family’s shared placement changed — without the system inferring or assigning anything.
Triggers (only these):
| Event | Care alert? |
|---|---|
| Human taps acknowledge on a stage | Yes — pathway_stage_acknowledged |
| Human taps undo on a stage | Yes — pathway_stage_undone |
| Data nudge / Home banner / observation suggestion | No — navigation only |
| Self-care trend nudge / functional snapshot | No — navigation only (REQ-PATH-32) |
| Card Add to our tasks or Not for us right now | No — unless a separate product decision adds task alerts later |
| System inference from meds/observations | No — policy (REQ-PATH-08) |
Shared alert rules (both types; follows REQ-ALERT-01 shared queue; same pattern as new_help_request):
| Field | Acknowledge | Undo |
|---|---|---|
alert_type | pathway_stage_acknowledged | pathway_stage_undone |
| Channel toggle | planning_ahead on tenant_notification_settings (migration V115 planned — default ON) | same |
severity | info — informative, not urgent | same |
title | {actor_display_name} updated planning ahead for {patient_name} | same |
body | Stage title (R2), e.g. “Preparing for harder days” | See Undo body copy below |
deep_link | /planning-ahead/stages/{stage_slug}?patientId={patient_id} | Current stage if any remains; else /planning-ahead?patientId={patient_id} |
dedup_key | pathway_stage:{patient_id} — one consolidated open alert per patient; latest human placement change upserts title/body/timestamp/type (avoids bell spam) | same dedup — replaces prior open pathway alert |
entity_type | pathway_stage_ack | pathway_stage_undo |
entity_id | pathway_stages.id (acknowledged stage) | pathway_stages.id (stage that was undone) |
metadata | { "stage_slug", "stage_title", "acknowledged_by_user_id", "archetype_slug" } | { "undone_stage_slug", "undone_stage_title", "current_stage_slug" | null, "current_stage_title" | null, "undone_by_user_id", "archetype_slug" } |
Undo body copy (R2 only — no PCOC/clinical phase labels):
| Outcome after undo | body example |
|---|---|
| All placement cleared (no stage remains) | “Stage selection cleared” |
| Earlier stage remains | “Now: Comfortable at home most days” (current stage title) |
Optional secondary line in inbox detail (not push title): “No longer at Preparing for harder days” when the undone stage differs from the new current stage.
Scheduling:
pathway_service.acknowledge_stage()commits patient state, thenschedule_alert_task(alert_pathway_stage_acknowledged, …)pathway_service.undo_stage()commits patient state, thenschedule_alert_task(alert_pathway_stage_undone, …)
Both use the same post-commit pattern as help_requests_service.
UI: AlertRow.tsx maps pathway_stage_acknowledged and pathway_stage_undone to lilac/compass-style chip (Planning ahead — distinct from urgent coral). Tap opens journey or stage detail via deep_link.
Observers: see alert in inbox; cannot acknowledge stages or resolve on behalf of others (REQ-ALERT-07 unchanged).
Copy tone: the alert informs the circle that someone updated where the family thinks they are (or cleared that placement) — not that the patient entered or left a clinical phase.
Examples:
Sarah updated planning ahead for Mum
Preparing for harder days
Tap to read this stage
Sarah updated planning ahead for Mum
Stage selection cleared
Tap to see the journey
Sarah updated planning ahead for Mum
Now: Comfortable at home most days
Tap to read this stage
7.4 Daily self-care patterns and suggested readings
Section titled “7.4 Daily self-care patterns and suggested readings”Self-care observations (Palliative §3.6) record operational daily independence. Pathways use trends only to suggest which stage chapter to read — never to set Where we think we are.
Policy (REQ-PATH-32):
| Allowed | Forbidden |
|---|---|
| Quiet banner: “You may want to read …” | Auto-acknowledge stage |
| Functional snapshot panel on journey overview | “Stage 3 activated” or inferred placement |
| Deep link to stage detail | Care alert from self-care data |
| Katz loss bands as internal nudge weights | Katz score shown to families |
Archetype nudge matrix (v1)
Section titled “Archetype nudge matrix (v1)”| Archetype | Primary signals | Suggested stage (example slug) | Notes |
|---|---|---|---|
| E Shrinking World | Early: bathing, grooming, dressing ↓ | e_stage_adapting | Strongest fit — use Katz early → middle → late ordering |
| E | Middle: toileting, mobility ↓ | e_stage_equipment | |
| E | Late: eating ↓ | e_stage_swallow_breathe | |
| C Long Watch | Bathing/toileting ↓ + personal-care distress reasons ↑ | c_stage_pain_cues | Behaviour may precede verbal pain |
| C | Eating ↓ | c_stage_swallow | |
| G Invisible Decline | ≥2 domains ↓ + falls ↑ | g_stage_frailty | Multi-domain pattern required |
| A Medication Orchestra | Eating/swallowing ↓ | a_s4_swallow_signs stage | Bathing alone is weak — do not nudge stage 4 from bathing only |
| D Storm and Calm | Any domain ↓ during crisis | d_stage_triggers | Suppress if same domain recovers within 14 days |
| B Breath-by-breath | Mobility ↓ (secondary) | b_stage_worse | Breathlessness observations remain primary signal |
Trend calculation
Section titled “Trend calculation”- Map each day’s latest entry per domain to ordinal 0–3.
- Compare rolling 14d window to prior 14d baseline (median ordinal).
- Worsening = ≥7 days in window above baseline median by ≥1 step.
- Apply archetype row weights; pick one highest-priority stage link.
- Respect REQ-PATH-09 snooze and max-one-nudge rule.
UI surfaces
Section titled “UI surfaces”| Surface | Content |
|---|---|
/planning-ahead | Functional snapshot panel (REQ-PATH-30) — separate from journey rail |
| Home / observations | PathwayInsightBanner when nudge active |
| Post-capture summary | Inline You may want to read … (REQ-PATH-33) |
7.5 Gentle alignment check (P3 — optional)
Section titled “7.5 Gentle alignment check (P3 — optional)”When a human-acknowledged stage is earlier than self-care trends suggest (e.g. family at stage 1 but eating shows late-loss pattern for 21+ days), the journey overview may show a single, dismissible soft note:
“Your daily self-care notes suggest you might also want to read {later stage title} — only if that feels right for your situation.”
Rules:
- P3 — after core pathway MVP (P1–P2)
- No care alert — navigation only, same as §7.1
- Never contradicts or auto-changes acknowledged placement
- Snooze 14 days per user; never shown to observers as actionable
- Suppressed for Archetype D when 14-day recovery rule applies
8. Integration with operational modules
Section titled “8. Integration with operational modules”| Module | Integration |
|---|---|
| Care calendar / shift tasks | Planning tasks with assignee may optionally sync to shift checklist (P3); calendar section Planning tasks (P3) |
| Care alerts | Self-declared stage acknowledge → pathway_stage_acknowledged; undo → pathway_stage_undone (§7.3) — same consolidated dedup_key per patient |
| Key contacts | Cards link to add/view palliative nurse, GP |
| Shopping | Pharmacy list pre-fill for consumables (syringes, gloves) where appropriate |
| Prescriptions | Script photo capture from planning task → prescription_management |
| Medication dispensing | O₂ and other bridged supplies added as patient medicines at dispensing level when family confirms arrival |
Respiratory & oxygen (respiratory_oxygen) | Cylinder stock (REQ-RO-08), daily hours (REQ-RO-07), O₂ prescription record (REQ-RO-06) — linked from oxygen-category tasks |
| Goals of care (Future) | Stage cards deep-link to ACP document |
| Equipment (Future) | Equipment milestone cards link to register |
| Family help | Respite / coverage cards can post help request pre-filled |
| Care intelligence (Future) | Export includes acknowledged stage (R2) + internal phase (R3) + self-care trend summary (REQ-PATH-34) |
Custom observations (custom_observations) | Daily self-care group on /observations; functional snapshot source (REQ-OBS-13..16); pathway nudge input (§7.4) |
8.1 Planning task shape
Section titled “8.1 Planning task shape”pathway_planning_tasks — lightweight tasks distinct from clinical shift tasks:
| Column | Purpose |
|---|---|
title, notes | From card title/body or family free text |
status | open | taken | done |
source_template_card_id | NULL if from family item |
source_custom_card_id | NULL if from seed card |
link_module | Optional bridge category (§8.2) |
assigned_to_user_id, taken_at | Ownership (§5.5) |
created_by, due_date | Optional scheduling |
linked_* | Optional FKs after follow-through (e.g. linked_medication_group_id, linked_prescription_id) |
Appear in Planning ahead “Our tasks” section; optional sync to shift task list (admin toggle per tenant, P3).
8.2 Operational bridges — worked example: home oxygen
Section titled “8.2 Operational bridges — worked example: home oxygen”Scenario: Archetype B family adds “Purchase / refill portable oxygen cylinders” on stage 2, promotes to task, Sarah taps I’ll take this on.
| Step | Module | What happens |
|---|---|---|
| 1 — Script on hand | Prescriptions | Photograph O₂ script → OCR/manual entry → script record linked to task |
| 2 — Before or when cylinders arrive | Medication dispensing | Add to medications — O₂ tracked as a supply-type medicine (not oral dose): route inhaled_oxygen, unit L/min prescribed + cylinder capacity litres per bottle; appears on Home dose board where O₂ module enabled |
| 3 — Stock in the home | Respiratory & oxygen (Complete tier) | Track cylinder stock — full cylinders count, litres per cylinder type, days-of-supply estimate (REQ-RO-08); family or carer updates when a bottle is swapped |
| 4 — Daily use | Respiratory & oxygen | Log hours today — prescribed vs actual hours (REQ-RO-07); optional low-stock alert when cylinders ≤ threshold |
Relates to categories (family picker + curated link_module seed):
| Category slug | link_module | Primary follow-through |
|---|---|---|
| General / none | null | Task only |
| Medicines & pharmacy | prescriptions | Script photo, stock link |
| Oxygen & breathing | respiratory_oxygen | Script → med → cylinders → hours |
| Shopping & supplies | shopping | Shopping list pre-fill |
| People to call | key_contacts | Add contact |
| Help from the circle | family_help | Pre-filled help request |
| Equipment | equipment_management | Register item (Future) |
| Daily self-care tracking | custom_observations | Open /observations Daily self-care group |
| Self-care baseline week | observations_baseline | Optional first-week prompt (REQ-OBS-15) |
Tier note: bridge buttons for Complete-only modules (respiratory_oxygen) show with Upgrade or hidden per tier_limits — task itself remains visible on Family tier.
Policy: adding O₂ to medications records what the family and team agreed to track — not a prescription by LynCareOS. Copy on bridge screens repeats REQ-PATH-13 (discuss with your care team).
9. Data model (planned)
Section titled “9. Data model (planned)”9.1 Template tables (system seed)
Section titled “9.1 Template tables (system seed)”| Table | Purpose |
|---|---|
pathway_stages | Per-archetype ordered stages: archetype_id, sort_order, slug, title, narrative, pcoc_phase_r3 |
pathway_consideration_cards | Per-stage curated cards: stage_id, slug, title, body, sort_order, link_module, link_hint |
pathway_card_link_categories | Optional seed of Relates to picker labels (R2) → link_module mapping |
9.2 Patient state tables
Section titled “9.2 Patient state tables”| Table | Purpose |
|---|---|
patient_pathway_state | One row per patient: current_stage_id, acknowledged_at, acknowledged_by_user_id, archetype_id (denormalized) |
patient_pathway_history | Append-only: stage ack, undo, archetype change |
patient_pathway_card_prefs | patient_id, template_card_id XOR custom_card_id, preference (neutral | interested | dismissed), updated_by, updated_at |
patient_pathway_custom_cards | Family-added items: patient_id, stage_id, title, body, link_module, created_by_user_id, deleted_at |
pathway_planning_tasks | Tasks from curated or custom cards; ownership + bridge links (§8.1) |
patient_pathway_nudge_dismissals | Per-user snooze for data nudges |
10. API surface (planned)
Section titled “10. API surface (planned)”Gate: require_module("care_pathways").
| Method | Path | Purpose |
|---|---|---|
| GET | /api/patients/{id}/pathway | Journey overview: stages, current ack, card prefs, open tasks |
| GET | /api/patients/{id}/pathway/stages/{slug} | Stage detail + curated cards + family items |
| POST | /api/patients/{id}/pathway/stages/{slug}/custom-cards | Add family consideration item |
| PATCH | /api/patients/{id}/pathway/custom-cards/{id} | Edit family item (creator or admin) |
| DELETE | /api/patients/{id}/pathway/custom-cards/{id} | Soft-delete family item |
| POST | /api/patients/{id}/pathway/stages/{slug}/acknowledge | Self-declare approaching this stage; raises care alert (§7.3) when channel enabled |
| POST | /api/patients/{id}/pathway/stages/{slug}/undo | Undo acknowledgment from this stage; raises care alert (§7.3) when channel enabled |
| POST | /api/patients/{id}/pathway/cards/{slug}/interest | Mark curated card interested + optional create task |
| POST | /api/patients/{id}/pathway/cards/{slug}/dismiss | Not for us right now (curated) |
| POST | /api/patients/{id}/pathway/cards/{slug}/reset | Clear dismiss/interest (curated) |
| POST | /api/patients/{id}/pathway/custom-cards/{id}/interest | Same for family item |
| POST | /api/patients/{id}/pathway/custom-cards/{id}/dismiss | Same for family item |
| POST | /api/patients/{id}/pathway/custom-cards/{id}/reset | Same for family item |
| POST | /api/patients/{id}/pathway/tasks/{id}/take | I’ll take this on — set assignee |
| POST | /api/patients/{id}/pathway/tasks/{id}/release | Hand back to open |
| POST | /api/patients/{id}/pathway/tasks/{id}/complete | Mark done |
| POST | /api/patients/{id}/pathway/tasks/{id}/link/{module} | Record follow-through bridge (script photo, add med, etc.) |
| GET | /api/patients/{id}/pathway/suggestions | Active data nudge if any |
| POST | /api/patients/{id}/pathway/suggestions/dismiss | Snooze nudge |
11. UI/UX specification
Section titled “11. UI/UX specification”Interactive mockup: docs/01 - BUSINESS REQUIRMENTS/assets/planning-ahead-mockup.html (asset not currently in repo)
11.1 Design language
Section titled “11.1 Design language”Follow Calm Care (03-DESIGN-SYSTEM.md):
cc-page-title,cc-card,cc-card-pad,cc-btn-primary,cc-btn-soft,cc-btn-accent- Archetype accent colour on journey rail (
condition_archetypes.color_hex) - Warm canvas background; no hospital blue/white dominance
- 48px min tap targets; 16px body minimum
- Dark mode first-class
Emotional register (Palliative §5.1): reflective, not alarming. Stage titles describe life, not prognosis.
11.2 Information architecture — where to display
Section titled “11.2 Information architecture — where to display”Primary home: dedicated route /planning-ahead
Section titled “Primary home: dedicated route /planning-ahead”Recommendation: Planning Ahead is not bottom-nav primary (mobile bar is full). It lives as a first-class route discoverable from three places:
| Entry point | Pattern | Rationale |
|---|---|---|
| More → Care & coordination | List row under archetypes/observations | Matches Stream 2–3 features; doesn’t steal daily nav slots |
| Home → quiet card | Below TodayHero, above charts — only when nudge exists OR stage unset after 14d | Surfaces without nagging |
| Care archetypes → CTA | After selecting archetype: “See the care journey for this pattern →” | Onboarding bridge |
| Observation summary | Inline amber note with link | Contextual (Palliative §5.8) |
Why not bottom nav: Daily path is dose → record → home. Planning is weekly/reflective — burying in More avoids guilt on every open; Home nudge handles timely prompts.
Future: Optional pin for admins who live in planning mode (user preference) — out of MVP scope.
Screen map
Section titled “Screen map”/planning-ahead Journey overview (rail + stage list)/planning-ahead/stages/:slug Stage detail (narrative + cards)/planning-ahead/tasks Our planning tasks (from cards)11.3 Journey overview screen
Section titled “11.3 Journey overview screen”┌─────────────────────────────────────────────┐│ Planning ahead ││ Caring for Mum · Medication Orchestra │├─────────────────────────────────────────────┤│ ●━━━●━━━◉━━━○━━━○ journey rail ││ 1 2 3 4 5 ││ ↑ Where we think we are ││ (human-declared only) │├─────────────────────────────────────────────┤│ Functional snapshot (14 days) ││ Bathing · Dressing · Eating · Mobility ││ ↓ more help lately → stable ↑ improving││ Observational — not a stage assignment │├─────────────────────────────────────────────┤│ [Optional] You may want to read — stage 3 ││ (self-care nudge — separate from placement) │├─────────────────────────────────────────────┤│ Stage list (cards) ││ ✓ Getting the medicine rhythm ││ ✓ When the schedule gets harder ││ → Preparing for harder days (current) ││ If swallowing becomes difficult ││ Last days at home │├─────────────────────────────────────────────┤│ Our planning tasks (2 open) │└─────────────────────────────────────────────┘11.4 Stage detail screen
Section titled “11.4 Stage detail screen”┌─────────────────────────────────────────────┐│ ← Back Stage 3 of 5 │├─────────────────────────────────────────────┤│ Preparing for harder days ││ ││ Narrative paragraph (R2)… │├─────────────────────────────────────────────┤│ ┌─ Consideration card (prominent) ────────┐ ││ │ Discuss comfort medicines kept at home │ ││ │ … │ ││ │ [Add to our tasks] [Not for us right now]│ ││ └─────────────────────────────────────────┘ ││ ┌─ Consideration card (dulled) ───────────┐ ││ │ Syringes, needles, sharps box │ ││ │ … [Show again] │ ││ └─────────────────────────────────────────┘ ││ ┌─ Family-added card ─────────────────────┐ ││ │ Order portable oxygen cylinders │ ││ │ Added by your family · Sarah │ ││ │ [Add to our tasks] [Not for us right now]│ ││ └─────────────────────────────────────────┘ ││ [+ Add something for us] │├─────────────────────────────────────────────┤│ [Do you think you're approaching this stage?]││ — or — ││ [We're not at this stage after all] (undo) │└─────────────────────────────────────────────┘11.5 Component checklist
Section titled “11.5 Component checklist”| Component | Behaviour |
|---|---|
PathwayJourneyRail | Horizontal scroll on mobile; nodes clickable; current = filled accent |
PathwayStageCard | List item on overview; checkmark if ≤ current stage |
ConsiderationCard | Prominent / dulled / neutral; source=template|family chip |
AddCustomCardButton | Opens title/notes/category form |
PathwayAcknowledgeButton | Primary; confirms with soft modal restating reversibility |
PathwayUndoButton | Soft button; no shame copy |
PathwayInsightBanner | Dashboard + observations; dismiss snooze |
PathwayFunctionalSnapshot | Journey overview panel; 14d domain arrows; separate from journey rail |
PlanningTaskList | Open tasks; I’ll take this on; assignee avatar; Next steps bridge row |
PlanningTaskDetail | Ownership actions + module deep links per link_module |
11.6 Observer mode
Section titled “11.6 Observer mode”Observers see full content read-only; no acknowledge, interest, dismiss, task, or add custom item actions.
12. Access control
Section titled “12. Access control”| Role | View | Acknowledge / undo | Card prefs | Add custom items | Tasks / take ownership |
|---|---|---|---|---|---|
| Admin | Yes | Yes | Yes | Yes | Yes |
| Carer | Yes | Yes | Yes | Yes | Yes |
| Observer | Yes | No | No | No | No |
Same patient_access rules as help requests and observations.
13. Audit
Section titled “13. Audit”All mutations audit per REQ-AUD-01:
pathway_stage_acknowledged,pathway_stage_undone(pathway care alerts on human placement change)pathway_card_interested,pathway_card_dismissed,pathway_card_reset(curated + custom)pathway_custom_card_created,pathway_custom_card_updated,pathway_custom_card_deletedpathway_planning_task_created,pathway_planning_task_taken,pathway_planning_task_released,pathway_planning_task_completed,pathway_planning_task_linked
14. Implementation phasing
Section titled “14. Implementation phasing”| Phase | Deliverable | Depends on |
|---|---|---|
| P0 — Spec + mockup | This doc + HTML mockup | — |
| P1 — MVP | Template seed Archetype A; API; /planning-ahead UI; More menu entry; care alerts on stage acknowledge + undo (REQ-PATH-25); family custom items + task ownership (REQ-PATH-26–28) | patients.archetype_id (C5b) ideal; manual archetype pick OK |
| P2 | Archetypes B–G seed; Home insight banner; observation summary links; self-care nudge rules (§7.1, §7.4); functional snapshot panel; task take/hand-back care alerts | Observations trends, REQ-OBS-13 seed |
| P3 | Planning tasks → calendar/shift sync; nudge rule engine; gentle alignment check (§7.5) | REQ-OBS-11 alerts, REQ-OBS-16 |
| P4 | Operational bridges — O₂ script → meds → cylinder stock (REQ-PATH-29); goals_of_care, equipment | respiratory_oxygen, Stream 5 modules |
Roadmap ID: D31 · REQ block: §7.40
15. Clinical review gate
Section titled “15. Clinical review gate”Before production seed SQL:
- Palliative clinical reviewer signs R2 stage titles and consideration cards (all archetypes)
- Legal review: no prescriptive medicine language; jurisdiction-neutral escalation copy
- Align with Palliative §4.4 register rules
16. Document history
Section titled “16. Document history”| Date | Version | Change |
|---|---|---|
| 2026-06-04 | 1.3 | §5.6 — REQ-CARE-START-04 cross-ref; operational data preserved on archetype change; R2 confirm copy. |
| 2026-06-04 | 1.2 | Daily self-care ↔ pathway integration: §7.1 self-care nudge rows; §7.4 archetype pattern matrix + trend rules; §7.5 gentle alignment check (P3); §6.3/6.5/6.7 What families often notice; §8/§8.2 custom_observations bridges; §11.3 functional snapshot wireframe; PathwayFunctionalSnapshot component. REQ-PATH-30–34. Cross-ref Palliative §3.6. |
| 2026-06-04 | 1.1 | Family-added consideration items, task ownership, O₂ operational bridges (REQ-PATH-26–29); §7.3 care alerts on human stage placement only. |
| 2026-06-04 | 1.0 | Initial spec from research + product sessions; Archetype A full seed; UI mockup; placement recommendation |
Document owned by product team. Engineering implementation follows Care Start programme (D25) but may ship P1 in parallel once archetype FK exists.