PackagesCanonicalsLogsProblems
    Packages
    de.gematik.tiflow.diga@2.0.0
    https://gematik.de/fhir/tiflow-diga/StructureDefinition/tiflow-diga-task
description: Task für die Verwaltung des E-Rezept-Workflows für digitale Gesundheitsanwendungen
package_name: de.gematik.tiflow.diga
derivation: constraint
name: TIFlowDiGATask
type: Task
elements:
  extension:
    index: 0
    slicing:
      rules: closed
      ordered: false
      description: Erweiterungen für die Aufgabe, die durch url unterschieden werden.
      discriminator:
      - {path: url, type: value}
      min: 1
      slices:
        acceptDate:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_AcceptDate', index: 1}
          min: 0
          max: 1
        expiryDate:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_ExpiryDate', index: 2}
          min: 0
          max: 1
        flowType:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_PrescriptionType', index: 3}
          min: 1
          max: 1
  identifier:
    index: 4
    slicing:
      slices:
        PrescriptionID:
          match: {}
          schema: {short: E-Rezept-ID, type: Identifier, mustSupport: true, _required: true, index: 5}
          min: 1
          max: 1
  for:
    elements:
      identifier: {type: Identifier, index: 6}
  performerType:
    elements:
      coding:
        binding: {strength: required, valueSet: 'https://gematik.de/fhir/tiflow-diga/ValueSet/tiflow-diga-task-organizations-vs'}
        index: 7
    required: [coding]
  input:
    short: Input Bundle
    index: 8
    slicing:
      rules: closed
      discriminator:
      - {path: type.coding.code, type: value}
      min: null
      slices:
        ePrescription:
          match:
            type:
              coding: {code: '1'}
          schema:
            short: QES-Binary der DiGA Verordnung
            mustSupport: true
            index: 9
            elements:
              type:
                elements:
                  coding:
                    binding: {strength: required, valueSet: 'https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_VS_DocumentType'}
                    index: 10
                    elements:
                      system: {index: 11}
                      code:
                        pattern: {type: Code, value: '1'}
                        index: 12
                    required: [system, code]
                required: [coding]
              value:
                choices: [valueReference]
                index: 14
              valueReference:
                type: Reference
                choiceOf: value
                refers: ['https://gematik.de/fhir/tiflow-diga/StructureDefinition/tiflow-diga-binary']
                index: 15
        patientReceipt:
          match:
            type:
              coding: {code: '2'}
          schema:
            short: JSON-Bundle der Verordnung, das von einem FdV konsumiert werden soll
            mustSupport: true
            index: 16
            elements:
              type:
                elements:
                  coding:
                    binding: {strength: required, valueSet: 'https://gematik.de/fhir/erp/CodeSystem/GEM_ERP_VS_DocumentType'}
                    index: 17
                    elements:
                      system: {index: 18}
                      code:
                        pattern: {type: Code, value: '2'}
                        index: 19
                    required: [system, code]
                required: [coding]
              value:
                choices: [valueReference]
                index: 21
              valueReference:
                type: Reference
                choiceOf: value
                refers: ['http://hl7.org/fhir/StructureDefinition/Bundle']
                index: 22
package_version: 2.0.0
extensions:
  acceptDate: {url: 'https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_AcceptDate', min: 0, max: 1, type: Extension, mustSupport: true, index: 1}
  expiryDate: {url: 'https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_ExpiryDate', min: 0, max: 1, type: Extension, mustSupport: true, index: 2}
  flowType: {url: 'https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_EX_PrescriptionType', min: 1, max: 1, type: Extension, mustSupport: true, index: 3}
class: profile
kind: resource
url: https://gematik.de/fhir/tiflow-diga/StructureDefinition/tiflow-diga-task
base: https://gematik.de/fhir/tiflow/StructureDefinition/tiflow-order-task
version: 2.0.0
required: [extension, identifier]