Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.encoreos.io/llms.txt

Use this file to discover all available pages before exploring further.

Version: 2.19.10 Last Updated: 2026-05-18 Matrix of cross-core integrations: who publishes/consumes what, with links to contract docs.

Quick Reference

I need to…PatternLocation
Identify an integration between two coresIntegration matrix lookup by From/To coreIntegration Matrix
Determine event payload contract sourceEvent contract referenceEVENT_CONTRACTS.md
Confirm whether dependency should be platform-layer, event, API, or dataIntegration pattern governancePLATFORM_INTEGRATION_LAYERS.md
Find PM/CL cross-core integration mappings quicklyCL/PM EHR & Practice Management blockIntegration Matrix

Integration Matrix

From CoreTo CoreIntegration PatternStatusDocumentation
Platform Integration Layers
PFAll CoresPlatform LayerPlatform Integration Layers
PF-71PM (PM-01), CL (CL-01)Data (shared table)PF-71 Patient Identity Boundary - pf_patient_identities; no CL↔PM direct dependency
PF-27All CoresPlatform LayerPlatform Integration Layers - Platform AI
PF-60All CoresPlatform Layer📝PF-60 Integration - RAG Infrastructure (semantic search)
PF-62All CoresPlatform LayerPlatform Integration Layers - AI Skills System (extends PF-27)
PF-72PF-27, PF-59, PF-62, PF-60Platform internalPF-72 Agent SDK Integration - Skill-aware agent execution; consumes PF-27/PF-59/PF-62/PF-60; Phase 4 MCP integration complete
PF-64 Phase 2PF-27, PF-72Platform Layer / EdgePF-64 AI Template Generation - Description-to-template and section suggestions; edge function ai-generate-template; no PHI in prompts (constitution §4.3)
PF-73GRPlatform LayerPF-73 Integration - Swim Lane Diagrams (consumes GR-01 policies, GR-11 procedures for diagram generation). Phase 2.2 realtime: see EVENT_CONTRACTS.md#pf-73-realtime-channel. Phase 3 (keyboard shortcuts, undo/redo, validation, BPMN export, auto-layout, accessibility) complete.
PF-74PF-01, PF-50, PF-10, PF-81Platform internal📝PF-74 Integration - Path-based org routing; slug resolution; orgPath utility
PF-19HR (pf_sites, pf_departments)FK / Data LookupOrganizational Data Consolidation — employee primary site and department
PF-19FA (pf_departments)FK / Data LookupOrganizational Data Consolidation — cost center allocation
PF-19RH (pf_sites)FK / Data LookupOrganizational Data Consolidation — residence location
PF-18HR, FA, RHEvent (pg_notify)PF-18 Integration - Org Data Sync & Lineage; propagates dept/site changes to affected modules
PF-54All CoresPlatform LayerPlatform Integration Layers - Formatting Utilities
PF-51All CoresPlatform LayerPF-51 Integration - Caching (query, config, reference data)
PF-15-EN-01GR, PMPlatform LayerCentralized Reference Data — useReferencePicklist hook replaces hardcoded regulatory bodies, accreditation bodies, POS codes in GR and PM. Contract: useReferencePicklist(category: string, options?: { includeInactive?: boolean }) returns { data: PicklistItem[], isLoading, error }. Categories: regulatory_body, accreditation_body, place_of_service. Source: @/platform/reference-data.
PF-32 Server-SidePF-51, PF-07Platform internalPF-32 Server-Side Integration - Condition evaluation cache, performance metrics
PF-56FW, HR, PF, FA, RHPlatform Layer📝Platform Integration Layers - File Upload Framework
PF-63IT-16, IT, PFPlatform Layer📝PF-63 Integration - Device Compliance Integration Layer (MDM posture, compliance status, remote actions)
PF-65HRPlatform Layer📝PF-65 Integration - Gusto Embedded Payroll
PF-68CE, PF-27, PF-60Edge Function / EventPF-68 Integration - Website Chatbot Widget (AI chat, lead capture)
PF-70CL, PMPlatform LayerPF-70 Integration - Medical Terminology & Code Libraries (ICD-10-CM, CPT, HCPCS, modifiers; search & validation)
PF-70-EN-01CL, PMPlatform LayerTerminology Service Layer — code search edge function, ICD-10 hierarchy navigator, version management, cross-code-set mapping (2026-04-13)
PF-37 Phase 2/3PF-06, Settings HubPlatform LayerPF-37 Phase 2/3 Integration - Gesture preferences, analytics, pinch-to-zoom; Platform Layer (gestures) consumed by all cores
PF-93PF-13, PF-10, Radix UIPlatform Layer🔜 85%PF-93 Integration - Shared a11y utilities, skip links, announcer, keyboard shortcut registry, axe CI; aligns touch targets with PF-13; toast live regions with PF-10
PF-58 Phase 2-3-4All CoresPlatform LayerPlatform Integration Layers - Table-v2 expansion: inline edit, column manager, export, matrix layout, grouping
PF-23PF-25, PF-26, PF-31, PF-28Platform Layer (embed/link)📝PF-23 Data Manager Integration - Object detail tabs (Raw Data, Permissions), layout, relationships
PF-53PF (internal)Platform internal📝PF-53 Integration - Migration Management UI (view + dashboard; PF-45 platform admin)
PF-90PF-01, PF-04, PF-44, PF-48; S3-compatible storage (external)Platform internal / Edge / Cron📋PF-90 Integration - Backup orchestration, tenant restore, DR drills; consumes PF-44 export patterns; audit via PF-04
PF-79PF-49 (Session Management)Platform / ContextPF-79 Integration - App Lock (PIN + biometric); client-side session lock gate; depends on PF-49 session context
PF-77PF-01, PF-74, Vercel (external)Data / API📝PF-77 Integration - Tenant custom domain lifecycle; Vercel add/verify/remove; canonical host policy
PF-81PF (internal)Reference / StrategyPF-81 Integration - Multi-tenant host & URL strategy; references PF-74, PF-77, canonical-host-policy
PF-82FW-03, FW-06, PF-04, PF-10, PF-29, PF-36, PF-83Platform Layer / Event / DataPF-82 Integration - Business process registry with auto-discovery, health scoring, and notification/dashboard event contracts
PF-84FW-35, FW-16, All CoresPlatform Layer / API✅ Phase 1PF-84 Integration - Business calendar service wrapper (@/platform/calendar), shared edge utility, template/CSV holiday import
FW-35PF-83 (calendar_id FK), PF-84 (platform wrapper)Data (FK reference)✅ ImplementedPF-84 Integration - Business calendar tables consumed by PF-83 and wrapped by PF-84
PF-83FW-16, PF-84, PF-10, FW-03Platform Layer / Event / APIPF-83 Integration - Event-driven cross-core SLA tracking and escalation orchestration
PF-85FW-22, PF-82, PF-83, PF-36, PF-10Platform Layer / Data / Navigation✅ Phase 1PF-85 Integration - Unified automation observability dashboard with threshold alerting and drill-down navigation (DLQ integration: FW-47 ✅)
PF-86PF-01, PF-06, PF-10, CEPlatform Layer / shared Edge utilPF-86 Integration - Org/user HTML & text email signatures; @/platform/email-signatures; PF-10 + CE MVP consumers
PF-88PF-23, PF-24, PF-25, PF-47, PF-70; HR, PM, FA (import targets)Platform Layer / Data🔨PF-88 Integration - pf_import_*, onboarding wizard, adapters (CSV/XLSX/JSON); multi-entity batch import; PHI-safe storage and previews
PF-89PF-07, PF-36, PF-48; all cores (Edge consumers)Edge / CI / PlatformPF-89 Integration - X-API-Version middleware, file-based contracts, CI contract-diff, deprecation headers; opt-in per function
PF-91PF-04, PF-05, PF-10, PF-36, PF-48, PF-90, CL-11, GR-03Platform Layer / Edge / Event🔨PF-91 Integration - Compliance dashboard, PHI classification, drift detection, audit evidence packages; Part 2 enforcement with CL-11
PF-96CL-02, CL-04, CL-11, CL-40, PM-07, PM-08, PM-10, PM-18, PM-41, PF-91Platform Layer / Event / RPCPF-96 Integration - Jurisdiction profile system: state Medicaid rule packs (clinical, billing, compliance) with four-tier inheritance; useJurisdictionProfile() hook + pf_resolve_jurisdiction_profile() RPC; pf_jurisdiction_profile_changed event
PF-94PF-01, PF-54, PF-84, PF-83, PF schedulingPlatform Layer / Data📋PF-94 Integration - Site IANA timezone, pf_site_business_hours, hooks for SLA/scheduling/reporting; no core-to-core imports
PF-95PF-01, PF-74, PF-77, PF-81, PF-86, Vercel (external)Platform Layer / Data🔨PF-95 Integration - pf_tenant_themes (single-active DB enforcement), org subdomain + subdomain_verified + prefer_subdomain_redirect, pre-auth branding RPCs, CSS variables; PF-74 implements canonical 308 redirect matrix; PF-86 consumes theme tokens (Phase 4)
PF-97PF-01, PF-30, PF-42, PF-43, PF-48, PF-89Platform internal / Edge✅ Phase 1PF-97 Integration - Service accounts, API key lifecycle, token exchange edge function, machine auth middleware; PF-only (no cross-core consumers yet)
PF-98PF-10, PF-43Event / Platform LayerPF-98 Integration - AI Staff Headshot Generator; events to PF-10 (notifications) and PF-43 (quota tracking); Supabase Storage for images
PF-101HR, CE, PF-10, PF-11, PF-35, PF-76, PF-86; Google Workspace (external)Platform Layer / Event / Edge🚧PF-101 Integration - Google Workspace connector for Admin SDK directory lifecycle, Gmail, Calendar/Meet, Drive, Chat, licensing, Reports API; consumes HR lifecycle events and wraps existing CE Gmail/Calendar paths. Status (2026-04-28): WS1/WS2/WS3/WS5/WS7 complete; WS6 5/8 (Calendar, Licensing, Reports, Directory Reconcile shipped; Drive/Chat/CE-cutover deferred); WS4 1/5 (inventory only — Gmail compatibility adapter pending BAA staging tenant). 38/44 tasks.
PF-10-EN-01PF-10Platform Layer / Data / RPCPF-10-EN-01 Spec — Org-Configurable Notification Templates — pf_notification_templates (event_key), pf_notification_template_variables, resolution/render RPCs, management UI at /settings/notifications/templates
PF-11 Phase 5PF-10 (Notifications)Edge Function / CronDocument Expiration & Analytics — document-expiration-reminders sends PF-10 notifications at 30/7/1 day thresholds; process-document-expiration archives expired docs
Event-Based Integration
FW-16FW-03, PF-83, FW-46, PF-84, HR, RH, FA (publish)Event / Platform LayerFW-16 Integration — Event registry, domain event log, publishEvent() platform layer. Phase 2 (🔧 Core T1–T9 complete; T10–T17 pending): FW-16-PHASE-2-EVENT-SCHEMA-EXPANSION.md — payload JSON Schema validation, correlation_id on fw_domain_events, deprecation workflow, registry UI, CI schema checks
FW-30PF-27Platform LayerWorkflow Optimization & AI Suggestions — uses Platform AI for suggestion generation
FW-51FW-03, PF-27, FW-44, FW-50, PF-10Platform LayerFW-51 Automation Rule Copilot — NL drafting for automation rules via Platform AI; persists to existing fw_automation_rules / fw_automation_actions; no new tables
FW-15PF-08, PF-15 (Data Lookup), PF-01, WorkforcePlatform LayerFW-15 Form Field Lookups - Table lookups in form fields; consumes platform data-lookup and workforce
FW-60FW-01, FW-02, FW-05, FW-15, FW-19, PF-01, PF-02, PF-08, domain tables (RLS)Platform Layer / DataFW-60 Form Prefill & Smart Defaults - Prefill rules, carry-forward, submission provenance JSONB
FW-17PF-17, FW-16Platform Layer / Intra-coreFW-17 Advanced Condition Builder - Two-pane condition builder; PF-17 field discovery, FW-16 event payload attributes
FW-05PF-01, PF-02, PF-08, FW-01, FW-02Platform LayerFW-05 Multi-Page Forms - Page structure, progress, drafts; consumes PF-08, FW-01, FW-02
FW-45FW-03, FW-06, FW-07, FW-17, PF-01, PF-02Platform Layer / Event / APIFW-45 Decision Tables - Versioned decision-table authoring, workflow condition/node integration, and server-side evaluation audit logging
FW-46FW-03, FW-06, FW-16, PF-01, PF-10Platform Layer / Event / Scheduled WorkerFW-46 Durable Execution Worker - Queue-backed durable execution, retry + DLQ routing, cron-triggered worker
FW-59FW-46, FW-06, FW-16, PF-01, PF-04, PF-10, PF-42Edge Function / Data / Platform LayerFW-59 External Webhook Triggers - Inbound webhooks → validated enqueue to FW-46; org slug + endpoint slug routing
FW-47FW-46, FW-03, PF-01, PF-10Queue / Data / Scheduled Worker / Platform LayerFW-47 Dead Letter Queue - Captures permanently failed executions, enables manual retry/discard flows, and sends DLQ threshold notifications
FW-48FW-46, FW-22, FW-25, FW-18, FW-23, PF-01, PF-04Data / Platform Layer / RealtimeFW-48 Execution Step Checkpointing - Step-level checkpoint persistence, deterministic resume, variable output tracking, timeline/realtime integration
FW-49FW-46, FW-47, FW-25, PF-10, PF-01Scheduled Worker / Event / Platform LayerFW-49 Execution Timeout & Watchdog - pg_cron timeout watchdog, terminal timeout handling, warning/escalation notifications
FW-53FW-46, FW-47, FW-16, FW-03, PF-10, PF-04, PF-43, PF-42Scheduled Worker / Data / Platform LayerFW-53 Workflow Rate Limiting & Throttling - Org/workflow rate limits, debounce, cascade depth, backpressure with FW-46 worker; counters + dashboard
FW-50PF-27, FW-06, FW-18, FW-44Platform LayerFW-50 Natural Language Workflow Generation - AI-suggested workflow nodes/edges from description; merges into fw_workflow_definitions JSONB columns; no PHI in prompts
FW-54FW-34, FW-45, FW-17, FW-35, PF-10, PF-30Intra-core / Platform LayerFW-54 Conditional Approval Routing - Prioritized rules + optional FW-45 output select chain at submit; allowlisted dynamic approver lookups; fallback aligned with FW-34 escalation
FW-56FW-22, FW-48, FW-24, FW-06, FW-18, FW-43, PF-04, PF-46Intra-core / Platform LayerFW-56 Workflow Execution Replay & Time Travel - Historical replay from fw_execution_steps, what-if forks via fw_sandbox_executions, dual-run compare, single-execution JSON/PDF export
FW-52FW-06, FW-07, FW-01, FW-45, PF-08Edge / Platform Layer📝FW-52 Workflow Import/Export & Portability - JSON/YAML packages; fw_import_logs; transactional import RPC; optional form + decision-table bundle (no automation rules in Phase 1)
FW-55FW-01, FW-03, FW-06, FW-15, FW-16, FW-41, FW-54, PF-30, PF-04Intra-core / Platform LayerFW-55 Form & Workflow Dependency Graph - fw_dependency_graph edge store; incremental scanners on save; impact analysis, orphans, xyflow graph; FW-internal only MVP
FW-43GR-08, IT, PF-04, PF-10, FW-46/47/48/49, FW-16API / Platform Layer / Data (trigger)FW-43 Audit Trail & Compliance Reporting - Compliance-grade audit trail, report export (PDF/CSV/Excel/FHIR), retention management, FHIR AuditEvent alignment
FW-58FW-23, FW-34, FW-35, FW-05, PF-10, PF-58Data / Platform Layer / EdgeFW-58 Workflow Metrics & KPI Dashboards - KPI snapshots, dashboard, drill-down, scheduled PDF via PF-10
FW-25FW-46, FW-47, FW-48, FW-49, PF-01, PF-02, PF-10Intra-core / Platform LayerFW-25 Advanced Error Recovery & Retry - Configurable retry strategies, circuit breakers, recovery workflows, compensation actions
FWFW-03EventEvent Contracts
FWPF-10, FW-03Event📝Event Contracts - FW-34 Approval Submitted
FWFW-03, PF-10Event📝Event Contracts - FW-34 Approval Completed
FWPF-10Event📝Event Contracts - FW-34 Approval Escalated
Cross-Core FW Integration Guides
HRFW (FW-01, FW-03, FW-15, FW-16, FW-34, FW-45, FW-54)Event / Platform Layer📝HR-FW Integration - Leave approval, onboarding/offboarding workflows, credential reminders, performance review chains, compensation routing; conditional routing (FW-54)
FAFW (FW-01, FW-03, FW-15, FW-16, FW-34, FW-45, FW-54)Event / API / Platform Layer📝FA-FW Integration - Expense/PO/budget/JE/bill approval chains, amount-based decision tables, AP automation, period close workflows; conditional routing (FW-54)
RHFW (FW-01, FW-03, FW-15, FW-16, FW-33, FW-34, FW-45, FW-54)Event / Platform Layer📝RH-FW Integration - Intake forms, phase progression approval, safety event investigation, pass request approval, compliance reminders; conditional routing (FW-54)
HREvent Consumer, HR-04EventEvent Contracts
HREvent ConsumerEventEvent Contracts
HR-04HR-02Event SubscriptionEvent Contracts - Credential blocking
HR-05PF-10Event (DB trigger → Edge Fn)HR-05 Integration - Exception alerts via time-exception-notify; geofencing intra-core
HR-01GR-01, RH-01, HR-04, HR-05, FM, FAEvent / API📝HR-01 Integration - Employee lifecycle events, employee lookup API, org chart data
HR-02HR-04, HR-05, FW, PF-10, PF-11Event / Platform Layer📝HR-02 Integration - Credential expiration/verification events, renewal workflows
HR-03IT-08, PF-10, PF-11Event📝HR-03 Integration - Onboarding/offboarding events for IT provisioning
HR-31HR-01, HR-03, HR-12, PF-10, PF-11, GR-01 (event consumer)Event / Platform Layer⛔ DeprecatedHR-31 Integration - Workforce policy distribution & acknowledgments Consolidated into GR-01 (2026-03-26); tables dropped in migration 20260326034722
HR-26HR-01, HR-03, PF-10, PF-30, External (USCIS)Edge / Event / Platform LayerHR-26 Integration - E-Verify cases from I-9 Section 2; USCIS API via edge; notifications; hr.everify.* permissions
HR-28HR-01, HR-02, HR-03, HR-14, PF-10, PF-04, PF-30, PF-56Platform Layer / EventHR-28 Integration - Arizona fingerprint clearance tracking; onboarding/credential gates; expiration notifications; audit logging via PF-04
HR-09-ENHANCEMENTSHR-09, HR-09 Phase 5, HR-13, PF-10, PF-30Platform Layer / Data✅ ImplementedHR-09-ENHANCEMENTS Integration - EN-1 structured interview scorecards; blind peer evaluation; comparison grid; PDF export; optional HR-13 competency linkage; PF-10 assign/remind (no PHI in body)
HR-09-P5.4HR-09 (HR-internal; uses PF-Vault for credentials)Edge / SchemaJob Board Production Hardening — Vault credentials, circuit breaker, webhook signature/replay/idempotency, import pipeline; HR-internal only, listed for PF-Vault dependency visibility (2026-04-02)
HR-29HR-01, HR-07, HR-07-EN-1, HR-05, PF-10, PF-30Event / Platform Layer📝HR-29 FLSA Classification Integration - FLSA classification change events; retroactive pay request generation via HR-07 EN-1; threshold monitoring cron
HR-30HR-03, HR-07, HR-06, HR-05, HR-11, PF-10, PF-30Event / Platform Layer📝HR-30 Integration - Final paycheck on hr_employee_terminated; Arizona deadline tracking; HR-07 payroll handoff
HR-10LO-11, HR-15, HR-16, HR-03, HR-14, PF-08, PF-10, PF-11Event / Platform Layer📝HR-10 Integration - Performance review/goal/PIP events, review export API
HR-11HR-06, HR-07, FA-15, PF-10Event / API📝HR-11 Integration - Benefits enrollment events, enrollment status query hook
HR-14HR-01, HR-03, HR-04, GR-06, GR-03, PF-10, PF-11, Platform Layer (PF: Storage)Event / Platform Layer📝HR-14 Integration - Disciplinary/incident events; HR-14-ENHANCEMENTS EN-1 (ADA accommodations): HR-01/HR-04 reads, notifications, PF / Supabase Storage for PHI medical attachments — see integration doc § ADA reasonable accommodations
HR-15HR-07, FA, HR-10, PF-10, PF-11Event / Platform Layer📝HR-15 Integration - Merit increase, compensation cost allocation, analysis completion events
HR-16HR-01, HR-10, HR-13, PF-10, PF-12Platform Layer / Data📝HR-16 Integration - Succession planning with HR-10 performance and HR-13 skills integration
HR-17HR-03, PF-08, PF-10Event / Platform Layer📝HR-17 Integration - Survey and exit interview completion events
FAFW-03, PF-10, FA-03EventEvent Contracts
FAFA-02, PF-10, FA-06EventEvent Contracts
FA (FA-06 Phase 2/3)External (bank feed, banks)API / Export📝FA-06 Phase 2 & 3 Integration
FAEvent Consumer, PF-10, FA-11EventEvent Contracts - purchase_order_approved
FAEvent Consumer, PF-10, FA-11EventEvent Contracts - goods_received
FAEvent Consumer, FA-07, PF-10EventEvent Contracts
FA (FA-02 Phase 2/3)FA-19, FA-01Data / QueryFA-02-EXPANSION: JE Import (fa-je-import edge fn), Inter-Fund Transfers, Period Close Validation (widget on FA-19), GL Migration (fa_account_mappings with fund_id)
FA (FA-07 Phase 2/3)FA-08, PF-10Data / APIFA-07-PHASE-2-3-EXPANSION: Custom Report Builder, Dashboard, Annotations, BI API (fa-report-data edge fn), Cash Flow Direct, Functional Expenses Matrix
FAFW-16, PF-10Event📝Event Contracts - fa_bill_scan_completed, fa_bill_duplicate_flagged
FAFW-03, PF-10, FA-07EventEvent Contracts
FAPF-10, FA-08EventEvent Contracts
FAFA-07, PF-10, Event ConsumerEventEvent Contracts
FMPF-10, GREventFM Integration Contracts
FMPF-10, FA-03EventFM Integration Contracts
FMFA, FM-04, FM-05, FM-06, FM-03EventFM Integration Contracts — work_order_completed
FMPF-10, FA-04EventFM Integration Contracts — inventory_low_stock
FMPF-10, FM-05Event📝FM Integration Contracts — pm_due, pm_overdue, pm_completed
FMFAEvent📝FM Integration Contracts — asset_purchased, asset_disposed
FMPF-10, GR, FM-01Event📝FM Integration Contracts — inspection_due/failed/compliant (FM-06)
FMPF-10, GREvent📝FM Integration Contracts — fleet events (FM-13)
FMPF-10, FA-08Event📝FM Integration Contracts — budget_variance_alert (FM-09)
FMFA-09, PF-10Event📝FM Integration Contracts — capital_project_approved (FM-12)
FMPF-10, GREvent📝FM Integration Contracts — energy_anomaly_detected (FM-10, deferred)
FMPF-10, HREvent📝FM Integration Contracts — space_occupancy_threshold (FM-11)
LOFA, PF-10, PF-04EventEvent Contracts
LOPF-10EventEvent Contracts
LOPF-10, LO-03EventEvent Contracts
LOPF-10, PF-12EventEvent Contracts
LOPF-10, LO-06EventEvent Contracts
LOPF-10EventEvent Contracts
LOPF-04, PF-10EventEvent Contracts
LOLO-04, PF-10EventEvent Contracts
LOPF-10, LO-06EventEvent Contracts
LOPF-04, PF-10EventEvent Contracts
LOPF-10, PF-12EventEvent Contracts
RHFAEvent📝Event Contracts
RHFAEvent📝Event Contracts
RHFAEvent📝Event Contracts
RH (Billing)FA-05Event📝Event Contracts - resident_charge_created
RHPF-10Event📝Event Contracts
RH-02PF-10, FA, RH-01, RH-03, RH-04, RH-05Event / Platform Layer📝RH-02 Integration - Program/phase lifecycle, milestone, and completion integration surfaces
RH-01.1 → CL-68 / PM-74 / GR-27CL, PM, GREvent / Platform Layer📝CL-GR-PM-BHRF-EPISODE-LIFECYCLE - BHRF (A.A.C. R9-10-701–722, adult) clinical residential episode lifecycle. RH publishes the canonical rh_resident_admitted (filtered to facility_type='psychiatric_residential' = rh_psychiatric_residential_admission alias; bed/census substrate only); CL-68 opens clinical episode + assessment/LOC; PM-74 per-diem + 5-day PA; GR-27 licensure/staffing/incident/retention. CL is downstream — GR-27/PM-74 consume CL-68 events but do NOT depend on CL. No cross-core imports/FKs.
RHPF-10Event📝Event Contracts
RH-03PF-08, PF-10, PF-11, RH-02, RH-06Event / Platform Layer📝Event Contracts; RH-03 Integration - Significant event lifecycle, investigation completion, UDS-positive workflow, compliance export handoff
RH-04RH-05, PF-10, RH-01, RH-02, RH-03Event / Platform Layer📝RH-04 Integration - Attendance threshold breach events, participation tracking
RHPF-10, RH-05Event📝Event Contracts
RH-06HR, PF-10, PF-11, RH-01, RH-02, RH-03Event / API / Platform Layer📝RH-06 Integration - Compliance deadline and non-compliance events, HR employee lookup API
RHPF-10Event📝Event Contracts
FARHEvent📝Event Contracts
HRRHEvent📝Event Contracts
HRGREvent📝Event Contracts
PF-48 Security Event Monitoring
PF-48PF-04, PF-10, PF-36EventPF-48 Integration - security_event_detected
PF-52PF-36Data / PlatformPF-52 Integration - Query performance metrics on health dashboard
PF-92Vite build, GitHub Actions, PF-07 (reference)CI / Build📝PF-92 Integration - Bundle and Lighthouse budgets in CI; no runtime API
PF-36PF-10, PF-07Platform LayerPF-36 Integration - Health dashboard alerts (Phase 1); custom metrics & SLA alerts (Phase 2)
PF-07 (Phase 2/3)All Cores (RH, FA, HR, GR, FW, FM, CL), PF-36, External (Sentry)Platform Layer / APIPF-07 Integration - Error boundaries, auth logging with correlation IDs, feature-level crash isolation, performance monitoring; Sentry PHI scrubbing
PF-42PF-10, PF-04, PF-01Event / PlatformPF-42 Integration - rate_limit_violated; consumes PF-01 org context
PF-43PF-10, PF-04, PF-11, PF-42, PF-01Event / PlatformPF-43 Integration - quota_violated; storage/API/user/workflow quotas; consumes PF-01, PF-11, PF-42
PF-46PF-04, PF-11Platform / DataPF-46 Integration - Audit logging, cold storage (archival); scheduled retention jobs
PF-04 (Phase 2/3)PF-12, PF-14Platform / DataPF-04 Phase 2/3 Integration - Audit analytics dashboard, export, realtime feed, SIEM export
PF-47All CoresPlatform LayerPF-47 Integration - Bulk operations framework (delete, update, assign; progress, rollback, rate limit)
PF RAG Infrastructure Events
PF-11PF-60Event📝PF-60 Integration - document_published
PF-11PF-60Event📝PF-60 Integration - document_updated
PF-11PF-60Event📝PF-60 Integration - document_deleted
PF Knowledge Base Events
PF-61PF-60Event📝Event Contracts - knowledge_article_published
PF-61PF-60Event📝Event Contracts - knowledge_article_unpublished
PF-61PF-11Platform Layer📝PF-61 Integration - Document import
IT Module Events
ITFAEvent📝IT Integration Contracts - Asset purchased
ITFAEvent📝IT Integration Contracts - License renewed
ITFMEvent📝IT Integration Contracts - Asset maintenance required
ITGREvent📝IT Integration Contracts - Security incident
ITPF-10Event📝IT Integration Contracts - All alert events (SLA, expiration, compliance)
ITFW-34Workflow📝IT Integration Contracts - Procurement approvals
CE Module Events & Platform Telephony
CE-03All CoresPlatform LayerPlatform Integration Layers - Platform Telephony
CE-03-E1CE-03Platform LayerCE-03-E1 Spec - Click-to-Call & Screen Pop
CE-01RH-01EventCE-17 Spec, Event Contracts - ce_lead_converted (lead → resident admission)
CE-29PM-01EventCE-29 Integration - ce_lead_converted_to_patient (lead → patient creation)
CE-29RH-01EventCE-29 Integration - ce_lead_converted_to_resident (lead → resident creation)
CE-63CE-17, CE-19, CE-60, RH-01Event / DataCE-63 Integration — pipeline stage prompts; terminal success publishes ce_lead_converted_to_resident (CE-29); ce_lead_closures + CE-19 referral logging + CE-60 audit (2026-05-16)
CE-60RH-01, CE-29, CE-63, CE-04, CE-28, CE-59Event / DataCE-60 Integration — All History unified timeline; admission milestones consumed from CE/RH integration events only (no CE→RH table reads); profile audit via ce_contact_audit_log with FORCE RLS + immutable (no UPDATE/DELETE policies); permission-gated sensitive redaction via ce.contacts.history.sensitive_view (2026-05-17)
CE-29PM-38EventCE-29 Integration - ce_lead_converted_to_patient → PM-38 auto-schedules intake appointment
CE-18FA-31, FA-07Event📝CE-18 Spec, Event Contracts - donation_received, fundraising_campaign_completed
CE-10CE-01, CE-05, PF-10Event📝CE-10 Spec, Event Contracts - ce_web_form_submitted
CE-28PM-38, PM-39, CE-29, FW-16, RH-01EventCE-28 Integration - ce_screening_completed, ce_lead_waitlisted (intake screening → appointment/waitlist/conversion)
CE-28-ENHPF-83, PF-10, CE-29, RH-01, External EDI vendorEvent / Platform / API🟡 Phase 1 ✅CE-28 IntegrationPhase 1 complete 2026-05-17: EN-01 keyword crisis detection + ce_crisis_alert_created event (PHI-free) + crisis queue UI at /ce/intake/crisis; EN-02 business-hours evaluator + on-call rotations + after-hours handover queue. Org kill-switch via ce_module_settings.crisis_detection_enabled. Pending: EN-03 (translations), EN-04 (X12 270/271 + BAA), EN-05 (@/platform/rh bed availability), EN-06 (coaching), EN-07 (A/B).
CE-20CE-01, CE-04, PF-15Data / Platform LayerCE-20 Integration - Contact relationship graph, CE-04 activity logging, PF-15 relationship-type picklists
CE-21CE-04, PF-10, PF-29Data / PlatformCE-21 Integration - Calendar OAuth, two-way sync, meeting scheduler; ce_calendar_events.activity_id → CE-04
CE-65RH (bed inventory)Platform LayerCE-65 Integration - Pipeline bed board embed reads aggregated occupancy via @/platform/rh; permission ce.pipeline.view_bed_board; no CE → RH direct imports
CE-64(intra-core CE)Platform (PF tenancy only)CE-64 Integration stub - Multi-track pipeline; no cross-core events in v1; future ce_lead_track_changed deferred
CE-61CE-60, CE-65, CE-05Data / PlatformCE-61 spec — Contact tagging & alert system. CE-60: tag_added / tag_removed rows via ce_log_contact_audit_event (category tag, extended actor/context fields packed in p_details JSONB; no helper-signature changes). CE-65: tile metadata extension tags: TagBadge[] + has_alert_tag: boolean semantic state (rendering owned by CE-65, distinct from CE-58 urgency). CE-05: tag-name reporting dimension deferred to CE-05 reporting surface (tracked as IOU; no schema blocker). No new domain events; EVENT_CONTRACTS.md unchanged.
PM (PM-38)CE-28, CE-29, PM-10, PM-39, PM-02, RH-01Event / API / DataPM-38 Integration - Intake appointment auto-creation; consumes ce_screening_completed; queries PM-10 slots; publishes pm_appointment_created and pm_no_suitable_provider
PM (PM-38)PM-40, PF-29, PF-11Event / PlatformPM-40 Integration - pm_appointment_created → pre-admission packet, e-sign, document storage
CECE-04EventCE-07 Email Integration - Email synced → Activity (database trigger)
CEPF-10EventCE-07 Email Integration - Email tracking notifications (opens, clicks)
CECE-04EventCE-08 SMS Integration - SMS sent/received → Activity (database trigger)
CEPF-10EventCE-08 SMS Integration - SMS opt-out confirmations
CECE-05Event📝CE-09 Marketing Campaigns - Campaign events (planned)
CL/PM EHR & Practice Management
CLPM, FW, PF-10Event📝Event Contracts - assessment_completed, treatment_plan_signed, progress_note_signed, encounter_completed, etc.
PM (PM-45)FA, PF-10, PM-09, PM-16, PM-32Event / Platform LayerPM-45 Integration · EVENT_CONTRACTS: pm.payment_plan.created · EVENT_CONTRACTS: pm.bad_debt_writeoff.approved - PF-10 for aging reminders; PM-16 statement data; PM-32 charity care routing. 6 tables, 6 pages, 5 hooks, 1 edge function (pm-collections-aging-cron), 6 permissions. Completed 2026-04-08
PMFA, PF-10, PM-09Event📝Event Contracts - claim_submitted, claim_adjudicated, prior_auth_required, eligibility_verified, patient_registered
PMCL, RH (optional), PF-10Event📝Event Contracts - appointment_scheduled, patient_registered
PM (PM-06)CL-12Event📝CL-PM Referrals - referral_accepted; PM-06 Integration
PM (PM-06-EN-01)PF-10, PF-11Platform LayerPM-06-EN-01 Spec — court-ordered tracking, fax-to-digital intake, SLA monitoring, packet checklist. Platform-only deps (PF-10 notifications, PF-11 documents). No new cross-core event contract. Complete 2026-05-04.
PM (PM-07)CL-04, PM-02, PM-08, PF-70Event / Data📝CL-PM Encounter-to-Billing - clinical_note_finalized; PM-02 fee schedules; PM-08 claims from charges; PF-70 code library
PM (PM-07-EN-14)PM-07, PM-18-EN-06, PF-96, PF-30Data / Platform LayerPM-07-EN-14 Integration - Payer-specific modifier rules engine; resolution cascade: payer rule → PF-96 jurisdiction → system default; permissions via PF-30
PM (PM-09)FAEvent📝PM-09 Payment Posting & ERA, EVENT_CONTRACTS – payment_posted, write_off_approved - Revenue and write-off posting to GL
PM (PM-15, PM-15-P2)PM-08, PM-09, PM-02, PM-10, PM-29, PM-30, PF-10, External (Waystar)Data / API / EventPM-15 Clearinghouse Integration - Batch submission (PM-08), ERA retrieval (PM-09), eligibility 270/271 (PM-02), prior auth (PM-10); PM-15-P2 adds production REST transport (Waystar OAuth2), X12 837P/835/270/271/999/277CA, health monitoring, retry logic; CARC/RARC to PM-29; COB from PM-30; events clearinghouse_batch_submitted, clearinghouse_batch_error, clearinghouse_era_received, clearinghouse_health_changed. SFTP deferred (Deno Deploy incompatible). Complete 2026-04-09.
PM (PM-15-P2-EN-01)PM-15, PM-28, PF-30, PF-95Data / Platform LayerPM-15-P2-EN-01 spec — Clearinghouse multi-vendor failover. Adds secondary_vendor, failover_enabled, failover_threshold_minutes to pm_clearinghouse_config; new pm_payer_clearinghouse_routes for per-payer overrides. Pure router (resolveVendorRoute) with precedence payer override → primary → failover secondary after threshold. BAA gate via custom_fields.baa_approved_vendors blocks enabling Availity/Change Healthcare without compliance approval. Audit trail emitted on config change. Availity/Change Healthcare adapters scaffolded as stubs. Complete 2026-05-14.
CL, PMPF (platform)Platform Layer📝Platform Integration Layers - CL Consent Service, CL Billing Adapter, CL Document Export (EHI)
CL-39PM-10, PM-12, PM-14, CL-04, CL-14, CL-16Platform Layer✅ CompleteCL-39 Platform Integration Hooks - usePatientContext, useEncounterContext, useBillingAdapter, useDocumentExport, useExportStatus; no core-to-core imports
CL-41CL-39, PM-07, CL-04, CL-14Platform Layer / Data✅ CompleteCL-41 spec - useBillingOverrides, applyBillingOverrides, useBillingWithOverrides; PM table pm_billing_suggestion_rules; 3-tab settings UI at /cl/settings/billing-overrides; composes with CL-39. Complete 2026-04-01.
CL-46CL-08 (event), PM-07 (platform layer), PF-70, PF-15, PF-30Event / Platform Layer✅ Complete (2026-05-12)CL-46 spec — Problem List Management (ICD-10). Publishes cl_problem_list_updated (→ CL-08 CDS re-eval). Exposes usePatientActiveProblems via @/platform/clinical for PM-07 encounter diagnosis pre-population (no direct CL→PM import). PF-70 for ICD-10-CM code search; PF-15 for status/resolution picklists; PF-30 for cl.problems.{view,create,update,delete} permissions.
PM (PM-41)CE-28, CE-29, PM-38, PM-39, PM-40, PM-42, FW-16, GREvent / Data / RealtimePM-41 Integration - Intake funnel analytics logs; triggers + aggregates; FW-16 for UI/downstream; feeds PM-42. All 4 phases complete 2026-03-29
API Contracts
CL (CL-01)PM (PM-01), PF-01, PF-02, PF-04, PF-11API / DataCL-01 Patient Chart & Clinical Summary - Chart shell, problem list, allergies; patient identity boundary in spec errata
PM (PM-01)PF-01, PF-02, PF-08, PF-16Platform / Data📝PM-01 Patient Registration & Demographics - Patient registration, USCDI v3 demographics, MPI; consumed by CL-01, PM-02, PM-03
PM (PM-01-EN-02)PF-96, PM-01Platform LayerPM-01-EN-02 Jurisdiction-Aware Patient Identifiers - Profile-driven identifier labels/validation via PF-96; alias-first dual-read; bidirectional sync triggers; no new tables
PM (PM-08-EN-13)PF-96, PM-08, PM-26Platform LayerPM-08-EN-13 Jurisdiction-Aware Filing Deadlines - Profile-driven filing deadline and compliance window via PF-96; generic export filenames; no new tables
PM (PM-07-EN-13)PF-96, PM-07Platform LayerPM-07-EN-13 Jurisdiction-Aware Billing Rules - Profile-driven timed-unit thresholds, modifier conventions, IOP/PHP thresholds, and program label via PF-96; AZ defaults preserved as fail-safe fallback; no new tables, no new permissions
PM (PM-02)PM-01, PM-08, PM-15, AHCCCS (external)Data / API📝PM-02 Insurance & Eligibility Verification - Insurance policies, eligibility checks (270/271), payers; consumed by PM-08
PM (PM-08)PM-07, PM-09, PM-15, PM-02, PM-10, PF-70Data / API / Platform📝PM-08 Claims Management & Submission - Claims from charges; submission; PF-70 code library
PM (PM-03)PM-01, PM-05, PM-07, PM-13, CL-04, PF-10Data / Event / Platform📝PM-03 Appointment Scheduling - Appointments consume PM-01/PM-05; events to PM-07, CL-04; PF-10 reminders; PM-13 telehealth
PM (PM-10)PM-01, PM-02, PM-08, CL-16, PF-10Data / API / Event📝PM-10 Prior Authorization Management - PA requests; auth verification at claim scrub (PM-08); payer requirements (PM-02); Da Vinci PAS (CL-16); expiration alerts (PF-10)
| PM (PM-39) | PM-38, PM-10, CE-28, CE-29, PM-02, PM-41, FW-16 | Event / Data | ✅ | PM-39 Waitlist Management - no_match → waitlist; availability re-check → promotion | | PM (PM-12) | PM-01, PM-03, PM-09, PM-14, PF-08, CL-11 | Platform Layer / Data | 📝 | PM-12 Patient Portal & Self-Service - Self-scheduling, demographics, statements, messaging, clinical record (CL-11 Part 2); PF-08 intake/consent | | PM (PM-12-EN-01) | PM-12, PM-40, PM-42, PM-03, PF-08, PF-29 | Intra-core (PM) | ✅ | Patient Portal Intake Enhancements — pm_portal_packet_assignments + pm_portal_packet_items (FORCE RLS, portal-patient scoped via pm_portal_visible_patient_ids); scheduling-readiness guardrails; PM-42 staff workbench tab. Intra-core only — see .intra-core-only.json. | | PM (PM-14) | PM-12, PF-10, CL-01, CL-11 | Platform Layer / Data / Event / API | 📝 | PM-14 Secure Messaging - Messaging UI (PM-12); notifications (PF-10); chart docs (CL-01); Part 2 (CL-11) | | CL (CL-23) | PF-10, PM-14, CL-04, CL-08, CL-09, CL-11, PF-29 | Platform Layer / Event | ✅ | CL-23 Clinical In-Basket - In-basket items from co-sign, CDS, labs, referrals; PF-10 notifications; PM-14 deep-links | | PM (PM-11) | PM-07, PM-08, PM-09, PM-10, PF-12, FA-07 | Data / Platform Layer | 📝 | PM-11 Revenue Cycle Dashboard & Analytics - RCM KPIs, snapshots, benchmarks; PF-12 reports; FA-07 financial reporting (future) | | PM (PM-17) | PM-08, PM-15, HR (Platform Layer), PF-10 | Data / Platform Layer | 📝 | PM-17 Provider Credentialing & Enrollment Verification - Enrollment status for claim scrub (PM-08); clearinghouse readiness (PM-15); HR provider/credential context via platform; alerts (PF-10) | | PM (PM-16) | PF-10, PF-11, PM-09, PM-12 | Platform Layer / Data | ✅ | PM-16 Patient Statement Generation & Billing Communications - Statement runs, delivery (PF-10/PF-11), PM-09 statements/balances, PM-12 portal posting; payment plans and financial assistance | | PM (PM-18) | PM-08, PF-70 | Data / Platform Layer | ✅ | PM-18 Configurable Claim Scrubbing - Org-level scrub rule overrides; extends PM-08 claim scrubbing. EN-06: per-payer/claim-type overrides, pm_scrub_custom_edits table (custom rule overrides, not an event contract), effectiveness reporting; PF-70 for code validation in custom edits. Completed 2026-03-27 | | PM (PM-19) | FW-03, PM-07, PM-08, PM-09 | Event | 🔨 | PM-19 PM-Triggered Business Rule Automation - Automation rules triggered by PM events (claim status, charge approval, payment posting) | | PM (PM-20) | PF-01, PF-02, PF-10, PM-01, PM-02, PM-03, PM-07, PM-16 | Platform Layer / Data | ✅ | PM-20 Good Faith Estimate & Price Transparency - NSA GFE generation, delivery timing (1/3 BD), acknowledgment, $400+ dispute workflow; same-core dependencies only. Completed 2026-02-28 | | PM (PM-21) | PM-01, PM-07 | Data (same core) | ✅ | PM-21 Sliding Fee Discount Schedule Management - FPL-based patient discounts; PM-07 charge capture applies discount_pct from active assessment. Completed 2026-02-28 | | PM (PM-23) | PM-07, PM-08, PM-09, PM-11 | Data (same core) | ✅ | PM-23 Contract & Fee Schedule - Contracted rates for expected amount, underpayment detection, expiration alerts, analytics. Completed 2026-02-28 | | PM (PM-48) | PM-02, PM-09, PM-11, PM-20, PM-23, PM-32, PF-10, PF-11, PF-96 | Data / Event / Platform Layer | ✅ | PM-48 Patient Cost Estimation & Financial Clearance - Insured-patient cost estimates (benefit data from PM-02, rates from PM-23); financial clearance workflow; auto-route to PM-32 above threshold; events pm_cost_estimate_generated, pm_financial_clearance_completed; accuracy tracking via PM-09 adjudication write-back. Completed 2026-04-07 | | PM (PM-24) | PM-02, PM-07, PM-08, PM-15, PF-30 | Data (same core) / Platform Layer | ✅ | PM-24 Batch Operations - Batch claim generation/submission, eligibility checks, charge approval; pm_batch_jobs audit table; 4 permission keys. Completed 2026-03-01 | | PM (PM-27) | PF-01, PM-08, PM-15, PM-11, PM-17 | Data / Platform Layer | ✅ | PM-27 Multi-Site & Multi-NPI Configuration - Site-level billing config (NPI, tax ID, fee schedule, clearinghouse); claim defaults per site; patient site transfers; PM-08/PM-15 consume config. Completed 2026-03-01 | | PM (PM-46) | PM-17, PM-15, PM-27, PM-07, PM-08, PF-10 | Data / Event / Platform Layer | ✅ | PM-46 Payer Enrollment & EDI Onboarding - EDI enrollment lifecycle tracking per payer/NPI/transaction type; 2 tables (pm_payer_edi_enrollments, pm_edi_enrollment_status_history) + FORCE RLS + pm_user_has_org_access + append-only history + pm_transition_edi_enrollment_status RPC + 5 permissions + domain types (edi-enrollment.ts) + 6 hooks + EdiEnrollmentHubPage (3-tab: Matrix, ERA/EFT Gaps, Dashboard) + EdiEnrollmentDetailSheet + BulkCreateDialog + 2 Recharts + sidebar nav. Completed 2026-04-09 | | PM (PM-28) | PF-01, PF-30, PM-01, PM-08, PM-09 | Data / Platform Layer | ✅ | PM-28 PM System Configuration & Admin Settings - Single org-level PM settings admin surface; pm_module_settings key reference; permission-gated (pm.settings.view/manage); PM-01/PM-08/PM-09 consume settings; Phase 2: PM-20/PM-22/PM-23 cards. Completed 2026-03-03 | | PM (PM-29) | PM-08, PM-09, PM-10, PM-11, PM-18 (Phase 2), PF-29, PF-70 | Data (same core) / Platform Layer | 🟡 | PM-29 Claims Denial Management & Appeals - Denial intake from ERA (PM-09), auth-denial link (PM-10), claim status/resubmit (PM-08), KPI analytics feed (PM-11), PF-29 auto-tasks on appeal submission, PF-70 CARC/RARC lookup; 3 permission keys. Phase 1 in progress — queue, detail, appeal workflow implemented; T6 analytics, T7 ERA intake pending. | | PM (PM-50) | PM-08, PM-18, PM-29, CL-36, PF-96, PF-10 | Platform Layer / Event / Data (same core) | ✅ | PM-50 AI-Powered Denial Prediction & Prevention - Pre-submission ML risk scoring in PM-08 queue; complements PM-18 scrubbing; CL-36 documentation completeness metadata via @/platform/clinical; PF-96 jurisdiction context; PM-29 outcomes feed retraining; 4 permission keys; 2 events planned. Completed 2026-04-07 | | PM (PM-25) | PM-11, CL-10, CL-15, PM-02, PM-01 | Data / Platform Layer | ✅ | PM-25 VBP & APM Tracking - VBP programs, measures, incentives; PM-11 dashboards; CL-10/CL-15 gap identification; attribution (PM-02/PM-01). Completed 2026-03-01 | | PM (PM-33) | FA, PM-11, PM-01, PM-09 (future) | Event / Data (same core) | ✅ | PM-33 Capitation & PMPM Revenue Reconciliation - Capitation contracts, PMPM periods, roster events, reconciliation with disposition state machine; capitation revenue in PM-11 dashboard. capitation_payment_received event to FA is planned for FA integration phase — not blocking PM-33 core completion. Completed 2026-03-26 | | PM (PM-42) | PM-38, PM-39, PM-40, PM-41, CE (ce_leads), FW-16, PF-30 | Data / Event / Platform Layer | ✅ | PM-42 Coordinator Workbench - pm_coordinator_tasks, pm_task_audit_log; nullable lead_id (no composite FK); intake task queue, bulk actions, compliance export; realtime via FW-16. Completed 2026-03-29 | | PM (PM-51) | PM-08, PM-02, PM-09, PF-75, FW-46, PF-10, PF-11 | Event / Data (same core) / Platform Layer | ✅ | PM-51 Payer Portal Automation (RPA) - Headless browser RPA for payer portals; claim status → PM-08, remittance staging → PM-09, eligibility → PM-02; PF-75 credential vault; FW-46 durable worker; events pm.rpa.execution_completed, pm.rpa.consecutive_failures | | PM (PM-36) | PM-07, PM-08, PM-09, PM-11, PF-29 | Data (same core) / Platform Layer / Scheduled Edge Function | ✅ | PM-36 Automated Charge Reconciliation - Nightly edge function detects 5 gap types (encounter→charge, charge→claim, claim→payment, duplicate, zero-amount); PF-29 tasks per gap; pm_charge_recon_daily_summary feeds PM-11 KPIs; 2 permission keys (pm.charge_recon.view/manage) | | PM (PM-44) | PM-09, PM-23, PM-29, PM-11, PF-10, PF-12, PF-96 | Event / Data (same core) / Platform Layer / Scheduled Edge Function | ✅ | PM-44 ERA Reconciliation & Underpayment Detection - Consumes payment_posted from PM-09; compares paid vs PM-23 contracted rates; publishes pm_underpayment_detected; payer performance snapshots (daily cron); AI pattern detection (weekly cron); appeal initiation via PM-29; 5 permission keys | | PM (PM-53) | FA, PM-09, PM-15, PM-29, PM-37 (proposed), PM-44, PM-45, PF-04, PF-10, PF-30, PF-44, PF-96 | Event / Data (same core) / Platform Layer | 📝 | PM-53 Refund, Recoupment & Takeback Management · Spec - Publishes payment_refund_issued (FA consumes → GL journal entry writeback) and payer_recoupment_detected (PM-44 consumes → exclude active recoupment lines). 3 tables (pm_refunds, pm_refund_approvals, pm_payer_recoupments); multi-tier refund approval state machine; CARC CO-45/100/104 + PLB WO/50/72 takeback detection inside process-era; PM-29 dispute pre-population; 5 permission keys (pm.refunds.view/create/approve, pm.recoupments.view/manage); jurisdiction-aware dispute deadlines via PF-96; contextual contract rate interpretation via PM-44 (which depends on PM-23). Supersedes lite alternatives PM-09-EN-11 and PM-09-EN-15. | | PM (PM-49) | PM-19, PM-29, PM-09, PM-45, PM-11, PF-01, PF-02, PF-10, PF-29, PF-96 | Event / Data (same core) / Platform Layer / Scheduled Edge Function | 📝 | PM-49 Revenue Cycle Automation Rules Engine - Configurable RCM rules engine: small balance auto-adjust, denial resubmit via PM-29, collections transfer via PM-45, dynamic AR work queue scoring; 3 tables, 3 edge functions, 3 consumed events, 1 published event; PF-96 filing deadline resolution | | PM (PM-49) | PM-19, PM-29, PM-09, PM-45, PM-11, PF-01, PF-02, PF-10, PF-29, PF-96 | Event / Data (same core) / Platform Layer / Scheduled Edge Function | ✅ | PM-49 Revenue Cycle Automation Rules Engine - Configurable RCM rules engine: small balance auto-adjust, denial resubmit via PM-29, collections transfer via PM-45, dynamic AR work queue scoring; 3 tables, 3 edge functions, 3 consumed events, 1 published event; PF-96 filing deadline resolution. Completed 2026-04-08 | | PM (PM-47) | PM-08, PM-10, PM-01, PF-10, PF-29 | Data (same core) / Platform Layer / Scheduled Edge Function | ✅ | PM-47 Managed Care Authorization Tracking — Auth lifecycle dashboard, concurrent review scheduling, denial appeals, auth-to-claim validation gate (pm-auth-claim-validation edge function), expiration alerts (pm-auth-expiration-alerts cron); 3 tables, 2 edge functions, 7 permissions. Completed 2026-04-08 | | PM (PM-26) | PF audit, PM-08, PM-09, PM-11 | Data (same core) / Platform Layer | ✅ | PM-26 Audit Trail & Compliance Reporting — Centralized billing audit log (pm_audit_log), compliance reports, payer audit export, internal controls, fraud/abuse flags. Completed 2026-03-01 | | PM (PM-31) | PM-07, PM-08, PM-09, PM-10, PM-15, PM-18, CL-17 (UUID ref), PF-70 | Data (same core) / Platform Layer / Cross-core UUID ref | ✅ | PM-31 OTP/MAT-Specific Billing — OTP program config (G2067–G2080, G2215/G2216, H0020, T1012), weekly/daily billing periods, service components, charge/claim generation via PM-07/PM-08, PM-10 prior auth, CL-17 PDMP reference (ADR-002 UUID, no FK). Completed 2026-03-26 | | PM (PM-34) | PM-02, PM-03, PM-07, PM-12, PF-10, PM-28 | Event / Data / Platform Layer | ✅ | PM-34 Real-Time Eligibility at Check-In - Auto-triggers PM-02 on PM-03 checked_in status; discrepancy detection (new plan, copay/deductible change, coverage gap, COB order change); pm_checkin_discrepancies; PF-10 notification to front desk; copay feed to PM-07 charge defaults; kiosk/portal trigger via PM-12; PM-28 configures timeout and notification. Completed 2026-03-26 | | PM (PM-34-EN-01) | PM-01, PM-02, PM-03, PM-09, CL-11, PF-10, PF-11, PM-28 | Data / Platform Layer | ✅ | PM-34-EN-01 Check-in Kiosk Self-Service — patient self-service check-in with demographics review, insurance card capture (PF-11), consent signing (CL-11 via @/platform/clinical), copay collection (PM-09), arrival notification (PF-10), kiosk device config (PM-28). 1 table (pm_kiosk_checkins), 5 settings columns, 9 hooks, 15 components, 2 permissions, 59 tests. Completed 2026-04-10 | | PM (PM-35) | PM-07 (charge snapshot), PM-25 (VBP consumer), FA-35 (event) | Event / Data (same core) | ✅ | PM-35 Encounter-Level Cost Accounting - Cost categories, rates, auto-calculation on encounter_completed; pm_encounter_costs; encounter_cost_calculated event to FA-35; margin analysis (cost vs charge); PM-25 reads pm_encounter_costs for TCOC benchmarking. Completed 2026-03-28 | | PM (PM-30) | PM-01, PM-02, PM-07, PM-08, PM-09, PM-15, PM-16 | Data (same core) | ✅ | PM-30 COB & Secondary Claims — COB priority order (pm_insurance_policies.priority_order); secondary/tertiary 837P/837I claim generation from primary ERA (COB2300/COB2400); Medicare–AHCCCS dual-eligible crossover; secondary ERA posting and patient balance update (PM-09, PM-16). Completed 2026-03-27 | | PM (PM-32) | PM-01, PM-02, PM-16, PM-20, PM-21, PF-08, PF-10 | Data (same core) / Platform Layer | ✅ | PM-32 Patient Financial Counseling & Charity Care — Financial counseling sessions with FPL calculation (pm_fpl_thresholds); assistance program referral tracking (AHCCCS, Medicare Savings, ACA, LIAP); charity care applications per board policy; PM-16 live join for charity indicator; PM-21 FPL-based sliding fee; PM-02 policy linkage on referral approval; PF-10 expiration reminders; HRSA FQHC compliance workflow. Completed 2026-03-26 | | CL (CL-02) | PF-01, PF-02, PF-08, PF-33, PF-10, CL-01, CL-03, CL-07 | API / Event | ✅ | CL-02 Comprehensive Assessments - 18-element assessments, CALOCUS/ASAM, expiration alerts, signatures; events to CL-03, CL-07 | | CL (CL-02-EN-60) | PF-96 | Platform Layer / RPC | ✅ | CL-02-EN-60 Jurisdiction-Aware Assessment Requirements - useClinicalRules() + pf_resolve_jurisdiction_profile() RPC for dynamic required elements; cl_check_intake_elements generic function; intake_element_complete column; AZ 18-element parity preserved as default profile. Complete 2026-04-03. | | CL (CL-02-EN-61) | PF-96, CL-02-EN-60 | Platform Layer / Merge Engine | ✅ | CL-02-EN-61 Integration — Configurable clinical assessment templates; cl_assessment_templates + cl_assessment_template_sections tables; mergeAssessmentSections pure engine combining jurisdiction-required + org template sections; editor/list/version-history UI at /cl/settings/assessment-templates; 22 unit tests. Complete 2026-04-03. | | CL (CL-02-EN-59) | CL-02 (parent) | CL-internal | ✅ | CL-02-EN-59 Cognitive Screening Instruments — MoCA, SLUMS, MMSE seed into cl_assessment_instruments; cognitiveScoring.ts (6 pure scoring/threshold functions); CognitiveAssessmentForm + CognitiveResultAlert UI; 42 CFR Part 2 consent gating via cl_has_sud_consent; cl_assessment_completed event; 25 unit tests. Complete 2026-04-04. | | CL (CL-03) | PF-01, PF-02, PF-33, PF-10, CL-01, CL-02, CL-04 | API / Event | ✅ | CL-03 Treatment Planning - Measurable goals, signatures, appeal rights, multi-disciplinary sign-off; review-due and event-triggered alerts; CL-02 findings, CL-04 progress; Phase 2-3: Goal progress viz, caregiver tracking, life-event automation, template library | | CL (CL-04) | PM (PM-07), PF-10, PF-33, HR-19, CL-01, CL-03 | Event / API | 📝 | CL-04 Progress Notes & Session Documentation - clinical_note_finalized event for charge capture; co-sign workflow (HR-19); signatures (PF-33); alerts (PF-10) | | CL (CL-04-EN-67) | PF-96 | Platform Layer | ✅ | CL-04-EN-67 IntegrationuseNoteRequirements hook consuming useClinicalRules() + useComplianceRules() from PF-96; profile-driven attestation text, required note elements (12-element model), policy citation metadata, mandatory validation flag; note-requirements-resolver.ts pure functions with AZ AHCCCS fallbacks; 11 unit tests. Complete 2026-04-04. | | CL (CL-05) | CL-01, CL-06, CL-08, CL-09, CL-12 | API / Data | 📝 | CL-05 Medication Management - Medication list, reconciliation at transitions, drug interaction (RxNav/NLM), monitoring protocols; CL-12 triggers reconciliation | | CL (CL-05-EN-01) | CL-05, CL-06, CL-08, CL-11, PM-10, PF-01, PF-96, External (FDB/Medi-Span) | API / External / Platform Layer | ✅ | CL-05-EN-01 DDI Checking - Real-time DDI alerts during medication entry/reconciliation (CL-05) and e-prescribing (CL-06); override documentation with co-signature for contraindicated; provider alert suppression for minor interactions; CL-08 CDS delegates drug_interaction rule type; CL-11 consent gating for SUD meds (42 CFR Part 2); jurisdiction-aware (PF-96). Migration (cl_ddi_overrides, cl_ddi_alert_suppressions), types, 3 hooks, 3 UI components (DdiAlertPanel, DdiOverrideDialog, DdiSuppressionSettings), 4 permissions, 26 unit tests. Complete 2026-04-13. | | CL (CL-06) | CL-01, CL-05, CL-08, CL-17, Surescripts (external) | API / External | 📝 | CL-06 E-Prescribing (EPCS) - Prescription routing, EPCS, RTPB; medication list (CL-05), CDS (CL-08), CSPMP (CL-17) | | CL (CL-07) | PF-10, PF-33, CL-01, CL-13 | Event / API | ✅ | CL-07 Suicide Risk Screening & Safety Planning - C-SSRS/PHQ-9/ASQ/SAFE-T; Stanley-Brown safety plan; high/imminent alerts (PF-10); signatures (PF-33); risk flag (CL-01); EN-23–EN-26 (Phase 1, no domain events; PF-10 via direct pf_notifications insert): lethal means counseling on cl_safety_plans, clinician-initiated patient PDF view, family notification (cl_designated_contacts + cl_family_notification_log, consent-gated), 988 transfers (cl_988_transfers, HCPCS free-text — PF-70 deferred). See CL-07-ENHANCEMENTS-CONTEXT.md. | | CL (CL-07-EN-01) | PF-01, PF-10, PF-96, PM-03, CL-07, CL-11 | Platform Layer / Event | ✅ | CL-07-EN-01 Zero Suicide Framework — Lethal means assessment instrument (cl_lethal_means_assessments), safety plan emergency contact sharing (cl_safety_plan_shares) with Part 2 consent gating (CL-11 useConsentCheck), automated 24/48/72 follow-up scheduling (PM-03 via @/platform/scheduling). Share uses Supabase Storage signed URL + PF-10 action_url. Events: cl_safety_plan_shared, cl_zero_suicide_followup_scheduled. Extends CL-07 EN-23 (assessment instrument) and EN-24 (emergency contact sharing). | | CL (CL-08) | CL-01, CL-05, CL-06, CL-10, PF-10, PF-70, RxNav (external) | API / Event / Edge Function | ✅ | CL-08 Clinical Decision Support - Drug/allergy alerts, monitoring reminders, documentation/quality gaps; CL-05/CL-06 trigger; PF-10 delivery; CL-10 quality data; EN-27: evaluate-cds Edge Function (RxNav); EN-28: pathway guidance; EN-29: alert fatigue analytics | | CL (CL-09) | CL-01, CL-05, CL-08, PF-10, External Labs | Event / API / External | 📝 | CL-09 Lab & Diagnostic Orders - Lab orders, result ingestion (HL7v2/FHIR), trending; CL-08 abnormal alerts; CL-05 monitoring protocols | | CL (CL-09-ENH) | CL-09 (internal) | CL-internal | ✅ | CL-09-ENHANCEMENTS (EN-30, EN-31, EN-32): Standing order protocols, POC result entry, reference range customization. No cross-core deps beyond parent CL-09. Complete 2026-02-26. | | CL (CL-10) | PF-01, PF-02, PF-12, CL-01, CL-02, CL-03, CL-12, CL-15, RH | Data / Platform | 🏗️ | CL-10 Outcomes Tracking & Measurement - PROMs, HEDIS (FUH/FUM/IET/AMM), program outcomes; RH program_id FK; CL-12 transitions; CL-15 quality reporting. CL-10-ENHANCEMENTS (EN-1, EN-2): Performance instrumentation, SAMHSA NOMs/CBE/HEDIS MY 2026 terminology, source tags. Complete 2026-02-26. | | CL (CL-12) | PF-01, PF-02, PF-10, PF-11, CL-01, CL-03, CL-05, CL-07, CL-16, PM-06 | Event / Data / API | 📝 | CL-12 Care Coordination & Transitions - Care teams, transitions, discharge checklist, FUH 7/30-day; referral_accepted (PM-06); C-CDA/ADT (CL-16) | | CL (CL-12-EN-67) | CL-12, PM-06, FindTreatment.gov (external) | Data / External API | ✅ | CL-12-EN-67 Integration — Closed-loop referral status tracking (cl_referral_status_history); cl_referral_current_status view; optional FindTreatment.gov directory search edge function; cl_referral_status_updated event. Complete 2026-04-14. | | CL (CL-15) | PF-12, CL-10, CL-01, CL-02, CL-03, CL-04, GR-03, GR-08, PF-10, CL-13 | Platform Layer / Event / Data | ✅ Phase 1 / 🏗️ Phase 2-3 partial | CL-15 Clinical Reporting & Quality Measures - Phase 1 (✅): Report definitions, runs, AZDHS incidents; PF-12 report engine; CL-10 outcome data for HEDIS/CARF; cl_incident_reported event consumed by GR (compliance/accreditation) and PF-10 (notifications). Phase 2/3 (🏗️ partial, see CL-15-PHASE-2-3-EXPANSION): shipped 2026-05-18cl_module_settings dual-track columns + dual-track deadline util + CL settings dual-track subsection + patient-context portal QM view. Pending — T5 clinical_audit report renderer, T7 deployment guide, T9 automated HEDIS QM, T10 CarfReadinessPage. Blocked on CL-13 — T2 restraint_event_id migration, T4 restraint picker. Last verified: 2026-05-18 | | CL (CL-16) | CL-01, CL-11, CL-12, PM-10 | API / Event | 🟡 | CL-16 FHIR Interoperability - Phase 1 (FHIR R4 facade, schema, RLS) in progress; Edge Function fhir-r4 deployed; consent gating (CL-11); API contracts in API_CONTRACTS.md; events: cl_fhir_bundle_exported (Phase 1), cl_ccda_document_sent/cl_ccda_document_received (Phase 2) in EVENT_CONTRACTS.md; Phase 2 (C-CDA/HIE) blocked on Contexture; Phase 3 (Da Vinci) blocked on PM-10. Last verified: 2026-02-23 | | CL (CL-16-EN-01) | CL-16, CL-11, CL-12, PM-10, PF-04, PF-11 | API / Event | ✅ | CL-16-EN-01 TEFCA/QHIN Connectivity - TEFCA exchange log, patient matching, consent-gated outbound exchange, 42 CFR Part 2 redisclosure notices, HIPAA minimum necessary filter, exchange telemetry; extends CL-16 without duplicating CL-11 consent ownership. Last verified: 2026-04-09 | | CL (CL-17) | CL-06, CL-01, External (PMP Gateway/NABP, Bamboo Health, Arizona HIE) | API / External | 🏗️ | CL-17 Arizona CSPMP/PDMP - PDMP query-in-workflow, prescriber attestation, delegate access; A.R.S. § 36-2606; scaffold complete (DB, RLS, hooks, UI, routes, edge fn scaffold); gateway integration pending vendor selection. Last verified: 2026-02-24 | | CL (CL-18) | PF-01, PF-02, PF-08, PF-70, CL-01, CL-02 | API / Data / Event | ✅ | CL-18 SDOH Screening & Social Needs - SDOH screening, referrals, Z-codes (PF-70); chart/assessment visibility; optional cl_sdoh_screening_completed event (deferred). Last verified: 2026-02-23 | | CL (CL-19) | CL-01, CL-04, CL-11, PM-03, PM-07, PF-70 | Event / Data / Platform | ✅ | CL-19 Peer Recovery Support - Peer encounter docs; encounter-to-billing (PM-07); HCPCS (PF-70); Part 2 (CL-11). Last verified: 2026-02-23 | | CL (CL-40) | CE-28, PM-38, CL-18, CL-19, PM-07, PF-33, PF-70 | Event / Data / Platform | ✅ | CL-40 Clinical Intake & SDOH - Intake orchestrator; consumes pm_appointment_created + ce_screening_completed; publishes cl_intake_finalized, cl_sdoh_referral_created, cl_peer_encounter_documented; PF-70 (ICD-10); PF-33 (e-sig); Part 2 (CL-11). Last verified: 2026-03-29 | | CL (CL-20) | PF-64, PF-11, CL-01, CL-02, CL-03, CL-04, CL-07, CL-11, CL-13, CL-14 | Platform Layer / Data | ✅ | CL-20 Medical Record Export & Document Generation - Per-document and full chart PDF export; PF-64 templates; Part 2 consent (CL-11). Last verified: 2026-02-23 | | CL (CL-21) | CL-05, CL-06, CL-10, CL-11, PM-07, PF-10, PF-70 | Data / Platform / Event | ✅ | CL-21 MAT/MOUD Tracking — MAT enrollment, medication/monitoring events; CBE #3400 (CL-10); consent (CL-11); charge triggers (PM-07); alerts (PF-10). Breakdown by type: Data → CL-05, CL-06, CL-10, CL-11; Event → PF-10; API → PM-07; Platform → PF-10, PF-70 (see integration doc). Last verified: 2026-02-23 | | CL (CL-36) | CL-04, CL-11, CL-14, CL-24, PF-01, PF-02, PF-27, PF-30, pm_encounters, External AI Vendors | Data / Platform / API (edge fn) | ✅ | CL-36 AI-Assisted Clinical Documentation — AI draft generation from structured encounter data; ambient voice integration (Phase 3); attribution + attestation (cl_ai_note_attributions); Policy 940 quality validation; 42 CFR Part 2 consent gate (CL-11); tenant opt-in; PHI via edge function only. No PHI may be sent to any external AI vendor until a BAA is fully executed (CL-36 NFR-4; HIPAA 45 CFR 164.502(e)). See REGULATORY_COMPLIANCE_TRACKER.md — “HIPAA — AI Vendor BAA” row for consistency. | | CL (CL-36-EN-01) | CL-36 (parent), CL-04, CL-11, PF-01, PF-02, PF-30, pm_encounters | Data / Platform | ✅ | CL-36-EN-01 AI Ambient Listening & Auto-Documentation — 3 tables (cl_ambient_sessions, cl_ambient_transcripts, cl_ambient_session_events); SOAP structuring; review queue/detail UI; ambient settings; 5 permissions (cl.ambient.*); RLS with SECURITY DEFINER helpers; 29 unit tests. Completed 2026-04-09. | | PF (PF-100) | PF-01, PF-04, PF-10, PF-27, PF-30, PF-46, PF-66, PF-70, PF-71, PF-76, PF-91, PF-93, PF-95, PF-96, CL-11, CL-36, CL-36-EN-01, pm_encounters, External AI Vendors (Deepgram, AssemblyAI, AWS Bedrock/Transcribe Medical/HealthScribe, Recall.ai, Plaud) | Platform Layer / Event / Data / API (edge fn) | 🚧 | PF-100 Platform Ambient Recording, Transcription & AI Note Generation — Productizes CL-36’s ambient pipeline as a PF capability consumable by CL/PM/HR/GR/CE/RH via @/platform/transcription. 14 pf_transcription_* tables; 16 permission keys (pf.transcription.*); 10 published events + 3 consumed events (pf.transcription.session.*, .draft.*, .audio.*, .deletion_*, .policy.*); per-tenant + Part-2 KMS aliases; vendor BAA matrix enforcement (PF-91); right-to-deletion processing. Phase 3 CL-36 backend swap is non-breakingcl_ambient_* tables become VIEWs over pf_transcription_* (module_key='cl') per ADR-002 (PF→PM encounter_id is a UUID with no FK; CL→PM FK preserved on the CL projection independently). 42 CFR Part 2 segmentation post-deadline remediation tracked in REGULATORY_COMPLIANCE_TRACKER.md. No PHI may be sent to any external AI vendor until a BAA is fully executed (HIPAA 45 CFR 164.502(e)). | | CL (CL-34) | CL-09, CL-21, CL-04, CL-11, CL-33, PM-07, PF-01, PF-02, PF-10, PF-30 | Data / Event / API / Platform | ✅ | CL-34 Drug Testing / UDS Workflow — UDS orders with chain-of-custody; presumptive/definitive ordering; results interpretation (CL-05 cross-check); MOUD unexpected-negative alerts (CL-21 + PF-10); court-reportable flag → CL-33; billing CPT/G-codes → PM-07; Part 2 consent gating (CL-11). Migration, types, hooks, UI, RLS tests complete. Event/API contracts: planned for Phase 2. | | CL (CL-22) | CL-01, CL-08, CL-09, CL-10, CL-11, CL-16, PF-01, PF-02, PF-10, PF-70 | Data / Platform | ✅ | CL-22 Vital Signs & Biometric Tracking — Vitals, biometrics, metabolic monitoring; chart display (CL-01); CDS thresholds (CL-08); lab linkage (CL-09); outcomes inputs (CL-10); consent for metabolic events (CL-11); FHIR Observation mapping (CL-16). All integrations intra-CL or PF; no cross-core dependencies. Last verified: 2026-02-23 | | CL (CL-24) | PF-01, PF-02, CL-04, CL-07, CL-11, CL-14, PM (PM-07) | Data / API | 📝 | CL-24 Telehealth Documentation & Compliance — Telehealth consent, session modality/location; GT/95 modifier logic (PM-07); CL-04 progress note link; CL-07 safety; CL-11/CL-14 consent and group telehealth | | CL (CL-25) | PF (audit), PF-01, CL-04, CL-07, CL-11, CL-15 | Data / Platform Layer | ✅ | CL-25 Clinical Audit & Compliance Dashboard — Read from pf_audit_logs and CL tables; break-glass review queue; anomaly detection RPC. Complete 2026-04-01 | | CL (CL-26) | CL-02, CL-03, CL-07, CL-10, CL-11, CL-23, PM-12, PM-14 | Platform Layer / Data / Event | ✅ | CL-26 Patient-Reported Outcomes & Self-Service Portal — Patient screenings, check-ins, treatment plan view, consent self-service, messaging (PM-14), crisis resources; in-basket (CL-23); portal identity (PM-12) | | CL (CL-27) | PF-01, CL-14, PM-03, PM-04, RH | Data / Platform / Event | ✅ | CL-27 Behavioral Health Program Scheduling Templates — Program templates (IOP/PHP/residential/outpatient), enrollment, group session auto-creation (CL-14), conflict check (PM-03/PM-04), RH census alignment. Last verified: 2026-02-25 | | CL (CL-29) | PF-01, CL-12, CL-03, CL-07, CL-10, CL-18, RH | Data / Event | ✅ | CL-29 Discharge & Aftercare Planning — Aftercare plans, follow-up contacts (HEDIS FUH), readmission risk; transition link (CL-12); housing coordination at residential discharge (RH). Event contracts: Discharge.AftercarePlan.Finalized (platform.events.aftercare; publisher CL-29, subscribers RH, reporting); RH.Referral.Status (platform.events.referrals; publisher RH, subscriber CL-29). Integration owners: CL team (CL-29), RH team (referral status). | | CL (CL-29-EN-65) | CL-29, CL-15, CL-35, PM (via platform), PF-70 | Data / Platform Layer | ✅ | CL-29-EN-65 HEDIS FUH/FUM Tracking — HEDIS FUH/FUM flag columns on cl_aftercare_plans; cl_hedis_fuh_fum_summary view (security_invoker); CL-15 and CL-35 consume view for rates/export and care gap. Permission gates: cl.hedis-tracking.view, cl.hedis-tracking.export. ⚠️ AHCCCS HEDIS FUH/FUM MY 2025 reporting deadline: June 15, 2026 (9:00 PM ET), subject to final confirmation — track in REGULATORY_COMPLIANCE_TRACKER; confirm HOQ (House of Quality) status. | — HEDIS FUH/FUM flag columns on cl_aftercare_plans; cl_hedis_fuh_fum_summary view (security_invoker); CL-15 and CL-35 consume view for rates/export and care gap. Permission gates: cl.hedis-tracking.view, cl.hedis-tracking.export. ⚠️ AHCCCS HEDIS FUH/FUM MY 2025 reporting deadline: June 15, 2026 (9:00 PM ET), subject to final confirmation — track in REGULATORY_COMPLIANCE_TRACKER; confirm HOQ (House of Quality) status. | | CL (CL-31) | CL-02, CL-03, CL-04, CL-11, CL-15, CL-21, PF-01, PF-02, PF-30 | Data / Platform | ✅ | CL-31 Spec/Integration Document — Complete 2026-05-12. Extends CL-02 (COD assessment tab + ASI-6/BASIS-32/GAIN-SS), CL-03 (treatment plan extension), CL-04 (progress note SUD section, consent-gated via CL-11 cl_check_sud_consent()), CL-15 (IET-COD HEDIS measure in cl-hedis-calculator); MOUD link via CL-21 FK. Intra-CL only; no separate CL-31-*-INTEGRATION.md doc required (no cross-core FKs, no published domain events; SUD redaction is request-time, not event-driven). | | CL (CL-35) | CL-02, CL-03, CL-07, CL-10, CL-15, CL-22, PF-01, PF-02, PF-30 | Data / Platform Layer / Event | ✅ | CL-35 Integration — Phase 2/3 complete: cl_risk_stratifications, cl_quality_measure_periods tables; dashboard, quality measures, clinician panel, supervisor panels pages; cl-risk-stratification and cl-hedis-calculator edge functions; FA VBP event contract. Last verified: 2026-04-01 | | CL (CL-04-EN-66) | CL-04, PF-02, PF-30, PF-70, PF-10 | Platform Layer / Data | ✅ | CL-04-EN-66 Note Quality Pre-Submission Validation — Pre-finalize Policy 940 validation gate on cl_progress_notes; INSERT-only override audit cl_note_940_override_audit; org-configurable enforcement (block/warn); break-glass with PF-10 notification; credential check (PF-02); diagnosis match (PF-70). Complete 2026-04-03 | | CL (CL-11-EN-01) | CL-11, PF-01, PF-02, PF-04, CL-16 | Data / Platform Layer | ✅ | CL-11-EN-01 Electronic Consent & Redisclosure — E-signature consent capture (cl_electronic_consents); 42 CFR Part 2 redisclosure chain-of-custody (cl_redisclosure_log, append-only); extends CL-11 consent framework; deferred CL-16 HIE coordination. Complete 2026-04-10 | | CL (CL-14) | CL-01, CL-03, CL-11, PM-04, PM-07 | Platform Layer / Data | ✅ | CL-14 Group Therapy Documentation - Group sessions, attendance, individual documentation; Part 2 consent (CL-11); scheduling (PM-04); billing/HQ (PM-07). CL-14-ENHANCEMENTS: Curriculum library (cl_group_curricula), outcome metrics dashboard, family/multi-family group subtype. Last verified: 2026-02-26 | | CL (CL-14-EN-01) | CL-14, PM-07, PM-08, CL-39, PF-70, PF-96 | Event / Data / Platform | ✅ | CL-14-EN-01 Group Encounter Generation — Auto-generates pm_encounters + cl_group_encounter_generations from group attendance; consumes cl_group_session_documented; publishes cl_group_encounters_approved → PM-07 charge creation; batch review/reconciliation UI; jurisdiction-aware CPT proposal (PF-96). Complete 2026-04-09 | | PM, CL | Platform / PM, CL | API | 📝 | API Contracts - Eligibility check, Claim status, Consent check, Document export, Patient demographics | | PM (PM-05) | PM-03, PM-04 | Data / API | ✅ | PM-05 Provider Schedule & Availability — Availability consumed by appointment and group scheduling. Complete 2026-02-20 | | PM (PM-05) | HR-04 | Boundary | ✅ | PM-05 Provider Schedule & Availability — No shared tables; HR-04 may consume availability for display. Complete 2026-02-20 | | PM (PM-04) | CL (CL-14) | Data / Platform | 📝 | CL-PM Group Sessions - Group scheduling (PM-04) vs clinical documentation/attendance (CL-14); ownership boundaries and schedule_id linkage | | PF-27/PF-59 | All Cores | API (Edge Functions) | ✅ | API Contracts - AI Edge Functions (OpenRouter) | | PF-30 | All Cores | API (DB Function) | 🟡 | API Contracts - Phase 1 Complete | | PF-30 | PF-26 | Direct Dependency | 🟡 | Three-tier permission check integration (Phase 2) | | PF-30 | PF-02 | Direct Dependency | 🟡 | System role integration (Phase 2) | | FA | RH | API | 🟡 | API Contracts — Edge function fa-episode-balance (cached rh_episode_payment_status; FA AR linkage 📋) | | FA-UX-05 | FW-03 | API | 📝 | FA-UX-05 / FW-03 Integration - Purchase Order Approval Submission | | HR | RH | API | 📝 | API Contracts | | HR | RH | API | 📝 | API Contracts | | RH | CL | API | 📝 | API Contracts | | HR | FA | Platform Layer | 📝 | HR-PAY-03 Integration - Direct deposit & Plaid (FA-20). Security: AES-256-GCM encryption (NIST SP 800-38D) for plaid_access_token_encrypted and account_number_encrypted; key rotation via Supabase Vault (annual or on compromise); SOC 2 Type II and PCI-DSS compliance; all operations audit-logged to pf_audit_logs; Plaid tokens retained per NACHA/Open Finance Data Security Standard (max 7 years or per org policy). | | HR (HR-PAY-03) | HR (HR-12) | In-App | 📝 | HR-PAY-03 Integration - Pay stubs & bank accounts (self-service) | | HR-11 | HR-PAY-02 | Event | ✅ | Event Contracts - Benefit enrollment created/terminated → auto-create or end-date deductions | | HR-PAY-02 | HR-07 | Data | ✅ | HR-PAY-02 Integration - Payroll run consumes deductions; creates deduction items and YTD updates | | HR-PAY-02 | HR-PAY-01 | Data | ✅ | HR-PAY-02 Integration - Pre-tax deductions reduce taxable income before tax calculation | | HR-PAY-02 | PF-11 | Outbound | ✅ | HR-PAY-02 Integration - Court order document storage; link via custom_fields on employee deduction | | HR | FA | Event | ✅ | Event Contracts - hr.employer_tax_liability.calculated (HR-PAY-04 → FA; Phase 2/3 e-filing + multi-state W-2 complete). See HR-PAY-03 security constraints for payroll data handling. | | HR-34 | HR-PAY-04, PF-10, HR-02 | Platform Layer / Data / Event | ✅ | HR-34 Integration - Contractor profiles, contracts, classification, approved time → 1099-NEC inputs via hr_get_contractor_1099_totals RPC (API_CONTRACTS); renewal/credential notifications via PF-10; event stubs: hr_contractor_created, hr_contractor_contract_renewal_due, hr_contractor_credential_expiring (EVENT_CONTRACTS); credential types FK → HR-02. Complete: schema, hooks, UI, routes, notifications, 1099 export, 62 tests, compliance evidence. | | IT | IT-02, IT-05 | API | 📝 | IT Integration Contracts - Asset lookup | | IT | IT-01, IT-04, IT-06 | API | 📝 | IT Integration Contracts - Vendor lookup | | External API Integrations | | HR | Checkr (External) | API (Edge Function) | 📝 | HR-20 Checkr Integration (superseded by HR-09-P5.2; archived at docs/archive/architecture/integrations/HR-20-checkr-background-check-INTEGRATION.md) | | FA | Ramp (External) | API (Edge Function) | ✅ | FA-30 Ramp Corporate Cards & Spend - Card transaction sync, connection management; FA-12 Phase 2 corporate card integration | Legend:
  • Implemented - Fully implemented and tested
  • 📝 Planned - Specified but not yet implemented
  • 📋 Draft/Spec - Specification complete, implementation not started
  • 🟡 In Progress - Partially implemented
  • 🚧 Work in progress / partial delivery - Active development with partial feature delivery

