Spec:
specs/fw/specs/FW-57-healthcare-workflow-patterns-library.mdLast Updated: 2026-03-22
Purpose
Document how FW-57 extends existing Forms & Workflow infrastructure without new cross-core contracts in MVP.Platform Dependencies
Event Contracts (MVP)
None required. Reuse existing FW/FW-43 audit mechanisms. If a future release emitsfw.healthcare_pattern.instantiated for analytics, add to EVENT_CONTRACTS.md and KnownEventName.
API / RPC (Implementation)
Data Flow
- Catalog read: Authenticated user queries
fw_workflow_templateswithpattern_category IS NOT NULLand marketplace visibility per existing RLS. - Instantiate: FW-28 copy path creates org workflow; copy or link
required_node_ids/source_template_idper Clarification C-5. - Save graph: Validation layer ensures required node IDs remain.
Security & Tenancy
- Change log rows are org-scoped (
organization_id). - Marketplace templates remain readable cross-tenant per existing FW-28 SELECT policy.
- Mutations to catalog seeds: service role or dedicated migration only (not end-user).
Testing Notes
- RLS tests for
fw_regulatory_change_log(see spec Testing Strategy). - Integration test: save with missing required node → structured error.