Skip to content
Get started

List clinical references

client.autoScribe.clinicalReferences.list(ClinicalReferenceListParams { cursor, expressCustomerId, isActive, 2 more } query?, RequestOptionsoptions?): CursorClinicalReferences<ClinicalReference { clinicalReferenceId, createdAt, isActive, 6 more } >
GET/v1/autoScribe/clinicalReferences

Lists clinical references with cursor-based pagination and optional filters.

ParametersExpand Collapse
query: ClinicalReferenceListParams { cursor, expressCustomerId, isActive, 2 more }
cursor?: string

Base64 encoded cursor from previous response

expressCustomerId?: string

Filter by Express customer ID. Omit for no filter; pass null for clinic-wide references

isActive?: boolean | null

Filter by active status. Defaults to true (active references only). Pass false to list inactive references.

limit?: number

Number of results to return (1-100)

minimum1
maximum100

Filter by clinical reference type

One of the following:
"facility"
"referring_provider"
"study_description"
"procedure"
ReturnsExpand Collapse
ClinicalReference { clinicalReferenceId, createdAt, isActive, 6 more }

A canonical clinical reference value for study workflow pickers and normalization

clinicalReferenceId: string

Unique clinical reference identifier. Format: ref_{32-hex-chars}

createdAt: string | null

Timestamp when the clinical reference was created

formatdate-time
isActive: boolean

Whether this reference is active and available for pickers

name: string

Canonical display name for this reference value

minLength1

Category of canonical clinical reference value used for study workflow pickers and normalization.

One of the following:
"facility"
"referring_provider"
"study_description"
"procedure"
updatedAt: string | null

Timestamp when the clinical reference was last updated

formatdate-time
expressCustomer?: ExpressCustomerReference { expressCustomerId, expressCustomerName } | null

A reference to an Express customer with basic identifying information

expressCustomerId: string

Unique Express customer identifier. Format: cus_{32-hex-chars}

expressCustomerName: string

Name of the Express customer

minLength1
externalReferenceId?: string | null

Integrator-provided stable identifier for mapping inbound data

metadata?: Record<string, string>

Optional key-value metadata. Maximum 50 pairs

List clinical references

import Avara from 'avara-software';

const client = new Avara({
  apiKey: process.env['AVARA_API_KEY'], // This is the default and can be omitted
});

// Automatically fetches more pages as needed.
for await (const clinicalReference of client.autoScribe.clinicalReferences.list()) {
  console.log(clinicalReference.clinicalReferenceId);
}
{
  "clinicalReferences": [
    {
      "clinicalReferenceId": "ref_1234567890abcdef1234567890abcdef",
      "createdAt": "2024-01-15T09:00:00Z",
      "isActive": true,
      "name": "City Medical Center",
      "type": "facility",
      "updatedAt": "2024-03-15T14:20:00Z",
      "expressCustomer": {
        "expressCustomerId": "cus_1234567890abcdef1234567890abcdef",
        "expressCustomerName": "City Medical Center"
      },
      "externalReferenceId": "FAC-001",
      "metadata": {
        "region": "northeast"
      }
    }
  ],
  "hasMore": true,
  "cursor": "cursor"
}
Returns Examples
{
  "clinicalReferences": [
    {
      "clinicalReferenceId": "ref_1234567890abcdef1234567890abcdef",
      "createdAt": "2024-01-15T09:00:00Z",
      "isActive": true,
      "name": "City Medical Center",
      "type": "facility",
      "updatedAt": "2024-03-15T14:20:00Z",
      "expressCustomer": {
        "expressCustomerId": "cus_1234567890abcdef1234567890abcdef",
        "expressCustomerName": "City Medical Center"
      },
      "externalReferenceId": "FAC-001",
      "metadata": {
        "region": "northeast"
      }
    }
  ],
  "hasMore": true,
  "cursor": "cursor"
}