The Reference Lab Directory screen is the admin page for managing external reference labs, 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/labs.
Overview
The page fetches all reference labs for the organization viauseAllReferenceLabs and displays them in a searchable table. Rows show lab_name (with optional phone), clia_number (monospace), npi (monospace), integration type (badged: “Manual” for none, “HL7 v2” for hl7v2, “FHIR” for fhir), and an Active toggle. The search filters by lab_name or clia_number. The “Add Lab” button (gated to cl.reference_labs.manage) opens ReferenceLabFormDialog. Row actions include “Edit” and “Delete.” The active toggle calls updateLab with is_active flipped.
Who it’s for
Requires permission:cl.reference_labs.manage
Before you start
- You must hold
cl.reference_labs.manageto access and modify the lab directory. - Deleting a lab is immediate; confirm clinical and IT readiness before removing an active integration.
Steps
Navigate to Reference Lab Directory
Go to
/cl/settings/labs. All configured reference labs for your organization load.Search labs
Use the search input (placeholder: “Search labs by name or CLIA…”) to filter by
lab_name or clia_number.Edit a lab
Click “Edit” on any row. The
ReferenceLabFormDialog opens pre-filled with the selected lab’s data.Toggle a lab active or inactive
Use the
Active switch. The switch is disabled while the updateLab mutation is pending.Key concepts
Empty states
Empty states
No results matching search: “No matching labs found” / “Try adjusting your search terms.”
No labs configured at all: “No reference labs configured” / “Add a lab to enable order routing.”
Integration type badges
Integration type badges
The
integration_type field drives the badge: null or "none" → “Manual” (secondary); "hl7v2" → “HL7 v2” (default); "fhir" → “FHIR” (info). Any other value renders the raw type string in an outline badge.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/ReferenceLabManagementPage.tsx
- src/cores/cl/hooks/useAllReferenceLabs.ts
- src/cores/cl/hooks/useReferenceLabMutations.ts