The Event Details page displays the full record for one significant event and allows staff to open or update an associated investigation and add or edit corrective actions. 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/significant-events/:id
Overview
The page loads a significant event byid from rh_significant_events, joined with the event type, the linked episode (including resident profile and residence), and the associated investigation and its corrective actions. Three data-loading states are handled separately — event, investigation, and corrective actions — and error states for any of the three are displayed as a destructive alert.
The page renders four primary sections:
- Event header — event type name (or date fallback), formatted event date, severity badge, status badge.
- Event Details card — episode number, residence name, and the user who reported the event.
- Description card — the
event_detailsfree-text field. - Event Summary card — the
event_summaryfield (shown only if present). - Investigation card — current investigation status with findings text. Staff can start or edit an investigation via the
InvestigationDialog. - Corrective Actions card — list of actions linked to the investigation. The Add Action button is disabled until an investigation exists. Actions are opened for editing via
InvestigationActionDialog.
open → in_progress → resolved → closed.
Who it’s for
Requires therh.dashboard.view permission (applied to all RH routes via RHViewGuard). No additional inner permission gate exists on this detail route. Creating new significant events requires rh.significant-events.create (enforced on the /rh/significant-events/new route).
Before you start
- Locate the event from the Significant Events list at
/rh/significant-events. - To start or edit an investigation, the event record must already exist. Investigation and corrective action entries are created from within this page.
Steps
Open the event record
From Recovery Housing → Significant Events, click a row to navigate to
/rh/significant-events/<id>.Review event details
Read the Event Details card (episode, residence, reporter) and the Description card. If an Event Summary is present, it appears below the description.
Start or update the investigation
Click Start Investigation (or Edit Investigation if one already exists) to open the investigation dialog. Fill in or update the findings and save.
Add corrective actions
Once an investigation exists, click Add Action in the Corrective Actions card. Enter the action description and target completion date.
Key concepts
- Significant event — an incident or occurrence recorded against a resident episode that may require investigation and corrective follow-up.
- Investigation — a structured record of findings linked to a significant event; one investigation per event.
- Corrective action — a time-bound task linked to an investigation, tracked from
openthroughin_progress,resolved, toclosed. - Severity — displayed as a badge; values are stored in
rh_significant_events.severity. - Event type — a lookup value from
rh_significant_event_typesthat categorizes the nature of the event.
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/SignificantEventDetailPage.tsx
- src/cores/rh/hooks/useSignificantEventDetail.ts
- src/cores/rh/hooks/useInvestigation.ts
- src/cores/rh/hooks/useInvestigationActions.ts