PackagesCanonicalsLogsProblems
    Packages
    de.gematik.tiflow.erezept@2.0.0
    https://gematik.de/fhir/tiflow-erezept/StructureDefinition/GEM-ERPEU-PR-PAR-EU-GET-Prescription-Input
description: This profile defines the parameters for receiving dispense information for a prescription that was redeemed in the EU
package_name: de.gematik.tiflow.erezept
derivation: constraint
name: GEM_ERPEU_PR_PAR_GET_Prescription_Input
type: Parameters
elements:
  parameter:
    mustSupport: true
    index: 0
    slicing:
      rules: closed
      discriminator:
      - {path: name, type: pattern}
      min: 1
      max: 1
      slices:
        requestData:
          match: {name: requestData}
          schema:
            constraint:
              workflow-parameters-get-prescription-eu-1: {human: Prescription IDs must be present if the request type is 'e-prescriptions-retrieval', source: 'https://gematik.de/fhir/tiflow-erezept/StructureDefinition/GEM-ERPEU-PR-PAR-EU-GET-Prescription-Input', severity: error, expression: part.where(name = 'requesttype').value.code = 'e-prescriptions-retrieval' implies part.where(name = 'prescription-id').exists()}
            mustSupport: true
            _required: true
            index: 1
            elements:
              name:
                mustSupport: true
                pattern: {type: String, value: requestData}
                index: 2
              value:
                choices: []
                index: 4
              resource: {index: 5}
              part:
                mustSupport: true
                array: true
                min: 8
                index: 6
                slicing:
                  rules: closed
                  discriminator:
                  - {path: name, type: pattern}
                  min: 8
                  slices:
                    accessCode:
                      match: {name: accessCode}
                      schema:
                        type: BackboneElement
                        mustSupport: true
                        _required: true
                        index: 22
                        elements:
                          name:
                            mustSupport: true
                            pattern: {type: String, value: accessCode}
                            index: 23
                          value:
                            choices: [valueIdentifier]
                            index: 25
                          valueIdentifier: {type: Identifier, choiceOf: value, index: 26}
                          resource: {index: 27}
                          part: {index: 28}
                        required: [valueIdentifier, value]
                    kvnr:
                      match: {name: kvnr}
                      schema:
                        type: BackboneElement
                        mustSupport: true
                        _required: true
                        index: 15
                        elements:
                          name:
                            mustSupport: true
                            pattern: {type: String, value: kvnr}
                            index: 16
                          value:
                            choices: [valueIdentifier]
                            index: 18
                          valueIdentifier: {type: Identifier, choiceOf: value, index: 19}
                          resource: {index: 20}
                          part: {index: 21}
                        required: [valueIdentifier, value]
                    practitionerRole:
                      match: {name: practitionerRole}
                      schema:
                        type: BackboneElement
                        mustSupport: true
                        _required: true
                        index: 51
                        elements:
                          name:
                            mustSupport: true
                            pattern: {type: String, value: practitionerRole}
                            index: 52
                          value:
                            choices: [valueCoding]
                            index: 54
                          valueCoding: {type: Coding, choiceOf: value, index: 55}
                          value[x]:
                            elements:
                              system: {mustSupport: true, index: 56}
                            required: [system]
                          resource: {index: 57}
                          part: {index: 58}
                        required: [valueCoding, value]
                    prescription-id:
                      match: {name: prescription-id}
                      schema:
                        type: BackboneElement
                        mustSupport: true
                        array: true
                        index: 37
                        elements:
                          name:
                            mustSupport: true
                            pattern: {type: String, value: prescription-id}
                            index: 38
                          value:
                            choices: [valueIdentifier]
                            index: 40
                          valueIdentifier: {type: Identifier, choiceOf: value, index: 41}
                          resource: {index: 42}
                          part: {index: 43}
                        required: [valueIdentifier, value]
                    practitionerName:
                      match: {name: practitionerName}
                      schema:
                        type: BackboneElement
                        mustSupport: true
                        _required: true
                        index: 44
                        elements:
                          name:
                            mustSupport: true
                            pattern: {type: String, value: practitionerName}
                            index: 45
                          value:
                            choices: [valueString]
                            index: 47
                          valueString: {type: string, choiceOf: value, index: 48}
                          resource: {index: 49}
                          part: {index: 50}
                        required: [valueString, value]
                    healthcare-facility-type:
                      match: {name: healthcare-facility-type}
                      schema:
                        type: BackboneElement
                        mustSupport: true
                        _required: true
                        index: 66
                        elements:
                          name:
                            mustSupport: true
                            pattern: {type: String, value: healthcare-facility-type}
                            index: 67
                          value:
                            choices: [valueCoding]
                            index: 69
                          valueCoding: {type: Coding, choiceOf: value, index: 70}
                          value[x]:
                            elements:
                              system: {mustSupport: true, index: 71}
                            required: [system]
                          resource: {index: 72}
                          part: {index: 73}
                        required: [valueCoding, value]
                    requesttype:
                      match: {name: requesttype}
                      schema:
                        type: BackboneElement
                        mustSupport: true
                        _required: true
                        index: 7
                        elements:
                          name:
                            mustSupport: true
                            pattern: {type: String, value: requesttype}
                            index: 8
                          value:
                            choices: [valueCoding]
                            index: 10
                          valueCoding: {type: Coding, choiceOf: value, index: 11}
                          value[x]:
                            elements:
                              system: {mustSupport: true, index: 12}
                            required: [system]
                          resource: {index: 13}
                          part: {index: 14}
                        required: [valueCoding, value]
                    pointOfCare:
                      match: {name: pointOfCare}
                      schema:
                        type: BackboneElement
                        mustSupport: true
                        _required: true
                        index: 59
                        elements:
                          name:
                            mustSupport: true
                            pattern: {type: String, value: pointOfCare}
                            index: 60
                          value:
                            choices: [valueString]
                            index: 62
                          valueString: {type: string, choiceOf: value, index: 63}
                          resource: {index: 64}
                          part: {index: 65}
                        required: [valueString, value]
                    countryCode:
                      match: {name: countryCode}
                      schema:
                        type: BackboneElement
                        mustSupport: true
                        _required: true
                        index: 29
                        elements:
                          name:
                            mustSupport: true
                            pattern: {type: String, value: countryCode}
                            index: 30
                          value:
                            choices: [valueCoding]
                            index: 32
                          valueCoding: {type: Coding, choiceOf: value, index: 33}
                          value[x]:
                            elements:
                              system:
                                pattern: {type: Uri, value: 'urn:iso:std:iso:3166'}
                                index: 34
                            required: [system]
                          resource: {index: 35}
                          part: {index: 36}
                        required: [valueCoding, value]
package_version: 2.0.0
class: profile
kind: resource
url: https://gematik.de/fhir/tiflow-erezept/StructureDefinition/GEM-ERPEU-PR-PAR-EU-GET-Prescription-Input
base: http://hl7.org/fhir/StructureDefinition/Parameters
version: 2.0.0
required: [parameter]