PackagesCanonicalsLogsProblems
    Packages
    kbv.ita.erp@1.1.0-PreRelease
    https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Compounding
description: null
package_name: kbv.ita.erp
derivation: constraint
name: KBV_PR_ERP_Medication_Compounding
type: Medication
elements:
  amount:
    mustSupport: true
    index: 65
    elements:
      numerator:
        constraint:
          -erp-begrenzungValue: {human: Die Gesamtmenge der Rezeptur darf aus maximal 7 Zeichen bestehen., source: 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Compounding', 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_Compounding', severity: error, expression: code.exists() implies system.exists()}
        mustSupport: true
        index: 66
        elements:
          value: {short: Gesamtmenge der Rezeptur, mustSupport: true, index: 67}
          comparator: {index: 68}
          unit: {short: Einheit der Gesamtmenge, maxLength: 12, mustSupport: true, index: 69}
          system:
            pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
            mustSupport: false
            index: 70
          code: {short: Einheit der Gesamtmenge (kodiert), mustSupport: false, index: 71}
        required: [value, unit]
      denominator:
        mustSupport: true
        index: 72
        elements:
          value:
            mustSupport: true
            pattern: {type: Decimal, value: 1}
            index: 73
          comparator: {index: 74}
          unit: {index: 75}
          system: {index: 76}
          code: {index: 77}
        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_Compounding|1.1.0'}
        index: 5
      security: {index: 6}
      tag: {index: 7}
    required: [profile]
  implicitRules: {index: 8}
  extension:
    array: true
    min: 3
    index: 12
    slicing:
      rules: closed
      discriminator:
      - {path: url, type: value}
      min: 3
      slices:
        Kategorie:
          match: {url: null}
          schema:
            mustSupport: true
            _required: 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:
                      system:
                        pattern: {type: Uri, value: 'http://snomed.info/sct'}
                        mustSupport: true
                        index: 19
                      version:
                        pattern: {type: String, value: 'http://snomed.info/sct/900000000000207008/version/20220331'}
                        mustSupport: true
                        index: 20
                      code:
                        pattern: {type: Code, value: '373873005:860781008=362943005'}
                        mustSupport: true
                        index: 21
                      display:
                        pattern: {type: String, value: 'Pharmaceutical / biologic product (product) : Has product characteristic (attribute) = Manual method (qualifier value)'}
                        mustSupport: true
                        index: 22
                      userSelected: {index: 23}
                  text: {index: 24}
                required: [coding]
        Arzneimittelkategorie:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category
            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}
        Impfstoff:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine
            index: 32
            elements:
              value:
                mustSupport: true
                choices: []
                index: 34
                slicing:
                  slices:
                    valueBoolean:
                      match: {}
                      schema:
                        mustSupport: true
                        choices: []
                        index: 36
        Herstellungsanweisung:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_CompoundingInstruction
            index: 37
            elements:
              value:
                mustSupport: true
                choices: []
                index: 39
                slicing:
                  slices:
                    valueString:
                      match: {}
                      schema:
                        mustSupport: true
                        choices: []
                        index: 41
        Verpackung:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Packaging
            index: 42
            elements:
              value:
                mustSupport: true
                choices: []
                index: 44
                slicing:
                  slices:
                    valueString:
                      match: {}
                      schema:
                        mustSupport: true
                        choices: []
                        index: 46
  contained: {index: 11}
  ingredient:
    mustSupport: true
    index: 78
    extensions:
      Darreichungsform:
        url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Ingredient_Form
        type: Extension
        mustSupport: true
        index: 80
        elements:
          value:
            mustSupport: true
            choices: []
            index: 82
            slicing:
              slices:
                valueString:
                  match: {}
                  schema:
                    mustSupport: true
                    choices: []
                    index: 84
    elements:
      extension:
        index: 79
        slicing:
          rules: closed
          discriminator:
          - {path: url, type: value}
          min: 0
          slices:
            Darreichungsform:
              match: {url: null}
              schema:
                type: Extension
                mustSupport: true
                url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Ingredient_Form
                index: 80
                elements:
                  value:
                    mustSupport: true
                    choices: []
                    index: 82
                    slicing:
                      slices:
                        valueString:
                          match: {}
                          schema:
                            mustSupport: true
                            choices: []
                            index: 84
      item:
        choices: []
        index: 101
        slicing:
          slices:
            itemReference:
              match: {}
              schema:
                choices: []
                index: 101
              max: 0
      itemCodeableConcept: {type: CodeableConcept, mustSupport: true, choiceOf: item, index: 87}
      item[x]:
        elements:
          coding:
            mustSupport: true
            index: 90
            slicing:
              slices:
                askCode:
                  match: {}
                  schema: {index: 91}
                  max: 0
                snomedCode:
                  match: {}
                  schema: {index: 92}
                  max: 0
                pznCode:
                  match: {}
                  schema:
                    constraint:
                      -erp-begrenzungPznCode: {human: Der PZN-Code muss aus genau 8 Zeichen bestehen., source: 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Compounding', severity: error, expression: code.length()=8}
                    mustSupport: true
                    pattern:
                      type: Coding
                      value: {system: 'http://fhir.de/CodeSystem/ifa/pzn'}
                    index: 93
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://fhir.de/CodeSystem/ifa/pzn'}
                        mustSupport: true
                        index: 94
                      version: {index: 95}
                      code: {short: PZN des Bestandteils, mustSupport: true, index: 96}
                      display: {index: 97}
                      userSelected: {index: 98}
                    required: [system, code]
          text: {short: Name des Bestandteils, maxLength: 60, mustSupport: true, index: 99}
        required: [text]
      isActive: {index: 102}
      strength:
        constraint:
          -erp-numeratorOderFreitext: {human: Entweder ist die Menge des Bestandteils durch "numerator" oder als Freitext anzugeben., source: 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Compounding', severity: error, expression: 'extension(''https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Ingredient_Amount'').exists() xor numerator.exists()'}
        mustSupport: true
        index: 103
        extensions:
          MengeFreitext:
            url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Ingredient_Amount
            type: Extension
            mustSupport: true
            index: 105
            elements:
              value:
                mustSupport: true
                choices: []
                index: 107
                slicing:
                  slices:
                    valueString:
                      match: {}
                      schema:
                        mustSupport: true
                        choices: []
                        index: 109
        elements:
          extension:
            index: 104
            slicing:
              rules: closed
              discriminator:
              - {path: url, type: value}
              min: 0
              slices:
                MengeFreitext:
                  match: {url: null}
                  schema:
                    type: Extension
                    mustSupport: true
                    url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Ingredient_Amount
                    index: 105
                    elements:
                      value:
                        mustSupport: true
                        choices: []
                        index: 107
                        slicing:
                          slices:
                            valueString:
                              match: {}
                              schema:
                                mustSupport: true
                                choices: []
                                index: 109
          numerator:
            constraint:
              -erp-begrenzungValue: {human: Die Menge eines Bestandteils einer Rezeptur darf aus maximal 7 Zeichen bestehen., source: 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Compounding', 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_Compounding', severity: error, expression: code.exists() implies system.exists()}
            mustSupport: true
            index: 110
            elements:
              value: {short: Menge des Bestandteils, mustSupport: true, index: 111}
              comparator: {index: 112}
              unit: {short: Einheit des Bestandteils, maxLength: 12, mustSupport: true, index: 113}
              system:
                pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
                mustSupport: false
                index: 114
              code: {short: Einheit des Bestandteils kodierte, mustSupport: false, index: 115}
            required: [value, unit]
          denominator:
            mustSupport: true
            index: 116
            elements:
              value:
                mustSupport: true
                pattern: {type: Decimal, value: 1}
                index: 117
              comparator: {index: 118}
              unit: {index: 119}
              system: {index: 120}
              code: {index: 121}
            required: [value]
    required: [strength]
  status: {index: 60}
  language: {index: 9}
  id: {mustSupport: true, index: 0}
  code:
    mustSupport: true
    index: 48
    elements:
      coding:
        mustSupport: true
        index: 49
        slicing:
          slices:
            pznCode:
              match: {}
              schema: {index: 50}
              max: 0
            snomedCode:
              match: {}
              schema: {index: 51}
              max: 0
            atcCode:
              match: {}
              schema: {index: 52}
              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: 53
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://fhir.kbv.de/CodeSystem/KBV_CS_ERP_Medication_Type'}
                    mustSupport: true
                    index: 54
                  version: {index: 55}
                  code:
                    short: Kennzeichnung Rezepturverordnung
                    pattern: {type: Code, value: rezeptur}
                    mustSupport: true
                    index: 56
                  display: {index: 57}
                  userSelected: {index: 58}
                required: [system, code]
      text: {short: Rezepturname, maxLength: 70, mustSupport: true, index: 59}
    required: [coding]
  identifier: {index: 47}
  manufacturer: {index: 61}
  form:
    mustSupport: true
    index: 62
    elements:
      coding: {index: 63}
      text: {short: Darreichungsform Freitext, maxLength: 30, mustSupport: true, index: 64}
    required: [text]
  text: {index: 10}
package_version: 1.1.0-PreRelease
extensions:
  Kategorie:
    url: null
    mustSupport: true
    _required: 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:
              system:
                pattern: {type: Uri, value: 'http://snomed.info/sct'}
                mustSupport: true
                index: 19
              version:
                pattern: {type: String, value: 'http://snomed.info/sct/900000000000207008/version/20220331'}
                mustSupport: true
                index: 20
              code:
                pattern: {type: Code, value: '373873005:860781008=362943005'}
                mustSupport: true
                index: 21
              display:
                pattern: {type: String, value: 'Pharmaceutical / biologic product (product) : Has product characteristic (attribute) = Manual method (qualifier value)'}
                mustSupport: true
                index: 22
              userSelected: {index: 23}
          text: {index: 24}
        required: [coding]
  Arzneimittelkategorie:
    url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Category
    type: Extension
    mustSupport: 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}
  Impfstoff:
    url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Vaccine
    type: Extension
    mustSupport: true
    index: 32
    elements:
      value:
        mustSupport: true
        choices: []
        index: 34
        slicing:
          slices:
            valueBoolean:
              match: {}
              schema:
                mustSupport: true
                choices: []
                index: 36
  Herstellungsanweisung:
    url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_CompoundingInstruction
    type: Extension
    mustSupport: true
    index: 37
    elements:
      value:
        mustSupport: true
        choices: []
        index: 39
        slicing:
          slices:
            valueString:
              match: {}
              schema:
                mustSupport: true
                choices: []
                index: 41
  Verpackung:
    url: https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Medication_Packaging
    type: Extension
    mustSupport: true
    index: 42
    elements:
      value:
        mustSupport: true
        choices: []
        index: 44
        slicing:
          slices:
            valueString:
              match: {}
              schema:
                mustSupport: true
                choices: []
                index: 46
class: profile
kind: resource
url: https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_Compounding
base: https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Medication|1.3.0
version: 1.1.0
required: [form, id, ingredient, amount, meta]