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/admissions/new route renders AdmissionWizardPage, which presents a multi-step guided wizard for admitting a new resident into a recovery housing program.
Overview
The route/rh/admissions/new is wrapped by the outer RHViewGuard, which requires rh.dashboard.view. On load, AdmissionWizardPage calls useWizardMode('rh') to determine whether to render the legacy hardcoded wizard (ResidentAdmissionWizard) or the platform’s configurable ModuleWizardRenderer. The hardcoded wizard has six steps: Basic Information, Program Selection, Bed Assignment, Documentation, Emergency Contacts, and Review & Submit. The wizard state is managed by useResidentAdmissionWizard, which supports draft persistence via useAdmissionDraft. On successful submission, a success toast is shown and the user is navigated to /rh/episodes/:residentId. Pressing the exit button navigates to /rh/episodes.
Who it’s for
Outer guard:RH_PERMISSIONS.DASHBOARD_VIEW (rh.dashboard.view), applied by RHViewGuard. No additional inner RequirePermission wraps this specific route in src/routes/rh.tsx.
Before you start
- Hold
rh.dashboard.viewto access the page. - Ensure the resident’s program, bed, and emergency contact information are available before starting.
Steps
Open the admission wizard
Navigate to
/rh/admissions/new. The wizard loads; a skeleton is shown while the wizard mode is determined.Select a program
On the Program Selection step, choose the recovery housing program the resident will enroll in.
Add emergency contacts
On the Emergency Contacts step, enter at least one emergency contact for the resident.
Key concepts
| Term | Meaning |
|---|---|
| Wizard mode | hardcoded (default) or configurable (platform-driven, when enabled) |
| Draft persistence | Wizard data is auto-saved via useAdmissionDraft |
| Episode | The housing stay record created on admission; navigated to on completion |
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/AdmissionWizardPage.tsx
- src/cores/rh/components/wizards/ResidentAdmissionWizard.tsx
- src/cores/rh/hooks/useResidentAdmissionWizard.ts