---
title: "Create Lab Order Set"
method: POST
path: "/api/2.0/lab_order_sets/"
tags: ["Lab Order Sets"]
---

# Create Lab Order Set

`POST /api/2.0/lab_order_sets/`

Returns a list of lab order sets

## Request body

- LabOrderSet
  - `compendium_code` string — RM-9598 Guard against missing code/name. Can't repro issue from ticket locally so being extra careful with the guards here.
  - `content` LabOrderContent, required
    - `collection_datetime` string, date-time, nullable — If lab specimen collection is done onsite, this is the time at which the collection was taken.
    - `fasting_method` union — Instructions for patient and lab on how long they should fast before specimen collection. * `fasting_12_hour` - Fasting - 12 hours * `fasting_8_hours` - Fasting - 8 hours * `fasting_2_hours` - Fasting - 2 hours * `fasting_none` - Non-Fasting * `fasting_random` - Fasting or non-fasting does not matter (Random)
      - 'fasting_12_hour' | 'fasting_8_hours' | 'fasting_2_hours' | 'fasting_none' | 'fasting_random' — * `fasting_12_hour` - Fasting - 12 hours * `fasting_8_hours` - Fasting - 8 hours * `fasting_2_hours` - Fasting - 2 hours * `fasting_none` - Non-Fasting * `fasting_random` - Fasting or non-fasting does not matter (Random)
      - ''
      - unknown
    - `icd10_codes` ICD10Code[] — ICD10 diagnosis codes provided along with the order.
      - `code` string, required
      - `description` string, nullable
    - `id` integer
    - `patient_instructions` string — Notes for patient.
    - `standing_order_end_date` string, date, nullable — Date at which standing order should be canceled.
    - `standing_order_frequency` string, nullable — Number of times order should be performed on a standing basis.
    - `stat_method` union
      - 'wet_reading_phone' | 'wet_reading_fax' | 'stat_phone' | 'stat_fax' | 'stat_phone_fax' — * `wet_reading_phone` - STAT Wet Reading - Please Phone Report * `wet_reading_fax` - STAT Wet Reading - Please Fax Report * `stat_phone` - STAT - Phone * `stat_fax` - STAT - Fax * `stat_phone_fax` - STAT - Phone and Fax
      - ''
      - unknown
    - `test_center_notes` string — Notes for Lab.
    - `tests` LabOrderTestWithDiagnoses[] — The list of tests that should be performed by the lab. Must all be either from the same compendium or no compendium.
      - `code` string, nullable — Any code associated with the test, usually provided by the lab vendor's compendium.
      - `compendium` integer, nullable — 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, nullable — Time at which Elation created this Lab Order Test.
      - `deleted_date` string, date-time, nullable — Time at which this Lab Order Test was deleted. Can happen when a lab order compendium update deprecates a test.
      - `icd10_codes` ICD10Code[], required
        - `code` string, required
        - `description` string, nullable
      - `id` integer
      - `lab_vendor` integer, nullable — The id of the lab vendor who provides the lab order test.
      - `name` string, required — The name of the Lab Order Test.
      - `practice_created` integer, nullable — The id of the practice that created the test if practice created.
      - `procedure_class` string, nullable — 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.
      - `questions` LabOrderTestToLabOrderAOEQuestion[] — A list of Ask on Entry (AOE) Questions that need to be answered by the orderer when creating the order.
        - `question` LabOrderAOEQuestion, required
          - `choices` LabOrderAOEQuestionChoice[], required
            - `code` string, required
            - `created_date` string, date-time, nullable
            - `deleted_date` string, date-time, nullable
            - `id` integer
            - `value` string, required
          - `code` string, required
          - `created_date` string, date-time, nullable
          - `deleted_date` string, date-time, nullable
          - `example_format` string, nullable
          - `id` integer
          - `max_length` integer, nullable
          - `question_type` 'enum' | 'enum_multiselect' | 'freetext' | 'y_or_n' | 'numeric' | 'yyyymmdd' | '2_numeric_1_decimal' — * `enum` - enum * `enum_multiselect` - enum_multiselect * `freetext` - freetext * `y_or_n` - y_or_n * `numeric` - numeric * `yyyymmdd` - yyyymmdd * `2_numeric_1_decimal` - 2_numeric_1_decimal
          - `secondary_code` string, nullable
          - `value` string, required
        - `required` boolean
        - `sequence` integer, required
        - `test` integer
      - `synonyms` string[] — A list of synonyms that are useful when searching for a specific test.
  - `created_date` string, date-time, nullable — Time at which elation created this order. Can be different from chart_date when the order was imported into a chart from a different source and document_date when documenting an order that happened at some other time.
  - `deleted_date` string, date-time, nullable
  - `id` integer
  - `lab_vendor` integer, nullable
  - `name` string, required — The name of the lab order set.
  - `practice` integer, required

