The Order Templates screen is the admin page for managing lab order panels and template sets, accessible atDocumentation Index
Fetch the complete documentation index at: https://docs.encoreos.io/llms.txt
Use this file to discover all available pages before exploring further.
/cl/settings/order-templates.
Overview
The page fetches all order templates viauseAllOrderTemplates and displays them in a searchable table. Each row shows template_name (with optional description), template_type (badged), item count (from order_items array length), and an Active toggle. The “New Template” button (gated to cl.order_templates.manage) opens OrderTemplateFormDialog. Row actions include “Edit” (opens the dialog pre-filled) and “Delete” (calls deleteTemplate mutation immediately, no confirmation dialog). The active toggle calls updateTemplate with is_active flipped.
Who it’s for
Requires permission:cl.order_templates.manage
Before you start
- You must hold
cl.order_templates.manageto access this page (required for both read and write operations per the route guard). - Deleting a template is immediate and does not prompt for confirmation.
Steps
Navigate to Order Templates
Go to
/cl/settings/order-templates. All templates for your organization load.Edit a template
Click “Edit” on any row. The
OrderTemplateFormDialog opens pre-filled with that template’s data.Toggle a template active or inactive
Use the
Active switch on any row. The switch is disabled while the updateTemplate mutation is pending.Key concepts
Empty state
Empty state
When no templates match the search (or none exist): “No order templates found” / “Create one to streamline lab ordering.”
Item count
Item count
The “Items” column reflects the length of the
order_items JSONB array cast to OrderTemplateItem[]. The contents of individual items are not displayed in the list view.Related
Clinical
Overview of the Clinical core.
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/cl.tsx
- src/cores/cl/pages/OrderTemplateManagementPage.tsx
- src/cores/cl/hooks/useAllOrderTemplates.ts
- src/cores/cl/hooks/useOrderTemplateMutations.ts