> ## 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 Practice Medication



## OpenAPI

````yaml post /api/2.0/practice_medications/
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/practice_medications/:
    post:
      tags:
        - Practice Medications
      summary: Create Practice Medication
      operationId: practice_medications_create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Medication'
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Medication'
          description: ''
      security:
        - oauth2: []
components:
  schemas:
    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
    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

````