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.

Status: ✅ Complete
Spec: specs/pm/specs/PM-39-waitlist-management-priority-scoring.md
Last Updated: 2026-04-06

Purpose

Document cross-module contracts for waitlist entry, priority scoring, outreach, and promotion when provider capacity becomes available. PM-39 consumes upstream intake/scheduling events and coordinates with PM-38, PM-10, CE-28/29, and analytics (PM-41).

Inbound

SourceMechanismPayload (target)
PM-38Event no_suitable_provider (or equivalent)organization_id, patient_id, screening_id, program_type, scoring inputs
PM-10Availability change (event or scheduled read)Triggers re-match for ranked waitlist rows
PM-02Insurance dataExpiry date for priority factor (read-only from PM perspective)

Outbound

ConsumerMechanismNotes
PM-38Create appointment when slot matchesAfter successful re-match; remove or transition waitlist row
CE / notificationsSMS templatesTCPA consent; minimum necessary PHI
PM-41Metrics / funnel stageWaitlist counts, conversion, dwell time

Tenant isolation

All reads and writes scoped by organization_id; RLS on pm_waitlist_entries and pm_waitlist_outreach_log. Edge functions use org verification helpers per platform patterns.