> ## 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.

# Curfew Checks

> View and record curfew compliance checks for recovery housing residents, with status badges and filterable history.

The Curfew Checks page lists curfew compliance records for the current organization and allows staff to record new checks, accessible at `/rh/curfew-checks`.

## Overview

The page queries the `rh_curfew_checks` table filtered by `organization_id` and ordered by `check_date` descending. The table shows up to 20 records with columns for Date, Curfew Time, Status (badged), and Return Time. Staff can open the `CurfewCheckDialog` to record a new check.

## Who it's for

No additional permission gate is present on `/rh/curfew-checks` 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; the query is disabled without an `organization_id`.

## Steps

<Steps>
  <Step title="Open Curfew Checks">
    Navigate to **Recovery Housing → Curfew Checks** or go directly to `/rh/curfew-checks`. The table loads with the most recent 20 checks.
  </Step>

  <Step title="Review existing records">
    Each row displays the `check_date`, `curfew_time`, `compliance_status` (green badge for `on_time`, red badge for any other value), and `actual_return_time`. Rows are ordered newest first.
  </Step>

  <Step title="Record a new check">
    Click **Record Check** (top-right) to open the `CurfewCheckDialog`. Complete the dialog fields and save. The list refreshes after a successful save.
  </Step>
</Steps>

## Key concepts

| Column      | Field                | Notes                                                                                          |
| ----------- | -------------------- | ---------------------------------------------------------------------------------------------- |
| Date        | `check_date`         | Date of the curfew check                                                                       |
| Curfew Time | `curfew_time`        | Scheduled curfew time                                                                          |
| Status      | `compliance_status`  | `on_time` renders as default (green) badge; any other value renders as destructive (red) badge |
| Return Time | `actual_return_time` | Actual recorded return time; displays `–` if null                                              |

## Related

<Columns cols={2}>
  <Card title="Recovery Housing" icon="house" href="/rh/references">
    Recovery Housing references and overview.
  </Card>

  <Card title="Governance & parity" icon="scale-balanced" href="/governance/index">
    Documentation coverage and governance.
  </Card>
</Columns>

<Note>
  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.
</Note>

<Accordion title="Documentation sources">
  * src/routes/rh.tsx
  * src/cores/rh/pages/CurfewChecksPage.tsx
  * src/cores/rh/hooks/useCurfewChecks.ts
</Accordion>