Encounter Lifecycle (CL-PM)

The encounter (pm_encounters, owned by PM) is the canonical entity linking scheduling, clinical documentation, and billing. State transitions are driven by events and platform layer usage. References: CL-PM Encounter-to-Billing, ADR-002 (cross-core FK exception for encounter references).

Integration by Core

RH (Recovery Housing)

Integration Doc: RH-01 Bed Board & Census Integration Facility Types (added RH-01.1):
  • recovery_housing (POS 55) — NARR Level 2/3 recovery housing
  • psychiatric_residential (POS 56) — Behavioral health residential (RTC/BHRF)
  • inpatient_unit (POS 51) — Inpatient psychiatric unit
Bed Board: /rh/bed-board — real-time board with facility_type filter, accessible from RH module launcher. Publishes Events (persisted to fw_domain_events):
  • rh_resident_admitted → FA / PM (🟡 persistence ✅; batch consumers 📋) — facility_type for PM-07 POS
  • rh_resident_discharged → FA / PM (🟡 persistence ✅; batch consumers 📋)
  • rh_phase_advanced → FW-16 / PF-10 (🟡 persistence ✅; automations 📋)
  • invoice_creation_requested → FA (📝 Planned) — includes facility_type; align name with FA before implement (see EVENT_CONTRACTS)
  • rh_bed_assigned / rh_bed_released → HR (📝 Planned) — register in KnownEventName + triggers when HR consumer is scheduled (legacy names bed_assigned / bed_released deprecated)
  • critical_incident_reported → PF-10 (📝 Planned)
  • attendance_threshold_breached → PF-10, RH-05 (📝 Planned)
  • compliance_deadline_approaching → PF-10 (📝 Planned)
  • non_compliance_detected → PF-10 (📝 Planned)
