> ## 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 Sleep Order Object

```json theme={null}
{
  "ancillary_company": 140755855605768,
  "ccs": [
    131074
  ],
  "chart_date": "2021-05-26T03:49:04Z",
  "clinical_reason": "sickness",
  "confidential": true,
  "created_date": "2021-05-26T03:49:04Z",
  "deleted_date": null,
  "document_date": "2021-05-26T03:49:04Z",
  "follow_up_method": "email",
  "icd10_codes": [
    {
      "code": "O09.529",
      "description": "Supervision of elderly multigravida, unspecified trimester"
    }
  ],
  "id": 140756377075740,
  "patient": 140756664516609,
  "practice": 140756660256772,
  "prescribing_user": 2032,
  "signed_date": "2021-05-26T03:49:04Z",
  "signed_by": 1407563456436,
  "resolution": {
    "id": 140754511659009,
    "document": 140754512183329,
    "resolving_document": 140754512183329,
    "state": "outstanding",
    "note": null,
    "created_date": "2021-03-25T04:33:40Z",
    "deleted_date": null
  },
  "sleep_center": 140755855671306,
  "test_date": "2021-05-27",
  "tests": [
    {
      "code": null,
      "created_date": "2021-05-26T03:49:04Z",
      "deleted_date": null,
      "id": 140756665106487,
      "name": "test",
      "practice_created": 140756660256772
    }
  ]
}
```

| Attribute                      | Type                   | Allowed Values                                  | Description                                                                                                                           |
| :----------------------------- | :--------------------- | :---------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------ |
| ancillary\_company             | integer                |                                                 |                                                                                                                                       |
| ccs                            | array of Physician IDs |                                                 |                                                                                                                                       |
| chart\_date                    | datetime               |                                                 |                                                                                                                                       |
| clinical\_reason               | string                 |                                                 |                                                                                                                                       |
| confidential                   | boolean                | True  <br />False                               |                                                                                                                                       |
| created\_date                  | datetime               |                                                 |                                                                                                                                       |
| deleted\_date                  | datetime               |                                                 | nullable                                                                                                                              |
| document\_date                 | datetime               |                                                 |                                                                                                                                       |
| follow\_up\_method             | string                 |                                                 |                                                                                                                                       |
| icd10\_codes                   | array of ICD10 codes   |                                                 |                                                                                                                                       |
| id                             | integer                |                                                 |                                                                                                                                       |
| patient                        | integer                |                                                 |                                                                                                                                       |
| practice                       | integer                |                                                 |                                                                                                                                       |
| prescribing\_user              | integer                |                                                 |                                                                                                                                       |
| signed\_date                   | datetime               |                                                 |                                                                                                                                       |
| signed\_by                     | integer                |                                                 |                                                                                                                                       |
| resolution.id                  | integer                |                                                 | Internal id to represent the resolution state.                                                                                        |
| resolution.document            | integer                |                                                 | Will be the same as the id of the lab order.                                                                                          |
| resolution.resolving\_document | integer                |                                                 | If the order is fulfilled will indicate the document referenced.  <br />  <br />For lab orders will usually be a report.              |
| resolution.state               | string                 | outstanding,  <br />fulfilled,  <br />cancelled | The resolution state of the order.                                                                                                    |
| resolution.note                | string                 |                                                 | Any note that was added to represent why an order was cancelled.                                                                      |
| resolution.created\_date       | datetime               |                                                 | The datetime when this resolution state was created.                                                                                  |
| resolution.deleted\_date       | datetime               |                                                 | The datetime when this resolution was deleted. Should never be null because we're providing the most updated resolution.              |
| sleep\_center                  | integer                |                                                 | nullable                                                                                                                              |
| test\_date                     | date                   | nullable                                        | The date on which the tests should be performed, or were performed.  <br />  <br />Can be different than document\_date, create\_date |
| tests                          | array of Tests objects |                                                 |                                                                                                                                       |
