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.

The Program Details screen is at /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 the useProgramDetail 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 outer RHViewGuard 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.view permission to access any RH route.
  • A program record with the target ID must exist and belong to the current organization.

Steps

1

Navigate to the Programs list

Go to /rh/programs. All programs for the current organization are listed in the ProgramsTable.
2

Open a program record

Click a row in the Programs table. The browser navigates to /rh/programs/:id and the page loads program details.
3

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).
4

Review program rules (if present)

If program_rules is populated, the Program Rules card displays the free-text content.
5

Inspect phases

The Phases card renders the PhasesAccordion. Expand each phase to view its privileges and milestones.
6

Launch the guided tour (optional)

Click the Help button to start the phaseManagementTour guided tour overlay.

Key concepts

TermMeaning
program_typeCategory of the recovery housing program (raw database value, spaces substituted for underscores).
duration_baseline_daysBaseline expected duration for the program in days.
capacity_limitMaximum number of residents; null is displayed as “Unlimited”.
program_rulesFree-text rules associated with the program (SME: confirm exact scope).
PhaseA structured stage within the program, stored in rh_program_phases.
PrivilegeA resident privilege associated with a phase, stored in rh_phase_privileges.
MilestoneA progress marker within a phase, stored in rh_phase_milestones.

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.
  • src/routes/rh.tsx
  • src/cores/rh/pages/ProgramDetailPage.tsx
  • src/cores/rh/hooks/useProgramDetail.ts
  • src/cores/rh/components/PhasesAccordion.tsx