Consumes Events:
  • payment_received from FA (📝 Planned)
  • employee_assigned_to_site from HR (📝 Planned)
Consumes APIs:
  • /api/v1/fa/episode-balance from FA (🟡 Edge function fa-episode-balance; uses cached rh_episode_payment_status until FA episode AR is linked)
  • /api/v1/hr/employees/{employee_id} from HR (📝 Planned)
  • /api/v1/hr/employees from HR (📝 Planned)
Exposes APIs:
  • /api/v1/rh/current-residence → CL (📝 Planned) — current residence/bed for patient chart; API Contracts
Provides Census Data (Platform Layer):
  • src/platform/census reads rh_beds and rh_residences (including facility_type) for HR workload and PM reporting
  • See Platform Census README
Uses Platform Layers:
  • Forms (PF-08) - Resident intake forms
  • Census (Platform) - useCensusData, useSiteCensus consumed by HR/PM
  • Workforce (Platform) - Staff assignments
  • Data Lookup (PF-15) - Site and staff selectors
  • Notifications (PF-10) - Compliance alerts
  • Documents (PF-11) - Resident agreements

FA (Finance & Accounting)

Publishes Events:
  • vendor_bill_approved → FW-03, PF-10, FA-03 (✅ Implemented)
  • payment_processed → FA-02, PF-10, FA-06 (✅ Implemented)
  • journal_entry_posted → Event Consumer, FA-07, PF-10 (✅ Implemented)
  • budget_approved → FW-03, PF-10, FA-07 (✅ Implemented)
  • budget_exceeded → PF-10, FA-08 (✅ Implemented)
  • consolidation_completed → FA-07, PF-10, Event Consumer (✅ Implemented)
  • payment_received → RH (📝 Planned)
  • tax_1099_generated → PF-10 (📝 Planned - FA-10)
  • tax_w2_generated → PF-10, HR-07 (📝 Planned - FA-10)
  • tax_year_closed → PF-10, FA-07 (📝 Planned - FA-10)
  • asset_created → FM-05, PF-10 (📝 Planned - FA-11)
  • asset_disposed → FM-05, PF-10, FA-02 (📝 Planned - FA-11)
  • depreciation_posted → FA-02, FA-07 (📝 Planned - FA-11)
  • expense_report_submitted → FW-03, PF-10 (📝 Planned - FA-12)
  • expense_report_approved → FA-05, PF-10 (📝 Planned - FA-12)
  • expense_report_rejected → PF-10 (📝 Planned - FA-12)
  • expense_reimbursement_processed → FA-02, PF-10 (📝 Planned - FA-12)
  • project_created → FA-08, PF-10 (📝 Planned - FA-13)
  • project_budget_exceeded → PF-10, FA-08 (📝 Planned - FA-13)
  • grant_drawdown_received → FA-02, PF-10 (📝 Planned - FA-13)
  • cash_position_updated → FA-07, PF-10 (📝 Planned - FA-14)
  • investment_maturity_approaching → PF-10 (📝 Planned - FA-14)
  • credit_limit_approaching → PF-10 (📝 Planned - FA-14)
  • idc_rate_calculated → FA-13, PF-10 (📝 Planned - FA-15)
  • idc_allocated → FA-13, FA-02 (📝 Planned - FA-15)
  • kpi_threshold_exceeded → PF-10 (📝 Planned - FA-16)
  • intercompany_transaction_created → FA-02, FA-09 (📝 Planned - FA-17)
  • intercompany_elimination_generated → FA-09, FA-02 (📝 Planned - FA-17)
  • fa_revenue_recognized → FA-02, FA-05, FA-13 (✅ Implemented FA-18 Phase 2 WS3 — published via fw_domain_events from fa_process_revenue_recognition)
  • fa_revenue_schedule_completed → FA-05, FA-13, LO (✅ Implemented FA-18 Phase 2 WS3 — emitted when a schedule fully recognizes its total revenue)
  • close_period_started → PF-10, FA-02 (✅ Implemented - FA-19)
  • close_period_completed → PF-10, FA-07 (✅ Implemented - FA-19)
  • close_period_approved → PF-10, FA-07, FW-03 (✅ Implemented - FA-19)
  • close_task_assigned → PF-10 (✅ Implemented - FA-19)
  • close_task_completed → PF-10 (✅ Implemented - FA-19)
