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

# Governance Analytics

> Procedure execution metrics, policy coverage heatmap, compliance effectiveness scores, trends, and benchmarking at /gr/procedures/analytics.

This screen provides analytics across procedure executions and compliance effectiveness at route `/gr/procedures/analytics`.

## Overview

The Procedure Analytics Dashboard shows four KPI cards (Total Executions, Completion Rate, Overdue count, Zero-Execution count) and a tabbed view. The **Procedures** tab shows a detailed analytics table with filters. The **Coverage** tab renders the `PolicyCoverageTable` (policy coverage heatmap data). The **Scores** tab renders `ComplianceScoreCards`. The **Trends** tab shows the `ComplianceScoreTrendCard`. The **Benchmarking** tab is conditionally rendered behind the `gr.procedure-analytics.benchmark.view` permission. A staleness footer shows when analytics were last refreshed.

## Who it's for

Requires permission `gr.procedure-analytics.view`.

The Benchmarking tab additionally requires `gr.procedure-analytics.benchmark.view`.

## Before you start

* You must have the `gr.procedure-analytics.view` permission.
* Procedures with execution records must exist to produce meaningful analytics.

## Steps

<Steps>
  <Step title="Open Analytics">Navigate to `/gr/procedures/analytics`.</Step>
  <Step title="Review KPI cards">Check Total Executions, Completion Rate, Overdue count, and Zero-Execution count at the top.</Step>
  <Step title="Drill into Procedures tab">Review the analytics table; use filters (`ProcedureAnalyticsFilters`) to narrow by category or date range.</Step>
  <Step title="Check Coverage tab">Open the **Coverage** tab to review the policy coverage heatmap.</Step>
  <Step title="Review Scores tab">Open the **Scores** tab to see compliance effectiveness scores by procedure.</Step>
  <Step title="Review Trends tab">Open the **Trends** tab to view compliance score trend over time.</Step>
  <Step title="Review Benchmarking tab">If you have the `gr.procedure-analytics.benchmark.view` permission, open **Benchmarking** to compare against benchmarks.</Step>
</Steps>

## Key concepts

* **Overdue** — procedures with executions past their due date as computed by `useProcedureAnalytics`.
* **Zero-Execution count** — procedures with no recorded executions in the analytics period.
* **Completion Rate** — overall completion percentage across all procedure executions (`overallCompletionRate`).
* **Last refreshed** — displayed from `procedure_analytics_last_refreshed_at` in GR module settings.

## Related

<Columns cols={2}>
  <Card title="Governance & Compliance" icon="scale-balanced" href="/gr/overview">
    Governance & Compliance core overview.
  </Card>

  <Card title="Governance & parity" icon="clipboard-check" 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/gr.tsx
  * src/cores/gr/pages/ProcedureAnalyticsDashboardPage.tsx
  * src/cores/gr/hooks/useProcedureAnalytics.ts
  * src/cores/gr/hooks/usePolicyCoverageHeatmap.ts
  * src/cores/gr/hooks/useComplianceEffectivenessScore.ts
  * src/cores/gr/hooks/useGRModuleSettings.ts
</Accordion>
