PackagesCanonicalsLogsProblems
    Packages
    kbv.ita.erp@1.1.0-PreRelease
    https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Ingredient
description: null
package_name: kbv.ita.erp
derivation: constraint
name: KBV_PR_ERP_Medication_Ingredient
type: Medication
elements:
  amount:
    mustSupport: true
    index: 56
    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: 57
        elements:
          value: {short: Packungsgröße nach abgeteilter Menge, mustSupport: true, index: 58}
          comparator: {index: 59}
          unit: {short: Einheit, maxLength: 12, mustSupport: true, index: 60}
          system:
            pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
            mustSupport: false
            index: 61
          code: {short: Packungseinheit (kodiert), mustSupport: false, index: 62}
        required: [value, unit]
      denominator:
        mustSupport: true
        index: 63
        elements:
          value:
            mustSupport: true
            pattern: {type: Decimal, value: 1}
            index: 64
          comparator: {index: 65}
          unit: {index: 66}
          system: {index: 67}
          code: {index: 68}
        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'}
        index: 5
      security: {index: 6}
      tag: {index: 7}
    required: [profile]
  implicitRules: {index: 8}
  extension:
    array: true
    min: 2
    index: 12
    slicing:
      rules: closed
      discriminator:
      - {path: url, type: value}
      min: 2
      slices:
        Kategorie:
          match: {url: null}
          schema:
            mustSupport: true
            index: 13
            elements:
              value:
                mustSupport: true
                choices: []
                index: 15
                slicing:
                  slices:
                    valueCodeableConcept:
                      match: {}
                      schema:
                        mustSupport: true
                        choices: []
                        index: 17
              value[x]:
                elements:
                  coding:
                    mustSupport: true
                    index: 18
                    elements:
                      userSelected: {index: 19}
                  text: {index: 20}
                required: [coding]
        Arzneimittelkategorie:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category
            index: 21
            elements:
              value:
                mustSupport: true
                choices: []
                index: 23
                slicing:
                  slices:
                    valueCoding:
                      match: {}
                      schema:
                        mustSupport: true
                        choices: []
                        index: 25
              value[x]:
                elements:
                  system: {mustSupport: true, index: 26}
                  code: {mustSupport: true, index: 27}
        Impfstoff:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine
            index: 28
            elements:
              value:
                mustSupport: true
                choices: []
                index: 30
                slicing:
                  slices:
                    valueBoolean:
                      match: {}
                      schema:
                        mustSupport: true
                        choices: []
                        index: 32
        Normgroesse:
          match: {url: null}
          schema:
            short: Packungsgröße nach N-Bezeichnung
            type: Extension
            mustSupport: true
            url: http://fhir.de/StructureDefinition/normgroesse
            index: 33
            elements:
              value:
                mustSupport: true
                choices: []
                index: 35
                slicing:
                  rules: closed
                  discriminator:
                  - {path: $this, type: type}
                  min: 1
                  slices:
                    valueCode:
                      match: {}
                      schema:
                        mustSupport: true
                        choices: []
                        index: 37
            required: [value]
  contained: {index: 11}
  ingredient:
    mustSupport: true
    index: 69
    elements:
      item:
        choices: []
        index: 85
        slicing:
          slices:
            itemReference:
              match: {}
              schema:
                choices: []
                index: 85
              max: 0
      itemCodeableConcept: {type: CodeableConcept, mustSupport: true, choiceOf: item, index: 72}
      item[x]:
        elements:
          coding:
            mustSupport: true
            index: 75
            slicing:
              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
                index: 92
              code: {short: Wirkstärkeneinheit (kodiert), mustSupport: false, index: 93}
            required: [value, unit]
          denominator:
            mustSupport: true
            index: 94
            elements:
              value:
                mustSupport: true
                pattern: {type: Decimal, value: 1}
                index: 95
              comparator: {index: 96}
              unit: {index: 97}
              system: {index: 98}
              code: {index: 99}
            required: [value]
        required: [denominator, numerator]
    required: [strength]
  status: {index: 51}
  language: {index: 9}
  id: {mustSupport: true, index: 0}
  code:
    mustSupport: true
    index: 39
    elements:
      coding:
        mustSupport: true
        index: 40
        slicing:
          slices:
            pznCode:
              match: {}
              schema: {index: 41}
              max: 0
            snomedCode:
              match: {}
              schema: {index: 42}
              max: 0
            atcCode:
              match: {}
              schema: {index: 43}
              max: 0
            verordnungskategorieCode:
              match: {}
              schema:
                mustSupport: true
                pattern:
                  type: Coding
                  value: {system: 'https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type'}
                _required: true
                index: 44
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type'}
                    mustSupport: true
                    index: 45
                  version: {index: 46}
                  code:
                    short: Kennzeichnung Wirkstoffverordnung
                    pattern: {type: Code, value: wirkstoff}
                    mustSupport: true
                    index: 47
                  display: {index: 48}
                  userSelected: {index: 49}
                required: [system, code]
      text: {index: 50}
    required: [coding]
  identifier: {index: 38}
  manufacturer: {index: 52}
  form:
    mustSupport: true
    index: 53
    elements:
      coding: {index: 54}
      text: {short: Darreichungsform Freitext, maxLength: 30, mustSupport: true, index: 55}
    required: [text]
  text: {index: 10}
package_version: 1.1.0-PreRelease
extensions:
  Kategorie:
    url: null
    mustSupport: true
    index: 13
    elements:
      value:
        mustSupport: true
        choices: []
        index: 15
        slicing:
          slices:
            valueCodeableConcept:
              match: {}
              schema:
                mustSupport: true
                choices: []
                index: 17
      value[x]:
        elements:
          coding:
            mustSupport: true
            index: 18
            elements:
              userSelected: {index: 19}
          text: {index: 20}
        required: [coding]
  Arzneimittelkategorie:
    url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category
    type: Extension
    mustSupport: true
    index: 21
    elements:
      value:
        mustSupport: true
        choices: []
        index: 23
        slicing:
          slices:
            valueCoding:
              match: {}
              schema:
                mustSupport: true
                choices: []
                index: 25
      value[x]:
        elements:
          system: {mustSupport: true, index: 26}
          code: {mustSupport: true, index: 27}
  Impfstoff:
    url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine
    type: Extension
    mustSupport: true
    index: 28
    elements:
      value:
        mustSupport: true
        choices: []
        index: 30
        slicing:
          slices:
            valueBoolean:
              match: {}
              schema:
                mustSupport: true
                choices: []
                index: 32
  Normgroesse:
    url: http://fhir.de/StructureDefinition/normgroesse
    short: Packungsgröße nach N-Bezeichnung
    type: Extension
    mustSupport: true
    index: 33
    elements:
      value:
        mustSupport: true
        choices: []
        index: 35
        slicing:
          rules: closed
          discriminator:
          - {path: $this, type: type}
          min: 1
          slices:
            valueCode:
              match: {}
              schema:
                mustSupport: true
                choices: []
                index: 37
    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]