Consumes Events:
  • rh_resident_admitted from RH (🟡 Event persisted; FA batch consumer 📋) — facility_type for service-line tagging
  • rh_resident_discharged from RH (🟡 Event persisted; FA batch consumer 📋) — facility_type and LOS
  • invoice_creation_requested from RH (📝 Planned) — payload includes facility_type
  • resident_charge_created from RH → FA-05 (📝 Planned - Auto-invoice generation)
  • merit_increase_approved from HR-15 → FA-08 (✅ Implemented) - Budget impact tracking
  • compensation_cost_allocated from HR-15 → FA-08 (✅ Implemented) - Departmental cost forecasts
  • compensation_analysis_completed from HR-15 → FA-16 (✅ Implemented) - Analytics integration
  • payroll_run_completed from HR-07 → FA-10 (📝 Planned - W-2 generation)
  • vendor_payment_processed from FA-03 → FA-10 (📝 Planned - 1099 updates)
  • purchase_order_received from FA-04 → FA-11 (📝 Planned - Asset creation)
  • workflow_approved from FW-03 → FA-12 (📝 Planned - Expense approval)
  • workflow_rejected from FW-03 → FA-12 (📝 Planned - Expense rejection)
  • journal_entry_posted from FA-02 → FA-13, FA-15 (📝 Planned - Project/cost allocation)
  • vendor_bill_approved from FA-03 → FA-13 (📝 Planned - Project expense allocation)
  • invoice_sent from FA-05 → FA-13, FA-16, FA-18 (📝 Planned - Project revenue, DSO, revenue recognition)
  • bank_balance_updated from FA-06 → FA-14 (📝 Planned - Cash position updates)
  • payment_processed from FA-03 → FA-14 (📝 Planned - Cash flow forecast)
  • fiscal_period_closed from FA-02 → FA-19 (📝 Planned - Close period linking)
