/gr/policies) renders PolicyLibrary, the central browsing and management surface for all gr_policies records in the organization.
Overview
PolicyLibrary calls usePolicyList({ filters }) with pagination. It provides:
- Search — text input for policy title search (deferred value pattern for performance).
- Filters — category and status selects derived from
PolicyListFilters. - View toggle — grid (
LayoutGrid) and list (List) view modes. - Pagination — sliding-window page number navigation.
- Create policy — opens
PolicyCreationWizardDialog(4-step wizard); visible to users with the appropriate permission checked insidePolicyLibraryusinguseHasPermission(GR_PERMISSIONS...). - Guided tour —
policyManagementTourlaunched viauseTour; starts automatically if?tour=policy-management-touris in the URL.
PolicyCard. Clicking a card navigates to /gr/policies/:id.
Who it’s for
Access follows your organization’s role and module configuration. Any authenticated user can browse the policy library. The create action inside the page is conditionally rendered based on the user’s permissions.Before you start
- No special permission is required to browse policies.
- To create a policy, the appropriate GR admin permission is required (checked within the component).
Finding a policy
- Navigate to
/gr/policies. The library loads with the first page of policies. - Type in the search box to filter policies by title. The list updates with a deferred search.
- Use the Category and Status selects to narrow the list.
- Click the grid or list icon to toggle between card grid and tabular list views.
- Click a
PolicyCardto navigate to/gr/policies/:idfor full detail. - Append
?tour=policy-management-tourto the URL or click the help button to start the guided tour.
gr_policies records.
PolicyListFilters — typed filter object with category, status, review_due, and other fields.
Sliding-window pagination — getPageNumbers helper that generates page numbers with ellipsis around the current page.
Viewing a policy
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.
PolicyDetail loads a policy via usePolicyDetail(id) and renders four tabs:
Header actions (conditionally rendered by permission):
- 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=).
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.
- Navigate to
/gr/policies/:id. The overview tab is displayed by default. - Read the policy metadata: category badge, status badge, owner, approved-by, site association, and description.
- Click the Versions tab to see all
gr_policy_versionsrecords. Documents can be downloaded. - Click Acknowledgments to see the admin view of all policy acknowledgment assignments and their completion status.
- Click Assignments to see and modify which roles or groups are assigned to acknowledge this policy.
- If you hold
gr.policies.approve, click Approve to mark the policy approved. If you holdgr.policies.deprecate, click Deprecate.
?tab= in the URL.
Creating a policy
Policy creation is performed viaPolicyCreationWizardDialog, a dialog-based 4-step wizard launched from this page. There is no standalone /gr/policies/new route.
PolicyCreationWizardDialog is a DialogWizardShell-based 4-step wizard:
Wizard events are tracked with template ID
'gr-policy-creation-wizard'.
Before you start: navigate to /gr/policies and locate the create policy action. Have the policy title, category, owner, relevant document file, and intended review schedule ready.
- Navigate to
/gr/policies. Click the action to create a new policy. ThePolicyCreationWizardDialogopens. - Step 1 — Policy Details: enter the policy title, select a category, and assign an owner.
- Step 2 — Document: attach the policy document file.
- Step 3 — Lifecycle: set the review schedule and any regulatory links.
- Step 4 — Review and create: review the entered information. Click submit to create the policy. You will be navigated to the new policy’s detail page.
PolicyCreationWizardDialog defining step IDs, titles, descriptions, and icons.
GrPolicyWizardFormData — typed form data structure for the creation wizard.
PolicyCreationWizardDialog — 4-step dialog wizard launched from this page for new policy creation.
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/PolicyLibrary.tsx
- src/cores/gr/pages/PolicyDetail.tsx
- src/cores/gr/hooks/usePolicyList.ts
- src/cores/gr/hooks/usePolicyDetail.ts
- src/cores/gr/hooks/usePolicyAcknowledgmentList.ts
- src/cores/gr/wizards/policy-creation/PolicyCreationWizardDialog.tsx