openapi: 3.0.3
info:
  title: EPA Capability Statement für Clients des ePA Medication Service
  version: 1.2.0-ballot.2
  description: Dieses Capability Statement legt die Anforderungen an ePA Clients fest,
    die den Medication Service der verwenden. Es definiert die unterstützten Interaktionen,
    erforderliche HTTP Header sowie erwartete Status Codes.
paths:
  /epa/medication/api/v1/fhir/metadata:
    get:
      summary: Get CapabilityStatement
      tags:
      - metadata
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      responses:
        '200':
          description: OK
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/Medication:
    get:
      summary: Search for Medication
      tags:
      - Medication
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _count
        in: query
        required: false
        description: With _count, the client can specify the maximum number of elements
          to be included on one page of the response. This means the FHIR Data Service
          limits the result set to this maximum specified number. If no value for
          _count is provided, the default value set is 25.
        schema:
          type: string
      - name: _offset
        in: query
        required: false
        description: This URL parameter indicates the (zero-based) offset of the first
          returned element in the collection. If no value for _offset is provided,
          the default value set is 0.
        schema:
          type: integer
      - name: _total
        in: query
        required: false
        description: This parameter controls whether and how the FHIR Data Service
          returns the total number of search results.
        schema:
          type: string
      - name: _revinclude
        in: query
        required: false
        description: Reverse include other resources
        schema:
          type: string
      - name: _id
        in: query
        required: false
        schema:
          type: string
        description: Resource.id
      - name: _lastUpdated
        in: query
        required: false
        schema:
          type: string
          format: date
        description: Resource.meta.lastUpdated
      - name: _has
        in: query
        required: false
        schema:
          type: string
        description: Return resources linked to by the given target
      - name: identifier
        in: query
        required: false
        schema:
          type: string
        description: Medication.identifier
      - name: code
        in: query
        required: false
        schema:
          type: string
        description: Medication.code
      - name: status
        in: query
        required: false
        schema:
          type: string
        description: Medication.status
      - name: ingredient-code
        in: query
        required: false
        schema:
          type: string
        description: Medication.ingredient.item as CodeableConcept
      - name: rx-prescription
        in: query
        required: false
        schema:
          type: string
        description: Medication.extension
      - name: context
        in: query
        required: false
        schema:
          type: string
        description: Medication.extension:context
      responses:
        '200':
          description: Search successful
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid query parameter(s)
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/Medication/_history:
    get:
      summary: History for all Medication
      tags:
      - Medication
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: _count
        in: query
        required: false
        description: With _count, the client can specify the maximum number of elements
          to be included on one page of the response. This means the FHIR Data Service
          limits the result set to this maximum specified number. If no value for
          _count is provided, the default value set is 25.
        schema:
          type: string
      - name: _offset
        in: query
        required: false
        description: This URL parameter indicates the (zero-based) offset of the first
          returned element in the collection. If no value for _offset is provided,
          the default value set is 0.
        schema:
          type: integer
      - name: _total
        in: query
        required: false
        description: This parameter controls whether and how the FHIR Data Service
          returns the total number of search results.
        schema:
          type: string
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      responses:
        '200':
          description: History for type retrieved
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid request
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/Medication/{id}:
    get:
      summary: Read a specific Medication
      tags:
      - Medication
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: Resource ID
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      responses:
        '200':
          description: Medication successfully read
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid request
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '410':
          description: Resource was deleted
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/Medication/{id}/_history:
    get:
      summary: History of a specific Medication
      tags:
      - Medication
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: Resource ID
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _count
        in: query
        required: false
        description: With _count, the client can specify the maximum number of elements
          to be included on one page of the response. This means the FHIR Data Service
          limits the result set to this maximum specified number. If no value for
          _count is provided, the default value set is 25.
        schema:
          type: string
      - name: _offset
        in: query
        required: false
        description: This URL parameter indicates the (zero-based) offset of the first
          returned element in the collection. If no value for _offset is provided,
          the default value set is 0.
        schema:
          type: integer
      - name: _total
        in: query
        required: false
        description: This parameter controls whether and how the FHIR Data Service
          returns the total number of search results.
        schema:
          type: string
      responses:
        '200':
          description: History retrieved
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid request
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '410':
          description: Resource was deleted
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/Medication/{id}/_history/{vid}:
    get:
      summary: Read version of Medication
      tags:
      - Medication
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: Resource ID
      - name: vid
        in: path
        required: true
        schema:
          type: string
        description: Version ID
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      responses:
        '200':
          description: Medication version read
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid request
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '410':
          description: Resource was deleted
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/MedicationRequest:
    get:
      summary: Search for MedicationRequest
      tags:
      - MedicationRequest
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _count
        in: query
        required: false
        description: With _count, the client can specify the maximum number of elements
          to be included on one page of the response. This means the FHIR Data Service
          limits the result set to this maximum specified number. If no value for
          _count is provided, the default value set is 25.
        schema:
          type: string
      - name: _offset
        in: query
        required: false
        description: This URL parameter indicates the (zero-based) offset of the first
          returned element in the collection. If no value for _offset is provided,
          the default value set is 0.
        schema:
          type: integer
      - name: _total
        in: query
        required: false
        description: This parameter controls whether and how the FHIR Data Service
          returns the total number of search results.
        schema:
          type: string
      - name: _include
        in: query
        required: false
        description: Including other resources
        schema:
          type: string
      - name: _revinclude
        in: query
        required: false
        description: Reverse include other resources
        schema:
          type: string
      - name: _id
        in: query
        required: false
        schema:
          type: string
        description: Resource.id
      - name: _lastUpdated
        in: query
        required: false
        schema:
          type: string
          format: date
        description: Resource.meta.lastUpdated
      - name: _has
        in: query
        required: false
        schema:
          type: string
        description: Return resources linked to by the given target
      - name: identifier
        in: query
        required: false
        schema:
          type: string
        description: MedicationRequest.identifier
      - name: authoredon
        in: query
        required: false
        schema:
          type: string
          format: date
        description: MedicationRequest.authoredOn
      - name: intent
        in: query
        required: false
        schema:
          type: string
        description: MedicationRequest.intent
      - name: status
        in: query
        required: false
        schema:
          type: string
        description: MedicationRequest.status
      - name: requester
        in: query
        required: false
        schema:
          type: string
          format: uri
        description: MedicationRequest.requester
      - name: medication
        in: query
        required: false
        schema:
          type: string
          format: uri
        description: MedicationRequest.medication as Reference
      - name: context
        in: query
        required: false
        schema:
          type: string
        description: MedicationRequest.extension:context
      - name: activity
        in: query
        required: false
        schema:
          type: string
          format: uri
        description: MedicationRequest.extension:activity
      - name: effective-dose-period
        in: query
        required: false
        schema:
          type: string
          format: date
        description: MedicationRequest.extension:effectiveDosePeriod
      responses:
        '200':
          description: Search successful
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid query parameter(s)
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/MedicationRequest/_history:
    get:
      summary: History for all MedicationRequest
      tags:
      - MedicationRequest
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: _count
        in: query
        required: false
        description: With _count, the client can specify the maximum number of elements
          to be included on one page of the response. This means the FHIR Data Service
          limits the result set to this maximum specified number. If no value for
          _count is provided, the default value set is 25.
        schema:
          type: string
      - name: _offset
        in: query
        required: false
        description: This URL parameter indicates the (zero-based) offset of the first
          returned element in the collection. If no value for _offset is provided,
          the default value set is 0.
        schema:
          type: integer
      - name: _total
        in: query
        required: false
        description: This parameter controls whether and how the FHIR Data Service
          returns the total number of search results.
        schema:
          type: string
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      responses:
        '200':
          description: History for type retrieved
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid request
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/MedicationRequest/{id}:
    get:
      summary: Read a specific MedicationRequest
      tags:
      - MedicationRequest
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: Resource ID
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      responses:
        '200':
          description: MedicationRequest successfully read
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid request
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '410':
          description: Resource was deleted
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/MedicationRequest/{id}/_history:
    get:
      summary: History of a specific MedicationRequest
      tags:
      - MedicationRequest
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: Resource ID
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _count
        in: query
        required: false
        description: With _count, the client can specify the maximum number of elements
          to be included on one page of the response. This means the FHIR Data Service
          limits the result set to this maximum specified number. If no value for
          _count is provided, the default value set is 25.
        schema:
          type: string
      - name: _offset
        in: query
        required: false
        description: This URL parameter indicates the (zero-based) offset of the first
          returned element in the collection. If no value for _offset is provided,
          the default value set is 0.
        schema:
          type: integer
      - name: _total
        in: query
        required: false
        description: This parameter controls whether and how the FHIR Data Service
          returns the total number of search results.
        schema:
          type: string
      responses:
        '200':
          description: History retrieved
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid request
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '410':
          description: Resource was deleted
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/MedicationRequest/{id}/_history/{vid}:
    get:
      summary: Read version of MedicationRequest
      tags:
      - MedicationRequest
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: Resource ID
      - name: vid
        in: path
        required: true
        schema:
          type: string
        description: Version ID
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      responses:
        '200':
          description: MedicationRequest version read
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid request
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '410':
          description: Resource was deleted
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/MedicationDispense:
    get:
      summary: Search for MedicationDispense
      tags:
      - MedicationDispense
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _count
        in: query
        required: false
        description: With _count, the client can specify the maximum number of elements
          to be included on one page of the response. This means the FHIR Data Service
          limits the result set to this maximum specified number. If no value for
          _count is provided, the default value set is 25.
        schema:
          type: string
      - name: _offset
        in: query
        required: false
        description: This URL parameter indicates the (zero-based) offset of the first
          returned element in the collection. If no value for _offset is provided,
          the default value set is 0.
        schema:
          type: integer
      - name: _total
        in: query
        required: false
        description: This parameter controls whether and how the FHIR Data Service
          returns the total number of search results.
        schema:
          type: string
      - name: _include
        in: query
        required: false
        description: Including other resources
        schema:
          type: string
      - name: _revinclude
        in: query
        required: false
        description: Reverse include other resources
        schema:
          type: string
      - name: _id
        in: query
        required: false
        schema:
          type: string
        description: Resource.id
      - name: _lastUpdated
        in: query
        required: false
        schema:
          type: string
          format: date
        description: Resource.meta.lastUpdated
      - name: _has
        in: query
        required: false
        schema:
          type: string
        description: Return resources linked to by the given target
      - name: identifier
        in: query
        required: false
        schema:
          type: string
        description: MedicationDispense.identifier
      - name: whenhandedover
        in: query
        required: false
        schema:
          type: string
          format: date
        description: MedicationDispense.whenHandedOver
      - name: prescription
        in: query
        required: false
        schema:
          type: string
          format: uri
        description: MedicationDispense.authorizingPrescription
      - name: performer
        in: query
        required: false
        schema:
          type: string
          format: uri
        description: MedicationDispense.performer.actor
      - name: status
        in: query
        required: false
        schema:
          type: string
        description: MedicationDispense.status
      - name: medication
        in: query
        required: false
        schema:
          type: string
          format: uri
        description: MedicationDispense.medication as Reference
      - name: rx-prescription
        in: query
        required: false
        schema:
          type: string
        description: MedicationDispense.extension
      responses:
        '200':
          description: Search successful
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid query parameter(s)
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/MedicationDispense/_history:
    get:
      summary: History for all MedicationDispense
      tags:
      - MedicationDispense
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: _count
        in: query
        required: false
        description: With _count, the client can specify the maximum number of elements
          to be included on one page of the response. This means the FHIR Data Service
          limits the result set to this maximum specified number. If no value for
          _count is provided, the default value set is 25.
        schema:
          type: string
      - name: _offset
        in: query
        required: false
        description: This URL parameter indicates the (zero-based) offset of the first
          returned element in the collection. If no value for _offset is provided,
          the default value set is 0.
        schema:
          type: integer
      - name: _total
        in: query
        required: false
        description: This parameter controls whether and how the FHIR Data Service
          returns the total number of search results.
        schema:
          type: string
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      responses:
        '200':
          description: History for type retrieved
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid request
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/MedicationDispense/{id}:
    get:
      summary: Read a specific MedicationDispense
      tags:
      - MedicationDispense
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: Resource ID
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      responses:
        '200':
          description: MedicationDispense successfully read
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid request
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '410':
          description: Resource was deleted
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/MedicationDispense/{id}/_history:
    get:
      summary: History of a specific MedicationDispense
      tags:
      - MedicationDispense
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: Resource ID
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _count
        in: query
        required: false
        description: With _count, the client can specify the maximum number of elements
          to be included on one page of the response. This means the FHIR Data Service
          limits the result set to this maximum specified number. If no value for
          _count is provided, the default value set is 25.
        schema:
          type: string
      - name: _offset
        in: query
        required: false
        description: This URL parameter indicates the (zero-based) offset of the first
          returned element in the collection. If no value for _offset is provided,
          the default value set is 0.
        schema:
          type: integer
      - name: _total
        in: query
        required: false
        description: This parameter controls whether and how the FHIR Data Service
          returns the total number of search results.
        schema:
          type: string
      responses:
        '200':
          description: History retrieved
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid request
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '410':
          description: Resource was deleted
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/MedicationDispense/{id}/_history/{vid}:
    get:
      summary: Read version of MedicationDispense
      tags:
      - MedicationDispense
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: Resource ID
      - name: vid
        in: path
        required: true
        schema:
          type: string
        description: Version ID
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      responses:
        '200':
          description: MedicationDispense version read
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid request
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '410':
          description: Resource was deleted
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/MedicationStatement:
    get:
      summary: Search for MedicationStatement
      tags:
      - MedicationStatement
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _count
        in: query
        required: false
        description: With _count, the client can specify the maximum number of elements
          to be included on one page of the response. This means the FHIR Data Service
          limits the result set to this maximum specified number. If no value for
          _count is provided, the default value set is 25.
        schema:
          type: string
      - name: _offset
        in: query
        required: false
        description: This URL parameter indicates the (zero-based) offset of the first
          returned element in the collection. If no value for _offset is provided,
          the default value set is 0.
        schema:
          type: integer
      - name: _total
        in: query
        required: false
        description: This parameter controls whether and how the FHIR Data Service
          returns the total number of search results.
        schema:
          type: string
      - name: _include
        in: query
        required: false
        description: Including other resources
        schema:
          type: string
      - name: _revinclude
        in: query
        required: false
        description: Reverse include other resources
        schema:
          type: string
      - name: _id
        in: query
        required: false
        schema:
          type: string
        description: Resource.id
      - name: _lastUpdated
        in: query
        required: false
        schema:
          type: string
          format: date
        description: Resource.meta.lastUpdated
      - name: _has
        in: query
        required: false
        schema:
          type: string
        description: Return resources linked to by the given target
      - name: identifier
        in: query
        required: false
        schema:
          type: string
        description: MedicationStatement.identifier
      - name: medication
        in: query
        required: false
        schema:
          type: string
          format: uri
        description: MedicationStatement.medication as Reference
      - name: part-of
        in: query
        required: false
        schema:
          type: string
          format: uri
        description: MedicationStatement.partOf as Reference
      - name: status
        in: query
        required: false
        schema:
          type: string
        description: MedicationStatement.status
      - name: effective
        in: query
        required: false
        schema:
          type: string
          format: date
        description: MedicationStatement.effective
      - name: rx-prescription
        in: query
        required: false
        schema:
          type: string
        description: Medication.extension
      - name: derived-from
        in: query
        required: false
        schema:
          type: string
          format: uri
        description: MedicationStatement.derivedFrom as Reference
      - name: context
        in: query
        required: false
        schema:
          type: string
        description: MedicationStatement.extension:context
      - name: based-on-emp
        in: query
        required: false
        schema:
          type: string
          format: uri
        description: MedicationStatement.basedOn mit Extension:is-emp = true
      responses:
        '200':
          description: Search successful
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid query parameter(s)
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/MedicationStatement/_history:
    get:
      summary: History for all MedicationStatement
      tags:
      - MedicationStatement
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: _count
        in: query
        required: false
        description: With _count, the client can specify the maximum number of elements
          to be included on one page of the response. This means the FHIR Data Service
          limits the result set to this maximum specified number. If no value for
          _count is provided, the default value set is 25.
        schema:
          type: string
      - name: _offset
        in: query
        required: false
        description: This URL parameter indicates the (zero-based) offset of the first
          returned element in the collection. If no value for _offset is provided,
          the default value set is 0.
        schema:
          type: integer
      - name: _total
        in: query
        required: false
        description: This parameter controls whether and how the FHIR Data Service
          returns the total number of search results.
        schema:
          type: string
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      responses:
        '200':
          description: History for type retrieved
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid request
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/MedicationStatement/{id}:
    get:
      summary: Read a specific MedicationStatement
      tags:
      - MedicationStatement
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: Resource ID
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      responses:
        '200':
          description: MedicationStatement successfully read
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid request
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '410':
          description: Resource was deleted
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/MedicationStatement/{id}/_history:
    get:
      summary: History of a specific MedicationStatement
      tags:
      - MedicationStatement
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: Resource ID
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _count
        in: query
        required: false
        description: With _count, the client can specify the maximum number of elements
          to be included on one page of the response. This means the FHIR Data Service
          limits the result set to this maximum specified number. If no value for
          _count is provided, the default value set is 25.
        schema:
          type: string
      - name: _offset
        in: query
        required: false
        description: This URL parameter indicates the (zero-based) offset of the first
          returned element in the collection. If no value for _offset is provided,
          the default value set is 0.
        schema:
          type: integer
      - name: _total
        in: query
        required: false
        description: This parameter controls whether and how the FHIR Data Service
          returns the total number of search results.
        schema:
          type: string
      responses:
        '200':
          description: History retrieved
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid request
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '410':
          description: Resource was deleted
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/MedicationStatement/{id}/_history/{vid}:
    get:
      summary: Read version of MedicationStatement
      tags:
      - MedicationStatement
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: Resource ID
      - name: vid
        in: path
        required: true
        schema:
          type: string
        description: Version ID
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      responses:
        '200':
          description: MedicationStatement version read
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid request
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '410':
          description: Resource was deleted
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/Organization:
    get:
      summary: Search for Organization
      tags:
      - Organization
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _count
        in: query
        required: false
        description: With _count, the client can specify the maximum number of elements
          to be included on one page of the response. This means the FHIR Data Service
          limits the result set to this maximum specified number. If no value for
          _count is provided, the default value set is 25.
        schema:
          type: string
      - name: _offset
        in: query
        required: false
        description: This URL parameter indicates the (zero-based) offset of the first
          returned element in the collection. If no value for _offset is provided,
          the default value set is 0.
        schema:
          type: integer
      - name: _total
        in: query
        required: false
        description: This parameter controls whether and how the FHIR Data Service
          returns the total number of search results.
        schema:
          type: string
      - name: _revinclude
        in: query
        required: false
        description: Reverse include other resources
        schema:
          type: string
      - name: _id
        in: query
        required: false
        schema:
          type: string
        description: Resource.id
      - name: _lastUpdated
        in: query
        required: false
        schema:
          type: string
          format: date
        description: Resource.meta.lastUpdated
      - name: _has
        in: query
        required: false
        schema:
          type: string
        description: Return resources linked to by the given target
      - name: identifier
        in: query
        required: false
        schema:
          type: string
        description: Organization.identifier
      - name: name
        in: query
        required: false
        schema:
          type: string
        description: Organization.name | Organization.alias
      responses:
        '200':
          description: Search successful
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid query parameter(s)
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/Organization/_history:
    get:
      summary: History for all Organization
      tags:
      - Organization
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: _count
        in: query
        required: false
        description: With _count, the client can specify the maximum number of elements
          to be included on one page of the response. This means the FHIR Data Service
          limits the result set to this maximum specified number. If no value for
          _count is provided, the default value set is 25.
        schema:
          type: string
      - name: _offset
        in: query
        required: false
        description: This URL parameter indicates the (zero-based) offset of the first
          returned element in the collection. If no value for _offset is provided,
          the default value set is 0.
        schema:
          type: integer
      - name: _total
        in: query
        required: false
        description: This parameter controls whether and how the FHIR Data Service
          returns the total number of search results.
        schema:
          type: string
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      responses:
        '200':
          description: History for type retrieved
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid request
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/Organization/{id}:
    get:
      summary: Read a specific Organization
      tags:
      - Organization
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: Resource ID
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      responses:
        '200':
          description: Organization successfully read
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid request
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '410':
          description: Resource was deleted
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/Organization/{id}/_history:
    get:
      summary: History of a specific Organization
      tags:
      - Organization
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: Resource ID
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _count
        in: query
        required: false
        description: With _count, the client can specify the maximum number of elements
          to be included on one page of the response. This means the FHIR Data Service
          limits the result set to this maximum specified number. If no value for
          _count is provided, the default value set is 25.
        schema:
          type: string
      - name: _offset
        in: query
        required: false
        description: This URL parameter indicates the (zero-based) offset of the first
          returned element in the collection. If no value for _offset is provided,
          the default value set is 0.
        schema:
          type: integer
      - name: _total
        in: query
        required: false
        description: This parameter controls whether and how the FHIR Data Service
          returns the total number of search results.
        schema:
          type: string
      responses:
        '200':
          description: History retrieved
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid request
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '410':
          description: Resource was deleted
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/Organization/{id}/_history/{vid}:
    get:
      summary: Read version of Organization
      tags:
      - Organization
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: Resource ID
      - name: vid
        in: path
        required: true
        schema:
          type: string
        description: Version ID
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      responses:
        '200':
          description: Organization version read
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid request
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '410':
          description: Resource was deleted
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/Practitioner:
    get:
      summary: Search for Practitioner
      tags:
      - Practitioner
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _count
        in: query
        required: false
        description: With _count, the client can specify the maximum number of elements
          to be included on one page of the response. This means the FHIR Data Service
          limits the result set to this maximum specified number. If no value for
          _count is provided, the default value set is 25.
        schema:
          type: string
      - name: _offset
        in: query
        required: false
        description: This URL parameter indicates the (zero-based) offset of the first
          returned element in the collection. If no value for _offset is provided,
          the default value set is 0.
        schema:
          type: integer
      - name: _total
        in: query
        required: false
        description: This parameter controls whether and how the FHIR Data Service
          returns the total number of search results.
        schema:
          type: string
      - name: _revinclude
        in: query
        required: false
        description: Reverse include other resources
        schema:
          type: string
      - name: _id
        in: query
        required: false
        schema:
          type: string
        description: Resource.id
      - name: _lastUpdated
        in: query
        required: false
        schema:
          type: string
          format: date
        description: Resource.meta.lastUpdated
      - name: _has
        in: query
        required: false
        schema:
          type: string
        description: Return resources linked to by the given target
      - name: identifier
        in: query
        required: false
        schema:
          type: string
        description: Practitioner.identifier
      - name: name
        in: query
        required: false
        schema:
          type: string
        description: Practitioner.name
      responses:
        '200':
          description: Search successful
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid query parameter(s)
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/Practitioner/_history:
    get:
      summary: History for all Practitioner
      tags:
      - Practitioner
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: _count
        in: query
        required: false
        description: With _count, the client can specify the maximum number of elements
          to be included on one page of the response. This means the FHIR Data Service
          limits the result set to this maximum specified number. If no value for
          _count is provided, the default value set is 25.
        schema:
          type: string
      - name: _offset
        in: query
        required: false
        description: This URL parameter indicates the (zero-based) offset of the first
          returned element in the collection. If no value for _offset is provided,
          the default value set is 0.
        schema:
          type: integer
      - name: _total
        in: query
        required: false
        description: This parameter controls whether and how the FHIR Data Service
          returns the total number of search results.
        schema:
          type: string
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      responses:
        '200':
          description: History for type retrieved
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid request
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/Practitioner/{id}:
    get:
      summary: Read a specific Practitioner
      tags:
      - Practitioner
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: Resource ID
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      responses:
        '200':
          description: Practitioner successfully read
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid request
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '410':
          description: Resource was deleted
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/Practitioner/{id}/_history:
    get:
      summary: History of a specific Practitioner
      tags:
      - Practitioner
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: Resource ID
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _count
        in: query
        required: false
        description: With _count, the client can specify the maximum number of elements
          to be included on one page of the response. This means the FHIR Data Service
          limits the result set to this maximum specified number. If no value for
          _count is provided, the default value set is 25.
        schema:
          type: string
      - name: _offset
        in: query
        required: false
        description: This URL parameter indicates the (zero-based) offset of the first
          returned element in the collection. If no value for _offset is provided,
          the default value set is 0.
        schema:
          type: integer
      - name: _total
        in: query
        required: false
        description: This parameter controls whether and how the FHIR Data Service
          returns the total number of search results.
        schema:
          type: string
      responses:
        '200':
          description: History retrieved
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid request
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '410':
          description: Resource was deleted
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/Practitioner/{id}/_history/{vid}:
    get:
      summary: Read version of Practitioner
      tags:
      - Practitioner
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: Resource ID
      - name: vid
        in: path
        required: true
        schema:
          type: string
        description: Version ID
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      responses:
        '200':
          description: Practitioner version read
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid request
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '410':
          description: Resource was deleted
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/PractitionerRole:
    get:
      summary: Search for PractitionerRole
      tags:
      - PractitionerRole
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _count
        in: query
        required: false
        description: With _count, the client can specify the maximum number of elements
          to be included on one page of the response. This means the FHIR Data Service
          limits the result set to this maximum specified number. If no value for
          _count is provided, the default value set is 25.
        schema:
          type: string
      - name: _offset
        in: query
        required: false
        description: This URL parameter indicates the (zero-based) offset of the first
          returned element in the collection. If no value for _offset is provided,
          the default value set is 0.
        schema:
          type: integer
      - name: _total
        in: query
        required: false
        description: This parameter controls whether and how the FHIR Data Service
          returns the total number of search results.
        schema:
          type: string
      - name: _include
        in: query
        required: false
        description: Including other resources
        schema:
          type: string
      - name: _revinclude
        in: query
        required: false
        description: Reverse include other resources
        schema:
          type: string
      - name: _id
        in: query
        required: false
        schema:
          type: string
        description: Resource.id
      - name: _lastUpdated
        in: query
        required: false
        schema:
          type: string
          format: date
        description: Resource.meta.lastUpdated
      - name: _has
        in: query
        required: false
        schema:
          type: string
        description: Return resources linked to by the given target
      - name: identifier
        in: query
        required: false
        schema:
          type: string
        description: PractitionerRole.identifier
      - name: practitioner
        in: query
        required: false
        schema:
          type: string
          format: uri
        description: PractitionerRole.practitioner
      - name: organization
        in: query
        required: false
        schema:
          type: string
          format: uri
        description: PractitionerRole.organization
      responses:
        '200':
          description: Search successful
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid query parameter(s)
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/PractitionerRole/_history:
    get:
      summary: History for all PractitionerRole
      tags:
      - PractitionerRole
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: _count
        in: query
        required: false
        description: With _count, the client can specify the maximum number of elements
          to be included on one page of the response. This means the FHIR Data Service
          limits the result set to this maximum specified number. If no value for
          _count is provided, the default value set is 25.
        schema:
          type: string
      - name: _offset
        in: query
        required: false
        description: This URL parameter indicates the (zero-based) offset of the first
          returned element in the collection. If no value for _offset is provided,
          the default value set is 0.
        schema:
          type: integer
      - name: _total
        in: query
        required: false
        description: This parameter controls whether and how the FHIR Data Service
          returns the total number of search results.
        schema:
          type: string
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      responses:
        '200':
          description: History for type retrieved
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid request
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/PractitionerRole/{id}:
    get:
      summary: Read a specific PractitionerRole
      tags:
      - PractitionerRole
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: Resource ID
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      responses:
        '200':
          description: PractitionerRole successfully read
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid request
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '410':
          description: Resource was deleted
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/PractitionerRole/{id}/_history:
    get:
      summary: History of a specific PractitionerRole
      tags:
      - PractitionerRole
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: Resource ID
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _count
        in: query
        required: false
        description: With _count, the client can specify the maximum number of elements
          to be included on one page of the response. This means the FHIR Data Service
          limits the result set to this maximum specified number. If no value for
          _count is provided, the default value set is 25.
        schema:
          type: string
      - name: _offset
        in: query
        required: false
        description: This URL parameter indicates the (zero-based) offset of the first
          returned element in the collection. If no value for _offset is provided,
          the default value set is 0.
        schema:
          type: integer
      - name: _total
        in: query
        required: false
        description: This parameter controls whether and how the FHIR Data Service
          returns the total number of search results.
        schema:
          type: string
      responses:
        '200':
          description: History retrieved
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid request
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '410':
          description: Resource was deleted
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/PractitionerRole/{id}/_history/{vid}:
    get:
      summary: Read version of PractitionerRole
      tags:
      - PractitionerRole
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: Resource ID
      - name: vid
        in: path
        required: true
        schema:
          type: string
        description: Version ID
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      responses:
        '200':
          description: PractitionerRole version read
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid request
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '410':
          description: Resource was deleted
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/Provenance:
    get:
      summary: Search for Provenance
      tags:
      - Provenance
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _count
        in: query
        required: false
        description: With _count, the client can specify the maximum number of elements
          to be included on one page of the response. This means the FHIR Data Service
          limits the result set to this maximum specified number. If no value for
          _count is provided, the default value set is 25.
        schema:
          type: string
      - name: _offset
        in: query
        required: false
        description: This URL parameter indicates the (zero-based) offset of the first
          returned element in the collection. If no value for _offset is provided,
          the default value set is 0.
        schema:
          type: integer
      - name: _total
        in: query
        required: false
        description: This parameter controls whether and how the FHIR Data Service
          returns the total number of search results.
        schema:
          type: string
      - name: _include
        in: query
        required: false
        description: Including other resources
        schema:
          type: string
      - name: _id
        in: query
        required: false
        schema:
          type: string
        description: Resource.id
      - name: _lastUpdated
        in: query
        required: false
        schema:
          type: string
          format: date
        description: Resource.meta.lastUpdated
      - name: _has
        in: query
        required: false
        schema:
          type: string
        description: Return resources linked to by the given target
      - name: identifier
        in: query
        required: false
        schema:
          type: string
        description: MedicationStatement.identifier
      - name: agent
        in: query
        required: false
        schema:
          type: string
          format: uri
        description: Who participated
      - name: target
        in: query
        required: false
        schema:
          type: string
          format: uri
        description: Target References - usually version specific
      - name: recorded
        in: query
        required: false
        schema:
          type: string
          format: date
        description: When the activity was recorded / updated
      - name: when
        in: query
        required: false
        schema:
          type: string
          format: date
        description: Provenance.occurred as dateTime
      - name: is-emp-chronology
        in: query
        required: false
        schema:
          type: string
        description: Provenance.extension:isEMPChronology
      responses:
        '200':
          description: Search successful
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid query parameter(s)
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/Provenance/{id}:
    get:
      summary: Read a specific Provenance
      tags:
      - Provenance
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: Resource ID
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      responses:
        '200':
          description: Provenance successfully read
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid request
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '410':
          description: Resource was deleted
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/$provide-prescription-erp:
    post:
      summary: System-level FHIR Operation $provide-prescription-erp
      tags:
      - System-level FHIR Operation
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      responses:
        '200':
          description: Successful operation
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid request
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/$cancel-prescription-erp:
    post:
      summary: System-level FHIR Operation $cancel-prescription-erp
      tags:
      - System-level FHIR Operation
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      responses:
        '200':
          description: Successful operation
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid request
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/$provide-dispensation-erp:
    post:
      summary: System-level FHIR Operation $provide-dispensation-erp
      tags:
      - System-level FHIR Operation
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      responses:
        '200':
          description: Successful operation
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid request
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/$cancel-dispensation-erp:
    post:
      summary: System-level FHIR Operation $cancel-dispensation-erp
      tags:
      - System-level FHIR Operation
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      responses:
        '200':
          description: Successful operation
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid request
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/$medication-list:
    get:
      summary: System-level FHIR Operation $medication-list
      tags:
      - System-level FHIR Operation
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: date
        in: query
        required: false
        description: Limit the search to this date. Can specify upper or lower limits
          and periods by providing an upper and a lower limit.
        schema:
          type: string
      - name: _count
        in: query
        required: false
        description: Limit the result bundle to this many entries. To get more entries
          request the next page.
        schema:
          type: string
      - name: _offset
        in: query
        required: false
        description: Defines the offset of the first entry in the collection.
        schema:
          type: string
      responses:
        '200':
          description: Successful operation
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid request
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/$medication-plan:
    get:
      summary: System-level FHIR Operation $medication-plan
      tags:
      - System-level FHIR Operation
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: provenance
        in: query
        required: false
        description: Die UUID der Provenance-Instanz, die eine bestimmte Version des
          elektronischen Medikationsplans (eMP) identifiziert. Diese Provenance-Instanz
          repräsentiert den Zustand zu einem bestimmten Zeitpunkt und bündelt die
          zu diesem Zeitpunkt aktiven eMP-Elemente. Wird kein provenance-Parameter
          angegeben, liefert die Operation den aktuellsten bekannten Zustand des eMP
          zurück.
        schema:
          type: string
      responses:
        '200':
          description: Successful operation
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Invalid request
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/$medication-plan-log:
    get:
      summary: System-level FHIR Operation $medication-plan-log
      tags:
      - System-level FHIR Operation
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: _count
        in: query
        required: false
        description: Limit the result bundle to this many entries. To get more entries
          request the next page.
        schema:
          type: integer
      - name: _offset
        in: query
        required: false
        description: Defines the offset of the first entry in the collection.
        schema:
          type: integer
      responses:
        '200':
          description: Successful operation
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/$add-emp-entry:
    post:
      summary: System-level FHIR Operation $add-emp-entry
      tags:
      - System-level FHIR Operation
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: X-Requesting-Organization
        in: header
        required: true
        description: Base64 encoded FHIR Organization resource in JSON format used
          to identify the originator of the request
        schema:
          type: string
          format: base64(fhir+json:Organization)
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      responses:
        '200':
          description: Successful operation
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '400':
          description: Parameter with wrong status
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/$update-emp-entry:
    post:
      summary: System-level FHIR Operation $update-emp-entry
      tags:
      - System-level FHIR Operation
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: X-Requesting-Organization
        in: header
        required: true
        description: Base64 encoded FHIR Organization resource in JSON format used
          to identify the originator of the request
        schema:
          type: string
          format: base64(fhir+json:Organization)
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      responses:
        '200':
          description: Successful operation
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '400':
          description: Parameter with wrong status
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/$batch-emp:
    post:
      summary: System-level FHIR Operation $batch-emp
      tags:
      - System-level FHIR Operation
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: X-Requesting-Organization
        in: header
        required: true
        description: Base64 encoded FHIR Organization resource in JSON format used
          to identify the originator of the request
        schema:
          type: string
          format: base64(fhir+json:Organization)
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      responses:
        '200':
          description: Successful operation
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '400':
          description: Parameter with wrong status
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/$emp-commit:
    post:
      summary: System-level FHIR Operation $emp-commit
      tags:
      - System-level FHIR Operation
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: X-Requesting-Organization
        in: header
        required: true
        description: Base64 encoded FHIR Organization resource in JSON format used
          to identify the originator of the request
        schema:
          type: string
          format: base64(fhir+json:Organization)
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      responses:
        '200':
          description: Successful operation
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '405':
          description: The operation can only be executed within a batch context
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/MedicationStatement/$add-eml-entry:
    post:
      summary: Type-level FHIR Operation $add-eml-entry
      tags:
      - MedicationStatement
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: X-Requesting-Organization
        in: header
        required: true
        description: Base64 encoded FHIR Organization resource in JSON format used
          to identify the originator of the request
        schema:
          type: string
          format: base64(fhir+json:Organization)
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      responses:
        '200':
          description: Successful operation
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '400':
          description: Parameter with wrong status
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/MedicationStatement/{id}/$cancel-eml-entry:
    post:
      summary: Instance-level FHIR Operation $cancel-eml-entry
      tags:
      - MedicationStatement
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: X-Requesting-Organization
        in: header
        required: true
        description: Base64 encoded FHIR Organization resource in JSON format used
          to identify the originator of the request
        schema:
          type: string
          format: base64(fhir+json:Organization)
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: Resource ID
      responses:
        '200':
          description: Successful operation
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '400':
          description: Profile mismatch in header Organization
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '405':
          description: Operation %s not allowed for resource %s
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/MedicationStatement/{id}/$link-emp:
    post:
      summary: Instance-level FHIR Operation $link-emp
      tags:
      - MedicationStatement
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: X-Requesting-Organization
        in: header
        required: true
        description: Base64 encoded FHIR Organization resource in JSON format used
          to identify the originator of the request
        schema:
          type: string
          format: base64(fhir+json:Organization)
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: Resource ID
      responses:
        '200':
          description: Successful operation
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '400':
          description: MedicationStatement could not be linked to an eMP-Entry successfully
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/api/v1/fhir/MedicationStatement/{id}/$unlink-emp:
    post:
      summary: Instance-level FHIR Operation $unlink-emp
      tags:
      - MedicationStatement
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive the FHIR response.
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: X-Requesting-Organization
        in: header
        required: true
        description: Base64 encoded FHIR Organization resource in JSON format used
          to identify the originator of the request
        schema:
          type: string
          format: base64(fhir+json:Organization)
      - name: _format
        in: query
        required: false
        description: 'Specify alternative response formats by their MIME-types (when
          a client is unable access Accept: header)'
        schema:
          type: string
          enum:
          - application/fhir+json
          - application/fhir+xml
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: Resource ID
      responses:
        '200':
          description: Successful operation
          content:
            application/fhir+json:
              schema:
                type: object
            application/fhir+xml:
              schema:
                type: object
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '400':
          description: MedicationStatement could not be unlinked from an eMP-Entry
            successfully
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '405':
          description: Operation %s not allowed for resource %s
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/render/v1/eml/xhtml:
    get:
      operationId: renderMedicationListToHTML_MedicationSvc
      tags:
      - Render eML
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive.
        schema:
          type: string
          enum:
          - text/html
      responses:
        '200':
          description: OK
          content:
            text/html:
              schema:
                type: string
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '400':
          description: Unknown or invalid search parameter(s)
          content:
            application/json:
              schema:
                type: object
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/render/v1/eml/pdf:
    get:
      operationId: renderMedicationListToPDF_MedicationSvc
      tags:
      - Render eML
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive.
        schema:
          type: string
          enum:
          - application/pdf
      responses:
        '200':
          description: OK
          content:
            application/pdf:
              schema:
                type: string
                format: binary
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '400':
          description: Unknown or invalid search parameter(s)
          content:
            application/json:
              schema:
                type: object
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
  /epa/medication/render/v1/emp/pdf:
    get:
      operationId: renderMedicationPlanToPDF_MedicationSvc
      tags:
      - Render eMP
      parameters:
      - name: X-Request-ID
        in: header
        required: false
        description: UUID of the request message
        schema:
          type: string
          format: uuid
      - name: x-insurantid
        in: header
        required: true
        description: Health Record Identifier
        schema:
          type: string
          pattern: ^[A-Z]{1}\d{9}$
      - name: x-useragent
        in: header
        required: true
        description: user agent information
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{20}\/[a-zA-Z0-9\-\.]{1,15}$
      - name: Accept
        in: header
        required: false
        description: The Accept header indicates the format in which the client wishes
          to receive.
        schema:
          type: string
          enum:
          - application/pdf
      responses:
        '200':
          description: OK
          content:
            application/pdf:
              schema:
                type: string
                format: binary
        '404':
          description: Health record is in state UNKNOWN or INITIALIZED
        '403':
          description: Device registration does not exist (if requestor role is oid_versicherter
            only)
        '409':
          description: Health record is in state SUSPENDED or MAINTENANCE
        '500':
          description: Any other error
        '423':
          description: If the insurant objected to the medication process or objected
            to the submission of prescription and dispensation data into the ePA system,
            the Medication Service is locked.
components:
  responses: {}
  headers: {}
servers:
- url: http://epa4all