Exposes APIs:
  • /api/v1/fa/episode-balance → RH (🟡 Edge function fa-episode-balance; full FA AR join 📋)
  • /api/v1/fa/tax/1099/generate → Internal (📝 Planned - FA-10)
  • /api/v1/fa/assets/{asset_id}/depreciation → FA-07 (📝 Planned - FA-11)
  • /api/v1/fa/assets/register → FA-07 (📝 Planned - FA-11) - Fixed asset register report
  • /api/v1/fa/depreciation/schedule → FA-07 (📝 Planned - FA-11) - Depreciation schedule report
  • /api/v1/fa/depreciation/run → Internal (📝 Planned - FA-11) - Run monthly depreciation
  • /api/v1/fa/expenses/reports/{report_id}/approve → FW-03 (📝 Planned - FA-12)
  • /api/v1/fa/projects/{project_id}/budget-vs-actual → FA-07, FA-08 (📝 Planned - FA-13)
  • /api/v1/fa/idc/rates/{rate_id}/allocate → FA-13 (📝 Planned - FA-15)
  • /api/v1/fa/analytics/dashboard → Internal (📝 Planned - FA-16)
  • /api/v1/fa/intercompany/eliminations/generate → FA-09 (📝 Planned - FA-17)
  • /api/v1/fa/revenue/recognize → Internal (✅ Implemented FA-18 Phase 2 — RPC fa_process_revenue_recognition + edge function fa-process-revenue-recognition HTTP wrapper)
  • /api/v1/fa/close/periods/{period_id}/approve → FW-03, Internal (✅ Implemented - FA-19)
  • /api/v1/fa/close/periods/{period_id}/status → FA-07, FA-02 (✅ Implemented - FA-19)
  • /api/v1/fa/cash/position → FA-07, FA-16 (📝 Planned - FA-14)
Consumes APIs:
  • /api/v1/hr/payroll/tax-data from HR-07 → FA-10 (📝 Planned - W-2, 941/940)
  • /api/v1/fa/vendors/payments from FA-03 → FA-10 (📝 Planned - 1099)
  • /api/v1/fa/purchase-orders/{po_id} from FA-04 → FA-11 (📝 Planned - Asset creation)
  • /api/v1/fm/assets/{asset_id} from FM-05 → FA-11 (📝 Planned - Facilities asset reference)
  • /api/v1/it/assets/{asset_id} from IT-01 → FA-11 (📝 Planned - IT asset reference)
  • /api/v1/hr/employees/{employee_id} from HR-01 → FA-12 (📝 Planned - Employee data)
  • /api/v1/fa/accounts from FA-01 → FA-12, FA-13, FA-15 (📝 Planned - GL accounts)
  • /api/v1/fa/payments/create from FA-05 → FA-12 (📝 Planned - Reimbursement)
  • /api/v1/fa/budgets/{budget_id} from FA-08 → FA-13 (📝 Planned - Project budgets)
  • /api/v1/hr/employees/ftes from HR-01 → FA-15 (📝 Planned - FTE allocation base)
  • /api/v1/fa/projects/{project_id}/direct-costs from FA-13 → FA-15 (📝 Planned - Direct cost base)
  • /api/v1/fa/reports/balance-sheet from FA-07 → FA-16 (📝 Planned - Ratio calculations)
  • /api/v1/fa/reports/statement-activities from FA-07 → FA-16 (📝 Planned - Analytics)
  • /api/v1/fa/budgets/variance from FA-08 → FA-16 (📝 Planned - Variance analysis)
  • /api/v1/fa/journal-entries/create from FA-02 → FA-17 (📝 Planned - Intercompany entries)
  • /api/v1/fa/consolidations/{consolidation_id} from FA-09 → FA-17 (📝 Planned - Consolidation)
  • /api/v1/fa/invoices/{invoice_id} from FA-05 → FA-18 (📝 Planned - Revenue schedule)
  • /api/v1/fa/projects/{project_id} from FA-13 → FA-18 (📝 Planned - Project revenue)
  • /api/v1/fa/fiscal-periods/{period_id} from FA-02 → FA-19 (📝 Planned - Close periods)
  • /api/v1/fa/reports/close-status from FA-07 → FA-19 (📝 Planned - Close reports)
  • /api/v1/fa/bank-accounts from FA-06 → FA-14 (📝 Planned - Cash positions)
  • /api/v1/fa/budgets/cash-flow from FA-08 → FA-14 (📝 Planned - Cash forecasts)
Uses Platform Layers:
  • Forms (PF-08) - Payment forms, vendor portal forms, expense forms
  • Workforce (Platform) - Employee selection for expenses
  • Notifications (PF-10) - Budget alerts, tax deadlines, collection notices, close notifications
  • Documents (PF-11) - Vendor contracts, tax forms, receipts, close documentation
  • Reports (PF-12) - Financial reports

HR (Workforce)

Publishes Events:
  • credential_expired → Event Consumer, HR-04 (✅ Implemented)
  • credential_verified → Event Consumer (✅ Implemented)
  • onboarding_completed → Event Consumer (✅ Implemented)
  • offboarding_completed → Event Consumer (✅ Implemented)
  • performance_review_completed → LO-03, HR-15, HR-16 (✅ Implemented - HR-10)
  • performance_goal_completed → LO-03 (📝 Planned - HR-10)
  • performance_improvement_plan_terminated → HR-03, HR-14 (✅ Implemented - HR-10)
  • benefits_enrollment_approved → HR-07 (📝 Planned - HR-11)
  • benefits_enrollment_terminated → HR-07 (📝 Planned - HR-11)
  • disciplinary_action_termination → HR-03 (✅ Implemented - HR-14)
  • incident_reported → GR-06, PF-10 (✅ Implemented - HR-14)
  • grievance_filed → GR-03 (✅ Implemented - HR-14)
  • merit_increase_approved → HR-07, FA, PF-10 (✅ Implemented - HR-15)
  • compensation_analysis_completed → FA, PF-10 (✅ Implemented - HR-15)
  • compensation_cost_allocated → FA (✅ Implemented - HR-15)
  • successor_identified → PF-10 (📝 Planned - HR-16)
  • talent_promoted → HR-16 (📝 Planned - HR-16)
  • survey_completed → PF-10 (📝 Planned - HR-17)
  • exit_interview_completed → HR-03 (📝 Planned - HR-17)
  • employee_assigned_to_site → RH (📝 Planned)
  • employee_created → GR (📝 Planned)
Consumes Events:
  • credential_expired from HR-02 → HR-04 (✅ Implemented) - Blocks employee from scheduling
  • employee_hired from HR-09 → HR-10 (📝 Planned) - Create initial performance goals
  • organizational_goal_created from LO-03 → HR-10 (📝 Planned) - Link to employee goals
  • performance_review_completed from HR-10 → HR-15 (✅ Implemented) - Trigger merit increase planning
  • employee_terminated from HR-03 → HR-11, HR-14, HR-17 (✅ Implemented for HR-14) - Terminate benefits, close cases, trigger exit interview
Exposes APIs:
  • /api/v1/hr/employees/{employee_id} → RH (📝 Planned)
  • /api/v1/hr/employees → RH (📝 Planned)
  • /api/v1/hr/performance/reviews/:id/export → PF-12 (📝 Planned - HR-10)
Uses Platform Layers:
  • Forms (PF-08) - Onboarding forms, performance review forms, feedback forms, benefits enrollment forms, exit interview forms
  • Workforce (Platform) - Employee selection (internal use)
  • Notifications (PF-10) - Credential alerts, review reminders, feedback requests, enrollment reminders, incident notifications
  • Documents (PF-11) - Employee documents, review documents, benefits documents, compensation statements
  • Reports (PF-12) - Employee reports, performance analytics, workforce analytics
Internal Integrations:
  • HR-04 (Scheduling) subscribes to HR-02 credential events for automatic blocking
  • HR-10 (Performance) integrates with HR-01, HR-02, HR-09, HR-14, GR-02 (✅ Complete - PIP Termination → HR-14, Competency → HR-02/GR-02)
  • HR-11 (Benefits) integrates with HR-01, HR-06, HR-07, FA
  • HR-12 (Self-Service) integrates with all HR modules (HR-01 through HR-11)
  • HR-13 (Skills) integrates with HR-01, HR-02, HR-04, HR-09, GR-02
  • HR-14 (Employee Relations) integrates with HR-01, HR-03, GR-03, GR-06, PF-10, PF-11 (✅ Phase 4 Complete)
  • HR-15 (Compensation) integrates with HR-01, HR-07, HR-10, FA (✅ Phase 4 Complete)
  • HR-16 (Succession Planning) integrates with HR-01, HR-10
  • HR-17 (Engagement) integrates with HR-01, HR-03, PF-08
  • HR-18 (Analytics) aggregates data from all HR modules (HR-01 through HR-17)

FW (Forms & Workflow)

Database Tables (FW-57):
  • fw_workflow_templates — extended with healthcare pattern metadata (pattern_category, compliance_tags, required_node_ids, regulatory_references) (✅ Implemented)
  • fw_regulatory_change_log — org-scoped regulatory change tracking for templates (✅ Implemented)
Publishes Events:
  • automation_trigger → FW-03 (✅ Implemented)
  • execution_failed → PF-10 (📝 Planned - FW-22)
  • fw_external_form_submitted → PF-10, FW-03 (✅ Implemented - FW-32; published via pg_notify in portal-form-submit edge function)
  • fw_approval_submitted → PF-10, FW-03 (📝 Planned - FW-34)
  • fw_approval_completed → FW-03, PF-10 (📝 Planned - FW-34)
  • fw_approval_escalated → PF-10 (📝 Planned - FW-34)
Exposes APIs (Edge Functions):
  • workflow-query-action → Automation Executor (📝 Planned - FW-19)
  • workflow-api-action → Automation Executor (📝 Planned - FW-19)
  • workflow-debug-control → Debug UI (📝 Planned - FW-22)
  • sandbox-execute → Testing UI (📝 Planned - FW-24)
  • test-datasets-import → Testing UI (📝 Planned - FW-24)
  • test-cases-run → Testing UI (📝 Planned - FW-24)
  • approval-escalation → Scheduled cron job (📝 Planned - FW-34)
Uses Platform Layers:
  • Data Lookup (PF-15) - Dynamic form field lookups, Query action whitelist base
  • Custom Fields (PF-16) - Custom field definitions
  • Field Configuration (PF-17) - Field layout configuration (Phase 4/5 Complete: versioning + wizard forms)
  • Workflow Variables (FW-18) - Query result storage
  • Notifications (PF-10) - Failed execution alerts (FW-22), Approval notifications (FW-34)
  • Permissions (PF-30) - Approval authorization (FW-34)
  • Supabase Realtime - Live execution dashboard (FW-22), Approval inbox updates (FW-34)
Database Tables (FW-19):
  • fw_api_connections - SFTP/API connection configs (📝 Planned)
  • fw_query_whitelist - Org-specific table whitelist (📝 Planned)
Database Tables (FW-22):
  • fw_execution_logs - Searchable execution logs (📝 Planned)
  • fw_debug_sessions - Debug session state (📝 Planned)
Database Tables (FW-24):
  • fw_test_datasets - Test data storage (📝 Planned)
  • fw_test_scenarios - Scenario definitions (📝 Planned)
  • fw_test_cases - Automated test cases (📝 Planned)
  • fw_sandbox_executions - Sandbox execution history (📝 Planned)
  • fw_test_coverage - Coverage metrics (📝 Planned)
Database Tables (FW-25):
  • fw_workflow_retry_configs - Retry configuration per node (✅ Implemented)
  • fw_workflow_circuit_breakers - Circuit breaker state per node (✅ Implemented)
  • fw_workflow_recovery_workflows - Recovery workflow definitions (✅ Implemented)
  • fw_workflow_compensation_actions - Compensation action definitions (✅ Implemented)
SECURITY DEFINER Functions (FW-25):
  • fw_has_rule_org_access(rule_id, user_id) - Check org access via automation rule for RLS (✅ Implemented)
Database Tables (FW-34):
  • fw_approval_chains - Approval chain definitions (📝 Planned)
  • fw_approval_steps - Steps in approval chains (📝 Planned)
  • fw_approval_requests - Submitted approval requests (📝 Planned)
  • fw_approval_assignments - Approver assignments (📝 Planned)
  • fw_approval_delegations - Delegation records (📝 Planned)
  • fw_approval_history - Audit trail (📝 Planned)
SECURITY DEFINER Functions (FW-34):
  • fw_user_can_view_request(request_id, user_id) - Check if user can view approval request (📝 Planned)
  • fw_get_pending_approvals(user_id) - Get pending approvals for user including delegations (📝 Planned)
  • fw_process_approval_action(assignment_id, action, comment, reason) - Process approval/reject action (📝 Planned)
Scheduled Jobs (FW-34):
  • fw-approval-escalation - Hourly cron job for reminder/escalation processing (📝 Planned)
Database Tables (FW-16):
  • fw_workflow_events - Global event registry with 11 seed events (✅ Implemented)
  • fw_domain_events - Organization-scoped event log (✅ Implemented)
Platform Integration Layer (FW-16):
  • /src/platform/events/ - Event publishing for all cores (✅ Implemented)
    • publishEvent() - Direct function for event publication
    • usePublishEvent() - React hook with loading state
    • Type definitions for known events
Database Tables (FW-17):
  • Conditions stored in fw_workflow_definitions.node_data JSONB (✅ Implemented)
Platform Integration (FW-17 → PF-17): Database Updates (FW-18):
  • fw_workflow_executions.variables - JSONB column for variable state (✅ Implemented)
  • Index: idx_fw_executions_variables - GIN index for variable queries (✅ Implemented)
Edge Function Shared Code (FW-18):
  • supabase/functions/_shared/expressionEvaluator.ts - Deno-compatible evaluator (✅ Implemented)
Database Tables (FW-29):
  • fw_workflow_notification_rules - Notification rules per workflow (✅ Implemented)
  • fw_workflow_alert_rules - Alert rules for conditions (✅ Implemented)
  • fw_workflow_alerts - Active and historical alerts (✅ Implemented)
  • fw_workflow_notification_preferences - User notification preferences (✅ Implemented)
Edge Functions (FW-29):
  • workflow-notification-trigger - Process status changes, evaluate alert rules (✅ Implemented)
  • process-alert-escalations - Scheduled escalation processing (✅ Implemented)
Database Triggers (FW-29):
  • fw_execution_status_notification_trigger - Triggers notification on execution status change (✅ Implemented)

LO (Leadership Operating System)

