PackagesCanonicalsLogsProblems
    Packages
    de.gematik.epa.medication@1.2.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:
  meta:
    mustSupport: true
    index: 0
    elements:
      versionId: {mustSupport: true, index: 1}
      lastUpdated: {mustSupport: true, index: 2}
  type:
    mustSupport: true
    pattern: {type: Code, value: transaction}
    index: 3
  link: {index: 4}
  entry:
    mustSupport: true
    index: 5
    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: 6
            elements:
              fullUrl: {mustSupport: true, index: 7}
              resource: {type: Parameters, mustSupport: true, index: 8}
              search: {index: 9}
              request:
                mustSupport: true
                index: 10
                elements:
                  method:
                    pattern: {type: Code, value: POST}
                    index: 11
                  url:
                    pattern: {type: Uri, value: $add-emp-entry}
                    index: 12
                  ifNoneMatch: {index: 13}
                  ifModifiedSince: {index: 14}
                  ifMatch: {index: 15}
                  ifNoneExist: {index: 16}
              response: {index: 17}
            required: [resource]
        updateEmp:
          match:
            request: {url: $update-emp-entry}
          schema:
            mustSupport: true
            array: true
            index: 18
            elements:
              fullUrl: {mustSupport: true, index: 19}
              resource: {type: Parameters, mustSupport: true, index: 20}
              search: {index: 21}
              request:
                mustSupport: true
                index: 22
                elements:
                  method:
                    pattern: {type: Code, value: POST}
                    index: 23
                  url:
                    pattern: {type: Uri, value: $update-emp-entry}
                    index: 24
                  ifNoneMatch: {index: 25}
                  ifModifiedSince: {index: 26}
                  ifMatch: {index: 27}
                  ifNoneExist: {index: 28}
              response: {index: 29}
            required: [resource]
        commit:
          match:
            request: {url: $emp-commit}
          schema:
            mustSupport: true
            _required: true
            index: 30
            elements:
              fullUrl: {mustSupport: true, index: 31}
              resource: {type: Parameters, mustSupport: true, index: 32}
              search: {index: 33}
              request:
                mustSupport: true
                index: 34
                elements:
                  method:
                    pattern: {type: Code, value: POST}
                    index: 35
                  url:
                    pattern: {type: Uri, value: $emp-commit}
                    index: 36
                  ifNoneMatch: {index: 37}
                  ifModifiedSince: {index: 38}
                  ifMatch: {index: 39}
                  ifNoneExist: {index: 40}
              response: {index: 41}
            required: [resource]
package_version: 1.2.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.2.0
required: [entry]