TheDocumentation 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/settings route renders RHSettingsPage, which loads and saves the organization’s RH module settings from the rh_module_settings table via the useRHModuleSettings hook.
Overview
The route/rh/settings is protected by RH_PERMISSIONS.SETTINGS_ADMIN (rh.settings.admin) inside the outer RHViewGuard (rh.dashboard.view). On load, useRHModuleSettings queries rh_module_settings filtered by organization_id; settings are seeded by migration and updated via an UPDATE mutation (no INSERT on read). The page renders RHSettingsForm with five tabs: General, Phases, Compliance, Integrations, and Wizards. A guided tour is available via the Help button; it can also be launched by appending ?tour=rh-settings-tour to the URL. Changes are saved with the Save button and trigger a toast notification on success or failure.
Who it’s for
RH_PERMISSIONS.SETTINGS_ADMIN (rh.settings.admin), enforced by an inner RequirePermission wrapper. Users without this permission cannot access this route even if they hold rh.dashboard.view.
Before you start
- Hold
rh.settings.adminto access and save settings. - Settings are per-organization. Ensure you are operating in the correct organization context.
Steps
Open Housing Settings
Navigate to
/rh/settings. The page loads your organization’s current Recovery Housing configuration.Configure general settings
On the General tab, set the Default Stay Duration (days) and Discharge Planning Initiation (days before discharge to start planning).
Configure program phase durations
On the Phases tab, set the expected duration (days) for each program phase (phases 1–4).
Configure compliance thresholds
On the Compliance tab, set license expiry warning lead time, minimum attendance percentage, curfew grace period, outcome follow-up intervals, and audit response time targets by severity.
Configure integrations
On the Integrations tab, toggle connections to the Finance & Revenue (FA) and Human Resources (HR) modules.
Key concepts
| Setting | Field |
|---|---|
| Default stay duration | default_stay_duration_days (1–365 days) |
| Discharge planning lead time | discharge_planning_initiation_days (7–90 days) |
| Phase durations | phase_1_duration_days through phase_4_duration_days |
| Minimum attendance | minimum_attendance_percentage (0–100%) |
| Curfew grace period | curfew_grace_period_minutes (0–60 min) |
| FA integration | integrate_with_fa (boolean) |
| HR integration | integrate_with_hr (boolean) |
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/RHSettingsPage.tsx
- src/cores/rh/components/RHSettingsForm.tsx
- src/cores/rh/hooks/useRHModuleSettings.ts