Publishes Events:
  • rock_completed → FA, PF-10, PF-04 (✅ Implemented)
  • todo_created → PF-10 (✅ Implemented)
  • todo_completed → PF-10, LO-03 (✅ Implemented)
  • todo_overdue → PF-10 (✅ Implemented)
  • scorecard_updated → PF-10, PF-12 (✅ Implemented)
  • metric_threshold_breached → PF-10, LO-06 (✅ Implemented)
  • meeting_scheduled → PF-10 (✅ Implemented)
  • meeting_completed → PF-04, PF-10 (✅ Implemented)
  • action_item_created → LO-04, PF-10 (✅ Implemented)
  • issue_identified → PF-10, LO-06 (✅ Implemented)
  • issue_resolved → PF-04, PF-10 (✅ Implemented)
  • assessment_distributed → PF-10 (✅ Implemented)
  • assessment_completed → PF-12, PF-10 (✅ Implemented)
  • goal_created → FA, GR, FW (📝 Planned - LO-16)
  • goal_completed → RH, FA, GR (📝 Planned - LO-16)
  • action_assigned → HR, PF-10 (📝 Planned - LO-16)
  • action_completed → LO-14, PF-10 (📝 Planned - LO-16)
Uses Platform Layers:
  • Forms (PF-08) - Assessment forms
  • Notifications (PF-10) - Task and meeting notifications
  • Documents (PF-11) - Knowledge articles
  • Tasks (PF-29) - Unified task system (✅ Phase 2/3 Complete — 2026-02-27)
  • Reports (PF-12) - Scorecard and assessment reports

FM (Facilities Management)

Full contract schemas: FM_INTEGRATION_CONTRACTS.md
Publishes Events — Implemented (FM-01 through FM-05, FM-13):
  • work_order_created → PF-10, FA (✅ Implemented)
  • work_order_completed → FA, FM-04, FM-05, FM-06, FM-03 (✅ Implemented)
  • work_order_overdue → PF-10 (✅ Implemented)
  • inventory_low_stock → PF-10, FA-04 (✅ Implemented)
  • inventory_item_used → FM-01, FA (✅ Implemented)
  • vendor_certification_expiring → PF-10, GR (✅ Implemented)
  • vendor_work_order_assigned → PF-10, FA-03 (✅ Implemented)
  • pm_due → PF-10, FM-05 (📝 Planned — FM-04 publisher not yet wired)
  • pm_overdue → PF-10, GR (📝 Planned)
  • pm_completed → FM-05, FA (📝 Planned)
  • asset_purchased → FA (📝 Planned — FM-05 publisher not yet wired)
  • asset_disposed → FA, FM-04 (📝 Planned)
  • asset_warranty_expiring → PF-10 (📝 Planned)
  • vehicle_registered → PF-10, FM-05 (📝 Planned — FM-13 publisher)
  • vehicle_status_changed → PF-10, FM-05 (📝 Planned)
  • license_expiring → PF-10, GR (📝 Planned)
  • registration_expiring → PF-10, GR (📝 Planned)
  • fleet_maintenance_due → PF-10, FM-01 (📝 Planned)
  • fleet_maintenance_overdue → PF-10, GR (📝 Planned)
Publishes Events — Planned (FM-06 through FM-12, pending implementation):
  • inspection_due → PF-10, GR (📝 Planned — FM-06)
  • inspection_failed → PF-10, GR, FM-01 (📝 Planned — FM-06)
  • inspection_compliant → GR, FM-05 (📝 Planned — FM-06)
  • budget_variance_alert → PF-10, FA-08 (📝 Planned — FM-09)
  • capital_project_approved → FA-09, PF-10 (📝 Planned — FM-12)
  • energy_anomaly_detected → PF-10, GR (📝 Planned — FM-10 Deferred Expansion)
  • space_occupancy_threshold → PF-10, HR (📝 Planned — FM-11)
  • facilities_report_generated → PF-10 (📝 Planned — FM-07)
Consumes Events:
  • work_order_completed → Updates vendor performance (✅ Implemented)
  • purchase_order_approved → Update FM-02 inventory preferred vendor PO (📝 Planned — from FA-04)
  • vendor_invoice_matched → Update FM-03 vendor WO invoice status (📝 Planned — from FA-03)
  • budget_approved → Unlock FM-09 budget period for actuals (📝 Planned — from FA-08)
  • it_asset_maintenance_required → Create FM work order from IT asset alert (📝 Planned — from IT)
Uses Platform Layers:
  • Forms (PF-08) — Work order forms, inspection checklists
  • Workforce (Platform) — Staff assignments
  • Finance (@/platform/finance) — FM cost summary interface for FM-09/FM-12 (📝 Stub per FM-16)
API Contracts (FM as provider, pending implementation):
  • GET /api/v1/fm/budgets/{id}/actuals → FA-08 (📝 Planned — FM-09)
  • GET /api/v1/fm/capital-projects/{id} → FA-09 (📝 Planned — FM-12)
  • GET /api/v1/fm/spaces/{id}/occupancy → HR (📝 Planned — FM-11)
  • Data Lookup (PF-15) - Site and asset selectors
  • Notifications (PF-10) - Work order and maintenance alerts
  • Documents (PF-11) - Equipment manuals, certifications

GR (Governance)

GR-15 Platform Layer Integrations:
From CoreTo CoreIntegration PatternStatusDocumentation
GR-15PF-10Platform Layer (notifications)✅ CompleteGR-15 Integration — COI cycle reminders, whistleblower alerts, board approvals, retention warnings
GR-15PF-46Platform Layer (data retention)✅ CompleteGR-15 Integration — Retention policy registration; legal hold enforcement for governance docs
GR-15HR-01Data lookup via pf_profiles (PF shared table)✅ CompleteGR-15 Integration — COI participant roster seeded from active profiles
GR-15FAUUID cross-reference (manual workflow)📋 DeferredGR-15 Integration — Related-party transaction cross-reference for Form 990 Schedule L
GR-16 Platform Layer Integrations:
From CoreTo CoreIntegration PatternStatusDocumentation
GR-16GR-08, PF-11, PF-12, PF-27, PF-10Platform Layer + Intra-core dataGR-16 Integration — Tracer packs, CAP lifecycle, mock surveys; PF-11 document export, PF-27 AI question simulator, PF-10 deadline alerts
GR-14GR-09 (consumer), PF-10, PF-11, PF-12Event Consumer + Platform LayerGR-14 Integration — Subscribes to incident_created; classifies incidents against reporting rules; tracks statutory deadlines; generates report packages; sends deadline alerts via PF-10
GR-UX-06GR-09 (writer), GR-14 (preview), PF-41Wizard entry pointIncident Reporting Wizard at /gr/incidents/report — 6-step ModuleWizardRenderer flow; custom regulatory step calls gr_check_regulatory_obligations RPC for server-side obligation preview from gr_regulatory_reporting_rules; INSERTs gr_incidents only and relies on gr_publish_incident_created trigger pipeline (GR-14) to auto-create gr_incident_regulatory_reports (no double insert)
GR-UX-05GR-03 (writer), PF-41Wizard entry pointCompliance Requirement Setup Wizard at /gr/compliance/requirements/new — 7-step ModuleWizardRenderer flow; 4 custom steps (regulatory-body, schedule, documentation, review); reuses useRegulatoryRequirementMutation.createRequirement; non-fatal ancillary inserts to gr_compliance_checks (initial schedule) + gr_compliance_evidence (document placeholders); wizard-only fields persist into gr_regulatory_requirements.custom_fields JSONB; frequency defaults to as_needed to satisfy NOT NULL + CHECK; gated by gr.compliance.admin
GR-UX-04GR-05 (writer), PF-29 (best-effort task sync), PF-41Wizard entry pointRisk Assessment Wizard at /gr/risks/wizard (and /gr/risks/wizard/:riskId) — 6-step horizontal WizardShell flow; submit sequence (D-12) createRiskcreateAssessmentcreateMitigation × N (blocking) → best-effort pf_tasks insert per mitigation action (failures flag mitigation custom_fields.task_sync_status='pending' for retry, never abort); D-11 score/rating bands (Low 1–6 / Medium 7–12 / High 13–18 / Critical 19–25) computed via canonical calculateRiskScoreAndRating from useRiskAssessment.ts; localStorage drafts gr_risk_assessment_new / gr_risk_assessment_{riskId} with 30-day TTL; entry button + resume banner on RiskList; gated by gr.risks.admin; edit-mode (load existing risk into wizard) deferred — current /wizard/:riskId resumes drafts only
GR-06-EN-01PF-96, PF-60, PF-61, PF-62, PF-27, PF-72, PF-10, GR-03, GR-02, GR-16, PF-91Platform Layer + Event📝GR-06-EN-01 Integration — State-aware AI compliance checking; jurisdiction profile injection, state regulatory RAG KB, state gap analysis, multi-state comparison; publishes gr_state_gap_analysis_completed
GR-19GR-02 (substrate), GR-02-EN-02 (@/platform/training), GR-02-EN-05 (mandatory seed), GR-18 (optional), GR-03 (writer), GR-08 (consumer), PF-10, PF-11, PF-30, PF-46, PF-96Platform Layer + Intra-core data📝GR-19 Integration — Mandatory in-service survey-readiness dashboard (matrix + scorecard) over GR-02 substrate; reminder cron via PF-10 (in_service_due template); surveyor PDF packet via PF-11 (inservice_survey_packet template); writes gr_compliance_evidence rows on export; new permissions gr.compliance.{view,export}; HIPAA §164.530(j)(2) 6-yr retention floor enforced
Publishes Events:
  • policy_created → GR-02, GR-03 (📝 Planned — GR-01)
  • policy_acknowledged → GR-02, GR-03 (📝 Planned — GR-01)
  • training_completed → GR-03, HR-02 (📝 Planned — GR-02)
  • requirement_created → GR-04, GR-06 (📝 Planned — GR-03)
  • compliance_status_changed → GR-04, GR-05, GR-06 (📝 Planned — GR-03)
  • audit_created → GR-06 (✅ Complete — GR-04 / GR-UX-07)
  • audit_finding_created → GR-05, GR-06 (📝 Planned — GR-04)
  • risk_created → GR-06 (📝 Planned — GR-05)
  • risk_assessed → GR-06 (📝 Planned — GR-05)
  • qi_project_created → GR-03, GR-04 (✅ Complete — GR-07 / GR-UX-08)
  • accreditation_created → GR-03, GR-04 (📝 Planned — GR-08)
  • incident_created → GR-05, GR-06, CL (✅ Implemented — GR-09; also see CL-GR bridge)
  • incident_resolved → GR-05, GR-06 (✅ Implemented — GR-09)
  • gr_incident_created → CL (chart flag), GR-14 (regulatory classification) (✅ Implemented — GR-09 trigger deployed; emits only for chart-linked incidents where custom_fields->>'chart_id' is present; GR-14 should subscribe to incident_created for all incidents; see CL-GR-CLINICAL-INCIDENT-INTEGRATION.md, GR-14 Integration)
  • regulatory_report_submitted → GR-03 (compliance evidence), GR-08 (accreditation evidence), PF-10 (notification) (📝 Planned — GR-14)
  • gr_state_gap_analysis_completed → PF-91 (compliance dashboard), PF-10 (critical gap notifications) (📝 Planned — GR-06-EN-01)
  • procedure_approved → GR-02, GR-03, PF-10 (✅ Complete — GR-11)
  • procedure_execution_completed → GR-03, PF-10 (✅ Complete — GR-11)
  • procedure_gap_identified → GR-07 QI project candidate (✅ Complete — GR-13-EN-01, 2026-04-19; see GR-13 Integration)
  • gr_template_instantiated → GR-03, PF-10 (📝 Planned — GR-12)
  • gr_template_contributed → GR-03 (📝 Planned — GR-12)
  • gr_coi_cycle_launched → PF-10 (notifications to participants), GR-03 (compliance tracking) (✅ Complete — GR-15)
  • gr_whistleblower_report_submitted → PF-10 (notify compliance officer) (✅ Complete — GR-15)
  • gr_template_instantiated → GR-03, PF-10 (✅ Complete — GR-12)
  • gr_template_contributed → GR-03 (✅ Complete — GR-12)
Consumes Events:
  • employee_created from HR → GR onboarding policy/training assignment (📝 Planned — Event Contracts)
  • incident_reported from HR → GR-03, GR-04 (✅ Implemented — HR-14)
  • grievance_filed from HR → GR-03 (✅ Implemented — HR-14)
  • vendor_certification_expiring from FM → GR compliance check (✅ Implemented — FM Integration Contracts)
  • pm_overdue from FM → GR (📝 Planned)
  • inspection_due from FM → GR (📝 Planned)
  • inspection_failed from FM → GR (📝 Planned)
  • inspection_compliant from FM → GR (📝 Planned)
  • it_security_incident_created from IT → GR (📝 Planned — IT Integration Contracts)
  • it_critical_vulnerability_detected from IT → GR (📝 Planned)
  • it_asset_disposed from IT → GR (📝 Planned)
  • cl_safety_plan_activated from CL → GR draft incident (📝 Planned — CL-GR Bridge)
  • cl_restraint_event_documented from CL → GR draft incident (📝 Planned — CL-GR Bridge)
  • cl_incident_reported from CL-15 → GR-03, GR-04, GR-08 (✅ Implemented — CL-15 Integration)
  • goal_completed from LO → GR (📝 Planned — LO-16)
Uses Platform Layers:
  • Forms (PF-08) — Policy acknowledgment forms, audit checklists, compliance surveys
  • Notifications (PF-10) — Policy review reminders, compliance check due dates, audit finding alerts
  • Documents (PF-11) — Policy documents, audit evidence, compliance certificates
  • AI (PF-27) — AI Compliance Advisor (GR-06); AI contract analysis (GR-10 Phase 2, planned)
  • Permissions (PF-30) — Granular permission system for GR access control
  • Workflow (PF-73) — Swim lane diagram generation from GR-01 policies and GR-11 procedures (✅ Implemented)
Integration Docs:

IT (Information Technology)

Publishes Events:
  • it_asset_purchased → FA (📝 Planned)
  • it_asset_assigned → PF-10, HR (📝 Planned)
  • it_asset_maintenance_required → FM (📝 Planned)
  • it_asset_disposed → FA, GR (📝 Planned)
  • it_ticket_created → PF-10 (📝 Planned)
  • it_ticket_status_changed → PF-10 (📝 Planned)
  • it_sla_breached → PF-10 (📝 Planned)
  • it_contract_expiring → PF-10 (📝 Planned)
  • it_license_created → FA (📝 Planned)
  • it_license_expiring → PF-10 (📝 Planned)
  • it_license_renewed → FA (📝 Planned)
  • it_license_compliance_alert → PF-10 (📝 Planned)
  • it_security_incident_created → GR, PF-10 (📝 Planned)
  • it_critical_vulnerability_detected → GR, PF-10 (📝 Planned)
  • it_patch_deployment_overdue → PF-10 (📝 Planned)
  • it_purchase_request_submitted → FW-34, PF-10 (📝 Planned)
  • it_purchase_request_approved → FA-04, PF-10 (📝 Planned)
  • it_purchase_request_received → IT-01, PF-10 (📝 Planned)
Exposes APIs:
  • /api/v1/it/assets/{asset_id} → IT-02, IT-05 (📝 Planned)
  • /api/v1/it/assets → IT-02, IT-04, IT-05, IT-06 (📝 Planned)
  • /api/v1/it/vendors/{vendor_id} → IT-01, IT-04, IT-06 (📝 Planned)
  • it_check_license_compliance() → IT-04 Dashboard (📝 Planned)
Consumes APIs:
  • /api/v1/hr/employees/{employee_id} from HR (📝 Planned)
  • /api/v1/hr/employees from HR (📝 Planned)
Uses Platform Layers:
  • Forms (PF-08) - Ticket submission, purchase request forms
  • Workforce (Platform) - Employee assignments for assets/tickets
  • Data Lookup (PF-15) - Asset, vendor, employee selectors
  • Notifications (PF-10) - SLA, expiration, compliance alerts
  • Documents (PF-11) - Warranties, attachments, contracts
  • Approval Workflows (FW-34) - Purchase request approvals
  • Custom Fields (PF-16) - Org-specific metadata on all IT entities
Internal Integrations:
  • IT-02 links tickets to IT-01 assets
  • IT-04 links licenses to IT-01 assets and IT-03 vendors
  • IT-05 links patches/vulnerabilities to IT-01 assets
  • IT-06 uses IT-03 vendors and creates IT-01 assets on receipt
Full Documentation: IT Integration Contracts

CE (Community Engagement / CRM)

Publishes Events:
  • ce.email.synced → CE-04 (📝 Planned - CE-07) - Auto-create activity
  • ce.email.tracking → PF-10 (📝 Planned - CE-07) - Open/click notifications
  • ce.sms.sent → CE-04 (📝 Planned - CE-08) - Auto-create activity
  • ce.sms.received → CE-04 (📝 Planned - CE-08) - Auto-create activity
  • ce.campaign.started → PF-10 (📝 Planned - CE-09) - Campaign notifications
  • ce.campaign.completed → CE-05 (📝 Planned - CE-09) - Analytics update
  • ce_web_form_submitted → CE-01, CE-05 (📝 Planned - CE-10) - Lead creation
  • ce_screening_completed → PM-38, PM-39, CE-29 (📝 Planned - CE-28) - Screening disposition triggers appointment/waitlist/conversion
  • ce_lead_waitlisted → PM-39 (📝 Planned - CE-28) - Screened lead routed to waitlist (no bed available)
  • ce_crisis_alert_created → PF-83, PF-10, CE-29 (📝 Planned - CE-28-ENHANCEMENTS EN-01) - Crisis-keyword detection on inbound intake; ID-only payload (no PHI)
Consumes Events:
  • N/A (CE is primarily a publisher of CRM events)
Exposes APIs:
  • N/A (internal module APIs only)
Consumes APIs:
  • /api/v1/hr/employees/{employee_id} from HR (📝 Planned) - Contact assignment
  • /api/v1/hr/employees from HR (📝 Planned) - Staff search
Uses Platform Layers:
  • Notifications (PF-10) - Email tracking alerts, SMS delivery
  • Documents (PF-11) - Email attachments
  • Reports (PF-12) - Campaign analytics (CE-05)
  • Custom Fields (PF-16) - Contact/partner custom data
Internal Integrations:
  • CE-07 creates activities in CE-04 via database trigger
  • CE-08 creates activities in CE-04 via database trigger
  • CE-07 links emails to CE-01 contacts and CE-02 partners
  • CE-08 links SMS to CE-01 contacts
  • CE-09 creates leads in CE-01 contacts
  • CE-10 creates leads in CE-01 and triggers CE-09 campaign tracking
External Integrations:
  • Gmail API (OAuth 2.0) - CE-07
  • Microsoft Graph API (OAuth 2.0) - CE-07
  • Twilio SMS API - CE-08
Full Documentation: CE-07 Email Integration

CL (Clinical & EHR)

Note (EN-66): CL-04-EN-66 is complete. EN-66 uses a shared canonical validatePolicy940 function from src/cores/cl/shared/validation/validatePolicy940.ts. CL-36 Phase 2 ambient documentation should consume this same validator to avoid duplication. See CL-04-EN-66 integration doc Contract Validation Checklist. Publishes Events:
  • assessment_completed → PM (optional), FW, PF-10 (📝 Planned) — Event Contracts
  • treatment_plan_signed → FW, PF-10 (📝 Planned)
  • progress_note_signed → PM (charge capture), PF-10 (📝 Planned)
  • medication_recon_completed → PF-10 (📝 Planned)
  • prescription_sent → PM, PF-10 (📝 Planned)
  • pdmp_query_completed → CL (audit) (📝 Planned) — CL-17
  • cl_lab_order_created → PF-10, FW (📝 Planned) — CL-09
  • cl_lab_result_received → CL-08, PF-10 (📝 Planned) — CL-09
  • cl_lab_result_reviewed → PF-10, PF-04 (📝 Planned) — CL-09
Consumes Events:
  • prior_auth_required from PM (📝 Planned)
  • prior_auth_received from PM (📝 Planned)
  • eligibility_verified from PM (📝 Planned)
  • patient_registered from PM (📝 Planned)
  • appointment_scheduled from PM (📝 Planned)
  • encounter_completed (CL/PM) (📝 Planned)
Uses Platform Layers:

PM (Practice Management)

Publishes Events:
  • claim_submitted → FA (optional), PF-10 (📝 Planned) — Event Contracts
  • claim_adjudicated → PM-09, PF-10 (📝 Planned)
  • prior_auth_required → CL, PF-10 (📝 Planned)
  • prior_auth_received → CL, PM-07/08, PF-10 (📝 Planned)
  • eligibility_verified → CL, PM-07, PF-10 (📝 Planned)
  • patient_registered → CL, RH (optional), PF-10 (📝 Planned)
  • appointment_scheduled → CL, PF-10 (📝 Planned)
  • encounter_completed (CL/PM) → PM (charge capture), PF-10 (📝 Planned)
  • pm.fhir_app_authorized → PF-04 audit, GR (📝 Planned, PM-55)
  • pm.fhir_app_revoked → PF-04 audit, GR (📝 Planned, PM-55)
  • pm.fhir_information_blocking_logged → GR-08 incident reporting (📝 Planned, PM-55)
  • pm.fhir_access_logged → PF-04 audit stream (📝 Planned, PM-55)
