PackagesCanonicalsLogsProblems
    Packages
    kbv.basis@1.2.1
    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: 1
      slices:
        Kategorie:
          match: {url: null}
          schema:
            type: Extension
            url: https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type
            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:
                pattern:
                  type: Coding
                  value: {system: 'http://fhir.de/CodeSystem/ifa/pzn'}
                index: 8
                elements:
                  system: {index: 9}
                  code: {index: 10}
                required: [system, code]
            snomedCode:
              match: {system: 'http://snomed.info/sct'}
              schema:
                pattern:
                  type: Coding
                  value: {system: 'http://snomed.info/sct'}
                index: 11
                elements:
                  system: {index: 12}
                  code: {index: 13}
                required: [system, code]
            atcCode:
              match: {system: 'http://fhir.de/CodeSystem/dimdi/atc'}
              schema:
                pattern:
                  type: Coding
                  value: {system: 'http://fhir.de/CodeSystem/dimdi/atc'}
                index: 14
                elements:
                  system: {index: 15}
                  code: {index: 16}
                required: [system, code]
  form:
    elements:
      coding:
        index: 17
        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: 18
                elements:
                  system: {index: 19}
                  code: {index: 20}
                required: [system, code]
            edqmCode:
              match: {system: 'http://standardterms.edqm.eu'}
              schema:
                binding: {strength: required, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_Base_EDQM'}
                pattern:
                  type: Coding
                  value: {system: 'http://standardterms.edqm.eu'}
                index: 21
                elements:
                  system: {index: 22}
                  code: {index: 23}
                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: 24
                elements:
                  system: {index: 25}
                  code: {index: 26}
                required: [system, code]
  ingredient:
    index: 27
    elements:
      item:
        choices: [itemReference]
        index: 43
        slicing:
          slices:
            itemReference:
              match: {}
              schema:
                choices: [itemReference]
                index: 43
              min: 0
      itemCodeableConcept:
        type: CodeableConcept
        choiceOf: item
        index: 34
        slicing:
          slices:
            itemCodeableConcept:
              match: {}
              schema: {type: CodeableConcept, choiceOf: item, index: 34}
              min: 0
      itemReference:
        type: Reference
        choiceOf: item
        refers: ['https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Medication|1.2.1']
        index: 44
        slicing:
          slices:
            itemReference:
              match: {}
              schema:
                type: Reference
                choiceOf: item
                refers: ['https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Medication|1.2.1']
                index: 44
              min: 0
      item[x]:
        elements:
          reference: {index: 45}
        required: [reference]
      strength:
        index: 46
        elements:
          numerator:
            elements:
              value: {index: 47}
          denominator:
            elements:
              value: {index: 48}
package_version: 1.2.1
extensions:
  Kategorie:
    url: https://fhir.kbv.de/StructureDefinition/KBV_EX_Base_Medication_Type
    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.2.1
required: [extension, code]