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 Policy Details page (/gr/policies/:id) renders PolicyDetail, a tabbed view for a single gr_policies record with full lifecycle management capabilities for authorized users.

Overview

PolicyDetail loads a policy via usePolicyDetail(id) and renders four tabs:
TabContent
OverviewPolicy metadata: title, category, status badge, owner, approved-by, site, description
VersionsPolicyVersionHistory — version list with download support
AcknowledgmentsPolicyAcknowledgmentTable — admin view of all assignments for this policy (loaded via usePolicyAcknowledgmentList in mode: 'admin')
AssignmentsPolicyAssignmentList + PolicyAssignmentDialog — role/group assignments
Header actions (conditionally rendered by permission):
  • Approve — available to users with gr.policies.approve (canApprove); calls updatePolicy to set status to approved.
  • Deprecate — available to users with gr.policies.deprecate (canDeprecate); calls deprecatePolicy.
  • Edit — opens PolicyFormDialog.
  • New Version — opens PolicyVersionDialog.
  • Assign — opens PolicyAssignmentDialog.
The active tab syncs to the URL via useTabUrlState (?tab=).

Who it’s for

No explicit permission gate on the /gr/policies/:id route. Viewing a policy detail requires only authentication and organization membership. Specific actions within the page require gr.policies.approve, gr.policies.deprecate, or admin-level permissions.

Before you start

  • Navigate here from the Policy Library (/gr/policies) or from a direct link.
  • To take administrative actions, you need the appropriate GR policy permissions.

Steps

1

Open a policy

Navigate to /gr/policies/:id. The overview tab is displayed by default.
2

Review policy overview

Read the policy metadata: category badge, status badge, owner, approved-by, site association, and description.
3

Review version history

Click the Versions tab to see all gr_policy_versions records. Documents can be downloaded.
4

View acknowledgments (admins)

Click Acknowledgments to see the admin view of all policy acknowledgment assignments and their completion status.
5

Manage assignments

Click Assignments to see and modify which roles or groups are assigned to acknowledge this policy.
6

Approve or deprecate (authorized users)

If you hold gr.policies.approve, click Approve to mark the policy approved. If you hold gr.policies.deprecate, click Deprecate.

Key concepts

  • usePolicyDetail — hook fetching a single gr_policies record with related version, acknowledgment, and assignment data.
  • PolicyCategoryBadge / PolicyStatusBadge — visual status indicators.
  • gr.policies.approve / gr.policies.deprecate — permissions gating the approve and deprecate header actions.
  • useTabUrlState — syncs the active tab to ?tab= in the URL.

Governance & Compliance

Governance & Compliance core overview.

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.
  • src/routes/gr.tsx
  • src/cores/gr/pages/PolicyDetail.tsx
  • src/cores/gr/hooks/usePolicyDetail.ts
  • src/cores/gr/hooks/usePolicyAcknowledgmentList.ts