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 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: /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:
TabContent
DetailsEpisode status, referral source
EligibilityEligibilityChecklistCard — checklist items for this episode
AgreementResidentAgreementCard — resident agreement status
Payment StatusPaymentStatusCard — payment tracking for this episode
PhasesEpisodePhaseProgressCard — current phase and progression
MilestonesEpisodeMilestonesCard — milestone records
DischargeDischarge plan, checklist, referrals, and follow-up card
If the episode is not found or the user lacks permission, an error state is shown with a link back to the Episodes list.

Who it’s for

Requires the rh.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

1

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.
2

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.
3

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

Check eligibility and agreements

Select Eligibility or Agreement tabs to review checklist completion and resident agreement status for this episode.
5

Review payment, phases, and milestones

Use the Payment Status, Phases, and Milestones tabs to track financial and program-phase progress.
6

Manage discharge planning

Select the Discharge tab to view or update the discharge plan, checklist, external referrals, and scheduled follow-ups linked to this episode.

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.

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.
  • src/routes/rh.tsx
  • src/cores/rh/pages/EpisodeDetailPage.tsx
  • src/cores/rh/hooks/useEpisodeDetail.ts