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 Audit Details screen at /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-level RequirePermission 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.view to access the RH module.
  • The audit record must exist; navigating to a missing :id shows “Audit not found”.

Steps

1

Open an audit record

From /rh/audits, click a row to navigate to /rh/audits/:id.
2

Review audit details

The Audit Details card shows type, residence, date, and status.
3

Review auditor information

The Auditor Information card shows auditor_name and auditor_organization when provided.
4

Review notes

The Notes card renders when audit.notes is present.
5

Review and manage findings

The Audit Findings card lists existing findings for this audit. The count shown is audit.findings?.length.
6

Add a finding

Click Add Finding to open the AuditFindingDialog pre-scoped to this audit’s ID.
7

Edit the audit record

Click Edit to open the AuditScheduleDialog pre-populated with the current record data.
8

Return to the audits list

Click Back to Audits (ghost button) to navigate to /rh/audits.

Key concepts

The code maps audit_type values to display labels: internal → Internal, external → External, regulatory → Regulatory, narr → NARR, arizona_dhs → Arizona DHS, other → Other.
When useAuditScheduleDetail returns no data and is not loading, “Audit not found” is displayed as a centered text block.
While data is fetching, a single full-width skeleton of height 600px is shown.
Individual finding records can be viewed at /rh/audits/:auditId/findings/:id (rendered by AuditFindingDetailPage).

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/AuditScheduleDetailPage.tsx