PackagesCanonicalsLogsProblems
    Packages
    rs/KBV.ITA.ERP@1.0.0
    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: 44
    elements:
      numerator:
        constraint:
          -erp-begrenzungValue: {human: Die Packungsgröße darf aus maximal 7 Zeichen bestehen, source: 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient', severity: error, expression: value.toString().length()<=7}
          -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: 45
        elements:
          value: {short: Packungsgröße nach abgeteilter Menge, mustSupport: true, index: 46}
          comparator: {index: 47}
          unit: {short: Einheit, maxLength: 12, mustSupport: true, index: 48}
          system:
            pattern: {type: uri, value: 'http://unitsofmeasure.org'}
            mustSupport: false
            type: uri
            index: 49
          code: {short: Packungseinheit (kodiert), mustSupport: false, index: 50}
        required: [unit, value]
      denominator:
        mustSupport: true
        index: 51
        elements:
          value:
            mustSupport: true
            pattern: {type: decimal, value: 1}
            type: decimal
            index: 52
          comparator: {index: 53}
          unit: {index: 54}
          system: {index: 55}
          code: {index: 56}
        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.0.0'}
        type: canonical
        index: 5
      security: {index: 6}
      tag: {index: 7}
    required: [profile]
  implicitRules: {index: 8}
  extension:
    index: 12
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        kategorie:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category
            index: 13
            elements:
              value:
                mustSupport: true
                choices: []
                index: 15
                slicing:
                  slices:
                    valueCoding:
                      match: {}
                      schema:
                        mustSupport: true
                        choices: []
                        index: 17
              value[x]:
                elements:
                  system: {mustSupport: true, index: 18}
                  code: {mustSupport: true, index: 19}
        impfstoff:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine
            index: 20
            elements:
              value:
                mustSupport: true
                choices: []
                index: 22
                slicing:
                  slices:
                    valueBoolean:
                      match: {}
                      schema:
                        mustSupport: true
                        choices: []
                        index: 24
        normgroesse:
          match: {url: null}
          schema:
            short: Therapiegerechte Packungsgröße nach N-Bezeichnung
            type: Extension
            mustSupport: true
            url: http://fhir.de/StructureDefinition/normgroesse
            index: 25
            elements:
              value:
                mustSupport: true
                choices: []
                index: 27
                slicing:
                  rules: open
                  discriminator:
                  - {path: $this, type: type}
                  min: 1
                  slices:
                    valueCode:
                      match: {}
                      schema:
                        choices: []
                        index: 29
            required: [value]
  contained: {index: 11}
  ingredient:
    mustSupport: true
    index: 57
    elements:
      item:
        mustSupport: true
        choices: [itemCodeableConcept]
        index: 62
        slicing:
          slices:
            itemCodeableConcept:
              match: {}
              schema:
                mustSupport: true
                choices: [itemCodeableConcept]
                _required: true
                index: 62
              min: 1
      itemCodeableConcept:
        type: CodeableConcept
        mustSupport: true
        choiceOf: item
        index: 63
        slicing:
          slices:
            itemCodeableConcept:
              match: {}
              schema: {type: CodeableConcept, mustSupport: true, choiceOf: item, _required: true, index: 63}
              min: 1
      item[x]:
        elements:
          coding:
            mustSupport: true
            index: 64
            elements:
              system:
                pattern: {type: uri, value: 'http://fhir.de/CodeSystem/ask'}
                mustSupport: true
                type: uri
                index: 65
              version: {index: 66}
              code: {short: Wirkstoffnummer, mustSupport: true, index: 67}
              display: {index: 68}
              userSelected: {index: 69}
            required: [code, system]
          text: {short: Wirkstoffname, maxLength: 80, mustSupport: true, index: 70}
        required: [text]
      isActive: {index: 71}
      strength:
        mustSupport: true
        index: 72
        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: 73
            elements:
              value: {short: Wirkstärke, mustSupport: true, index: 74}
              comparator: {index: 75}
              unit: {short: Wirkstärkeneinheit, maxLength: 15, mustSupport: true, index: 76}
              system:
                pattern: {type: uri, value: 'http://unitsofmeasure.org'}
                mustSupport: false
                type: uri
                index: 77
              code: {short: Wirkstärkeneinheit (kodiert), mustSupport: false, index: 78}
            required: [unit, value]
          denominator:
            mustSupport: true
            index: 79
            elements:
              value:
                mustSupport: true
                pattern: {type: decimal, value: 1}
                type: decimal
                index: 80
              comparator: {index: 81}
              unit: {index: 82}
              system: {index: 83}
              code: {index: 84}
            required: [value]
        required: [denominator, numerator]
    required: [item, itemCodeableConcept, strength]
  status: {index: 39}
  language: {index: 9}
  id: {mustSupport: true, index: 0}
  code:
    mustSupport: true
    index: 31
    elements:
      coding:
        mustSupport: true
        index: 32
        elements:
          system:
            pattern: {type: uri, value: 'https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type'}
            mustSupport: true
            type: uri
            index: 33
          version: {index: 34}
          code:
            short: Kennzeichnung Wirkstoffverordnung
            pattern: {type: code, value: wirkstoff}
            mustSupport: true
            type: code
            index: 35
          display: {index: 36}
          userSelected: {index: 37}
        required: [code, system]
      text: {index: 38}
    required: [coding]
  identifier: {index: 30}
  manufacturer: {index: 40}
  form:
    mustSupport: true
    index: 41
    elements:
      coding: {index: 42}
      text: {short: Darreichungsform Freitext, maxLength: 30, mustSupport: true, index: 43}
    required: [text]
  text: {index: 10}
package_version: 1.0.0
extensions:
  kategorie:
    url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category
    type: Extension
    mustSupport: true
    index: 13
    elements:
      value:
        mustSupport: true
        choices: []
        index: 15
        slicing:
          slices:
            valueCoding:
              match: {}
              schema:
                mustSupport: true
                choices: []
                index: 17
      value[x]:
        elements:
          system: {mustSupport: true, index: 18}
          code: {mustSupport: true, index: 19}
  impfstoff:
    url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine
    type: Extension
    mustSupport: true
    index: 20
    elements:
      value:
        mustSupport: true
        choices: []
        index: 22
        slicing:
          slices:
            valueBoolean:
              match: {}
              schema:
                mustSupport: true
                choices: []
                index: 24
  normgroesse:
    url: http://fhir.de/StructureDefinition/normgroesse
    short: Therapiegerechte Packungsgröße nach N-Bezeichnung
    type: Extension
    mustSupport: true
    index: 25
    elements:
      value:
        mustSupport: true
        choices: []
        index: 27
        slicing:
          rules: open
          discriminator:
          - {path: $this, type: type}
          min: 1
          slices:
            valueCode:
              match: {}
              schema:
                choices: []
                index: 29
    required: [value]
class: profile
kind: resource
url: https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient
base: http://hl7.org/fhir/StructureDefinition/Medication
version: 1.0.0
required: [code, form, id, ingredient, meta]