> ## 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 Immunization Decline

> Create a new immunization decline.



## OpenAPI

````yaml post /api/2.0/immunization_declines/
openapi: 3.1.0
info:
  contact:
    name: Elation Health
    url: https://www.elationhealth.com/
  description: Elation Health API v2.0
  title: Elation Health 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/immunization_declines/:
    post:
      tags:
        - Immunization Declines
      summary: Create Immunization Decline
      description: Create a new immunization decline.
      operationId: immunization_declines_create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatientImmunizationDecline'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PatientImmunizationDecline'
          description: ''
      security:
        - oauth2: []
components:
  schemas:
    PatientImmunizationDecline:
      properties:
        cdc_type:
          maxLength: 100
          type: string
        created_date:
          format: date-time
          readOnly: true
          type:
            - string
            - 'null'
        cvx:
          description: The CVX code of the vaccine. Set it through `vaccine`.
          readOnly: true
          type:
            - integer
            - 'null'
        declined_date:
          format: date-time
          type: string
        declined_reason:
          description: Why the patient declined the immunization.
          oneOf:
            - $ref: '#/components/schemas/DeclinedReasonEnum'
            - $ref: '#/components/schemas/NullEnum'
        deleted_date:
          format: date-time
          readOnly: true
          type:
            - string
            - 'null'
        id:
          readOnly: true
          type: integer
        immunity:
          description: >-
            Whether the patient declined due to existing immunity. When true,
            `declined_reason` is null.
          type: boolean
        patient:
          format: int64
          type: integer
        practice:
          format: int64
          type:
            - integer
            - 'null'
        vaccine:
          oneOf:
            - $ref: '#/components/schemas/ImmunizationVaccine'
            - type: 'null'
        vaccine_name:
          readOnly: true
          type:
            - string
            - 'null'
      required:
        - cdc_type
        - declined_date
        - patient
      type: object
    DeclinedReasonEnum:
      enum:
        - Other (must add text component of the CE field with description)
        - Parental decision
        - Patient decision
        - Religious exemption
      type: string
    NullEnum:
      type: 'null'
    ImmunizationVaccine:
      properties:
        cdc_name:
          readOnly: true
          type:
            - string
            - 'null'
        cdc_type:
          readOnly: true
          type:
            - string
            - 'null'
        cvx:
          maximum: 2147483647
          minimum: -2147483648
          type:
            - integer
            - 'null'
        name:
          readOnly: true
          type: string
      type: object
  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

````