PackagesCanonicalsLogsProblems
    Packages
    rs/KBV.ITA.ERP@1.0.0
    https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN
description: null
package_name: rs/KBV.ITA.ERP
derivation: constraint
name: KBV_PR_ERP_Medication_PZN
type: Medication
elements:
  amount:
    mustSupport: true
    index: 45
    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_PZN', 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_PZN', severity: error, expression: code.exists() implies system.exists()}
        mustSupport: true
        index: 46
        elements:
          value: {short: Packungsgröße nach abgeteilter Menge, mustSupport: true, index: 47}
          comparator: {index: 48}
          unit: {short: Einheit, maxLength: 12, mustSupport: true, index: 49}
          system:
            pattern: {type: uri, value: 'http://unitsofmeasure.org'}
            mustSupport: false
            type: uri
            index: 50
          code: {short: Packungseinheit (kodiert), mustSupport: false, index: 51}
        required: [unit, value]
      denominator:
        mustSupport: true
        index: 52
        elements:
          value:
            mustSupport: true
            pattern: {type: decimal, value: 1}
            type: decimal
            index: 53
          comparator: {index: 54}
          unit: {index: 55}
          system: {index: 56}
          code: {index: 57}
        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_PZN|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: 22
        normgroesse:
          match: {url: null}
          schema:
            short: Therapiegerechte Packungsgröße nach N-Bezeichnung
            type: Extension
            mustSupport: true
            url: http://fhir.de/StructureDefinition/normgroesse
            index: 23
            elements:
              value:
                mustSupport: true
                choices: []
                index: 25
            required: [value]
  contained: {index: 11}
  ingredient: {index: 58}
  status: {index: 35}
  language: {index: 9}
  id: {mustSupport: true, index: 0}
  code:
    mustSupport: true
    index: 27
    elements:
      coding:
        mustSupport: true
        index: 28
        elements:
          system:
            pattern: {type: uri, value: 'http://fhir.de/CodeSystem/ifa/pzn'}
            mustSupport: true
            type: uri
            index: 29
          version: {index: 30}
          code: {short: ID des Produktes (PZN), mustSupport: true, index: 31}
          display: {index: 32}
          userSelected: {index: 33}
        required: [code, system]
      text: {short: Handelsname, maxLength: 50, mustSupport: true, index: 34}
    required: [coding, text]
  identifier: {index: 26}
  manufacturer: {index: 36}
  form:
    binding: {strength: required, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_KBV_DARREICHUNGSFORM', bindingName: MedicationForm}
    mustSupport: true
    index: 37
    elements:
      coding:
        mustSupport: true
        index: 38
        elements:
          system: {mustSupport: true, index: 39}
          version: {index: 40}
          code: {short: Code der Darreichungsform, mustSupport: true, index: 41}
          display: {index: 42}
          userSelected: {index: 43}
        required: [code, system]
      text: {index: 44}
    required: [coding]
  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: 22
  normgroesse:
    url: http://fhir.de/StructureDefinition/normgroesse
    short: Therapiegerechte Packungsgröße nach N-Bezeichnung
    type: Extension
    mustSupport: true
    index: 23
    elements:
      value:
        mustSupport: true
        choices: []
        index: 25
    required: [value]
class: profile
kind: resource
url: https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN
base: http://hl7.org/fhir/StructureDefinition/Medication
version: 1.0.0
required: [code, form, id, meta]