PackagesCanonicalsLogsProblems
    Packages
    kbv.ita.erp@1.1.0-PreRelease
    https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN
description: null
package_name: kbv.ita.erp
derivation: constraint
name: KBV_PR_ERP_Medication_PZN
type: Medication
elements:
  amount:
    mustSupport: true
    index: 64
    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: 65
        elements:
          value: {short: Packungsgröße nach abgeteilter Menge, mustSupport: true, index: 66}
          comparator: {index: 67}
          unit: {short: Einheit, maxLength: 12, mustSupport: true, index: 68}
          system:
            pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
            mustSupport: false
            index: 69
          code: {short: Packungseinheit (kodiert), index: 70}
        required: [value, unit]
      denominator:
        mustSupport: true
        index: 71
        elements:
          value:
            mustSupport: true
            pattern: {type: Decimal, value: 1}
            index: 72
          comparator: {index: 73}
          unit: {index: 74}
          system: {index: 75}
          code: {index: 76}
        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.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: '763158003'}
                        mustSupport: true
                        index: 21
                      display:
                        pattern: {type: String, value: Medicinal product (product)}
                        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: 34
        Normgroesse:
          match: {url: null}
          schema:
            short: Packungsgröße nach N-Bezeichnung
            type: Extension
            mustSupport: true
            url: http://fhir.de/StructureDefinition/normgroesse
            index: 35
            elements:
              value:
                mustSupport: true
                choices: []
                index: 37
                slicing:
                  rules: closed
                  discriminator:
                  - {path: $this, type: type}
                  min: 1
                  slices:
                    valueCode:
                      match: {}
                      schema:
                        mustSupport: true
                        choices: []
                        index: 39
            required: [value]
  contained: {index: 11}
  ingredient: {index: 77}
  status: {index: 52}
  language: {index: 9}
  id: {mustSupport: true, index: 0}
  code:
    mustSupport: true
    index: 41
    elements:
      coding:
        mustSupport: true
        index: 42
        slicing:
          slices:
            pznCode:
              match: {}
              schema:
                short: ID des Produktes (PZN)
                constraint:
                  -erp-begrenzungPznCode: {human: Der PZN-Code muss aus genau 8 Zeichen bestehen., source: 'https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN', severity: error, expression: code.length()=8}
                _required: true
                index: 43
                elements:
                  system: {mustSupport: true, index: 44}
                  version: {index: 45}
                  code: {mustSupport: true, index: 46}
                  display: {index: 47}
                  userSelected: {index: 48}
            snomedCode:
              match: {}
              schema: {index: 49}
              max: 0
            atcCode:
              match: {}
              schema: {index: 50}
              max: 0
      text: {short: Handelsname, maxLength: 50, mustSupport: true, index: 51}
    required: [coding, text]
  identifier: {index: 40}
  manufacturer: {index: 53}
  form:
    mustSupport: true
    index: 54
    elements:
      coding:
        mustSupport: true
        index: 55
        slicing:
          slices:
            snomedCode:
              match: {}
              schema: {index: 56}
              max: 0
            edqmCode:
              match: {}
              schema: {index: 57}
              max: 0
            kbvDarreichungsform:
              match: {}
              schema:
                mustSupport: true
                _required: true
                index: 58
                elements:
                  system: {mustSupport: true, index: 59}
                  version: {index: 60}
                  code: {short: Code der Darreichungsform, mustSupport: true, index: 61}
                  userSelected: {index: 62}
      text: {index: 63}
    required: [coding]
  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: '763158003'}
                mustSupport: true
                index: 21
              display:
                pattern: {type: String, value: Medicinal product (product)}
                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: 34
  Normgroesse:
    url: http://fhir.de/StructureDefinition/normgroesse
    short: Packungsgröße nach N-Bezeichnung
    type: Extension
    mustSupport: true
    index: 35
    elements:
      value:
        mustSupport: true
        choices: []
        index: 37
        slicing:
          rules: closed
          discriminator:
          - {path: $this, type: type}
          min: 1
          slices:
            valueCode:
              match: {}
              schema:
                mustSupport: true
                choices: []
                index: 39
    required: [value]
class: profile
kind: resource
url: https://fhir.kbv.de/StructureDefinition/KBV_PR_ERP_Medication_PZN
base: https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Medication|1.3.0
version: 1.1.0
required: [form, id, meta]