PackagesCanonicalsLogsProblems
    Packages
    kbv.ita.erp@1.1.0-PreRelease
    https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_PracticeSupply
description: null
package_name: kbv.ita.erp
derivation: constraint
name: KBV_PR_ERP_PracticeSupply
type: SupplyRequest
elements:
  category: {index: 34}
  supplier: {index: 61}
  item[x]:
    elements:
      reference: {mustSupport: true, index: 42}
      type: {index: 43}
      identifier: {index: 44}
      display: {index: 45}
    required: [reference]
  meta:
    mustSupport: true
    index: 1
    elements:
      versionId: {index: 2}
      lastUpdated: {index: 3}
      source: {index: 4}
      profile:
        mustSupport: true
        pattern: {type: Canonical, value: 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_PracticeSupply|1.1.0'}
        index: 5
      security: {index: 6}
      tag: {index: 7}
    required: [profile]
  deliverTo: {index: 65}
  itemReference:
    type: Reference
    mustSupport: true
    choiceOf: item
    refers: ['https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Compounding|1.1.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_FreeText|1.1.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient|1.1.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0']
    index: 41
    slicing:
      slices:
        itemReference:
          match: {}
          schema:
            type: Reference
            mustSupport: true
            choiceOf: item
            refers: ['https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Compounding|1.1.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_FreeText|1.1.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient|1.1.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN|1.1.0']
            _required: true
            index: 41
          min: 1
  item:
    mustSupport: true
    choices: [itemReference]
    index: 40
    slicing:
      slices:
        itemReference:
          match: {}
          schema:
            mustSupport: true
            choices: [itemReference]
            _required: true
            index: 40
          min: 1
  implicitRules: {index: 8}
  reasonCode: {index: 62}
  authoredOn: {short: Ausstellungsdatum, mustSupport: true, index: 55}
  deliverFrom: {index: 64}
  extension:
    index: 12
    slicing:
      rules: closed
      discriminator:
      - {path: url, type: value}
      min: 1
      slices:
        Kostentraeger:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_PracticeSupply_Payor
            index: 13
            extensions:
              IK:
                url: null
                mustSupport: true
                index: 15
                elements:
                  value:
                    choices: []
                    index: 17
                    slicing:
                      slices:
                        valueIdentifier:
                          match: {}
                          schema:
                            choices: []
                            index: 17
                  value[x]:
                    elements:
                      system: {mustSupport: true, index: 18}
                      value:
                        constraint:
                          -erp-laengeIK: {human: Die IK-Nummer muss 9-stellig sein., source: 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_PracticeSupply', severity: error, expression: length()=9}
                        mustSupport: true
                        index: 19
              Name:
                url: null
                mustSupport: true
                _required: true
                index: 20
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 22
                    slicing:
                      slices:
                        valueString:
                          match: {}
                          schema:
                            mustSupport: true
                            choices: []
                            index: 24
              Kostentraegertyp:
                url: null
                mustSupport: true
                _required: true
                index: 25
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 27
                    slicing:
                      slices:
                        valueCoding:
                          match: {}
                          schema:
                            mustSupport: true
                            choices: []
                            index: 29
                  value[x]:
                    elements:
                      system: {mustSupport: true, index: 30}
                      code: {mustSupport: true, index: 31}
            elements:
              extension:
                array: true
                min: 2
                index: 14
                slicing:
                  rules: closed
                  discriminator:
                  - {path: url, type: value}
                  min: 2
                  slices:
                    IK:
                      match: {url: null}
                      schema:
                        mustSupport: true
                        index: 15
                        elements:
                          value:
                            choices: []
                            index: 17
                            slicing:
                              slices:
                                valueIdentifier:
                                  match: {}
                                  schema:
                                    choices: []
                                    index: 17
                          value[x]:
                            elements:
                              system: {mustSupport: true, index: 18}
                              value:
                                constraint:
                                  -erp-laengeIK: {human: Die IK-Nummer muss 9-stellig sein., source: 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_PracticeSupply', severity: error, expression: length()=9}
                                mustSupport: true
                                index: 19
                    Name:
                      match: {url: null}
                      schema:
                        mustSupport: true
                        _required: true
                        index: 20
                        elements:
                          value:
                            mustSupport: true
                            choices: []
                            index: 22
                            slicing:
                              slices:
                                valueString:
                                  match: {}
                                  schema:
                                    mustSupport: true
                                    choices: []
                                    index: 24
                    Kostentraegertyp:
                      match: {url: null}
                      schema:
                        mustSupport: true
                        _required: true
                        index: 25
                        elements:
                          value:
                            mustSupport: true
                            choices: []
                            index: 27
                            slicing:
                              slices:
                                valueCoding:
                                  match: {}
                                  schema:
                                    mustSupport: true
                                    choices: []
                                    index: 29
                          value[x]:
                            elements:
                              system: {mustSupport: true, index: 30}
                              code: {mustSupport: true, index: 31}
  contained: {index: 11}
  requester:
    type: Reference
    mustSupport: true
    refers: ['https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.1.0']
    index: 56
    elements:
      reference: {mustSupport: true, index: 57}
      type: {index: 58}
      identifier: {index: 59}
      display: {index: 60}
    required: [reference]
  priority: {index: 35}
  status: {index: 33}
  language: {index: 9}
  id: {mustSupport: true, index: 0}
  identifier: {index: 32}
  quantity:
    constraint:
      -erp-begrenzungValue: {human: Die Anzahl der verordneten Packungen darf aus maximal 6 Zeichen bestehen., source: 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_PracticeSupply', severity: error, expression: value.toString().length() <= 6}
    mustSupport: true
    index: 46
    elements:
      value: {short: Anzahl der verordneten Packungen, mustSupport: true, index: 47}
      comparator: {index: 48}
      unit: {index: 49}
      system:
        pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
        mustSupport: true
        index: 50
      code:
        pattern: {type: Code, value: '{Package}'}
        mustSupport: true
        index: 51
    required: [value, system, code]
  parameter: {index: 52}
  occurrence:
    choices: []
    index: 54
  reasonReference: {index: 63}
  text: {index: 10}
package_version: 1.1.0-PreRelease
extensions:
  Kostentraeger:
    url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_PracticeSupply_Payor
    type: Extension
    mustSupport: true
    index: 13
    extensions:
      IK:
        url: null
        mustSupport: true
        index: 15
        elements:
          value:
            choices: []
            index: 17
            slicing:
              slices:
                valueIdentifier:
                  match: {}
                  schema:
                    choices: []
                    index: 17
          value[x]:
            elements:
              system: {mustSupport: true, index: 18}
              value:
                constraint:
                  -erp-laengeIK: {human: Die IK-Nummer muss 9-stellig sein., source: 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_PracticeSupply', severity: error, expression: length()=9}
                mustSupport: true
                index: 19
      Name:
        url: null
        mustSupport: true
        _required: true
        index: 20
        elements:
          value:
            mustSupport: true
            choices: []
            index: 22
            slicing:
              slices:
                valueString:
                  match: {}
                  schema:
                    mustSupport: true
                    choices: []
                    index: 24
      Kostentraegertyp:
        url: null
        mustSupport: true
        _required: true
        index: 25
        elements:
          value:
            mustSupport: true
            choices: []
            index: 27
            slicing:
              slices:
                valueCoding:
                  match: {}
                  schema:
                    mustSupport: true
                    choices: []
                    index: 29
          value[x]:
            elements:
              system: {mustSupport: true, index: 30}
              code: {mustSupport: true, index: 31}
    elements:
      extension:
        array: true
        min: 2
        index: 14
        slicing:
          rules: closed
          discriminator:
          - {path: url, type: value}
          min: 2
          slices:
            IK:
              match: {url: null}
              schema:
                mustSupport: true
                index: 15
                elements:
                  value:
                    choices: []
                    index: 17
                    slicing:
                      slices:
                        valueIdentifier:
                          match: {}
                          schema:
                            choices: []
                            index: 17
                  value[x]:
                    elements:
                      system: {mustSupport: true, index: 18}
                      value:
                        constraint:
                          -erp-laengeIK: {human: Die IK-Nummer muss 9-stellig sein., source: 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_PracticeSupply', severity: error, expression: length()=9}
                        mustSupport: true
                        index: 19
            Name:
              match: {url: null}
              schema:
                mustSupport: true
                _required: true
                index: 20
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 22
                    slicing:
                      slices:
                        valueString:
                          match: {}
                          schema:
                            mustSupport: true
                            choices: []
                            index: 24
            Kostentraegertyp:
              match: {url: null}
              schema:
                mustSupport: true
                _required: true
                index: 25
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 27
                    slicing:
                      slices:
                        valueCoding:
                          match: {}
                          schema:
                            mustSupport: true
                            choices: []
                            index: 29
                  value[x]:
                    elements:
                      system: {mustSupport: true, index: 30}
                      code: {mustSupport: true, index: 31}
class: profile
kind: resource
url: https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_PracticeSupply
base: http://hl7.org/fhir/StructureDefinition/SupplyRequest
version: 1.1.0
required: [authoredOn, itemReference, requester, id, extension, item, meta]