## Response `201`

- LabOrderSet
  - `compendium_code` string — RM-9598 Guard against missing code/name. Can't repro issue from ticket locally so being extra careful with the guards here.
  - `content` LabOrderContent, required
    - `collection_datetime` string, date-time, nullable — If lab specimen collection is done onsite, this is the time at which the collection was taken.
    - `fasting_method` union — Instructions for patient and lab on how long they should fast before specimen collection. * `fasting_12_hour` - Fasting - 12 hours * `fasting_8_hours` - Fasting - 8 hours * `fasting_2_hours` - Fasting - 2 hours * `fasting_none` - Non-Fasting * `fasting_random` - Fasting or non-fasting does not matter (Random)
      - 'fasting_12_hour' | 'fasting_8_hours' | 'fasting_2_hours' | 'fasting_none' | 'fasting_random' — * `fasting_12_hour` - Fasting - 12 hours * `fasting_8_hours` - Fasting - 8 hours * `fasting_2_hours` - Fasting - 2 hours * `fasting_none` - Non-Fasting * `fasting_random` - Fasting or non-fasting does not matter (Random)
      - ''
      - unknown
    - `icd10_codes` ICD10Code[] — ICD10 diagnosis codes provided along with the order.
      - `code` string, required
      - `description` string, nullable
    - `id` integer
    - `patient_instructions` string — Notes for patient.
    - `standing_order_end_date` string, date, nullable — Date at which standing order should be canceled.
    - `standing_order_frequency` string, nullable — Number of times order should be performed on a standing basis.
    - `stat_method` union
      - 'wet_reading_phone' | 'wet_reading_fax' | 'stat_phone' | 'stat_fax' | 'stat_phone_fax' — * `wet_reading_phone` - STAT Wet Reading - Please Phone Report * `wet_reading_fax` - STAT Wet Reading - Please Fax Report * `stat_phone` - STAT - Phone * `stat_fax` - STAT - Fax * `stat_phone_fax` - STAT - Phone and Fax
      - ''
      - unknown
    - `test_center_notes` string — Notes for Lab.
    - `tests` LabOrderTestWithDiagnoses[] — The list of tests that should be performed by the lab. Must all be either from the same compendium or no compendium.
      - `code` string, nullable — Any code associated with the test, usually provided by the lab vendor's compendium.
      - `compendium` integer, nullable — 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, nullable — Time at which Elation created this Lab Order Test.
      - `deleted_date` string, date-time, nullable — Time at which this Lab Order Test was deleted. Can happen when a lab order compendium update deprecates a test.
      - `icd10_codes` ICD10Code[], required
        - `code` string, required
        - `description` string, nullable
      - `id` integer
      - `lab_vendor` integer, nullable — The id of the lab vendor who provides the lab order test.
      - `name` string, required — The name of the Lab Order Test.
      - `practice_created` integer, nullable — The id of the practice that created the test if practice created.
      - `procedure_class` string, nullable — 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.
      - `questions` LabOrderTestToLabOrderAOEQuestion[] — A list of Ask on Entry (AOE) Questions that need to be answered by the orderer when creating the order.
        - `question` LabOrderAOEQuestion, required
          - `choices` LabOrderAOEQuestionChoice[], required
            - `code` string, required
            - `created_date` string, date-time, nullable
            - `deleted_date` string, date-time, nullable
            - `id` integer
            - `value` string, required
          - `code` string, required
          - `created_date` string, date-time, nullable
          - `deleted_date` string, date-time, nullable
          - `example_format` string, nullable
          - `id` integer
          - `max_length` integer, nullable
          - `question_type` 'enum' | 'enum_multiselect' | 'freetext' | 'y_or_n' | 'numeric' | 'yyyymmdd' | '2_numeric_1_decimal' — * `enum` - enum * `enum_multiselect` - enum_multiselect * `freetext` - freetext * `y_or_n` - y_or_n * `numeric` - numeric * `yyyymmdd` - yyyymmdd * `2_numeric_1_decimal` - 2_numeric_1_decimal
          - `secondary_code` string, nullable
          - `value` string, required
        - `required` boolean
        - `sequence` integer, required
        - `test` integer
      - `synonyms` string[] — A list of synonyms that are useful when searching for a specific test.
  - `created_date` string, date-time, nullable — Time at which elation created this order. Can be different from chart_date when the order was imported into a chart from a different source and document_date when documenting an order that happened at some other time.
  - `deleted_date` string, date-time, nullable
  - `id` integer
  - `lab_vendor` integer, nullable
  - `name` string, required — The name of the lab order set.
  - `practice` integer, required

---

[API](https://skmtc.net/elationhealth/apis/api-authentication.md) · [All operations](https://skmtc.net/elationhealth/apis/api-authentication/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elationhealth/api-authentication/versions/c060f89d4de7/schema)
