PackagesCanonicalsLogsProblems
    Packages
    kbv.basis@1.7.0-Expansions
    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:
    index: 39
    elements:
      asNeeded[x]:
        elements:
          coding:
            index: 83
            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: 84
                    elements:
                      system: {index: 85}
                      version: {index: 86}
                      code: {index: 87}
                      display: {index: 88}
                    required: [version, display, system, code]
          text: {index: 89}
      site:
        index: 90
        elements:
          coding:
            index: 91
            elements:
              system: {index: 92}
              code: {index: 93}
              display: {index: 94}
            required: [display, system, code]
          text: {index: 95}
      asNeeded:
        choices: [asNeededCodeableConcept]
        index: 81
        slicing:
          slices:
            asNeededCodeableConcept:
              match: {}
              schema:
                choices: [asNeededCodeableConcept]
                index: 81
              min: 0
              max: 1
      patientInstruction: {index: 41}
      maxDosePerAdministration:
        binding: {strength: preferred, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_BMP_DOSIEREINHEIT'}
        index: 140
        elements:
          value: {index: 141}
        required: [value]
      route:
        index: 96
        elements:
          coding:
            index: 97
            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: 98
                    elements:
                      system: {index: 99}
                      version: {index: 100}
                      code: {index: 101}
                      display: {index: 102}
                    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: 103
                    elements:
                      system: {index: 104}
                      code: {index: 105}
                      display: {index: 106}
                    required: [display, system, code]
          text: {index: 107}
      asNeededBoolean:
        type: boolean
        choiceOf: asNeeded
        index: 79
        slicing:
          slices:
            asNeededBoolean:
              match: {}
              schema: {type: boolean, choiceOf: asNeeded, index: 79}
              min: 0
              max: 1
      timing:
        elements:
          repeat:
            index: 42
            elements:
              boundsRange:
                type: Range
                choiceOf: bounds
                index: 56
                slicing:
                  slices:
                    boundsRange:
                      match: {}
                      schema: {type: Range, choiceOf: bounds, index: 56}
                      min: 0
                      max: 1
              frequencyMax: {index: 66}
              boundsPeriod:
                type: Period
                choiceOf: bounds
                index: 47
                slicing:
                  slices:
                    boundsPeriod:
                      match: {}
                      schema: {type: Period, choiceOf: bounds, index: 47}
                      min: 0
                      max: 1
              when:
                index: 71
                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: 72
                      min: 0
                    Mahlzeiten-Schlafzeiten:
                      match: {}
                      schema:
                        binding: {strength: required, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_Base_TimingEvent'}
                        array: true
                        index: 73
                      min: 0
              offset: {index: 74}
              frequency: {index: 65}
              durationMax: {index: 64}
              duration: {index: 63}
              bounds:
                choices: [boundsRange]
                index: 55
                slicing:
                  slices:
                    boundsRange:
                      match: {}
                      schema:
                        choices: [boundsRange]
                        index: 55
                      min: 0
                      max: 1
              boundsDuration:
                type: Duration
                choiceOf: bounds
                index: 52
                slicing:
                  slices:
                    boundsDuration:
                      match: {}
                      schema: {type: Duration, choiceOf: bounds, index: 52}
                      min: 0
                      max: 1
              dayOfWeek: {index: 69}
              count: {index: 61}
              bounds[x]:
                elements:
                  low:
                    index: 57
                    elements:
                      value: {index: 58}
                  high:
                    index: 59
                    elements:
                      value: {index: 60}
              periodMax: {index: 68}
              period: {index: 67}
              countMax: {index: 62}
              timeOfDay: {index: 70}
      maxDosePerPeriod:
        index: 133
        elements:
          numerator:
            binding: {strength: preferred, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_BMP_DOSIEREINHEIT'}
            index: 134
            elements:
              value: {index: 135}
            required: [value]
          denominator:
            binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/units-of-time'}
            index: 136
            elements:
              value: {index: 137}
              system: {index: 138}
              code: {index: 139}
            required: [value, system, code]
      doseAndRate:
        index: 108
        elements:
          dose:
            choices: [doseRange]
            index: 116
            slicing:
              slices:
                doseRange:
                  match: {}
                  schema:
                    choices: [doseRange]
                    index: 116
                  min: 0
                  max: 1
          doseQuantity:
            type: Quantity
            choiceOf: dose
            index: 113
            slicing:
              slices:
                doseQuantity:
                  match: {}
                  schema: {type: Quantity, choiceOf: dose, index: 113}
                  min: 0
                  max: 1
          dose[x]:
            elements:
              low:
                binding: {strength: preferred, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_BMP_DOSIEREINHEIT'}
                index: 118
                elements:
                  value: {index: 119}
              high:
                binding: {strength: preferred, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_BMP_DOSIEREINHEIT'}
                index: 120
                elements:
                  value: {index: 121}
          doseRange:
            type: Range
            choiceOf: dose
            index: 117
            slicing:
              slices:
                doseRange:
                  match: {}
                  schema: {type: Range, choiceOf: dose, index: 117}
                  min: 0
                  max: 1
          rate:
            choices: []
            index: 123
            slicing:
              rules: open
              discriminator:
              - {path: $this, type: type}
              min: null
              slices:
                rateRatio:
                  match: {}
                  schema:
                    choices: [rateRatio]
                    index: 125
                  min: 0
                  max: 1
          rateRatio:
            type: Ratio
            choiceOf: rate
            index: 126
            slicing:
              slices:
                rateRatio:
                  match: {}
                  schema: {type: Ratio, choiceOf: rate, index: 126}
                  min: 0
                  max: 1
          rate[x]:
            elements:
              numerator:
                binding: {strength: preferred, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_SFHIR_BMP_DOSIEREINHEIT'}
                index: 127
                elements:
                  value: {index: 128}
              denominator:
                binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/units-of-time'}
                index: 129
                elements:
                  value: {index: 130}
                  system: {index: 131}
                  code: {index: 132}
                required: [system, code]
      asNeededCodeableConcept:
        type: CodeableConcept
        choiceOf: asNeeded
        index: 82
        slicing:
          slices:
            asNeededCodeableConcept:
              match: {}
              schema: {type: CodeableConcept, choiceOf: asNeeded, index: 82}
              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.7.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Patient|1.7.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Practitioner|1.7.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_RelatedPerson|1.7.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.7.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Patient|1.7.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Practitioner|1.7.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_RelatedPerson|1.7.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.7.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.7.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.7.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.7.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_DiagnosticReport|1.7.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Apgar_Score|1.7.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Blood_Pressure|1.7.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Body_Height|1.7.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Body_Temperature|1.7.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Body_Weight|1.7.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Breastfeeding_Status|1.7.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Care_Level|1.7.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Estimated_Date_of_Delivery|1.7.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Glucose_Concentration|1.7.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Head_Circumference|1.7.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Heart_Rate|1.7.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Pain_Scale_Score|1.7.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Peripheral_Oxygen_Saturation|1.7.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Pregnancy_Status|1.7.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Respiratory_Rate|1.7.0']
    index: 27
package_version: 1.7.0-Expansions
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.7.0
required: [medicationReference]