Status: 📋 Planned
Spec Reference:
specs/cl/specs/CL-07-EN-01-zero-suicide-framework.mdLast Updated: 2026-04-10
Overview
CL-07-EN-01 extends CL-07 with structured lethal means assessment capture, safety plan sharing with consent controls, and automated high-risk follow-up scheduling. This enhancement integrates with platform scheduling, notifications, and clinical context layers while preserving CL ownership boundaries.Integration Points
Storage / signed URL policy
- Bucket:
cl-safety-plan-shares. TTL:createSignedUrl(..., 86400)(24h). - Before issuing or returning a signed URL: require
cl_safety_plan_shares.status === 'active'; rejectrevoked/expired. Persist revocation asstatus = 'revoked'. - Log each fetch: share row id, user id, timestamp, client IP, outcome (allow/deny).
Event and API Contracts
Planned Events
-
cl_safety_plan_shared- Publisher: CL
- Subscribers: PF-10 notifications, workflow listeners
- Payload (minimum):
organization_id,patient_id,safety_plan_id,shared_by,shared_at
-
cl_zero_suicide_followup_scheduled- Publisher: CL
- Subscribers: PM scheduling views, PF-10 reminders
- Payload (minimum):
organization_id,patient_id,followup_type,scheduled_for,encounter_id
API Surface (planned)
createSafetyPlanShare(...)— consent viacl_check_sud_consent; PDF to Storage; signed URL (24h TTL); insertcl_safety_plan_shares(status = active,expires_ataligned); PF-10action_url= URLscheduleZeroSuicideFollowups(chartId, riskLevel)— creates 24/48/72h follow-up appointment requests via@/platform/schedulingwhen riskLevel is ‘high’ or ‘imminent’
Security and Compliance Notes
- Enforce tenant isolation via
organization_idand RLS on new CL tables. - Enforce consent-aware sharing logic for SUD/Part 2-sensitive content.
- Log only identifiers in integration payloads; avoid PHI-rich payload structures.
Related Documentation
docs/architecture/integrations/CL-07-suicide-risk-screening-safety-planning-INTEGRATION.mddocs/architecture/integrations/CROSS_CORE_INTEGRATIONS.mddocs/architecture/integrations/EVENT_CONTRACTS.mddocs/architecture/integrations/API_CONTRACTS.md