This screen is the Pathway Adherence Dashboard, accessible atDocumentation Index
Fetch the complete documentation index at: https://docs.encoreos.io/llms.txt
Use this file to discover all available pages before exploring further.
/cl/pathway-adherence. It shows aggregate counts computed from cl_patient_pathways and cl_pathway_milestones for the current organization.
Overview
The Pathway Adherence Dashboard presents four summary stat cards for the current organization:- Active pathways — count of
cl_patient_pathwaysrows withstatus = 'active'. - Completed — count of rows with
status = 'completed'(displayed with success tone). - Withdrawn — count of rows with
status = 'withdrawn'(displayed with warning tone). - Overdue milestones — count of
cl_pathway_milestonesrows wherestatus = 'overdue', or wherestatusispendingorin_progressandexpected_completion_dateis before the current date/time (displayed with destructive tone).
usePathwayAdherence from two queries: all pathway rows and all milestone rows for the organization. The page header text reads “Pathway Adherence” with subtitle “Aggregate metrics for clinical pathway enrollment and milestone progress.” While loading, four skeleton placeholders are shown. On error, a destructive Alert with a sanitized error message is displayed.
Who it’s for
Requires permission:cl.pathways.view_dashboard
Before you start
- You must hold the
cl.pathways.view_dashboardpermission. - There are no module-setting gates or feature flags on this route beyond the permission check.
Steps
Navigate to the Pathway Adherence Dashboard
Go to
/cl/pathway-adherence. The four stat cards load automatically for your organization.Review active pathways
The Active pathways card shows how many patient pathway enrollments are currently in progress.
Review completed and withdrawn pathways
The Completed and Withdrawn cards show aggregate counts. SME: confirm the clinical interpretation of each status before acting on these numbers.
Key concepts
Overdue milestone calculation
Overdue milestone calculation
A milestone is counted as overdue if its
status is overdue, OR if status is pending or in_progress and expected_completion_date is before new Date() at query time. This is a client-side calculation.Stat card tones
Stat card tones
- Active pathways: default (neutral)
- Completed: success (green)
- Withdrawn: warning (yellow)
- Overdue milestones: destructive (red)
Data scope
Data scope
usePathwayAdherence queries all cl_patient_pathways and cl_pathway_milestones for the current organization_id. Counts are not filtered by clinician or program.Empty / error states
Empty / error states
If data is null (no pathways or milestones), all four counts display as 0. On query error, the stat cards are replaced by a destructive Alert with a sanitized error message.
Related
Clinical
Overview of the Clinical core.
Governance & parity
Documentation coverage and governance.
This page documents shipped product behavior. It is not medical, legal, or
billing advice. Verify against your organization’s policies and applicable
regulations before using it for clinical, compliance, or billing decisions.
Protected health information (PHI) shown in the product is governed by your
tenant’s access controls and is never exposed in this documentation.
Documentation sources
Documentation sources
- src/routes/cl.tsx
- src/cores/cl/pages/PathwayAdherenceDashboardPage.tsx
- src/cores/cl/hooks/pathways/usePatientPathways.ts
- src/cores/cl/hooks/pathways/index.ts