> ## Documentation Index
> Fetch the complete documentation index at: https://docs.morf.health/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Lab Test

> Event payload details and trigger documentation for Lab Test data from Elation

<img src="https://mintcdn.com/morfhealth/EU2WCxuXGIUQcziR/images/elation.svg?fit=max&auto=format&n=EU2WCxuXGIUQcziR&q=85&s=06d58e76eb0b3a5e191b8fc13f4ba68a" alt="images/elation.svg" width="40" height="40" data-path="images/elation.svg" />

# Events

## Triggering Webhook Types

The following event types are associated with the Lab Test event payload from Elation.

* `Elation Lab Test Updated`
* `Elation Lab Test Deleted`

<RequestExample>
  ```json Example theme={null}
  {
    "code": "",
    "compendium_id": "3",
    "cpt_codes": 1,
    "created_at": "2020-01-27T16:17:43Z",
    "deleted_at": "2020-01-28T13:11:23Z",
    "id": "140748306251838",
    "lab_vendor_id": "3",
    "name": "TSH",
    "practice_created_id": "42",
    "procedure_class": "123",
    "questions": {
      "answers": [
        {
          "response": "5 cups"
        }
      ],
      "question": "Briefly describe any caffeine use - e.g. how many cups of coffee a day?"
    },
    "test_synonyms": "TSH"
  }
  ```
</RequestExample>

<ResponseExample>
  ```json Description theme={null}
  {
    "code": "Code identifier for the test, if available.",
    "compendium_id": "Compendium identifier for the test, if available.",
    "cpt_codes": "List of CPT codes associated with the test.",
    "created_at": "Timestamp when the test was created.",
    "deleted_at": "Timestamp when the test was deleted, if applicable.",
    "id": "Unique identifier for the test.",
    "lab_vendor_id": "Lab vendor identifier for the test, if available.",
    "name": "Name of the test.",
    "practice_created_id": "Practice-specific identifier for the test, if available.",
    "procedure_class": "Procedure class of the test, if applicable.",
    "questions": "List of questions associated with the test.",
    "test_synonyms": "List of alternative names or synonyms for the test."
  }
  ```
</ResponseExample>

### Payload Field Details

<ResponseField name="Lab Test" type="Event Payload">
  <Expandable title="fields" defaultOpen="true">
    <ResponseField name="id" type="string" required>
      `ID` Unique identifier for the test.

      ```json CEL theme={null}
      id
      ```

      ```json Example theme={null}
      "140748306251838"
      ```
    </ResponseField>

    <ResponseField name="name" type="string" required>
      Name of the test.

      ```json CEL theme={null}
      name
      ```

      ```json Example theme={null}
      "TSH"
      ```
    </ResponseField>

    <ResponseField name="code" type="string">
      Code identifier for the test, if available.

      ```json CEL theme={null}
      code
      ```

      ```json Example theme={null}
      ""
      ```
    </ResponseField>

    <ResponseField name="procedure_class" type="string">
      Procedure class of the test, if applicable.

      ```json CEL theme={null}
      procedure_class
      ```

      ```json Example theme={null}
      "123"
      ```
    </ResponseField>

    <ResponseField name="practice_created_id" type="string">
      Practice-specific identifier for the test, if available.

      ```json CEL theme={null}
      practice_created_id
      ```

      ```json Example theme={null}
      "42"
      ```
    </ResponseField>

    <ResponseField name="lab_vendor_id" type="string">
      Lab vendor identifier for the test, if available.

      ```json CEL theme={null}
      lab_vendor_id
      ```

      ```json Example theme={null}
      "3"
      ```
    </ResponseField>

    <ResponseField name="compendium_id" type="string">
      Compendium identifier for the test, if available.

      ```json CEL theme={null}
      compendium_id
      ```

      ```json Example theme={null}
      "3"
      ```
    </ResponseField>

    <ResponseField name="cpt_codes" type="[]int64" required>
      List of CPT codes associated with the test.

      ```json CEL theme={null}
      cpt_codes
      ```

      ```json Example theme={null}
      1
      ```
    </ResponseField>

    <ResponseField name="test_synonyms" type="[]string" required>
      List of alternative names or synonyms for the test.

      ```json CEL theme={null}
      test_synonyms
      ```

      ```json Example theme={null}
      "TSH"
      ```
    </ResponseField>

    <ResponseField name="questions" type="[]object" required>
      List of questions associated with the test.

      ```json CEL theme={null}
      questions
      ```

      ```json Example theme={null}
      {
      "answers": [
      {
      "response": "5 cups"
      }
      ],
      "question": "Briefly describe any caffeine use - e.g. how many cups of coffee a day?"
      }
      ```
    </ResponseField>

    <ResponseField name="created_at" type="timing.v1.Timestamp" required>
      Timestamp when the test was created.

      ```json CEL theme={null}
      created_at
      ```

      ```json Example theme={null}
      "2020-01-27T16:17:43Z"
      ```
    </ResponseField>

    <ResponseField name="deleted_at" type="timing.v1.Timestamp">
      Timestamp when the test was deleted, if applicable.

      ```json CEL theme={null}
      deleted_at
      ```

      ```json Example theme={null}
      "2020-01-28T13:11:23Z"
      ```
    </ResponseField>
  </Expandable>
</ResponseField>
