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

# Create Medication Order Template



## OpenAPI

````yaml post /api/2.0/medication_order_templates/
openapi: 3.1.0
info:
  contact:
    name: Elation Health
    url: https://www.elationhealth.com/
  description: Elation Health API v2.0
  title: Practice API
  version: 2.0.0
servers:
  - description: Sandbox Server
    url: https://sandbox.elationemr.com
  - description: Production Server
    url: https://api.app.elationemr.com
security: []
paths:
  /api/2.0/medication_order_templates/:
    post:
      tags:
        - Medication Order Templates
      summary: Create Medication Order Template
      operationId: medication_order_templates_create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MedOrderTemplate'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MedOrderTemplate'
          description: ''
      security:
        - oauth2: []
components:
  schemas:
    MedOrderTemplate:
      description: |-
        Contains only webhooks
        All other fields inherited
      properties:
        auth_refills:
          maximum: 99
          minimum: 0
          type:
            - integer
            - 'null'
        deleted_date:
          format: date-time
          readOnly: true
          type:
            - string
            - 'null'
        directions:
          maxLength: 300
          type:
            - string
            - 'null'
        id:
          readOnly: true
          type: integer
        medication:
          allOf:
            - $ref: '#/components/schemas/Medication'
          description: >-
            When creating, must contains only one from id, ndcs or rxnorm_cuis
            fields.
        practice:
          format: int64
          type: integer
        qty:
          format: decimal
          pattern: ^-?\d{0,18}(?:\.\d{0,9})?$
          type:
            - string
            - 'null'
        qty_units:
          oneOf:
            - $ref: '#/components/schemas/QtyUnitsEnum'
            - $ref: '#/components/schemas/BlankEnum'
            - $ref: '#/components/schemas/NullEnum'
        rank:
          readOnly: true
          type: integer
        specific_ndc:
          type:
            - string
            - 'null'
      required:
        - medication
        - practice
      type: object
    Medication:
      properties:
        active_ndcs:
          items:
            type: string
          type: array
        brand_name:
          readOnly: true
          type: string
        created_date:
          format: date-time
          readOnly: true
          type:
            - string
            - 'null'
        creation_type:
          allOf:
            - $ref: '#/components/schemas/MedicationDrugType'
          default: user
          readOnly: true
        form:
          readOnly: true
          type: string
        generic_name:
          readOnly: true
          type: string
        id:
          description: The id of the medication.
          format: int64
          type: integer
        is_controlled:
          default: false
          description: Whether the drug is a controlled substance or not.
          type: boolean
        market_end_date:
          format: date-time
          type:
            - string
            - 'null'
        name:
          description: >-
            The name that will display for the medication in the search and when
            referenced by the prescription or documented med.
          type: string
        ndcs:
          description: >-
            The NDCs of the medication (must contain only one ndc code when
            creating).
          items:
            type: string
          type: array
        obsolete_date:
          description: The date at which this practice medication became obsolete.
          format: date-time
          type:
            - string
            - 'null'
        practice:
          description: >-
            The practice that created the medication. `null` for medications
            from the standard formulary.
          format: int64
          type: integer
        route:
          readOnly: true
          type: string
        rxnorm_cuis:
          description: >-
            The Rxnorm.cui code of the medication (must contain only one cui
            code when creating).
          items:
            type: string
          type: array
        strength:
          description: The strength of the drug, e.g. 40mg.
          maxLength: 255
          type:
            - string
            - 'null'
        type:
          allOf:
            - $ref: '#/components/schemas/MedicationType'
          default: prescription
          description: |-
            Whether the practice medication is an OTC or Prescription drug.

            * `otc` - otc
            * `prescription` - prescription
            * `discontinued` - discontinued
      type: object
    QtyUnitsEnum:
      description: |-
        * `BAG` - BAG
        * `BOTTLE` - BOTTLE
        * `BOX` - BOX
        * `CAPSULE` - CAPSULE
        * `CARTRIDGE` - CARTRIDGE
        * `CONTAINER` - CONTAINER
        * `DROP` - DROP
        * `GRAM` - GRAM
        * `INHALER` - INHALER
        * `INTERNATIONAL UNITE` - INTERNATIONAL UNITE
        * `KIT` - KIT
        * `LITER` - LITER
        * `LOZENGE` - LOZENGE
        * `MILLIGRAM` - MILLIGRAM
        * `MILLILITER` - MILLILITER
        * `MILLION UNITS` - MILLION UNITS
        * `MUTUALLY DEFINED` - MUTUALLY DEFINED
        * `FLUID OUNCE` - FLUID OUNCE
        * `NOT SPECIFIED` - NOT SPECIFIED
        * `PACK` - PACK
        * `PACKET` - PACKET
        * `PINT` - PINT
        * `SUPPOSITORY` - SUPPOSITORY
        * `SYRINGE` - SYRINGE
        * `TABLESPOON` - TABLESPOON
        * `TABLET` - TABLET
        * `TEASPOON` - TEASPOON
        * `TRANSDERMAL PATCH` - TRANSDERMAL PATCH
        * `TUBE` - TUBE
        * `UNIT` - UNIT
        * `VIAL` - VIAL
        * `EACH` - EACH
        * `GUM` - GUM
        * `AMPULE` - AMPULE
        * `APPLICATOR` - APPLICATOR
        * `APPLICATORFUL` - APPLICATORFUL
        * `BAR` - BAR
        * `BEAD` - BEAD
        * `BLISTER` - BLISTER
        * `BLOCK` - BLOCK
        * `BOLUS` - BOLUS
        * `CAN` - CAN
        * `CANISTER` - CANISTER
        * `CAPLET` - CAPLET
        * `CARTON` - CARTON
        * `CASE` - CASE
        * `CASSETTE` - CASSETTE
        * `CYLINDER` - CYLINDER
        * `DISK` - DISK
        * `DOSE PACK` - DOSE PACK
        * `DUAL PACK` - DUAL PACK
        * `FILM` - FILM
        * `GALLON` - GALLON
        * `IMPLANT` - IMPLANT
        * `INHALATION` - INHALATION
        * `INHALER REFILL` - INHALER REFILL
        * `INSERT` - INSERT
        * `INTRAVENOUS BAG` - INTRAVENOUS BAG
        * `KILOGRAM` - KILOGRAM
        * `METRIC DROP` - METRIC DROP
        * `MILLIMETER` - MILLIMETER
        * `NEBULE` - NEBULE
        * `NEEDLE FREE INJECTION` - NEEDLE FREE INJECTION
        * `OCULAR SYSTEM` - OCULAR SYSTEM
        * `OUNCE` - OUNCE
        * `PACKAGE` - PACKAGE
        * `PAD` - PAD
        * `PAPER` - PAPER
        * `PATCH` - PATCH
        * `PEN NEEDLE` - PEN NEEDLE
        * `POUCH` - POUCH
        * `POUND` - POUND
        * `PRE-FILLED PEN SYRINGE` - PRE-FILLED PEN SYRINGE
        * `PUFF` - PUFF
        * `QUART` - QUART
        * `RING` - RING
        * `SACHET` - SACHET
        * `SCOOPFUL` - SCOOPFUL
        * `SPONGE` - SPONGE
        * `SPRAY` - SPRAY
        * `STICK` - STICK
        * `STRIP` - STRIP
        * `SWAB` - SWAB
        * `TABMINDER` - TABMINDER
        * `TAMPON` - TAMPON
        * `TRAY` - TRAY
        * `TROCHE` - TROCHE
        * `` - 
        * `WAFER` - WAFER
      enum:
        - BAG
        - BOTTLE
        - BOX
        - CAPSULE
        - CARTRIDGE
        - CONTAINER
        - DROP
        - GRAM
        - INHALER
        - INTERNATIONAL UNITE
        - KIT
        - LITER
        - LOZENGE
        - MILLIGRAM
        - MILLILITER
        - MILLION UNITS
        - MUTUALLY DEFINED
        - FLUID OUNCE
        - NOT SPECIFIED
        - PACK
        - PACKET
        - PINT
        - SUPPOSITORY
        - SYRINGE
        - TABLESPOON
        - TABLET
        - TEASPOON
        - TRANSDERMAL PATCH
        - TUBE
        - UNIT
        - VIAL
        - EACH
        - GUM
        - AMPULE
        - APPLICATOR
        - APPLICATORFUL
        - BAR
        - BEAD
        - BLISTER
        - BLOCK
        - BOLUS
        - CAN
        - CANISTER
        - CAPLET
        - CARTON
        - CASE
        - CASSETTE
        - CYLINDER
        - DISK
        - DOSE PACK
        - DUAL PACK
        - FILM
        - GALLON
        - IMPLANT
        - INHALATION
        - INHALER REFILL
        - INSERT
        - INTRAVENOUS BAG
        - KILOGRAM
        - METRIC DROP
        - MILLIMETER
        - NEBULE
        - NEEDLE FREE INJECTION
        - OCULAR SYSTEM
        - OUNCE
        - PACKAGE
        - PAD
        - PAPER
        - PATCH
        - PEN NEEDLE
        - POUCH
        - POUND
        - PRE-FILLED PEN SYRINGE
        - PUFF
        - QUART
        - RING
        - SACHET
        - SCOOPFUL
        - SPONGE
        - SPRAY
        - STICK
        - STRIP
        - SWAB
        - TABMINDER
        - TAMPON
        - TRAY
        - TROCHE
        - WAFER
      type: string
    BlankEnum:
      enum:
        - ''
    NullEnum:
      type: 'null'
    MedicationDrugType:
      description: |-
        * `user` - user
        * `medispan` - medispan
        * `ss` - surescripts
        * `disp` - dispensary
      enum:
        - user
        - medispan
        - ss
        - disp
      type: string
    MedicationType:
      description: |-
        * `otc` - otc
        * `prescription` - prescription
        * `discontinued` - discontinued
      enum:
        - otc
        - prescription
        - discontinued
      type: string
  securitySchemes:
    oauth2:
      flows:
        clientCredentials:
          scopes:
            act_as_user: >-
              Impersonate a provider via X-On-Behalf-Of (combinable with apiv2
              or system scopes)
            apiv2: Full access to the API
            system/{resource_name}.read: Read access to a specific resource
            system/{resource_name}.write: Write access to a specific resource
          tokenUrl: /api/2.0/oauth2/token/
      type: oauth2

````