Last Updated: 2026-02-21
Spec: PM-14 Secure Messaging
Constitution Reference: Section 1.2 (Core Independence), Section 1.3 (Integration Patterns)
Overview
PM-14 provides PHI-compliant secure messaging between patients, providers, and care teams (threading, attachments, retention, routing, notifications). Integrations use Platform Integration Layer and documented dependencies; cross-core integration with CL is via explicit contracts (no direct core-to-core imports).Integration Points (from spec)
Event / API Contracts
- PM-12: Patient portal messaging UI consumes PM-14 conversations/messages via
pf_conversationswithpatient_idfilter. - PF-10: Domain events
pm_message_sentandpm_urgent_message_sentpublished fromusePmSendMessagehook; PF-10 listens for urgent messages to trigger in-app/email notifications. - CL-01: Chart documentation of clinical messages; PM sets
chart_documentedmetadata flag when note is created/linked in CL. Contract: metadata field onpf_messages. - CL-11: Part 2 SUD restrictions on SUD-related messages; stub ready for consent/access-check integration when CL-11 is implemented.