Care Profiles — common architecture for function points
Version: 1.2
Last Updated: 2026-08-03 18:23:23
All profile specs in this folder share the patterns below. Profile-specific documents list incremental function points only.
1. Subscription baseline (never sold as pack value)
Section titled “1. Subscription baseline (never sold as pack value)”Documented in 26-CARE-PROFILE-VALUE-DEFINITION.md §2.1. Summary:
| Tier | Shipped routes families already have |
|---|---|
| Essential | /log, /history, /analytics, /medication-schedule, /calendar, /admin/medicines, /admin/reasons, /subscriptions, Add Person (demographics) |
| Family | + /observations, /scripts, /vitals, /sleep, /contacts, /help-requests, dose history edit |
| Complete | + /pain, /shopping, all pack unlocks via purchase (not tier-included) |
Pack purchase today only adds: Stripe unlock + Care Start apply (category I seed). See P-04, A-01..A-07 in doc 26.
2. Common pack mechanics (all profiles)
Section titled “2. Common pack mechanics (all profiles)”| FP-ID | Min tier | Route / API | User action | System behaviour |
|---|---|---|---|---|
| COM-P-01 | Essential | /admin/subscriptions | Buy once (paid slugs) | Stripe checkout → tenant_pack_purchases |
| COM-P-02 | Essential | Preview modal | View pack contents | GET /condition-packs/{id}/preview |
| COM-P-03 | Essential | Add Person / Patients | Apply pack | POST /api/patients/{id}/care-start — 403 if not unlocked |
| COM-P-04 | Essential | /admin/patients | Change care pattern (API only; family UI withdrawn 2026-06-26) | PATCH care-pattern — non-destructive merge (REQ-CARE-START-04) |
| COM-A-01 | Essential | /log | Pick seeded PRN label | INSERT reason_types on apply for that patient (dedupe per person; V013 descriptions on cancer/breathing) |
| COM-A-02 | Essential | /calendar | New shift, empty tasks | Copy patient_shift_task_templates to shift lines |
| COM-A-03 | Family | /observations | Record obs | Types from care_profile_slug → pack_observation_type_links |
| COM-A-04 | All | Patient row | — | Sets care_profile_slug, archetype_id, care_start_applied_at |
| COM-A-05 | Essential | /medication-schedule | See four time slots | care_start_bootstrap — 08:00, 12:00, 20:00, 00:00 groups on apply + new person |
| COM-A-06 | Complete | /shopping | See profile shopping lists | SHOPPING_LISTS_BY_PACK_SLUG — suggested items per pack (idempotent list names) |
Profile docs do not repeat COM-* unless extended.
3. Profile hub pattern (Category A — each profile)
Section titled “3. Profile hub pattern (Category A — each profile)”| FP-ID | Route pattern | Behaviour |
|---|---|---|
| COM-A-10 | /care/cancer-at-home · /care/breathing (v1) | Profile hub: zone banner, primary CTA, tiles — see 29 |
| COM-A-11 | / | Dashboard chip + strip when active patient has profile + boards enabled |
| COM-A-12 | Hub alert card | Deep link to resolving FP |
4. Category definitions (standard across specs)
Section titled “4. Category definitions (standard across specs)”| Cat | Name | Delivers |
|---|---|---|
| A | Presentation | Hub, dashboard, navigation |
| B | Care journey & appointments | Typed appointments, checklists, transport |
| C | Medicines & scheduling | Profile-specific med rules |
| D | Devices & procedures | Lines, pumps, ostomy, ventilator, etc. |
| E | Symptoms & observations | Diary, bundles, profile obs |
| F | Safety & escalation | Thresholds, emergency card |
| G | Carer coordination | Handoff, driver, shift summary |
| H | Between-visit | In-app visit prep / clinician mode |
| I | Data catalogue | Seed: reasons, obs, shifts, dropdown enums |
| T | (Cancer only) | Primary site → nomenclature pack |
5. Verification rule
Section titled “5. Verification rule”A profile is commerce-ready when Category I matches release seed and MVP A–H FPs are shipped. Purchase copy must list MVP bullets only.
6. Care Module layer (commerce vs interactive UI)
Section titled “6. Care Module layer (commerce vs interactive UI)”Care Profile purchase and Care Start apply are unchanged. Care Module boards are a separate, feature-flagged UX layer:
| Layer | Doc | Gate |
|---|---|---|
| Pack unlock + seed | This doc §2, doc 26 | tenant_pack_purchases, Care Start |
| Interactive board | 30-CARE-MODULE-PLUGIN-ARCHITECTURE.md | CARE_MODULE_BOARDS_ENABLED + CARE_MODULE_PREVIEW_USER_IDS + build flag |
| Board UI + widgets | 29-CARE-MODULE-UI-ARCHITECTURE.md | activePatient.care_profile_slug |
Shipped (Phase A): care_module_events, manifest JSON, CaptureSession, zone v1, routes for cancer_at_home and breathing_difficulties only.
Not in subscription modules: Do not add care boards to tiers.json.
7. Document history
Section titled “7. Document history”| Version | Date | Change |
|---|---|---|
| 1.0 | 2026-06-04 | Initial common architecture |
| 1.1 | 2026-06-04 | Care Module layer; /care/* hub routes |