PackagesCanonicalsLogsProblems
    Packages
    de.gematik.erezept@workflow.r4-1.4.0
    https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_PAR_DispenseOperation_Output
description: This profile defines the parameters for dispensing a medication from AVS to the E-Rezept-Fachdienst. This can be used for the $dispense-operation.
package_name: de.gematik.erezept
derivation: constraint
name: GEM_ERP_PR_PAR_DispenseOperation_Output
type: Parameters
elements:
  meta:
    index: 0
    elements:
      profile:
        pattern: {type: Canonical, value: 'https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_PAR_DispenseOperation_Output|1.4'}
        index: 1
    required: [profile]
  parameter:
    index: 2
    slicing:
      rules: closed
      discriminator:
      - {path: name, type: pattern}
      min: 1
      slices:
        rxDispensation:
          match: {name: rxDispensation}
          schema:
            array: true
            min: 1
            _required: true
            index: 3
            elements:
              name:
                mustSupport: true
                pattern: {type: String, value: rxDispensation}
                index: 4
              value:
                choices: []
                index: 6
              resource: {index: 7}
              part:
                mustSupport: true
                index: 8
                slicing:
                  rules: closed
                  discriminator:
                  - {path: name, type: pattern}
                  min: 1
                  slices:
                    medicationDispense:
                      match: {name: medicationDispense}
                      schema:
                        type: BackboneElement
                        index: 9
                        elements:
                          name:
                            mustSupport: true
                            pattern: {type: String, value: medicationDispense}
                            index: 10
                          value:
                            choices: []
                            index: 12
                          resource: {type: MedicationDispense, index: 13}
                          part: {index: 14}
                        required: [resource]
                    medication:
                      match: {name: medication}
                      schema:
                        type: BackboneElement
                        index: 15
                        elements:
                          name:
                            mustSupport: true
                            pattern: {type: String, value: medication}
                            index: 16
                          value:
                            choices: []
                            index: 18
                          resource: {type: Medication, index: 19}
                          part: {index: 20}
                        required: [resource]
                    operationOutcome:
                      match: {name: operationOutcome}
                      schema:
                        type: BackboneElement
                        index: 21
                        elements:
                          name:
                            mustSupport: true
                            pattern: {type: String, value: operationOutcome}
                            index: 22
                          value:
                            choices: []
                            index: 24
                          resource: {type: OperationOutcome, index: 25}
                          part: {index: 26}
                        required: [resource]
            required: [part]
package_version: workflow.r4-1.4.0
class: profile
kind: resource
url: https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_PAR_DispenseOperation_Output
base: http://hl7.org/fhir/StructureDefinition/Parameters
version: '1.4'
required: [parameter, meta]