Skip to content

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:

TierShipped 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.


FP-IDMin tierRoute / APIUser actionSystem behaviour
COM-P-01Essential/admin/subscriptionsBuy once (paid slugs)Stripe checkout → tenant_pack_purchases
COM-P-02EssentialPreview modalView pack contentsGET /condition-packs/{id}/preview
COM-P-03EssentialAdd Person / PatientsApply packPOST /api/patients/{id}/care-start — 403 if not unlocked
COM-P-04Essential/admin/patientsChange care pattern (API only; family UI withdrawn 2026-06-26)PATCH care-pattern — non-destructive merge (REQ-CARE-START-04)
COM-A-01Essential/logPick seeded PRN labelINSERT reason_types on apply for that patient (dedupe per person; V013 descriptions on cancer/breathing)
COM-A-02Essential/calendarNew shift, empty tasksCopy patient_shift_task_templates to shift lines
COM-A-03Family/observationsRecord obsTypes from care_profile_slug → pack_observation_type_links
COM-A-04AllPatient row—Sets care_profile_slug, archetype_id, care_start_applied_at
COM-A-05Essential/medication-scheduleSee four time slotscare_start_bootstrap — 08:00, 12:00, 20:00, 00:00 groups on apply + new person
COM-A-06Complete/shoppingSee profile shopping listsSHOPPING_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-IDRoute patternBehaviour
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-12Hub alert cardDeep link to resolving FP

4. Category definitions (standard across specs)

Section titled “4. Category definitions (standard across specs)”
CatNameDelivers
APresentationHub, dashboard, navigation
BCare journey & appointmentsTyped appointments, checklists, transport
CMedicines & schedulingProfile-specific med rules
DDevices & proceduresLines, pumps, ostomy, ventilator, etc.
ESymptoms & observationsDiary, bundles, profile obs
FSafety & escalationThresholds, emergency card
GCarer coordinationHandoff, driver, shift summary
HBetween-visitIn-app visit prep / clinician mode
IData catalogueSeed: reasons, obs, shifts, dropdown enums
T(Cancer only)Primary site → nomenclature pack

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:

LayerDocGate
Pack unlock + seedThis doc §2, doc 26tenant_pack_purchases, Care Start
Interactive board30-CARE-MODULE-PLUGIN-ARCHITECTURE.mdCARE_MODULE_BOARDS_ENABLED + CARE_MODULE_PREVIEW_USER_IDS + build flag
Board UI + widgets29-CARE-MODULE-UI-ARCHITECTURE.mdactivePatient.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.


VersionDateChange
1.02026-06-04Initial common architecture
1.12026-06-04Care Module layer; /care/* hub routes