PackagesCanonicalsLogsProblems
    Packages
    rs/kbv.ita.erp@1.1.2
    https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient
description: null
package_name: rs/kbv.ita.erp
derivation: constraint
name: KBV_PR_ERP_Medication_Ingredient
type: Medication
elements:
  amount:
    mustSupport: true
    index: 49
    elements:
      numerator:
        constraint:
          -erp-codeUndSystem: {human: 'Wenn ein Code eingegeben ist, muss auch das System hinterlegt sein.', source: 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient', severity: error, expression: code.exists() implies system.exists()}
        mustSupport: true
        index: 50
        extensions:
          Packungsgroesse:
            url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize
            isModifier: false
            short: Packungsgröße nach abgeteilter Menge
            type: Extension
            mustSupport: true
            index: 52
            elements:
              value:
                mustSupport: true
                choices: []
                index: 54
                slicing:
                  slices:
                    valueString:
                      match: {}
                      schema:
                        mustSupport: true
                        choices: []
                        index: 56
        elements:
          extension:
            index: 51
            slicing:
              rules: open
              discriminator:
              - {path: url, type: value}
              min: 1
              slices:
                Packungsgroesse:
                  match: {url: null}
                  schema:
                    isModifier: false
                    short: Packungsgröße nach abgeteilter Menge
                    type: Extension
                    mustSupport: true
                    url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_PackagingSize
                    index: 52
                    elements:
                      value:
                        mustSupport: true
                        choices: []
                        index: 54
                        slicing:
                          slices:
                            valueString:
                              match: {}
                              schema:
                                mustSupport: true
                                choices: []
                                index: 56
          value: {index: 57}
          comparator: {index: 58}
          unit: {short: Einheit, maxLength: 12, mustSupport: true, index: 59}
          system:
            pattern: {type: uri, value: 'http://unitsofmeasure.org'}
            mustSupport: false
            type: uri
            index: 60
          code: {short: Packungseinheit (kodiert), mustSupport: false, index: 61}
        required: [extension, unit]
      denominator:
        mustSupport: true
        index: 62
        elements:
          value:
            mustSupport: true
            pattern: {type: decimal, value: 1}
            type: decimal
            index: 63
          comparator: {index: 64}
          unit: {index: 65}
          system: {index: 66}
          code: {index: 67}
        required: [value]
    required: [denominator, numerator]
  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_Medication_Ingredient|1.1.0'}
        type: canonical
        index: 5
      security: {index: 6}
      tag: {index: 7}
    required: [profile]
  implicitRules: {index: 8}
  extension:
    array: true
    min: 2
    max: 3
    index: 12
    slicing:
      rules: closed
      discriminator:
      - {path: url, type: value}
      min: 2
      max: 3
      slices:
        Kategorie:
          match: {url: null}
          schema: {index: 13}
          min: 0
          max: 0
        Arzneimittelkategorie:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category
            index: 14
            elements:
              value:
                mustSupport: true
                choices: []
                index: 16
                slicing:
                  slices:
                    valueCoding:
                      match: {}
                      schema:
                        mustSupport: true
                        choices: []
                        index: 18
              value[x]:
                elements:
                  system: {mustSupport: true, index: 19}
                  code: {mustSupport: true, index: 20}
        Impfstoff:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine
            index: 21
            elements:
              value:
                mustSupport: true
                choices: []
                index: 23
                slicing:
                  slices:
                    valueBoolean:
                      match: {}
                      schema:
                        mustSupport: true
                        choices: []
                        index: 25
        Normgroesse:
          match: {url: null}
          schema:
            short: Packungsgröße nach N-Bezeichnung
            type: Extension
            mustSupport: true
            url: http://fhir.de/StructureDefinition/normgroesse
            index: 26
            elements:
              value:
                mustSupport: true
                choices: []
                index: 28
                slicing:
                  rules: closed
                  discriminator:
                  - {path: $this, type: type}
                  min: 1
                  slices:
                    valueCode:
                      match: {}
                      schema:
                        mustSupport: true
                        choices: []
                        index: 30
            required: [value]
  contained: {index: 11}
  ingredient:
    mustSupport: true
    index: 68
    elements:
      item:
        choices: []
        index: 85
        slicing:
          slices:
            itemReference:
              match: {}
              schema:
                choices: []
                index: 85
              max: 0
      itemCodeableConcept:
        type: CodeableConcept
        mustSupport: true
        choiceOf: item
        index: 74
        slicing:
          slices:
            itemCodeableConcept:
              match: {}
              schema: {type: CodeableConcept, mustSupport: true, choiceOf: item, index: 74}
      item[x]:
        elements:
          coding:
            mustSupport: true
            index: 75
            slicing:
              rules: closed
              discriminator:
              - {path: $this, type: pattern}
              min: null
              max: 1
              slices:
                askCode:
                  match: {}
                  schema:
                    index: 76
                    elements:
                      system: {mustSupport: true, index: 77}
                      version: {index: 78}
                      code: {short: Wirkstoffnummer, mustSupport: true, index: 79}
                      display: {index: 80}
                      userSelected: {index: 81}
                snomedCode:
                  match: {}
                  schema: {index: 82}
                  max: 0
          text: {short: Wirkstoffname, maxLength: 80, mustSupport: true, index: 83}
        required: [text]
      isActive: {index: 86}
      strength:
        mustSupport: true
        index: 87
        elements:
          numerator:
            constraint:
              -erp-begrenzungValue: {human: Die Wirkstärke darf aus maximal 15 Zeichen bestehen, source: 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient', severity: error, expression: value.toString().length()<=15}
            mustSupport: true
            index: 88
            elements:
              value: {short: Wirkstärke, mustSupport: true, index: 89}
              comparator: {index: 90}
              unit: {short: Wirkstärkeneinheit, maxLength: 15, mustSupport: true, index: 91}
              system:
                pattern: {type: uri, value: 'http://unitsofmeasure.org'}
                mustSupport: false
                type: uri
                index: 92
              code: {short: Wirkstärkeneinheit (kodiert), mustSupport: false, index: 93}
            required: [unit, value]
          denominator:
            mustSupport: true
            index: 94
            elements:
              value:
                mustSupport: true
                pattern: {type: decimal, value: 1}
                type: decimal
                index: 95
              comparator: {index: 96}
              unit: {index: 97}
              system: {index: 98}
              code: {index: 99}
            required: [value]
        required: [denominator, numerator]
    required: [strength]
  status: {index: 44}
  language: {index: 9}
  id: {mustSupport: true, index: 0}
  code:
    mustSupport: true
    index: 32
    elements:
      coding:
        mustSupport: true
        index: 33
        slicing:
          rules: closed
          discriminator:
          - {path: $this, type: pattern}
          min: 1
          max: 1
          slices:
            pznCode:
              match: {}
              schema: {index: 34}
              max: 0
            snomedCode:
              match: {}
              schema: {index: 35}
              max: 0
            atcCode:
              match: {}
              schema: {index: 36}
              max: 0
            verordnungskategorieCode:
              match: {system: 'https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type'}
              schema:
                mustSupport: true
                pattern:
                  type: Coding
                  value: {system: 'https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type'}
                _required: true
                type: Coding
                index: 37
                elements:
                  system:
                    pattern: {type: uri, value: 'https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type'}
                    mustSupport: true
                    type: uri
                    index: 38
                  version: {index: 39}
                  code:
                    short: Kennzeichnung Wirkstoffverordnung
                    pattern: {type: code, value: wirkstoff}
                    mustSupport: true
                    type: code
                    index: 40
                  display: {index: 41}
                  userSelected: {index: 42}
                required: [code, system]
      text: {index: 43}
    required: [coding]
  identifier: {index: 31}
  manufacturer: {index: 45}
  form:
    mustSupport: true
    index: 46
    elements:
      coding: {index: 47}
      text: {short: Darreichungsform Freitext, maxLength: 30, mustSupport: true, index: 48}
    required: [text]
  text: {index: 10}
package_version: 1.1.2
extensions:
  Kategorie: {url: null, min: 0, max: 0, index: 13}
  Arzneimittelkategorie:
    url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category
    type: Extension
    mustSupport: true
    index: 14
    elements:
      value:
        mustSupport: true
        choices: []
        index: 16
        slicing:
          slices:
            valueCoding:
              match: {}
              schema:
                mustSupport: true
                choices: []
                index: 18
      value[x]:
        elements:
          system: {mustSupport: true, index: 19}
          code: {mustSupport: true, index: 20}
  Impfstoff:
    url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine
    type: Extension
    mustSupport: true
    index: 21
    elements:
      value:
        mustSupport: true
        choices: []
        index: 23
        slicing:
          slices:
            valueBoolean:
              match: {}
              schema:
                mustSupport: true
                choices: []
                index: 25
  Normgroesse:
    url: http://fhir.de/StructureDefinition/normgroesse
    short: Packungsgröße nach N-Bezeichnung
    type: Extension
    mustSupport: true
    index: 26
    elements:
      value:
        mustSupport: true
        choices: []
        index: 28
        slicing:
          rules: closed
          discriminator:
          - {path: $this, type: type}
          min: 1
          slices:
            valueCode:
              match: {}
              schema:
                mustSupport: true
                choices: []
                index: 30
    required: [value]
class: profile
kind: resource
url: https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient
base: https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Medication|1.3.0
version: 1.1.0
required: [form, id, ingredient, meta]