Consumes Events:
  • assessment_completed from CL (optional billing) (📝 Planned)
  • treatment_plan_signed from CL (📝 Planned)
  • progress_note_signed from CL (charge capture) (📝 Planned)
  • prescription_sent from CL (📝 Planned)
  • cl.part2_consent_granted / cl.part2_consent_revoked from CL-11 (📝 Planned, PM-55) — re-evaluate active FHIR app consents that include SUD scopes
Uses Platform Layers:

Dependency Graph

Platform Foundation (PF)

    ├─→ Forms (PF-08) → All Cores
    ├─→ Workforce → RH, FA, GR, IT
    ├─→ Data Lookup (PF-15) → FW, HR, RH, IT
    ├─→ Custom Fields (PF-16) → All Cores
    ├─→ Field Config (PF-17) → All Cores (Phase 4/5 ✅)
    ├─→ Notifications (PF-10) → All Cores
    ├─→ Documents (PF-11) → All Cores
    └─→ Reports (PF-12) → All Cores

Event-Based Integration:
    RH → FA (resident admission/discharge)
    FA → RH (payment received)
    HR → RH (employee assignment)
    HR → GR (employee created)
    HR-02 → HR-04 (credential expired → scheduling block)
    FW → FW-03 (form submission)
    FA → FW-03, PF-10 (financial events)
    LO → FA, PF-10 (leadership events)
    FM → PF-10, GR (vendor certification expiring)
    FM → PF-10, FA-03 (vendor work order assigned)
    FM → FA, FM-04, FM-05 (work order completed)
    IT → FA (asset purchased, license costs)
    IT → FM (asset maintenance required)
    IT → GR (security incidents)
    IT → PF-10 (SLA, expiration, compliance alerts)
    IT-06 → FW-34 (procurement approval workflow)
    CL-09 → CL-08, PF-10 (lab result received → abnormal alert)
    External Labs → CL-09 (result ingestion via HL7v2/FHIR)

API Contracts:
    FA → RH (episode balance query)
    HR → RH (employee lookup/search)
    IT → IT-02, IT-05 (asset lookup)
    IT → IT-01, IT-04, IT-06 (vendor lookup)

Integration Pattern Usage

When to Use Each Pattern

Platform Integration Layer (Pattern 1):
  • ✅ Multiple cores need the same functionality
  • ✅ Reusable UI components or hooks
  • ✅ Domain-agnostic functionality
  • Examples: Forms, Workforce, Data Lookup, Custom Fields
Event-Based Integration (Pattern 2):
  • ✅ Loose coupling between cores
  • ✅ Asynchronous workflows
  • ✅ Audit trails of state changes
  • Examples: Resident admission → Billing account creation
API Contracts (Pattern 3):
  • ✅ Synchronous request-response
  • ✅ Real-time data queries
  • ✅ Event-driven patterns not suitable
  • Examples: Episode balance queries, Employee lookups

Spec Coverage Index (Q2 2026 closure waves)

This section guarantees every spec under specs/{core}/specs/ has at least one row in the canonical contract surface. Each row points to the integration pattern, key publishers/consumers, and either an existing dedicated *-INTEGRATION.md file, the relevant EVENT_CONTRACTS / API_CONTRACTS anchor, or a per-spec note here. Rows added during the Q2 2026 closure waves are tracked in the archived triage report at docs/archive/integrations/_GAP_TRIAGE_2026Q2.md.
Status meanings as of 2026-04-17 closure pass: ✅ contract documented and matches implementation; 📝 contract documented as planned (spec implementation pending); 🟡 contract partially documented; the spec is implemented but the contract surface here is the new authoritative summary.

CE — Community Engagement (Wave CE)

SpecTitlePatternStatusCross-core surfaceReference
CE-03-E0RingCentral Setup WizardExternal (RingCentral)Provisions CE-03 platform telephony for tenant; consumes @/platform/telephony and PF-76 credential vaultCE-03 spec · EXTERNAL_INTEGRATIONS § RingCentral
CE-05-EN-01Pipeline Reporting Speed-to-ContactEvent / Data📝Extends CE-05 pipeline events with first-contact latency telemetry; PF-12 reporting consumerCE-05 spec
CE-06Partner Progress MonitoringEventPublishes ce_partner_milestone_reached (consumed by CE-02 partners, PF-10 notifications)CE-06 spec
CE-11Partner Self-Service PortalAPI / Platform📝External-facing portal over CE-02 partners; PF-30 permission gating; PF-08 forms; CE-06 milestones consumerCE-11 spec
CE-12AI-Powered Lead ScoringPlatform Layer / Data📝PF-27 platform AI consumer; updates CE-01 lead score column on schedule; no PHI in prompts (constitution §4.3)CE-12 spec
CE-13Automated Follow-up SequencesEvent / Platform📝FW-46 durable worker consumer; publishes to PF-10 notifications and CE-04 activitiesCE-13 spec
CE-16Communications Compliance & SuppressionEvent / Data🔜Registry tables (ce_suppressions, ce_consent_evidence, ce_suppression_audit_log), permissions, hooks, compliance dashboard, DNC import + CSV export shipped 2026-05-14. Pre-send suppression checks in CE-08/CE-09/CE-03, STOP/bounce → suppression handlers, and ce.suppression.created event publication still pending. GR audit-export integration deferred to CE-16-EN-08.CE-16 spec
CE-19Referral Outcome Tracking & ROIData / Event📝Extends CE-29 lead conversion with downstream PM-09 revenue attribution and CL-10 outcome correlationCE-19 spec
CE-24Partner Document & Contract ManagementData / Event🚧WS1–WS5 shipped (2026-05-18): ce_partner_contracts + ce_partner_documents + ce_contract_renewal_log with FORCE RLS and lifecycle transition trigger (extended to allow active → pending_renewal/renewed). Hooks aligned to DB enum (renewal_started/renewed/notification_sent/expired_without_action); paired useMarkRenewalInProgress/useMarkContractRenewed mutations. PartnerDocumentsPanel grouped by document_type; /ce/contracts/renewals dashboard with ScrollableTabsList + useTabUrlState URL-synced 30/60/90 tabs, responsive table/card layout, renewal confirmation dialog with notes. Consumes CE-02 partners + PF-11 storage. Deferred: ce-contract-renewal-check edge function + pg_cron schedule (T037) and PF-10 notification wiring (T038).CE-24 spec
CE-25Community Event ManagementEvent / PlatformCE-04 activities; PF-29 task consumer; PF-10 remindersCE-25 spec
CE-27Social Media IntegrationExternal📝OAuth-based social posting (LinkedIn, Facebook, Twitter/X) via CE-09 marketing campaigns; PF-76 credential vaultCE-27 spec · EXTERNAL_INTEGRATIONS
CE-57Contact Profile Phase 2 EnhancementsIntra-core (Data / RPC)🔜Extends ce_contacts (DOB, gender, pronouns, contact_category). Reuses CE-20 relationships for family/emergency links; consumed by CE-66 partner picker via contact_category = 'community' filter. Read-time last_contact_at derived from CE-60 / ce_activities. SECURITY DEFINER RPC ce_check_contact_duplicate enforces ce.contacts.view_dob masking. No new cross-core event introduced; existing CE events MUST continue to omit DOB. Status (2026-05-15): Migration + RPC + permission seed shipped; ContactForm/ContactInfoCard updated; RLS test for DOB masking added.CE-57 spec
CE-59Contact Document Management & AI Data ExtractionIntra-core (Data / Storage)Phase 1 + Phase 2 implemented. New ce_contact_documents (FORCE RLS via ce_has_org_access; admin-gated DELETE via ce_is_org_admin); private ce-contact-documents storage bucket with org-segment path policies; 4 permissions (ce.contacts.documents.{view,upload,delete,ai_extract}). Consumes PF-11 storage primitives via greenfield shared CE adapter (src/cores/ce/lib/document-storage-adapter.ts, designed for future CE-24 reuse). Phase 2 adds ce-extract-document-data edge function with redaction preflight (≥0.95 confidence; CAC-2), identifier-stripped outbound payload (CAC-3), 42 CFR Part 2 fail-closed gate (CAC-4), confirm-only writes to ce_contacts.custom_fields.extracted_intake (CAC-5), and append-only ce_contact_document_extraction_audit table (CAC-6). No cross-core events; allowlisted in .intra-core-only.json. Status (2026-05-15): Phase 2 default-OFF; per-tenant enablement via CE Settings → AI Document Extraction admin card after Compliance review per specs/ce/reviews/CE-59-COMPLIANCE-SIGNOFF.md.CE-59 spec

CL — Clinical (Wave CL)

SpecTitlePatternStatusCross-core surfaceReference
CL-01-EN-03Chart Summary AI ReadinessPlatform Layer📝Extends CL-01 chart with PF-27 AI summary block; no PHI in promptsCL-01-EN-03 spec
CL-01-EN-04Problem List SNOMED MappingData📝PF-70 medical terminology consumer; extends CL-01 problem list with SNOMED CT codesCL-01-EN-04 spec
CL-09-EN-60UDS Chain-of-Custody (Interim)Data / Event📝Extends CL-09 lab orders and CL-34 UDS workflow with chain-of-custody tracking; events to GRCL-09-EN-60 spec
CL-10-EN-61Medicare Advantage STARS BH Quality MeasuresData / Platform📝Extends CL-10 outcomes with CMS STARS measure calculation; CL-15 quality reporting consumerCL-10-EN-61 spec
CL-15-EN-62CCBHC Service Category Tags (Interim)Data📝Extends CL-15 reporting with CCBHC service tags on encounter / service log recordsCL-15-EN-62 spec
CL-22-EN-63Remote Patient Monitoring (RPM) Device IntegrationExternal / Event📝External device API (Bluetooth/cellular vital sign devices); publishes cl_rpm_reading_received consumed by CL-22 vital signs and CL-08 CDSCL-22-EN-63 spec · EXTERNAL_INTEGRATIONS
CL-26-EN-64Multi-Language Portal (CLAS)Platform Layer📝Extends CL-26 patient portal with PF-87 i18n framework; CLAS standards 1, 5, 6, 7CL-26-EN-64 spec
CL-28Clinical Supervision DocumentationEvent / API📝Co-sign workflow events (cl_supervision_documented); HR-19 clinical oversight consumer; CL-04 progress notes linkCL-28 spec
CL-32Family Therapy DocumentationEvent📝Extends CL-04 progress notes with multi-attendee family session events; CL-37 caregiver portal consumer; PM-07 charge capture (90847/90849)CL-32 spec
CL-37Family & Caregiver PortalEvent / Platform📝Publishes cl_caregiver_consent_changed; CL-26 portal extension; CL-12 transitions and CL-32 family therapy consumer; CL-11 consent gatingCL-37 spec
CL-38CCBHC Compliance & Service DocumentationData / Event📝Publishes CCBHC quality measures consumed by CL-15 quality reporting and GR-08 accreditationCL-38 spec
CL-40-EN-01Multi-Language Clinical FormsPlatform Layer📝Extends CL-40 intake with PF-87 i18n; FW-38 form translation consumerCL-40-EN-01 spec
CL-42Clinical Pathways & Protocol-Driven CareEvent📝Publishes cl_pathway_milestone_completed (→ CL-10 outcomes, CL-08 CDS), cl_pathway_variance_created (→ CL-08 CDS, CL-15 quality), cl_pathway_milestone_overdue (→ PF-10 notifications, CL-23 in-basket). UUID-only payloads; SUD-program pathways gated by cl_pathway_consent_ok. Schemas added in T061.CL-42 spec
CL-43Concurrent Review & Utilization ManagementEvent / Data (placeholder)📝UM review events consumed by PM-47 auth tracking; per-payload schemas land with CL-43 PLAN.mdCL-43 spec
CL-44Clinical Order Sets & Standing OrdersIntra-core (Phase 1)Phase 1 shipped 2026-05-08 — 4 tables with FORCE RLS, activation delegates to CL-05/CL-09 hooks (atomic rollback), structured standing-order parameters + renewal flow, server-side cl_enforce_standing_order_frequency trigger and cl_expire_standing_orders helper. Allowlisted in .intra-core-only.json; no cross-core events in Phase 1.CL-44 spec
CL-43Concurrent Review & Utilization ManagementEvent / DataCL-43 reads PM-10 prior authorizations via @/platform/scheduling (UUID-only, no FK). Publishes cl_review_overdue (consumed by PF-10 + CL-08) and cl_review_determination_recorded (consumed by PM-11 revenue cycle analytics). Subscribes to pm_authorization_status_changed from PM-10. Full payloads in EVENT_CONTRACTS.md § CL-43 and CL-43 INTEGRATION.CL-43 spec
CL-45Allergy & Adverse Reaction TrackingData / EventPhases 1–5 shipped 2026-05-08. Schema extends cl_allergies in place (criticality, verification_status, allergen_class_code, reaction_code, is_sud_mat_class, NKA/NKDA sentinel flags) + append-only cl_allergy_alert_overrides. RLS via cl_has_org_access; SUD-MAT gated by cl_has_sud_consent (CL-11). Publishes cl_allergy_recorded, cl_allergy_status_changed, cl_allergy_alert_overridden, cl_nka_confirmed (UUID-only). API getActiveAllergies(chartId) filters sentinel rows for CL-05/CL-06 consumption. FHIR US Core 6.x AllergyIntolerance mapper (allergy-fhir.ts) and CCDA LOINC 48765-2 section builder (allergy-ccda.ts) ship redisclosure notice when SUD-MAT rows are included.CL-45 spec · INTEGRATION
CL-46Problem List Management (ICD-10)Event / Platform Layer✅ Complete (2026-05-12) — CL side readySee row above (CL-46 → CL-08 / PM-07). Publishes cl_problem_list_updated; exposes usePatientActiveProblems via @/platform/clinical.CL-46 spec
CL-47Behavioral Health Screening Instruments LibraryData (placeholder)📝Extends CL-02 assessment library; instrument metadata consumed by CL-07 risk screening, CL-10 outcomesCL-47 spec
CL-48Clinical Document Architecture (CDA) GenerationAPI / Events📝Extends CL-16 FHIR interoperability + CL-20 export with C-CDA R2.1 documents; publishes cl_cda_document_generated and cl_cda_transmission_status_changed; HIE consumer via Direct messaging edge functionCL-48 spec · INTEGRATION
CL-49Automated Level-of-Care Assessment (ASAM/LOCUS)Events: cl_loc_assessment_completed / cl_loc_recommendation_changed / cl_loc_override_recordedPublishes UUID-only LOC events on sign; CL-43 UM consumer + CL-08 CDS subscriber stubs deferredCL-49 spec
CL-50PDMP (Multi-State)External (placeholder)📝Multi-state extension of CL-17 Arizona CSPMP via PF-96 jurisdiction profile; PMP Gateway / Bamboo HealthCL-50 spec · EXTERNAL_INTEGRATIONS
CL-51Clinical Quality Measures (CQM) Reporting EngineData / API (placeholder)📝Extends CL-15 quality reporting with CMS CQM calculation engine; PF-12 reporting consumerCL-51 spec
CL-52Genomics & Pharmacogenomics IntegrationExternal (placeholder)📝External lab partner; CL-05 medication management consumer for pharmacogenomic alerts via CL-08 CDSCL-52 spec · EXTERNAL_INTEGRATIONS
CL-53Wearable Device Integration & Continuous MonitoringExternal / Event (placeholder)📝Apple HealthKit / Google Health Connect integration; publishes vital sign events to CL-22CL-53 spec · EXTERNAL_INTEGRATIONS
CL-13-EN-01Restraint/Seclusion Time-Limited Orders & 1-Hour F2FEvent / Data📝Extends CL-13 crisis intervention with 42 CFR 482.13 timed-order tracking and 1-hour face-to-face evidence; PF-29 task generation; GR-09 incident reportingCL-13-EN-01 spec
CL-16-EN-02USCDI v3 Read-Only Patient Access FHIR R4 APIAPI📝Extends CL-16 FHIR R4 façade with USCDI v3 read-only patient access endpoints (CMS-9115-F compliance); CL-11 consent gatingCL-16-EN-02 spec
CL-17-EN-01PMP Gateway Vendor-Agnostic AdapterExternal / Platform📝Extends CL-17 Arizona CSPMP with adapter pattern enabling Bamboo Health / NABP PMP Gateway / state-direct integration; PF-76 vaultCL-17-EN-01 spec · EXTERNAL_INTEGRATIONS
CL-26-EN-66WCAG 2.1 AA + HHS Section 504 Portal AuditPlatform / Tooling📝Extends CL-26 patient portal with axe CI audit; PF-93 platform a11y consumerCL-26-EN-66 spec
CL-54Patient Cohort & Clinical Registry ManagementPIL hook + Event🚧UI ✅ (list/detail/rule builder/snapshot/export with 42 CFR Part 2 redisclosure + audit). Pending follow-ups: usePatientCohort PIL hook in @/platform/clinical (F1) and cl_cohort_membership_recomputed event publishing on cl_events (F2). Consumers: CE-09/10 (outreach audience), FA (VBP attribution), CL-35 (panel/dashboard refresh), CL-29-EN-65 / CL-15 (HEDIS & quality denominators).CL-54 spec · EVENT_CONTRACTS
CL-55Virtual / Telehealth Group TherapyEvent / Platform🚧UI ✅ (host/list/detail + multi-party + patient join /cl/virtual-groups/:sessionId/join); PHI-free cl_virtual_group_started/cl_virtual_group_concluded published to PM-07 (US-3 SC-003) — payloads carry only UUIDs, modality, counts, durations, modifier codes, jurisdiction profile id (no patient identifiers, names, DOB, content, or join URLs). Extends CL-14/CL-24 for virtual/hybrid groups and multi-party encounters; consumes PM-13 telehealth lifecycleCL-55 Integration · CL-55 spec
CL-56Centralized Clinical Notification & Critical Result AlertingPIL + Event✅ (2026-05-11)Policy-driven fan-out for clinical signals from CL-08 (CDS), CL-09 (labs), CL-22 (vitals), CL-23 (in-basket), CL-25 (break-glass), CL-29 (readmission), CL-36 (AI). Dispatches via PF-10 (direct pf_notifications insert from cl-clinical-notify edge function). Publishes cl_notification_dispatched and cl_notification_sla_breached (PHI-free, IDs + severity only). Consumers: GR-09 (auto-creates safety incident on SLA breach), CL-25 (audit dashboard SLA metrics for Joint Commission NPSG.02.03.01 evidence). HR-19 supervisor/on-call resolution falls back to pf_user_role_assignments.system_roleorg_admin until a Phase-2 on-call roster spec lands.CL-56 spec · EVENT_CONTRACTS
CL-57Clinical Content MarketplaceData / Event✅ MVP (2026-05-11)Curated read-only catalogue of accreditation-aligned bundles (3 global tables + FORCE RLS). Per-org one-click import materializes cl_assessment_templates and cl_note_templates (Phase-2 handlers: cds_rule, pathway_definition, treatment_plan_template, goal_bank_entry, order_set, locus_instrument, group_curriculum, screening_instrument). Publishes cl_marketplace_bundle_imported (PHI-free; IDs + counts only, with canonical event_id + domain import_id). Curator gating via cl_can_curate_marketplace() (delegates to platform admin until PF marketplace_curator role lands). Deferred: edge-function atomic import and curator UI.CL-57 spec · EVENT_CONTRACTS

FA — Finance & Accounting (Wave FA)

SpecTitlePatternStatusCross-core surfaceReference
FA-21Bank Reconciliation Automation RulesData / Event📝Extends FA-06 reconciliation with rules engine; consumes FA-20 Plaid feed; publishes fa_recon_rule_matchedFA-21 spec
FA-23Financial Statement Customization & GAAPEvent / Data📝Publishes fa_financial_statement_published; FA-07 reporting consumerFA-23 spec
FA-24AR Collections WorkflowEvent / Platform📝Consumes FA-05 AR aging; publishes collections events to PF-10 (notifications) and PF-29 (tasks)FA-24 spec
FA-25Financial Audit Trail & Compliance ReportsData / PlatformAppend-only ledger over all FA tables; PF-04 audit log integration; SOC2/SOX evidenceFA-25 spec
FA-26Multi-Currency SupportData📝Extends FA-02 GL with currency columns and FX rate snapshots; FA-07 reporting consumerFA-26 spec
FA-27Expense Policy EngineData / Platform📝Extends FA-12 expenses with FW-45 decision-table policy evaluation; FW-34 approval routingFA-27 spec
FA-28Bank Reconciliation AIPlatform LayerExtends FA-06 with PF-27 platform AI suggestions; no PHI; tenant-scoped modelsFA-28 spec
FA-32Payment Gateway Integration (Stripe / Square)External / Event📝OAuth-based payment processor integration; publishes fa_payment_received consumed by PM-09 ERA posting and PM-45 collectionsFA-32 spec · EXTERNAL_INTEGRATIONS
FA-33Accounting Software Export (QuickBooks / Xero)External / API📝One-way export of GL/AP/AR to external accounting; PF-44 export framework consumerFA-33 spec · EXTERNAL_INTEGRATIONS
FA-34GR-FA Compliance Cost TrackingEvent (consumer)📝Consumes compliance_cost_incurred from GR; routes to FA-13/FA-15 cost poolsFA-34 spec
FA-35CL-FA Clinical Program Cost AllocationEvent (consumer) / Data📝Consumes clinical_program_cost_allocated (CL → FA-15 allocation base driver weights) via cl_events; Phase 2 consumes encounter_cost_calculated (PM-35 → FA) via fa_events; admin mapping table fa_cl_program_mapping; activity log fa_cl_allocation_activity; 2 edge function consumers; 2 permission keysFA-35 spec
FA-36Federal Financial ReportingData / API📝Federal grantee SF-425 / SF-270 reporting; consumes FA-13 grant tracking; OMB 2 CFR 200 complianceFA-36 spec
FA-37Subrecipient & Vendor ComplianceData / Event📝Extends FA-13 grants with subrecipient monitoring (2 CFR 200.331–332); GR-10 contract consumerFA-37 spec
FA-38ASC 842 Lease AccountingData📝New ROU asset / lease liability tables; FA-02 GL consumer; FA-07 reportingFA-38 spec
FA-39Bill Pay & Vendor Payment RailsExternal / Event📝ACH/check payment rails (Modern Treasury / Bill.com); extends FA-03 AP and FA-22 AP automationFA-39 spec · EXTERNAL_INTEGRATIONS
FA-40Multi-State Payroll Tax WithholdingData / Platform📝Extends HR-PAY with multi-state withholding rules via PF-96 jurisdiction profileFA-40 spec

