PackagesCanonicalsLogsProblems
    Packages
    kbv.basis@1.3.0
    https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Medication
description: null
package_name: kbv.basis
derivation: constraint
name: KBV_PR_Base_Medication
type: Medication
elements:
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        Kategorie:
          match: {url: null}
          schema:
            type: Extension
            url: https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type|1.3.0
            index: 1
            elements:
              value:
                choices: []
                index: 3
                slicing:
                  slices:
                    valueCodeableConcept:
                      match: {}
                      schema:
                        choices: []
                        _required: true
                        index: 5
                      min: 1
            required: [value]
  code:
    index: 6
    elements:
      coding:
        index: 7
        slicing:
          rules: open
          discriminator:
          - {path: $this, type: pattern}
          min: null
          slices:
            pznCode:
              match: {system: 'http://fhir.de/CodeSystem/ifa/pzn'}
              schema:
                type: Coding
                pattern:
                  type: Coding
                  value: {system: 'http://fhir.de/CodeSystem/ifa/pzn'}
                index: 8
              max: 1
            snomedCode:
              match: {system: 'http://snomed.info/sct'}
              schema:
                pattern:
                  type: Coding
                  value: {system: 'http://snomed.info/sct'}
                index: 9
                elements:
                  system: {index: 10}
                  code: {index: 11}
                required: [system, code]
            atcCode:
              match: {system: 'http://fhir.de/CodeSystem/bfarm/atc'}
              schema:
                type: Coding
                pattern:
                  type: Coding
                  value: {system: 'http://fhir.de/CodeSystem/bfarm/atc'}
                index: 12
  form:
    elements:
      coding:
        index: 13
        slicing:
          rules: open
          discriminator:
          - {path: $this, type: pattern}
          min: null
          slices:
            snomedCode:
              match: {system: 'http://snomed.info/sct'}
              schema:
                pattern:
                  type: Coding
                  value: {system: 'http://snomed.info/sct'}
                index: 14
                elements:
                  system: {index: 15}
                  code: {index: 16}
                required: [system, code]
            edqmCode:
              match: {system: 'http://standardterms.edqm.eu'}
              schema:
                binding: {strength: required, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_Base_Medicine_Doseform'}
                pattern:
                  type: Coding
                  value: {system: 'http://standardterms.edqm.eu'}
                index: 17
                elements:
                  system: {index: 18}
                  code: {index: 19}
                required: [system, code]
            kbvDarreichungsform:
              match: {system: 'https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM'}
              schema:
                binding: {strength: required, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_KBV_DARREICHUNGSFORM'}
                pattern:
                  type: Coding
                  value: {system: 'https://fhir.kbv.de/CodeSystem/KBV_CS_SFHIR_KBV_DARREICHUNGSFORM'}
                index: 20
                elements:
                  system: {index: 21}
                  code: {index: 22}
                required: [system, code]
  ingredient:
    index: 23
    elements:
      item:
        choices: [itemReference]
        index: 35
        slicing:
          slices:
            itemReference:
              match: {}
              schema:
                choices: [itemReference]
                index: 35
              min: 0
              max: 1
      itemCodeableConcept:
        type: CodeableConcept
        choiceOf: item
        index: 28
        slicing:
          slices:
            itemCodeableConcept:
              match: {}
              schema: {type: CodeableConcept, choiceOf: item, index: 28}
              min: 0
              max: 1
      item[x]:
        elements:
          reference: {index: 37}
        required: [reference]
      itemReference:
        type: Reference
        choiceOf: item
        refers: ['https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Medication|1.3.0']
        index: 36
        slicing:
          slices:
            itemReference:
              match: {}
              schema:
                type: Reference
                choiceOf: item
                refers: ['https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Medication|1.3.0']
                index: 36
              min: 0
              max: 1
      strength:
        index: 38
        elements:
          numerator:
            elements:
              value: {index: 39}
          denominator:
            elements:
              value: {index: 40}
package_version: 1.3.0
extensions:
  Kategorie:
    url: https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type|1.3.0
    type: Extension
    index: 1
    elements:
      value:
        choices: []
        index: 3
        slicing:
          slices:
            valueCodeableConcept:
              match: {}
              schema:
                choices: []
                _required: true
                index: 5
              min: 1
    required: [value]
class: profile
kind: resource
url: https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Medication
base: http://hl7.org/fhir/StructureDefinition/Medication
version: 1.3.0
required: [code]