PackagesCanonicalsLogsProblems
    Packages
    kbv.basis@1.10.0-Resources
    https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_MedicationStatement
description: Dieses Profil bildet die Medikationsinformation ab.
package_name: kbv.basis
derivation: constraint
name: KBV_PR_Base_MedicationStatement
type: MedicationStatement
elements:
  dosage:
    type: Dosage
    index: 40
    elements:
      asNeeded[x]:
        elements:
          coding:
            index: 95
            slicing:
              rules: open
              discriminator:
              - {path: $this, type: value}
              min: null
              slices:
                snomed:
                  match: {system: 'http://snomed.info/sct'}
                  schema:
                    binding: {strength: preferred, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_Base_PRN_Medication_Reason_SNOMED_CT'}
                    pattern:
                      type: Coding
                      value: {system: 'http://snomed.info/sct'}
                    array: true
                    index: 96
                    elements:
                      system: {index: 97}
                      version: {index: 98}
                      code: {index: 99}
                      display: {index: 100}
                    required: [version, display, system, code]
          text: {index: 101}
      site:
        constraint:
          bodysite-1: {human: 'Es wird entweder ein Code für die ''Körperstelle'' (Element *.bodySite) verwendet oder eine Referenz auf den Datentyp ''Körperstruktur'' (Reference BodyStructure), aber nicht beides gleichzeitig.', source: 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_MedicationStatement', severity: error, expression: '(coding.empty() and text.empty()) or extension(''http://hl7.org/fhir/StructureDefinition/bodySite'').empty()'}
        index: 102
        extensions:
          bodyStructure:
            url: http://hl7.org/fhir/StructureDefinition/bodySite
            type: Extension
            index: 103
            elements:
              value:
                choices: [valueReference]
                index: 105
              valueReference:
                type: Reference
                choiceOf: value
                refers: ['http://hl7.org/fhir/StructureDefinition/BodyStructure', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_BodyStructure|1.10.0']
                index: 106
        elements:
          extension:
            type: Extension
            url: http://hl7.org/fhir/StructureDefinition/bodySite
            index: 103
            slicing:
              slices:
                bodyStructure:
                  match: {}
                  schema:
                    type: Extension
                    url: http://hl7.org/fhir/StructureDefinition/bodySite
                    index: 103
                    elements:
                      value:
                        choices: [valueReference]
                        index: 105
                      valueReference:
                        type: Reference
                        choiceOf: value
                        refers: ['http://hl7.org/fhir/StructureDefinition/BodyStructure', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_BodyStructure|1.10.0']
                        index: 106
          coding:
            index: 107
            slicing:
              rules: open
              discriminator:
              - {path: $this, type: value}
              min: null
              slices:
                snomed:
                  match: {system: 'http://snomed.info/sct'}
                  schema:
                    binding: {strength: example, valueSet: 'http://hl7.org/fhir/ValueSet/approach-site-codes'}
                    pattern:
                      type: Coding
                      value: {system: 'http://snomed.info/sct'}
                    index: 108
                    elements:
                      system: {index: 109}
                      version: {index: 110}
                      code: {index: 111}
                      display: {index: 112}
                    required: [version, display, system, code]
          text: {index: 113}
      asNeeded:
        choices: [asNeededCodeableConcept]
        index: 93
        slicing:
          slices:
            asNeededCodeableConcept:
              match: {}
              schema:
                choices: [asNeededCodeableConcept]
                index: 93
              min: 0
              max: 1
      patientInstruction: {index: 42}
      maxDosePerAdministration:
        binding: {strength: preferred, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_BMP_DOSIEREINHEIT'}
        index: 180
        elements:
          value: {index: 181}
          unit: {index: 182}
        required: [value, unit]
      route:
        index: 114
        elements:
          coding:
            index: 115
            slicing:
              rules: open
              discriminator:
              - {path: $this, type: value}
              min: null
              slices:
                snomed:
                  match: {system: 'http://snomed.info/sct'}
                  schema:
                    binding: {strength: example, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_Base_Route_of_Administration_SNOMED_CT'}
                    pattern:
                      type: Coding
                      value: {system: 'http://snomed.info/sct'}
                    index: 116
                    elements:
                      system: {index: 117}
                      version: {index: 118}
                      code: {index: 119}
                      display: {index: 120}
                    required: [version, display, system, code]
                edqm:
                  match: {}
                  schema:
                    binding: {strength: required, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_Base_Medicine_Route_Of_Administration'}
                    index: 121
                    elements:
                      system: {index: 122}
                      code: {index: 123}
                      display: {index: 124}
                    required: [display, system, code]
          text: {index: 125}
      asNeededBoolean:
        type: boolean
        choiceOf: asNeeded
        index: 91
        slicing:
          slices:
            asNeededBoolean:
              match: {}
              schema: {type: boolean, choiceOf: asNeeded, index: 91}
              min: 0
              max: 1
      timing:
        elements:
          repeat:
            index: 43
            elements:
              boundsRange:
                type: Range
                choiceOf: bounds
                index: 60
                slicing:
                  slices:
                    boundsRange:
                      match: {}
                      schema: {type: Range, choiceOf: bounds, index: 60}
                      min: 0
                      max: 1
              frequencyMax: {index: 77}
              boundsPeriod:
                type: Period
                choiceOf: bounds
                index: 55
                slicing:
                  slices:
                    boundsPeriod:
                      match: {}
                      schema: {type: Period, choiceOf: bounds, index: 55}
                      min: 0
                      max: 1
              when:
                index: 83
                slicing:
                  rules: open
                  discriminator:
                  - {path: $this, type: value}
                  min: null
                  slices:
                    Tageszeit:
                      match: {}
                      schema:
                        binding: {strength: required, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_Base_EventTiming'}
                        array: true
                        index: 84
                      min: 0
                    Mahlzeiten-Schlafzeiten:
                      match: {}
                      schema:
                        binding: {strength: required, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_Base_TimingEvent'}
                        array: true
                        index: 85
                      min: 0
              offset: {index: 86}
              periodUnit: {index: 80}
              frequency: {index: 76}
              durationMax: {index: 74}
              duration: {index: 73}
              bounds:
                choices: [boundsRange]
                index: 59
                slicing:
                  slices:
                    boundsRange:
                      match: {}
                      schema:
                        choices: [boundsRange]
                        index: 59
                      min: 0
                      max: 1
              boundsDuration:
                type: Duration
                choiceOf: bounds
                index: 48
                slicing:
                  slices:
                    boundsDuration:
                      match: {}
                      schema: {type: Duration, choiceOf: bounds, index: 48}
              durationUnit: {index: 75}
              dayOfWeek: {index: 81}
              count: {index: 71}
              bounds[x]:
                elements:
                  low:
                    binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/units-of-time'}
                    index: 61
                    elements:
                      value: {index: 62}
                      unit: {index: 63}
                      system: {index: 64}
                      code: {index: 65}
                    required: [value, unit, system, code]
                  high:
                    binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/units-of-time'}
                    index: 66
                    elements:
                      value: {index: 67}
                      unit: {index: 68}
                      system: {index: 69}
                      code: {index: 70}
                    required: [value, unit, system, code]
              periodMax: {index: 79}
              period: {index: 78}
              countMax: {index: 72}
              timeOfDay: {index: 82}
      maxDosePerPeriod:
        index: 171
        elements:
          numerator:
            binding: {strength: preferred, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_BMP_DOSIEREINHEIT'}
            index: 172
            elements:
              value: {index: 173}
              unit: {index: 174}
            required: [value, unit]
          denominator:
            binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/units-of-time'}
            index: 175
            elements:
              value: {index: 176}
              unit: {index: 177}
              system: {index: 178}
              code: {index: 179}
            required: [value, unit, system, code]
        required: [denominator, numerator]
      doseAndRate:
        index: 126
        elements:
          dose:
            choices: [doseRange]
            index: 136
            slicing:
              slices:
                doseRange:
                  match: {}
                  schema:
                    choices: [doseRange]
                    index: 136
                  min: 0
                  max: 1
          dose[x]:
            elements:
              low:
                binding: {strength: preferred, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_BMP_DOSIEREINHEIT'}
                index: 138
                elements:
                  value: {index: 139}
                  unit: {index: 140}
                required: [value, unit]
              high:
                binding: {strength: preferred, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_BMP_DOSIEREINHEIT'}
                index: 141
                elements:
                  value: {index: 142}
                  unit: {index: 143}
                required: [value, unit]
          doseRange:
            type: Range
            choiceOf: dose
            index: 137
            slicing:
              slices:
                doseRange:
                  match: {}
                  schema: {type: Range, choiceOf: dose, index: 137}
                  min: 0
                  max: 1
          rate:
            choices: [rateRange]
            index: 163
            slicing:
              slices:
                rateRange:
                  match: {}
                  schema:
                    choices: [rateRange]
                    index: 163
                  min: 0
                  max: 1
          rateRatio:
            type: Ratio
            choiceOf: rate
            index: 148
            slicing:
              slices:
                rateRatio:
                  match: {}
                  schema: {type: Ratio, choiceOf: rate, index: 148}
                  min: 0
                  max: 1
          rate[x]:
            elements:
              low:
                index: 165
                elements:
                  value: {index: 166}
                  unit: {index: 167}
                required: [value, unit]
              high:
                index: 168
                elements:
                  value: {index: 169}
                  unit: {index: 170}
                required: [value, unit]
          rateQuantity:
            type: Quantity
            choiceOf: rate
            index: 159
            slicing:
              slices:
                rateQuantity:
                  match: {}
                  schema: {type: Quantity, choiceOf: rate, index: 159}
                  min: 0
                  max: 1
          rateRange:
            type: Range
            choiceOf: rate
            index: 164
            slicing:
              slices:
                rateRange:
                  match: {}
                  schema: {type: Range, choiceOf: rate, index: 164}
                  min: 0
                  max: 1
      asNeededCodeableConcept:
        type: CodeableConcept
        choiceOf: asNeeded
        index: 94
        slicing:
          slices:
            asNeededCodeableConcept:
              match: {}
              schema: {type: CodeableConcept, choiceOf: asNeeded, index: 94}
              min: 0
              max: 1
      text: {index: 41}
  reasonCode:
    index: 22
    elements:
      coding:
        index: 23
        elements:
          system: {index: 24}
          code: {index: 25}
          display: {index: 26}
        required: [display, system, code]
      text: {index: 27}
  statusReason:
    binding: {strength: example, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_Base_Drug_Therapy_Status_Codes_SNOMED_CT'}
    index: 3
    elements:
      text: {index: 4}
  note:
    index: 29
    elements:
      author:
        choices: [authorString]
        index: 36
        slicing:
          slices:
            authorString:
              match: {}
              schema:
                choices: [authorString]
                index: 36
              min: 0
              max: 1
      authorReference:
        refers: ['http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Organization|1.10.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Patient|1.10.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Practitioner|1.10.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_RelatedPerson|1.10.0']
        type: Reference
        choiceOf: author
        index: 34
        slicing:
          slices:
            authorReference:
              match: {}
              schema:
                refers: ['http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Organization|1.10.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Patient|1.10.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Practitioner|1.10.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_RelatedPerson|1.10.0']
                type: Reference
                choiceOf: author
                index: 34
              min: 0
              max: 1
      authorString:
        type: string
        choiceOf: author
        index: 37
        slicing:
          slices:
            authorString:
              match: {}
              schema: {type: string, choiceOf: author, index: 37}
              min: 0
              max: 1
      time: {index: 38}
      text: {index: 39}
  effective[x]:
    elements:
      start: {index: 19}
      end: {index: 20}
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        behandlungsziel:
          match: {url: null}
          schema: {type: Extension, url: 'http://hl7.org/fhir/StructureDefinition/resource-pertainsToGoal', index: 1}
          min: 0
  effectiveDateTime:
    type: dateTime
    choiceOf: effective
    index: 15
    slicing:
      slices:
        effectiveDateTime:
          match: {}
          schema: {type: dateTime, choiceOf: effective, index: 15}
          min: 0
          max: 1
  status: {index: 2}
  effective:
    choices: [effectivePeriod]
    index: 17
    slicing:
      slices:
        effectivePeriod:
          match: {}
          schema:
            choices: [effectivePeriod]
            index: 17
          min: 0
          max: 1
  dateAsserted: {index: 21}
  medicationReference:
    refers: ['http://hl7.org/fhir/StructureDefinition/Medication', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Medication|1.10.0']
    type: Reference
    choiceOf: medication
    index: 9
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            refers: ['http://hl7.org/fhir/StructureDefinition/Medication', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Medication|1.10.0']
            type: Reference
            _required: true
            choiceOf: medication
            index: 9
          min: 1
          max: 1
  subject:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/Group', 'http://hl7.org/fhir/StructureDefinition/Patient', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Patient|1.10.0']
    index: 10
  effectivePeriod:
    type: Period
    choiceOf: effective
    index: 18
    slicing:
      slices:
        effectivePeriod:
          match: {}
          schema: {type: Period, choiceOf: effective, index: 18}
          min: 0
          max: 1
  medication:
    choices: []
    index: 6
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: type}
      min: null
      slices:
        medicationReference:
          match: {}
          schema:
            choices: [medicationReference]
            _required: true
            index: 8
          min: 1
          max: 1
  reasonReference:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/Condition', 'http://hl7.org/fhir/StructureDefinition/DiagnosticReport', 'http://hl7.org/fhir/StructureDefinition/Observation', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Condition_Diagnosis|1.10.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_DiagnosticReport|1.10.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Apgar_Score|1.10.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Blood_Pressure|1.10.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Body_Height|1.10.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Body_Temperature|1.10.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Body_Weight|1.10.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Breastfeeding_Status|1.10.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Care_Level|1.10.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Estimated_Date_of_Delivery|1.10.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Glucose_Concentration|1.10.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Head_Circumference|1.10.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Heart_Rate|1.10.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Pain_Scale_Score|1.10.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Peripheral_Oxygen_Saturation|1.10.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Pregnancy_Status|1.10.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Respiratory_Rate|1.10.0']
    index: 28
package_version: 1.10.0-Resources
extensions:
  behandlungsziel: {url: 'http://hl7.org/fhir/StructureDefinition/resource-pertainsToGoal', min: 0, type: Extension, index: 1}
class: profile
kind: resource
url: https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_MedicationStatement
base: http://hl7.org/fhir/StructureDefinition/MedicationStatement
version: 1.10.0
required: [medicationReference]