The Audit Details screen atDocumentation 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/audits/:id shows the full record for one audit schedule, including audit type, residence, date, status, auditor name and organization, notes, and a table of audit findings with the ability to add new findings.
Overview
The page reads:id from URL params and loads the audit via useAuditScheduleDetail. The breadcrumb is set to audit.audit_name or “Audit” as fallback. The page header displays audit_name, the audit_date formatted as MMMM d, yyyy, an AuditStatusBadge, and an Edit button that opens the AuditScheduleDialog pre-populated with the current record. The Audit Details card surfaces Audit Type (mapped through auditTypeLabels: internal, external, regulatory, narr, arizona_dhs, other), Residence name (or “Organization-wide” when audit.residence is null), Date, and Status. The Auditor Information card shows auditor name and organization when present; otherwise “No auditor information provided”. A Notes card renders audit.notes when present. The Audit Findings card renders AuditFindingsTable filtered by auditScheduleId and shows a finding count (audit.findings?.length). The Add Finding button opens AuditFindingDialog. Navigating back to /rh/audits is available via the Back to Audits ghost button.
Who it’s for
No route-levelRequirePermission beyond the outer RHViewGuard, which requires RH_PERMISSIONS.DASHBOARD_VIEW (rh.dashboard.view). RH_PERMISSIONS.AUDITS_VIEW (rh.audits.view) exists in the constants but is not applied as a route-level guard on this path.
Before you start
- Hold
rh.dashboard.viewto access the RH module. - The audit record must exist; navigating to a missing
:idshows “Audit not found”.
Steps
Review auditor information
The Auditor Information card shows
auditor_name and auditor_organization when provided.Review and manage findings
The Audit Findings card lists existing findings for this audit. The count shown is
audit.findings?.length.Edit the audit record
Click Edit to open the
AuditScheduleDialog pre-populated with the current record data.Key concepts
Audit type labels
Audit type labels
The code maps
audit_type values to display labels: internal → Internal, external → External, regulatory → Regulatory, narr → NARR, arizona_dhs → Arizona DHS, other → Other.Not-found state
Not-found state
When
useAuditScheduleDetail returns no data and is not loading, “Audit not found” is displayed as a centered text block.Loading state
Loading state
While data is fetching, a single full-width skeleton of height 600px is shown.
Findings navigation
Findings navigation
Related
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.
Documentation sources
Documentation sources
- src/routes/rh.tsx
- src/cores/rh/pages/AuditScheduleDetailPage.tsx