PackagesCanonicalsLogsProblems
    Packages
    de.gematik.epa.medication@1.3.0
    https://gematik.de/fhir/epa-medication/StructureDefinition/epa-batch-emp-request-bundle
description: Request-Bundle für die Batch-Operation zur Verarbeitung von eMP-Einträgen.\nErlaubt sind ausschließlich FHIR-Operationen (POST) für den eMP. $emp-commit MUSS genau einmal\nvorkommen. Es sind keine direkten Ressourcen-CRUDs zulässig.
package_name: de.gematik.epa.medication
derivation: constraint
name: EPABatchEmpRequestBundle
type: Bundle
elements:
  type:
    mustSupport: true
    pattern: {type: Code, value: transaction}
    index: 0
  link: {index: 1}
  entry:
    mustSupport: true
    index: 2
    slicing:
      rules: closed
      discriminator:
      - {path: request.url, type: value}
      min: 1
      slices:
        addEmp:
          match:
            request: {url: $add-emp-entry}
          schema:
            mustSupport: true
            array: true
            index: 3
            elements:
              fullUrl: {mustSupport: true, index: 4}
              resource: {type: Parameters, mustSupport: true, index: 5}
              search: {index: 6}
              request:
                mustSupport: true
                index: 7
                elements:
                  method:
                    pattern: {type: Code, value: POST}
                    index: 8
                  url:
                    pattern: {type: Uri, value: $add-emp-entry}
                    index: 9
                  ifNoneMatch: {index: 10}
                  ifModifiedSince: {index: 11}
                  ifMatch: {index: 12}
                  ifNoneExist: {index: 13}
              response: {index: 14}
            required: [resource]
        updateEmp:
          match:
            request: {url: $update-emp-entry}
          schema:
            mustSupport: true
            array: true
            index: 15
            elements:
              fullUrl: {mustSupport: true, index: 16}
              resource: {type: Parameters, mustSupport: true, index: 17}
              search: {index: 18}
              request:
                mustSupport: true
                index: 19
                elements:
                  method:
                    pattern: {type: Code, value: POST}
                    index: 20
                  url:
                    pattern: {type: Uri, value: $update-emp-entry}
                    index: 21
                  ifNoneMatch: {index: 22}
                  ifModifiedSince: {index: 23}
                  ifMatch: {index: 24}
                  ifNoneExist: {index: 25}
              response: {index: 26}
            required: [resource]
        commit:
          match:
            request: {url: $emp-commit}
          schema:
            mustSupport: true
            _required: true
            index: 27
            elements:
              fullUrl: {mustSupport: true, index: 28}
              resource: {type: Parameters, mustSupport: true, index: 29}
              search: {index: 30}
              request:
                mustSupport: true
                index: 31
                elements:
                  method:
                    pattern: {type: Code, value: POST}
                    index: 32
                  url:
                    pattern: {type: Uri, value: $emp-commit}
                    index: 33
                  ifNoneMatch: {index: 34}
                  ifModifiedSince: {index: 35}
                  ifMatch: {index: 36}
                  ifNoneExist: {index: 37}
              response: {index: 38}
            required: [resource]
package_version: 1.3.0
class: profile
kind: resource
url: https://gematik.de/fhir/epa-medication/StructureDefinition/epa-batch-emp-request-bundle
base: http://hl7.org/fhir/StructureDefinition/Bundle
version: 1.3.0
required: [entry]