FM — Facilities Management (Wave FM)

SpecTitlePatternStatusCross-core surfaceReference
FM-06-EN-09Inspection → GR Risk RegisterEvent📝Failed FM-06 inspection publishes risk-register entry consumed by GR-05 risk managementFM-06-EN-09 spec
FM-09-EN-09Grant Fund TaggingData📝Extends FM-09 facilities budgeting with FA-13 grant fund tags for cost allocationFM-09-EN-09 spec
FM-14-EN-01Platform Consumer Verification PromotionPlatform / Tooling📝Promotes verify-fm-integration-gates.js pattern to a generic platform tool for cross-core consumer verificationFM-14-EN-01 spec
FM-17Service Request PortalAPI / Platform📝External-facing service request intake; PF-08 forms; routes to FM-01 work ordersFM-17 spec
FM-18Sustainability & EOC ReportingData📝Extends FM-10 energy management with sustainability KPIs; PF-12 reporting consumerFM-18 spec
FM-19IoT Sensor / BMS IntegrationExternal / Event📝Building management system integration; publishes fm_sensor_threshold_breached consumed by FM-01 work orders and PF-10FM-19 spec · EXTERNAL_INTEGRATIONS
FM-20Key & Lock Access ManagementData / Event📝Key/lock inventory; assignment events to HR-03 onboarding/offboardingFM-20 spec
FM-21Warranty & Service Contract ManagementData / Event📝Extends FM-05 assets with warranty tracking; expiration events to PF-10FM-21 spec
FM-22Recall & Field Bulletin TrackerData / Event📝External recall feeds (FDA, CPSC); affected FM-05 assets surface to FM-01 work ordersFM-22 spec · EXTERNAL_INTEGRATIONS

FW — Forms & Workflow (Wave FW)

SpecTitlePatternStatusCross-core surfaceReference
FW-20Bulk Operations & Batch ProcessingPlatform Layer📝PF-47 bulk operations consumer for form submission and workflow execution batchesFW-20 spec
FW-26Workflow Scheduling & Resource MgmtEvent / Platform📝Extends FW-46 durable worker with cron-style scheduling and resource quotas; PF-43 quota consumerFW-26 spec
FW-31Multi-Step Form WizardsPlatform LayerPF-41 wizards platform layer; FW-05 multi-page forms consumerFW-31 spec
FW-37Payment Form CollectionExternal / Event📝Stripe payment intents from FW forms; publishes fa_payment_received consumed by FA-05/PM-09FW-37 spec · EXTERNAL_INTEGRATIONS
FW-38Multi-Language Form SupportPlatform Layer📝PF-87 i18n framework consumer; CL-40-EN-01 and CL-26-EN-64 portal consumerFW-38 spec
FW-39Third-Party E-Signature IntegrationExternal / Event📝DocuSign / Adobe Sign / HelloSign integration; alternative to FW-33 native signature; publishes fw_external_signature_completedFW-39 spec · EXTERNAL_INTEGRATIONS

GR — Governance & Risk (Wave GR)

SpecTitlePatternStatusCross-core surfaceReference
GR-01-EN-01Policy Categories PicklistDataPF-15 gr.policy.category picklist seeded for all orgs + new-org trigger; gr_policies BEFORE INSERT/UPDATE trigger enforces category against active picklist via gr_validate_policy_category(); usePolicyCategories() hook with (legacy) fallback consumed by PolicyFormDialog, PolicyReviewDashboard, and the GR-UX-12 wizard (2026-05-01)GR-01-EN-01 spec
GR-01-EN-02Policy Custom Fields & Config FormData / Platform✅ Complete (2026-05-01, intra-core only)PF-16 custom fields wiring on gr_policies (entity_type='gr_policy') + PF-08 fw_forms acknowledgment form rendering on existing gr_policy_acknowledgments.acknowledgment_form_id / custom_fields columns. Code-first default form (read_confirmation + notes) when no form id is set. Admin pages at /gr/settings/policy-custom-fields and /gr/settings/policy-acknowledgment-forms. No cross-core event or API surface — allowlisted in .intra-core-only.json.GR-01-EN-02 spec
GR-13-EN-01GR-07 Consumer (Procedure Gap)Data / EventGR-13 procedure_gap_identified auto-creates draft gr_qi_projects row via DB trigger + edge function (2026-04-19)GR-13-EN-01 spec
GR-13-EN-02Step-Level Procedure AnalyticsDataNew gr_procedure_step_execution_summary MV + gr_get_procedure_step_execution_summary RPC; consumed by GR-13 dashboard drilldown (2026-04-20)GR-13-ENHANCEMENTS spec
GR-13-EN-0312-Month Compliance Score TrendDataDaily snapshots in gr_procedure_compliance_score_snapshots; multi-series trend chart in GR-13 Trends tab (2026-04-20)GR-13-ENHANCEMENTS spec
GR-13-EN-04Cross-Org BenchmarkingData / PlatformOpt-in cross-tenant gr_benchmarking_aggregates (k≥5); consent ledger gr_benchmarking_consents; new permissions gr.procedure-analytics.benchmark.{opt-in,view} (2026-04-20)GR-13-ENHANCEMENTS spec
GR-14-EN-01GR-03 / GR-08 Consumers (Regulatory Report)Event📝Adds GR-03 compliance and GR-08 accreditation as named consumers of regulatory_report_submitted; pairs with PENDING_CONTRACTS rowGR-14-EN-01 spec
GR-17Regulatory Change ManagementData / EventSources + change events + impacts + snapshots with severity override and approve/dismiss review flow (2026-04-20). Publish of gr_regulatory_change_published reserved for follow-up; consumers (PF-91, GR-01, GR-03) deferred.GR-17 spec

HR — Human Resources (Wave HR)

SpecTitlePatternStatusCross-core surfaceReference
HR-08Workload Drivers & StaffingEvent / Platform📝Publishes hr_workload_calculation_completed; consumes RH-01 census via @/platform/census; HR-04/HR-06 consumerHR-08 spec
HR-09-P5Job Board Production HardeningExternalIndeed (and future LinkedIn) job board integration; PF-76 vault credentials; circuit breaker; webhook signature/replay/idempotencyHR_ATS_CONTRACTS § HR-09-P5.4 · HR-09-P5.4 spec
HR-13-EN-01GR-02 (training completions), HR-13 (skills)Event / Data📝Skill crediting from completed training — HR-13-EN-01 consumes GR-02 / platform training completion signals to upsert hr_employee_skillsHR-13-EN-01
HR-22Learning Management System (LMS) IntegrationExternal📝LMS API (Cornerstone / Workday Learning / SCORM); publishes hr_training_completed consumed by HR-02 credentials and HR-27 CE trackerHR-22 spec · EXTERNAL_INTEGRATIONS
HR-24Multi-State Payroll Tax EnginePlatform Layer📝PF-96 jurisdiction profile consumer; extends HR-PAY with state-specific withholdingHR-24 spec
HR-25Workers’ Compensation & Injury MgmtEvent📝Publishes hr_injury_reported consumed by GR-09 incidents and OSHA reportingHR-25 spec
HR-27Continuing Education & Training TrackerData / Event📝HR-02 credential renewal evidence; consumes HR-22 LMS completion eventsHR-27 spec
HR-32Workplace Violence Prevention ProgramEvent📝Publishes hr_workplace_safety_incident_reported consumed by GR-09 incidents and OSHA WVP plan complianceHR-32 spec
HR-33Employee Wellness & EAP ManagementData / Event📝Extends HR-11 benefits with EAP utilization tracking; PF-10 reminders; no PHI in tracking (consents only)HR-33 spec
HR-23Position Management & Headcount PlanningData📝Extends HR-01 directory with position records (FTE, budget); FA-08 budget consumer; HR-15 compensation consumerHR-23 spec
HR-35Internal Mobility & Talent MarketplaceEvent / Data📝Internal job postings consumed by HR-09 ATS; HR-13 skills matching; HR-10 performanceHR-35 spec
HR-36Org Chart & Reporting Hierarchy VisualizationPlatform Layer📝Org chart over HR-01 directory; PF-19 org consolidation consumerHR-36 spec
HR-37Mass Pay Action & Bulk Compensation AdjustmentEvent / Platform📝Extends HR-15 compensation with bulk action engine; HR-PAY consumer; PF-47 bulk operationsHR-37 spec
HR-38Volunteer & Student Intern ManagementData / Event📝Extends HR-34 contractor management with volunteer/intern lifecycle; HR-02 credential consumer; GR-08 accreditationHR-38 spec

IT — IT Asset Management (Wave IT)

SpecTitlePatternStatusCross-core surfaceReference
IT-11Security Operations & HIPAA Safeguards ProgramEvent / Data📝Extends IT-05 security with HIPAA Security Rule administrative/physical/technical safeguard tracking; PF-91 compliance dashboard consumerIT-11 spec
IT-12Breach Notification & Incident Response WorkflowEvent📝Publishes it_breach_detected consumed by GR-09 incidents, GR-14 regulatory reporting, and PF-91 compliance dashboard; HHS HITECH 60-day notificationIT-12 spec
IT-13Vulnerability & Patch Management ProgramData / Event📝Extends IT-01 assets with vulnerability scanning + patch tracking; FW-46 worker for scheduled scansIT-13 spec
IT-14Vendor Risk & BAA ManagementData📝Extends IT-03 vendor management with HIPAA BAA tracking; GR-10 contract consumerIT-14 spec
IT-15IAM SSO/SCIM ProvisioningExternal / Event📝SCIM 2.0 / SAML SSO provisioning to external apps; consumes HR-03 onboarding/offboarding; extends IT-08 IT onboardingIT-15 spec · EXTERNAL_INTEGRATIONS
IT-17IT Service Catalog & Self-ServiceAPI / Platform📝Extends IT-02 ticketing with service catalog; PF-08 forms consumer; FW-34 approval routingIT-17 spec

LO — Leadership Operating System (Wave LO)

SpecTitlePatternStatusCross-core surfaceReference
LO-17OKR Framework SupportEvent / Data📝Extends LO-11 unified goals with OKR-shaped objectives + key results; events under lo_events channelLO-17 spec · LO-INTEGRATION-OVERVIEW
LO-19Goal Cascading & Alignment VisualizationData / Platform📝Extends LO-11 with parent/child goal cascading; LO-16 event integration consumerLO-19 spec · LO-INTEGRATION-OVERVIEW
LO-22Enhanced Execution TrackingEvent📝Extends LO-15 status events with execution metrics; HR-10 performance and PF-12 reporting consumerLO-22 spec · LO-INTEGRATION-OVERVIEW

PF — Platform Foundation (Wave PF)

SpecTitlePatternStatusCross-core surfaceReference
PF-42-EN-01Edge Function Rate LimitingPlatform📝Extends PF-42 rate limiting middleware to Supabase edge functionsPF-42-EN-01 spec
PF-44-EN-01Tenant Data PortabilityPlatform / Edge📝Extends PF-44 export framework with full tenant export bundle (HIPAA right of access)PF-44-EN-01 spec
PF-48-EN-01SIEM IntegrationExternal / Event📝Streams pf_security_event_detected to external SIEM (Splunk / Datadog / Sumo); consumes PF-48PF-48-EN-01 spec · EXTERNAL_INTEGRATIONS
PF-50-EN-01State-Aware Tenant Provisioning TemplatesPlatform📝Extends PF-50 provisioning with PF-96 jurisdiction-specific seed data per statePF-50-EN-01 spec
PF-51-EN-01Cache Invalidation ContractsPlatform📝Documents canonical cache invalidation events emitted by mutation operations across coresPF-51-EN-01 spec
PF-54-EN-01CL/PM Formatting AdoptionPlatform📝Extends PF-54 formatting utilities with CL/PM date/time/currency adoption guidePF-54-EN-01 spec
PF-67-EN-01Atomic Pin & Reaction OperationsPlatform📝Extends PF-67 messaging with atomic pin/unpin and reaction toggle RPCsPF-67-EN-01 spec
PF-73-EN-01Workflow Execution AnalyticsPlatform📝Extends PF-73 swim-lane visualization with FW-23 execution analytics overlayPF-73-EN-01 spec
PF-76Credential VaultPlatform Layer@/platform/vault — encrypted credential storage; consumed by HR-09-P5.4 Indeed, CE-03 RingCentral, PM-51 RPA, FA-32 Stripe, PF-65 GustoPF-76 spec · PLATFORM_INTEGRATION_LAYERS
PF-87Internationalization & Localization FrameworkPlatform Layer📝@/platform/i18n — message catalogs, locale routing, RTL support; consumed by CL-26-EN-64, CL-40-EN-01, FW-38, PM-12PF-87 spec
PF-91-EN-01White-Label Compliance DashboardsPlatform📝Extends PF-91 compliance dashboard with PF-95 white-label theming for tenant brandingPF-91-EN-01 spec

PM — Practice Management (Wave PM)

SpecTitlePatternStatusCross-core surfaceReference
PM-01-EN-01Patient Merge WorkflowEvent / API + ADR-002 cross-core write🚧Publishes pm_patient_merged (consumed by CL-01 chart, PM-08 claims, CE-29 lead conversion, PF-71 patient identity boundary). Same-transaction cl_patient_charts.patient_id repointing inside pm_merge_patients() SECURITY DEFINER under ADR-002.PM-01-EN-01 spec, INTEGRATION
PM-01-EN-03Patient Merge UI WorkflowUI (consumes EN-01 RPCs)Consumes pm_merge_patients() / pm_undo_patient_merge() SECURITY DEFINER RPCs and pm_patient_merge_log/pm_patient_merge_conflicts tables. UI surface only — no new cross-core writes.PM-01-EN-03 spec
PM-02-EN-02Real-Time Eligibility w/ Benefit Detail ParsingAPI📝Extends PM-02 271 response parsing with structured benefit/coverage detail; PM-34 check-in consumerPM-02-EN-02 spec
PM-08-EN-12Void/Replacement Claim WorkflowIntra-core (PM only)Completed 2026-05-05. No cross-core events. Mutates pm_claims (status → void, frequency_code8/7, original_claim_id) and pm_claim_notes (note_type = 'void') only. Replacement claims flow through the existing PM-15 clearinghouse contract. PM-09 refund/takeback coordination and PM-29 denial close-out reactions are tracked as future enhancements (separate spec slices).PM-08-EN-12 spec
PM-08-EN-14837I Institutional ClaimsAPIExtends PM-08 claim format with X12 837I; PM-15 clearinghouse consumer. Completed 2026-05-04 — pm_institutional_claim_details, pm_revenue_code_mappings, generate-837i-claim edge function, jurisdiction fail-open scrubber, desktop-only UB-04 dialog.PM-08-EN-14 spec
PM-11-EN-01RCM KPI BenchmarkingAPI📝Read-only KPI snapshot API; PM-25 VBP consumer; external benchmarking comparison dataPM-11-EN-01 spec
PM-29-EN-01Automated Denial Appeal Letter GenerationPlatform / Event📝PF-11 document generation consumer; templated appeal letters per CARC/RARC; PF-27 AI assistPM-29-EN-01 spec
PM-64AI Coding Assistant (Note → ICD-10 / CPT / HCPCS)Event + Platform Integration Layer📋Consumes CL-04 cl_note_finalized via @/platform/clinical (PHI redacted at the boundary; fail-closed). Publishes pm.ai_coding_suggestion_created and pm.ai_coding_decision_recorded. Accepted codes flow into PM-07 charge capture; PM-50 scores denial risk on the resulting charge. RAG over PF-70 code library + PF-96 jurisdiction profiles; never hard-codes payer rules. NO PHI to LLM (constitution §4.3, GR-06-EN-01 pattern).PM-64 spec, INTEGRATION

RH — Recovery Housing (Wave RH)

SpecTitlePatternStatusCross-core surfaceReference
RH-01-EN-1Grievance Tracking (Alternative Slice)Data / Event📝Lightweight grievance tracking on RH-01; superseded by RH-09 full grievance management when implementedRH-01-EN-1 spec
RH-01-EN-2ADA / Accessibility — ResidenceData📝Extends RH-01 with ADA-compliant residence attributes; consumes PF-93 a11y standardsRH-01-EN-2 spec
RH-04-EN-4UDS Part 2 Access ControlsData / Platform📝Extends RH-04 attendance with CL-11 42 CFR Part 2 consent gating for UDS resultsRH-04-EN-4 spec
RH-06-EN-3Fire Inspection Compliance (Checklists)Data / Event📝Extends RH-06 compliance with FM-06 inspection consumer for fire-life safety checklistsRH-06-EN-3 spec
RH-07Outcomes, Alumni & ReportingEvent📝Publishes rh_alumni_engagement_recorded consumed by CL-10 outcomes and CE-01 (re-engagement leads)RH-07 spec
RH-09Resident Grievance ManagementEvent📝Publishes rh_grievance_filed, rh_grievance_resolved consumed by GR-09 incidents and PF-10 notificationsRH-09 spec
RH-UX-06Resident Grievance Filing Wizard (UI shell)UI🟡UI shell only (3-step WizardShell); not mounted on a route; submit blocked until RH-09 backend (rh_grievances table + RPCs + permissions) landsRH-UX-06 spec
RH-10Fire and Life Safety ComplianceEvent / Data📝Cross-core consumer of FM-06 fire/safety inspection events; per-residence compliance statusRH-10 spec
RH-11NARR Level & AzRHA Certification (LITE)Data / Event📝Cross-core consumer of GR-08 accreditation events; tracks NARR Level I–IV and AzRHA cert statusRH-11 spec


Quick Reference Guide

Integration Pattern Decision Tree

Need to share functionality across multiple cores?
  • ✅ Yes → Platform Integration Layer (Pattern 1)
    • Examples: Forms, Workforce, Data Lookup, Custom Fields, Notifications, Documents, Reports
Need asynchronous, loosely-coupled communication?
  • ✅ Yes → Event-Based Integration (Pattern 2)
    • Examples: Resident admission → Billing account creation, Credential expiry → Scheduling block
Need synchronous, real-time data query?
  • ✅ Yes → API Contract (Pattern 3)
    • Examples: Episode balance query, Employee lookup

Common Integration Scenarios

Scenario 1: RH needs to display employee information
  • ✅ Use: Platform Workforce Integration Layer (EmployeeSelector, useEmployeeLookup)
  • ❌ Don’t: Direct import from HR core
Scenario 2: FA needs to create billing account when resident is admitted
  • ✅ Use: Event-Based Integration (rh_resident_admitted in fw_domain_events; alias resident_admitted deprecated)
  • ❌ Don’t: Direct function call from RH to FA
Scenario 3: RH needs to query episode payment balance
  • ✅ Use: API Contract (/api/v1/fa/episode-balance)
  • ❌ Don’t: Direct database query to FA tables
Scenario 4: HR-04 needs to block scheduling when credential expires
  • ✅ Use: Event-Based Integration (subscribe to credential_expired event)
  • ❌ Don’t: Poll HR-02 credential tables

Integration Status Summary

Platform Integration Layers: 7 layers (Forms, Workforce, Data Lookup, Custom Fields, Field Config, Notifications, Documents, Reports)
  • ✅ Complete: 7
  • 🟡 In Progress: 0
  • 📝 Planned: 0
Event-Based Integrations: 50+ events
  • ✅ Implemented: 22 (including FM-03 vendor events)
  • 📝 Planned: 28+ (including 18 IT module events)
API Contracts: 7 contracts
  • ✅ Implemented: 0
  • 📝 Planned: 7 (including 4 IT module APIs)

Status Legend

IconMeaning
Complete — implemented and verified
🔜Near-complete — implementation in progress, >75% done
🏗️In Progress — actively under development
🟡Partial — some phases complete, others pending
📝Planned — spec exists, not yet implemented

Next Review: 2026-06-20 (Quarterly)