The Episode Details page displays the full record for a single resident episode and provides tabbed access to eligibility, agreements, payment, phases, milestones, and discharge planning. Route: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.
/rh/episodes/:id
Overview
When a resident episode record exists, the page renders a three-column summary row (Referral Date, Admission Date, Bed Assignment) followed by seven tabs:| Tab | Content |
|---|---|
| Details | Episode status, referral source |
| Eligibility | EligibilityChecklistCard — checklist items for this episode |
| Agreement | ResidentAgreementCard — resident agreement status |
| Payment Status | PaymentStatusCard — payment tracking for this episode |
| Phases | EpisodePhaseProgressCard — current phase and progression |
| Milestones | EpisodeMilestonesCard — milestone records |
| Discharge | Discharge plan, checklist, referrals, and follow-up card |
Who it’s for
Requires therh.dashboard.view permission (applied to all RH routes via the RHViewGuard). No additional inner permission gate exists on this route.
Before you start
- Obtain the episode ID from the Episodes list (
/rh/episodes) or from a bed-board or residence detail link. - Verify the episode belongs to your organization — the query enforces tenant isolation via RLS.
Steps
Navigate to the episode
From Recovery Housing → Episodes, click a row in the episodes table. The URL changes to
/rh/episodes/<id> and the page loads.Review the summary row
The header shows the episode number, resident number badge (if available), status badge, and the associated residence name. The summary cards show Referral Date, Admission Date, and Bed Assignment.
Review the Details tab
The Details tab displays the episode status and referral source. Switch to other tabs as needed using the scrollable tab list.
Check eligibility and agreements
Select Eligibility or Agreement tabs to review checklist completion and resident agreement status for this episode.
Review payment, phases, and milestones
Use the Payment Status, Phases, and Milestones tabs to track financial and program-phase progress.
Key concepts
- Episode — the primary record linking a resident profile to a residence stay, tracking the full lifecycle from referral through discharge.
- Episode number — a human-readable identifier (
episode_number) displayed in the page header and breadcrumb. - Referral source — the origin of the referral, stored on the episode record.
- Bed assignment — the room and bed label allocated to this episode (
room_number-bed_label); displayed as “Not assigned” if no bed is linked.
Related
Recovery Housing
Governance & parity
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/EpisodeDetailPage.tsx
- src/cores/rh/hooks/useEpisodeDetail.ts