/lo/scorecard-metrics and allows users to create, edit, and delete the metrics that are measured on weekly scorecards.
Overview
TheScorecardMetricsPage loads metrics via useScorecardMetrics (filtered by roleId when a specific role is selected) and role definitions via useRoleDefinitions. A role filter allows narrowing metrics by role. Each metric is displayed in a card with its name and a role badge. Edit and delete action buttons appear on each card. The MetricFormDialog opens for creating new metrics or editing existing ones. Deletion is confirmed via an AlertDialog before calling remove.mutateAsync.
Who it’s for
RequiresLO_PERMISSIONS.DASHBOARD_VIEW (lo.dashboard.view) via the shared LOViewGuard. No additional explicit permission gate is present in this component beyond the route guard.
Before you start
lo.dashboard.viewpermission required.- At least one role must be defined to assign metrics to roles.
Steps
1
Navigate to Scorecard Metrics
Go to
/lo/scorecard-metrics.2
Filter by role
Select a role from the dropdown to view only metrics for that role, or leave as “all”.
3
Create a metric
Select the ”+” button to open
MetricFormDialog in create mode.4
Edit a metric
Select the edit button on a metric card to open
MetricFormDialog in edit mode.5
Delete a metric
Select the delete button and confirm in the
AlertDialog to remove the metric.Key concepts
- ScorecardMetric: the data type representing a measurable item on a scorecard.
- MetricFormDialog: the dialog for creating and editing metrics.
- role_id: metrics are associated with a role definition from the Accountability Chart.
Related
Leadership
Leadership core overview.
Governance & parity
Documentation coverage and governance.
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/lo.tsx
- src/cores/lo/pages/ScorecardMetricsPage.tsx
- src/cores/lo/hooks/useScorecardMetrics.ts
- src/cores/lo/hooks/useRoleDefinitions.ts