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.

Feature: CL-21 Medication-Assisted Treatment (MAT/MOUD) Tracking
Audience: Organization Administrators, Compliance Officers
Last Updated: 2026-02-23

Overview

This guide covers administrative configuration for the MAT/MOUD Tracking module (CL-21).

Quick Reference

I need to…PatternLocation
Configure MAT accessPermission keys + role assignmentPermission Keys
Validate consent-based access behaviorCL-11 consent + RLS enforcementConsent Enforcement
Check planned operational tuning controlscl_module_settings roadmapFuture Settings
Verify integration readinessCL/PM/PF integration statusIntegration Points

Permission Keys

Assign these permissions via Settings > Roles & Permissions:
Permission KeyCategoryDescription
cl.moud.viewviewView MAT enrollments and related events
cl.moud.enrollcreateCreate and edit MAT enrollments
cl.moud.medication-event.createcreateRecord medication dose events
cl.moud.monitoring.manageeditManage monitoring schedules and results
cl.moud.report.viewviewAccess MAT outcome and adherence reports
Note: The org_admin role is automatically granted all permissions via the pf_auto_grant_org_admin trigger.

Default Role Assignments

RolePermissions Granted
org_adminAll 5 permissions (auto-granted)
managercl.moud.view, cl.moud.enroll, cl.moud.medication-event.create, cl.moud.monitoring.manage, cl.moud.report.view
staffcl.moud.view, cl.moud.medication-event.create, cl.moud.monitoring.manage

Data Retention

MAT/MOUD records do not support soft delete (deleted_at). This is intentional:
  • 42 CFR Part 2 requires retention of SUD treatment records
  • DELETE operations are restricted to org_admin role only (via RLS)
  • Enrollments can be set to “Discontinued” or “Completed” status instead of deletion

The system enforces 42 CFR Part 2 consent at the RLS (database) level:
  • If a consent_id is linked to an enrollment, that specific consent must be active
  • If no consent_id is set, chart-level SUD consent flags are checked
  • Without valid consent, MAT records are inaccessible (queries return empty)

Future Settings

The following settings are planned for future releases and will be configurable in cl_module_settings:
  • Monitoring cadence defaults — default intervals for UDS, hepatic panels
  • Adherence risk thresholds — missed-dose count triggering alerts
  • Overdue monitoring alert rules — notification timing for overdue items

Database Tables

TablePurpose
cl_moud_enrollmentsMAT enrollment records per patient chart
cl_moud_medication_eventsIndividual medication dose/event records
cl_moud_monitoring_eventsLab and screening monitoring schedules
All tables enforce RLS with FORCE ROW LEVEL SECURITY and multi-tenant isolation via organization_id.

Integration Points

IntegrationStatusDescription
CL-11 (Consent)✅ Active42 CFR Part 2 consent enforcement
CL-10 (Outcomes)📋 PlannedCBE #3400 pharmacotherapy metrics
PM-07 (Billing)📋 PlannedCharge triggers for MAT encounters
PF-10 (Alerts)📋 PlannedOverdue monitoring notifications

Troubleshooting

IssueLikely CauseResolution
MAT enrollment inaccessible despite valid loginConsent requirements not satisfied (consent_id inactive or chart-level SUD consent missing)Verify consent status in CL-11 and re-check linked enrollment/chart consent context
Monitoring alerts not firingPF-10 integration is still planned/not activeConfirm current integration status and verify planned cadence settings in cl_module_settings
Unable to enroll patientMissing cl.moud.enroll permissionUpdate role mapping in Settings → Roles & Permissions and retry