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 Plan Details page shows the full record for a single discharge plan and its associated checklist, referrals, and follow-ups, accessible at /rh/discharge-plans/:id.

Overview

The page loads a discharge plan by id via useDischargePlan and its checklists via useDischargeChecklists. A details card shows plan metadata (expected/actual discharge dates, discharge type, destination, readiness score, housing/employment/continuing-care planned flags, and notes). Three tabs — Checklist, Referrals, and Follow-Ups — provide sub-section management. Action buttons allow editing the plan and, if not yet completed, completing the discharge.

Who it’s for

No additional permission gate is present on /rh/discharge-plans/:id beyond the outer RH_PERMISSIONS.DASHBOARD_VIEW (rh.dashboard.view) guard.

Before you start

  • Your account must hold rh.dashboard.view.
  • A valid discharge plan id must exist; the page displays “Plan not found” if the query returns no result.
  • To create new checklist items, referrals, or follow-up schedules you must have access to the respective dialog forms.

Steps

1

Open a discharge plan

Navigate from the Discharge Plans list (/rh/discharge-plans) and click a row, or go directly to /rh/discharge-plans/{id}. A skeleton displays while the plan loads.
2

Review plan details

The Plan Details card shows expected discharge date, actual discharge date (if set), discharge type, destination, readiness score (checklist completion %), housing placement planned, employment referral planned, continuing care planned, and notes.
3

Manage the checklist

On the Checklist tab, view incomplete vs. complete checklist items. Click Add Item (surfaces via DischargeChecklistCard) to open DischargeChecklistDialog and add a new item. The readiness score updates with checklist completion.
4

Manage referrals

On the Referrals tab, view existing referrals. Click Add Referral to open ReferralDialog. Click a referral row to navigate to /rh/referrals/{id}.
5

Manage follow-ups

On the Follow-Ups tab, view scheduled follow-up contacts. Click Schedule Follow-Up to open FollowUpScheduleDialog. Click Log Contact on a scheduled follow-up to open FollowUpContactDialog.
6

Edit the plan

Click Edit Plan (top-right) to open DischargePlanDialog pre-populated with current plan values. Save to update.
7

Complete the discharge

If plan.status is not completed, click Complete Discharge to open CompleteDischargeDialog. The dialog is passed the count of incomplete checklist tasks. On success, the page navigates to /rh/discharge-plans.

Key concepts

FieldSourceNotes
readiness_scoreComputed: completed / total * 1000 if no checklist items; code-derived, not clinically validated
expected_discharge_dateplan.expected_discharge_dateFormatted MMM d, yyyy
actual_discharge_dateplan.actual_discharge_dateDisplayed as “Not discharged” if null
discharge_typecustom_fields.discharge_typeValue from custom_fields; displayed with underscores replaced by spaces
discharge_destinationcustom_fields.discharge_destinationSame format as above
statusplan.statusControls visibility of “Complete Discharge” button
incompleteChecklistchecklists.filter(!is_completed).lengthPassed to CompleteDischargeDialog

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/DischargePlanDetailPage.tsx
  • src/cores/rh/hooks/discharge/useDischargePlan.ts
  • src/cores/rh/hooks/discharge/useDischargeChecklists.ts