PackagesCanonicalsLogsProblems
    Packages
    kbv.basis@1.9.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: 39
    elements:
      asNeeded[x]:
        elements:
          coding:
            index: 94
            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: 95
                    elements:
                      system: {index: 96}
                      version: {index: 97}
                      code: {index: 98}
                      display: {index: 99}
                    required: [version, display, system, code]
          text: {index: 100}
      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: 101
        extensions:
          bodyStructure:
            url: http://hl7.org/fhir/StructureDefinition/bodySite
            type: Extension
            index: 102
            elements:
              value:
                choices: [valueReference]
                index: 104
              valueReference:
                type: Reference
                choiceOf: value
                refers: ['http://hl7.org/fhir/StructureDefinition/BodyStructure', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_BodyStructure|1.9.0']
                index: 105
        elements:
          extension:
            type: Extension
            url: http://hl7.org/fhir/StructureDefinition/bodySite
            index: 102
            slicing:
              slices:
                bodyStructure:
                  match: {}
                  schema:
                    type: Extension
                    url: http://hl7.org/fhir/StructureDefinition/bodySite
                    index: 102
                    elements:
                      value:
                        choices: [valueReference]
                        index: 104
                      valueReference:
                        type: Reference
                        choiceOf: value
                        refers: ['http://hl7.org/fhir/StructureDefinition/BodyStructure', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_BodyStructure|1.9.0']
                        index: 105
          coding:
            index: 106
            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: 107
                    elements:
                      system: {index: 108}
                      version: {index: 109}
                      code: {index: 110}
                      display: {index: 111}
                    required: [version, display, system, code]
          text: {index: 112}
      asNeeded:
        choices: [asNeededCodeableConcept]
        index: 92
        slicing:
          slices:
            asNeededCodeableConcept:
              match: {}
              schema:
                choices: [asNeededCodeableConcept]
                index: 92
              min: 0
              max: 1
      patientInstruction: {index: 41}
      maxDosePerAdministration:
        binding: {strength: preferred, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_BMP_DOSIEREINHEIT'}
        index: 177
        elements:
          value: {index: 178}
          unit: {index: 179}
        required: [value, unit]
      route:
        index: 113
        elements:
          coding:
            index: 114
            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: 115
                    elements:
                      system: {index: 116}
                      version: {index: 117}
                      code: {index: 118}
                      display: {index: 119}
                    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: 120
                    elements:
                      system: {index: 121}
                      code: {index: 122}
                      display: {index: 123}
                    required: [display, system, code]
          text: {index: 124}
      asNeededBoolean:
        type: boolean
        choiceOf: asNeeded
        index: 90
        slicing:
          slices:
            asNeededBoolean:
              match: {}
              schema: {type: boolean, choiceOf: asNeeded, index: 90}
              min: 0
              max: 1
      timing:
        elements:
          repeat:
            index: 42
            elements:
              boundsRange:
                type: Range
                choiceOf: bounds
                index: 59
                slicing:
                  slices:
                    boundsRange:
                      match: {}
                      schema: {type: Range, choiceOf: bounds, index: 59}
                      min: 0
                      max: 1
              frequencyMax: {index: 76}
              boundsPeriod:
                type: Period
                choiceOf: bounds
                index: 54
                slicing:
                  slices:
                    boundsPeriod:
                      match: {}
                      schema: {type: Period, choiceOf: bounds, index: 54}
                      min: 0
                      max: 1
              when:
                index: 82
                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: 83
                      min: 0
                    Mahlzeiten-Schlafzeiten:
                      match: {}
                      schema:
                        binding: {strength: required, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_Base_TimingEvent'}
                        array: true
                        index: 84
                      min: 0
              offset: {index: 85}
              periodUnit: {index: 79}
              frequency: {index: 75}
              durationMax: {index: 73}
              duration: {index: 72}
              bounds:
                choices: [boundsRange]
                index: 58
                slicing:
                  slices:
                    boundsRange:
                      match: {}
                      schema:
                        choices: [boundsRange]
                        index: 58
                      min: 0
                      max: 1
              boundsDuration:
                type: Duration
                choiceOf: bounds
                index: 47
                slicing:
                  slices:
                    boundsDuration:
                      match: {}
                      schema: {type: Duration, choiceOf: bounds, index: 47}
              durationUnit: {index: 74}
              dayOfWeek: {index: 80}
              count: {index: 70}
              bounds[x]:
                elements:
                  low:
                    binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/units-of-time'}
                    index: 60
                    elements:
                      value: {index: 61}
                      unit: {index: 62}
                      system: {index: 63}
                      code: {index: 64}
                    required: [value, unit, system, code]
                  high:
                    binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/units-of-time'}
                    index: 65
                    elements:
                      value: {index: 66}
                      unit: {index: 67}
                      system: {index: 68}
                      code: {index: 69}
                    required: [value, unit, system, code]
              periodMax: {index: 78}
              period: {index: 77}
              countMax: {index: 71}
              timeOfDay: {index: 81}
      maxDosePerPeriod:
        index: 168
        elements:
          numerator:
            binding: {strength: preferred, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_BMP_DOSIEREINHEIT'}
            index: 169
            elements:
              value: {index: 170}
              unit: {index: 171}
            required: [value, unit]
          denominator:
            binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/units-of-time'}
            index: 172
            elements:
              value: {index: 173}
              unit: {index: 174}
              system: {index: 175}
              code: {index: 176}
            required: [value, unit, system, code]
        required: [denominator, numerator]
      doseAndRate:
        index: 125
        elements:
          dose:
            choices: [doseRange]
            index: 133
            slicing:
              slices:
                doseRange:
                  match: {}
                  schema:
                    choices: [doseRange]
                    index: 133
                  min: 0
                  max: 1
          dose[x]:
            elements:
              low:
                binding: {strength: preferred, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_BMP_DOSIEREINHEIT'}
                index: 135
                elements:
                  value: {index: 136}
                  unit: {index: 137}
                required: [value, unit]
              high:
                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]
          doseRange:
            type: Range
            choiceOf: dose
            index: 134
            slicing:
              slices:
                doseRange:
                  match: {}
                  schema: {type: Range, choiceOf: dose, index: 134}
                  min: 0
                  max: 1
          rate:
            choices: [rateRange]
            index: 160
            slicing:
              slices:
                rateRange:
                  match: {}
                  schema:
                    choices: [rateRange]
                    index: 160
                  min: 0
                  max: 1
          rateRatio:
            type: Ratio
            choiceOf: rate
            index: 145
            slicing:
              slices:
                rateRatio:
                  match: {}
                  schema: {type: Ratio, choiceOf: rate, index: 145}
                  min: 0
                  max: 1
          rate[x]:
            elements:
              low:
                index: 162
                elements:
                  value: {index: 163}
                  unit: {index: 164}
                required: [value, unit]
              high:
                index: 165
                elements:
                  value: {index: 166}
                  unit: {index: 167}
                required: [value, unit]
          rateQuantity:
            type: Quantity
            choiceOf: rate
            index: 156
            slicing:
              slices:
                rateQuantity:
                  match: {}
                  schema: {type: Quantity, choiceOf: rate, index: 156}
                  min: 0
                  max: 1
          rateRange:
            type: Range
            choiceOf: rate
            index: 161
            slicing:
              slices:
                rateRange:
                  match: {}
                  schema: {type: Range, choiceOf: rate, index: 161}
                  min: 0
                  max: 1
      asNeededCodeableConcept:
        type: CodeableConcept
        choiceOf: asNeeded
        index: 93
        slicing:
          slices:
            asNeededCodeableConcept:
              match: {}
              schema: {type: CodeableConcept, choiceOf: asNeeded, index: 93}
              min: 0
              max: 1
      text: {index: 40}
  reasonCode:
    index: 21
    elements:
      coding:
        index: 22
        elements:
          system: {index: 23}
          code: {index: 24}
          display: {index: 25}
        required: [display, system, code]
      text: {index: 26}
  statusReason:
    binding: {strength: example, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_Base_Drug_Therapy_Status_Codes_SNOMED_CT'}
    index: 3
  note:
    index: 28
    elements:
      author:
        choices: [authorString]
        index: 35
        slicing:
          slices:
            authorString:
              match: {}
              schema:
                choices: [authorString]
                index: 35
              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.9.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Patient|1.9.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Practitioner|1.9.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_RelatedPerson|1.9.0']
        type: Reference
        choiceOf: author
        index: 33
        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.9.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Patient|1.9.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Practitioner|1.9.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_RelatedPerson|1.9.0']
                type: Reference
                choiceOf: author
                index: 33
              min: 0
              max: 1
      authorString:
        type: string
        choiceOf: author
        index: 36
        slicing:
          slices:
            authorString:
              match: {}
              schema: {type: string, choiceOf: author, index: 36}
              min: 0
              max: 1
      time: {index: 37}
      text: {index: 38}
  effective[x]:
    elements:
      start: {index: 18}
      end: {index: 19}
  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: 14
    slicing:
      slices:
        effectiveDateTime:
          match: {}
          schema: {type: dateTime, choiceOf: effective, index: 14}
          min: 0
          max: 1
  status: {index: 2}
  effective:
    choices: [effectivePeriod]
    index: 16
    slicing:
      slices:
        effectivePeriod:
          match: {}
          schema:
            choices: [effectivePeriod]
            index: 16
          min: 0
          max: 1
  dateAsserted: {index: 20}
  medicationReference:
    refers: ['http://hl7.org/fhir/StructureDefinition/Medication', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Medication|1.9.0']
    type: Reference
    choiceOf: medication
    index: 8
    slicing:
      slices:
        medicationReference:
          match: {}
          schema:
            refers: ['http://hl7.org/fhir/StructureDefinition/Medication', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Medication|1.9.0']
            type: Reference
            _required: true
            choiceOf: medication
            index: 8
          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.9.0']
    index: 9
  effectivePeriod:
    type: Period
    choiceOf: effective
    index: 17
    slicing:
      slices:
        effectivePeriod:
          match: {}
          schema: {type: Period, choiceOf: effective, index: 17}
          min: 0
          max: 1
  medication:
    choices: []
    index: 5
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: type}
      min: null
      slices:
        medicationReference:
          match: {}
          schema:
            choices: [medicationReference]
            _required: true
            index: 7
          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.9.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_DiagnosticReport|1.9.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Apgar_Score|1.9.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Blood_Pressure|1.9.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Body_Height|1.9.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Body_Temperature|1.9.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Body_Weight|1.9.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Breastfeeding_Status|1.9.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Care_Level|1.9.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Estimated_Date_of_Delivery|1.9.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Glucose_Concentration|1.9.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Head_Circumference|1.9.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Heart_Rate|1.9.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Pain_Scale_Score|1.9.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Peripheral_Oxygen_Saturation|1.9.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Pregnancy_Status|1.9.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Respiratory_Rate|1.9.0']
    index: 27
package_version: 1.9.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.9.0
required: [medicationReference]