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 Documents page provides a filterable list of all discharge-related documents for the current organization, accessible at /rh/discharge-documents.

Overview

The page queries rh_discharge_documents filtered by organization_id and deleted_at IS NULL, ordered by created_at descending. Users can search by document_name or notes and filter by document_type. Creating new documents from this page requires episodeId and dischargePlanId URL query parameters; otherwise the Add Document button is disabled and a helper note is shown.

Who it’s for

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

Before you start

  • Your account must hold rh.dashboard.view.
  • An organization context must be active.
  • To create a new document, you must arrive via an episode-specific discharge plan context that injects ?episodeId=...&dischargePlanId=... query parameters.

Steps

1

Open Discharge Documents

Navigate to Recovery Housing → Discharge Documents or go directly to /rh/discharge-documents. All non-deleted documents for your organization load in the table.
2

Search and filter

Use the search box to filter by document name or notes text. Use the Document Type dropdown to narrow to a specific type: Discharge Summary, Referral Letter, Medication List, Aftercare Plan, Release Form, or Other.
3

Edit an existing document

Click the edit action on any row to open DischargeDocumentDialog pre-populated with the document’s document_type, document_name, and notes. Save to update.
4

Delete a document

Click the delete action on any row. The useDischargeDocumentMutation hook performs a soft delete (sets deleted_at). The document disappears from the list on the next query.
5

Add a new document (episode context required)

Open this page from within an episode’s discharge plan context so that ?episodeId=...&dischargePlanId=... are present in the URL. The Add Document button becomes active. Click it to open DischargeDocumentDialog and complete the form.

Key concepts

Document typeValueNotes
Discharge Summarydischarge_summary
Referral Letterreferral_letter
Medication Listmedication_listContains PHI — medication names
Aftercare Planaftercare_plan
Release Formrelease_form
OtherotherGeneric type

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