The Policy Details page (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.
/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:
| Tab | Content |
|---|---|
| Overview | Policy metadata: title, category, status badge, owner, approved-by, site, description |
| Versions | PolicyVersionHistory — version list with download support |
| Acknowledgments | PolicyAcknowledgmentTable — admin view of all assignments for this policy (loaded via usePolicyAcknowledgmentList in mode: 'admin') |
| Assignments | PolicyAssignmentList + PolicyAssignmentDialog — role/group assignments |
- Approve — available to users with
gr.policies.approve(canApprove); callsupdatePolicyto set status to approved. - Deprecate — available to users with
gr.policies.deprecate(canDeprecate); callsdeprecatePolicy. - Edit — opens
PolicyFormDialog. - New Version — opens
PolicyVersionDialog. - Assign — opens
PolicyAssignmentDialog.
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
Review policy overview
Read the policy metadata: category badge, status badge, owner, approved-by, site association, and description.
Review version history
Click the Versions tab to see all
gr_policy_versions records. Documents can be downloaded.View acknowledgments (admins)
Click Acknowledgments to see the admin view of all policy acknowledgment assignments and their completion status.
Manage assignments
Click Assignments to see and modify which roles or groups are assigned to acknowledge this policy.
Key concepts
- usePolicyDetail — hook fetching a single
gr_policiesrecord 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.
Related
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.
Documentation sources
Documentation sources
- src/routes/gr.tsx
- src/cores/gr/pages/PolicyDetail.tsx
- src/cores/gr/hooks/usePolicyDetail.ts
- src/cores/gr/hooks/usePolicyAcknowledgmentList.ts