Skip to content
Get started

Create a clinical reference

POST/v1/autoScribe/clinicalReferences

Creates a canonical clinical reference value for study workflow pickers and normalization.

Body ParametersJSONExpand Collapse
name: string
minLength1

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

One of the following:
"facility"
"referring_provider"
"study_description"
"procedure"
expressCustomerId: optional string
externalReferenceId: optional string
minLength1
metadata: optional map[string]
ReturnsExpand Collapse
ClinicalReference object { 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

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

Timestamp when the clinical reference was last updated

formatdate-time
expressCustomer: optional ExpressCustomerReference { expressCustomerId, expressCustomerName }

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: optional string

Integrator-provided stable identifier for mapping inbound data

metadata: optional map[string]

Optional key-value metadata. Maximum 50 pairs

Create a clinical reference

curl https://api.avarasoftware.com/v1/autoScribe/clinicalReferences \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer $AVARA_API_KEY" \
    -d '{
          "name": "City Medical Center",
          "type": "facility",
          "expressCustomerId": "cus_1234567890abcdef1234567890abcdef"
        }'
{
  "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"
  }
}
Returns Examples
{
  "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"
  }
}