> ## 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.

# Pending Results

> Review and link unsolicited lab results to patient charts, or reject results with a documented reason.

The Pending Results screen displays the queue of unsolicited lab results awaiting clinical review and linking to patient charts, accessible at `/cl/pending-results`.

## Overview

The page renders a `PendingLabResultsQueue` component that fetches pending lab results via `usePendingLabResults`. Each result in the queue is displayed as a table row with columns: Lab name (from `cl_reference_labs`), LOINC Code, External Order ID, number of result items, Received date, and Expiry date. Two actions are available per row: **Link** — opens `LinkPendingResultDialog` to associate the result with a patient chart; **Reject** — opens a confirmation dialog requiring a typed rejection reason before the result is dismissed via `useRejectPendingResult`. The queue shows skeleton rows while loading and an inline error message on failure. When the queue is empty, the message "Queue is clear — No unsolicited lab results pending review." is shown.

## Who it's for

Requires permission: `cl.results.manage`

## Before you start

* Your account must have the `cl.results.manage` permission.
* Results appear automatically when the lab integration delivers unsolicited results to the organization.

## Steps

<Steps>
  <Step title="Open Pending Results">
    Navigate to `/cl/pending-results`. The queue loads automatically showing all unlinked, non-rejected pending results.
  </Step>

  <Step title="Review a result">
    Read the table row: Lab name, LOINC code, external order ID, result count, received timestamp, and expiry date (if set).
  </Step>

  <Step title="Link a result to a patient chart">
    Click "Link" on the result row to open the link dialog and associate the result with the correct patient chart.
  </Step>

  <Step title="Reject a result">
    Click "Reject" on a result row. In the dialog, type a rejection reason and click "Reject Result" to remove the result from the queue. The reason field must not be empty.
  </Step>
</Steps>

## Key concepts

<AccordionGroup>
  <Accordion title="Unsolicited results">
    Results in this queue were received from a reference lab without a matching outbound order in the system. They require manual review before being associated with a patient record.
  </Accordion>

  <Accordion title="Result expiry">
    When an `expires_at` date is present on a result, the expiry date is shown with a clock icon. SME: confirm expiry handling behavior.
  </Accordion>

  <Accordion title="Empty state">
    "Queue is clear — No unsolicited lab results pending review."
  </Accordion>
</AccordionGroup>

## Related

<Columns cols={2}>
  <Card title="Clinical" icon="stethoscope" href="/cl/overview">
    Overview of the Clinical core.
  </Card>

  <Card title="Governance & parity" icon="scale-balanced" href="/governance/index">
    Documentation coverage and governance.
  </Card>
</Columns>

<Note>
  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.
</Note>

<Accordion title="Documentation sources">
  * src/routes/cl.tsx
  * src/cores/cl/pages/PendingLabResultsPage.tsx
  * src/cores/cl/components/PendingLabResultsQueue.tsx
</Accordion>
