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 Discharge Plans page lists all discharge plans for the current organization with search and status filtering, accessible at /rh/discharge-plans.

Overview

The page uses useDischargePlans to load all discharge plans for the current organization. Soft-deleted plans (deleted_at set) are excluded from display. Users can filter by free-text search (partial match on episode_id or notes) and by status (all, not_started, in_progress, completed). Clicking a row navigates to /rh/discharge-plans/{id}.

Who it’s for

No additional permission gate is present on /rh/discharge-plans beyond the outer RH_PERMISSIONS.DASHBOARD_VIEW (rh.dashboard.view) guard. Note: Creating a new discharge plan via /rh/discharge-plans/new requires RH_PERMISSIONS.RESIDENTS_DISCHARGE (rh.residents.discharge).

Before you start

  • Your account must hold rh.dashboard.view.
  • An organization context must be active; plans are scoped by organization_id inside useDischargePlans.

Steps

1

Open Discharge Plans

Navigate to Recovery Housing → Discharge Plans or go directly to /rh/discharge-plans. The list loads with all non-deleted plans for your organization.
2

Search plans

Type in the search box to filter plans by a partial match on episode_id or notes. The filter runs client-side on the already-loaded dataset.
3

Filter by status

Use the Filter by status dropdown to narrow the list to not_started, in_progress, or completed plans.
4

Open a plan

Click any row in the DischargePlansTable to navigate to that plan’s detail page at /rh/discharge-plans/{id}.

Key concepts

StatusValueNotes
Not Startednot_startedPlan exists but discharge process has not begun
In Progressin_progressDischarge process is underway
CompletedcompletedDischarge has been finalized
FieldSearch behavior
episode_idPartial lowercase match
notesPartial lowercase match
deleted_atPlans with a non-null value are always excluded

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/discharge/DischargePlanningPage.tsx
  • src/cores/rh/hooks/discharge/useDischargePlans.ts