Skip to main content
POST
/
api
/
2.0
/
lab_order_tests
Create Lab Order Test
curl --request POST \
  --url https://sandbox.elationemr.com/api/2.0/lab_order_tests/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "code": "<string>",
  "compendium": 123,
  "cpts": [
    "<string>"
  ],
  "lab_vendor": 123,
  "practice_created": 123,
  "procedure_class": "<string>",
  "questions": [
    {
      "question": {
        "choices": [
          {
            "code": "<string>",
            "value": "<string>"
          }
        ],
        "code": "<string>",
        "value": "<string>",
        "example_format": "<string>",
        "max_length": 32767,
        "secondary_code": "<string>"
      },
      "sequence": 32767,
      "required": true
    }
  ],
  "synonyms": [
    "<string>"
  ]
}
'
{
  "name": "<string>",
  "code": "<string>",
  "compendium": 123,
  "cpts": [
    "<string>"
  ],
  "created_date": "2023-11-07T05:31:56Z",
  "deleted_date": "2023-11-07T05:31:56Z",
  "id": 123,
  "lab_vendor": 123,
  "practice_created": 123,
  "procedure_class": "<string>",
  "questions": [
    {
      "question": {
        "choices": [
          {
            "code": "<string>",
            "value": "<string>",
            "created_date": "2023-11-07T05:31:56Z",
            "deleted_date": "2023-11-07T05:31:56Z",
            "id": 123
          }
        ],
        "code": "<string>",
        "value": "<string>",
        "created_date": "2023-11-07T05:31:56Z",
        "deleted_date": "2023-11-07T05:31:56Z",
        "example_format": "<string>",
        "id": 123,
        "max_length": 32767,
        "secondary_code": "<string>"
      },
      "sequence": 32767,
      "required": true,
      "test": 123
    }
  ],
  "synonyms": [
    "<string>"
  ]
}

Documentation Index

Fetch the complete documentation index at: https://help.elationhealth.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
name
string
required

The name of the Lab Order Test.

Maximum string length: 255
code
string | null

Any code associated with the test, usually provided by the lab vendor's compendium.

Maximum string length: 50
compendium
integer<int64> | null

The id of the compendium provided the lab vendor that provides the lab order test. All tests in the same order MUST share the same compendium.

cpts
string[]

A list of CPT codes associated with the lab order test.

lab_vendor
integer<int64> | null

The id of the lab vendor who provides the lab order test.

practice_created
integer<int64> | null

The id of the practice that created the test if practice created.

procedure_class
string | null

Code provided by specific compendiums that indicate the "class" of test, e.g. histology vs cytology. Some lab vendors require that tests with specific procedure classes need to ordered separately.

Maximum string length: 50
questions
object[]

A list of Ask on Entry (AOE) Questions that need to be answered by the orderer when creating the order.

synonyms
string[]

A list of synonyms that are useful when searching for a specific test.

Response

201 - application/json
name
string
required

The name of the Lab Order Test.

Maximum string length: 255
code
string | null

Any code associated with the test, usually provided by the lab vendor's compendium.

Maximum string length: 50
compendium
integer<int64> | null

The id of the compendium provided the lab vendor that provides the lab order test. All tests in the same order MUST share the same compendium.

cpts
string[]

A list of CPT codes associated with the lab order test.

created_date
string<date-time> | null
read-only

Time at which Elation created this Lab Order Test.

deleted_date
string<date-time> | null
read-only

Time at which this Lab Order Test was deleted. Can happen when a lab order compendium update deprecates a test.

id
integer
read-only
lab_vendor
integer<int64> | null

The id of the lab vendor who provides the lab order test.

practice_created
integer<int64> | null

The id of the practice that created the test if practice created.

procedure_class
string | null

Code provided by specific compendiums that indicate the "class" of test, e.g. histology vs cytology. Some lab vendors require that tests with specific procedure classes need to ordered separately.

Maximum string length: 50
questions
object[]

A list of Ask on Entry (AOE) Questions that need to be answered by the orderer when creating the order.

synonyms
string[]

A list of synonyms that are useful when searching for a specific test.