Skip to main content
Status: 📝 Planned
Spec: specs/fw/specs/FW-57-healthcare-workflow-patterns-library.md
Last 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 emits fw.healthcare_pattern.instantiated for analytics, add to EVENT_CONTRACTS.md and KnownEventName.

API / RPC (Implementation)


Data Flow

  1. Catalog read: Authenticated user queries fw_workflow_templates with pattern_category IS NOT NULL and marketplace visibility per existing RLS.
  2. Instantiate: FW-28 copy path creates org workflow; copy or link required_node_ids / source_template_id per Clarification C-5.
  3. 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.