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

# The Lab Order Test Object

```json theme={null}
{
    "code": "DLS546",
    "compendium": 140745672360379,
    "cpts": [
        "90387"
    ],
    "created_date": "2021-05-27T17:42:16Z",
    "deleted_date": null,
    "id": 140756679458878,
    "lab_vendor": 63929778422,
    "name": "Microalbumin:creatinine ratio, random urine",
    "practice_created": 140756679131140,
    "procedure_class": "MI",
    "questions": [
        {
            "test": 67222831166,
            "question": {
                "choices": [
                    {
                        "id": 67222897041,
                        "code": "A0602",
                        "value": "CSF, Tube 2",
                        "created_date": "2017-01-26T22:02:25Z",
                        "deleted_date": null
                    },
                    {
                        "id": 67222962577,
                        "code": "A0603",
                        "value": "CSF, Tube 3",
                        "created_date": "2017-01-26T22:02:25Z",
                        "deleted_date": null
                    },
                    {
                        "id": 67223028113,
                        "code": "A0601",
                        "value": "CSF, Tube 1",
                        "created_date": "2017-01-26T22:02:25Z",
                        "deleted_date": null
                    },
                    {
                        "id": 67223093649,
                        "code": "A0604",
                        "value": "CSF, Tube 4",
                        "created_date": "2017-01-26T22:02:25Z",
                        "deleted_date": null
                    }
                ],
                "code": "Q002",
                "created_date": "2017-01-26T22:02:25Z",
                "deleted_date": null,
                "example_format": null,
                "id": 67223159186,
                "max_length": null,
                "question_type": "enum",
                "secondary_code": null,
                "value": "CSF Tube #"
            },
            "sequence": 1,
            "required": true
        }
    ],
    "synonyms": [
        "Biopsy",
        "Gross and Microscopic Pathology",
        "Microscopic Section",
        "Pathologic Examination",
        "Pathology",
        "Skin Lesion(s) Tissue Examination",
        "Surgical Pathology",
        "Tissue Pathology"
    ]
}
```

| Attribute | Type | Allowed Values | Description |
| :- | :- | :- | :- |
| id | integer | | |
| code | string | | |
| compendium | integer | | |
| cpts | List\[Integer] | | |
| created\_date | datetime | | |
| deleted\_date | datetime | datetime, null | Time at which this test was removed from the lab vendor's compendium. `null` if the test is currently active. |
| lab\_vendor | integer | | |
| name | string | | |
| practice\_created | integer | | |
| procedure\_class | string | | |
| questions | List of Questions | | |
| synonyms | List\[string] | | |

<Note>
  Elation periodically syncs each lab vendor's test compendium. When a vendor removes a test from its published compendium, Elation sets `deleted_date` on the corresponding test record rather than removing the record. If the test is later reintroduced to the compendium, Elation creates a new test record with a new `id` instead of restoring the original one, so a stored test `id` isn't guaranteed to stay valid indefinitely. A lab order that already references a test with `deleted_date` set can still be submitted successfully — the field doesn't block order transmission.

  When building an integration against this endpoint, filter to tests where `deleted_date` is `null` when presenting available tests to users, avoid persisting a test `id` long-term, and look up the current record by `code` if a previously stored `id` becomes deleted.
</Note>
