The Program Details screen is 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.
/rh/programs/:id and renders the ProgramDetailPage component. It surfaces a single program record from the rh_programs table together with its associated rh_program_phases, rh_phase_privileges, and rh_phase_milestones records.
Overview
The page loads a program by its UUID path parameter using theuseProgramDetail hook, which queries rh_programs (joined to phases, privileges, and milestones) scoped to the current organization. A guided tour (phaseManagementTour) can be launched via the Help button.
Summary cards show Program Type, Duration (days), and Capacity. If program_rules is populated, a dedicated card displays the rules text. The PhasesAccordion component renders each phase with its privileges and milestones.
Who it’s for
The outerRHViewGuard requires RH_PERMISSIONS.DASHBOARD_VIEW (rh.dashboard.view). The /rh/programs/:id route itself carries no additional permission gate beyond the guard.
Before you start
- Hold the
rh.dashboard.viewpermission to access any RH route. - A program record with the target ID must exist and belong to the current organization.
Steps
Navigate to the Programs list
Go to
/rh/programs. All programs for the current organization are listed in the ProgramsTable.Open a program record
Click a row in the Programs table. The browser navigates to
/rh/programs/:id and the page loads program details.Review summary cards
The three summary cards show the program type, baseline duration in days, and capacity limit (or “Unlimited” when
capacity_limit is null).Review program rules (if present)
If
program_rules is populated, the Program Rules card displays the free-text content.Inspect phases
The Phases card renders the
PhasesAccordion. Expand each phase to view its privileges and milestones.Key concepts
| Term | Meaning |
|---|---|
program_type | Category of the recovery housing program (raw database value, spaces substituted for underscores). |
duration_baseline_days | Baseline expected duration for the program in days. |
capacity_limit | Maximum number of residents; null is displayed as “Unlimited”. |
program_rules | Free-text rules associated with the program (SME: confirm exact scope). |
| Phase | A structured stage within the program, stored in rh_program_phases. |
| Privilege | A resident privilege associated with a phase, stored in rh_phase_privileges. |
| Milestone | A progress marker within a phase, stored in rh_phase_milestones. |
Related
Recovery Housing
Recovery Housing references and overview.
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/rh.tsx
- src/cores/rh/pages/ProgramDetailPage.tsx
- src/cores/rh/hooks/useProgramDetail.ts
- src/cores/rh/components/PhasesAccordion.tsx