PackagesCanonicalsLogsProblems
    Packages
    kbv.basis@1.9.0
    https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Pain_Scale_Score
description: Dieses Profil bildet einen Score für einen Schmerz anhand einer Skala ab.
package_name: kbv.basis
derivation: constraint
name: KBV_PR_Base_Observation_Pain_Scale_Score
type: Observation
elements:
  category:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: pattern}
      min: 1
      slices:
        survey:
          match:
            coding:
            - {code: survey, system: 'http://terminology.hl7.org/CodeSystem/observation-category'}
          schema:
            pattern:
              type: CodeableConcept
              value:
                coding:
                - {code: survey, system: 'http://terminology.hl7.org/CodeSystem/observation-category'}
            _required: true
            index: 1
          min: 1
          max: 1
  referenceRange:
    index: 58
    elements:
      low:
        pattern:
          type: Quantity
          value: {code: '1', system: 'http://unitsofmeasure.org'}
        index: 59
        elements:
          value: {index: 60}
          unit: {index: 61}
          system:
            pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
            index: 62
          code: {index: 63}
        required: [value, unit, system, code]
      high:
        pattern:
          type: Quantity
          value: {code: '1', system: 'http://unitsofmeasure.org'}
        index: 64
        elements:
          value: {index: 65}
          unit: {index: 66}
          system: {index: 67}
          code: {index: 68}
        required: [value, unit, system, code]
      type:
        index: 69
        elements:
          coding: {index: 70}
      text: {index: 71}
  value[x]:
    elements:
      coding: {index: 28}
  interpretation:
    index: 29
    elements:
      coding: {index: 30}
      text: {index: 31}
  method:
    index: 54
    elements:
      coding: {index: 55}
      text: {index: 56}
  specimen: {index: 57}
  valueQuantity:
    type: Quantity
    pattern:
      type: Quantity
      value: {code: '1', system: 'http://unitsofmeasure.org'}
    choiceOf: value
    index: 20
    slicing:
      slices:
        valueQuantity:
          match: {}
          schema:
            type: Quantity
            pattern:
              type: Quantity
              value: {code: '1', system: 'http://unitsofmeasure.org'}
            choiceOf: value
            index: 20
          min: 0
          max: 1
  value:
    choices: [valueCodeableConcept]
    index: 26
    slicing:
      slices:
        valueCodeableConcept:
          match: {}
          schema:
            choices: [valueCodeableConcept]
            index: 26
          min: 0
          max: 1
  component:
    index: 72
    elements:
      code: {index: 73}
      value:
        choices: []
        index: 75
      interpretation: {index: 76}
      referenceRange:
        index: 77
        elements:
          low:
            index: 78
            elements:
              value: {index: 79}
            required: [value]
          high:
            index: 80
            elements:
              value: {index: 81}
            required: [value]
          text:
            pattern: {type: String, value: Hier wird ein Freitext eingetragen.}
            index: 82
  note:
    index: 32
    elements:
      author:
        choices: [authorString]
        index: 39
        slicing:
          slices:
            authorString:
              match: {}
              schema:
                choices: [authorString]
                index: 39
              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: 37
        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: 37
              min: 0
              max: 1
      authorString:
        type: string
        choiceOf: author
        index: 40
        slicing:
          slices:
            authorString:
              match: {}
              schema: {type: string, choiceOf: author, index: 40}
              min: 0
              max: 1
      time: {index: 41}
      text: {index: 42}
  effectiveDateTime: {type: dateTime, choiceOf: effective, index: 13}
  effective:
    choices: [effectiveDateTime]
    index: 12
  code:
    index: 2
    elements:
      coding:
        index: 3
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: null
          slices:
            snomed:
              match: {system: 'http://snomed.info/sct'}
              schema:
                binding: {strength: extensible, valueSet: 'https://fhir.kbv.de/ValueSet/KBV_VS_Base_Pain_Scale_SNOMED_CT'}
                array: true
                index: 4
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://snomed.info/sct'}
                    index: 5
                  version: {index: 6}
                  code: {index: 7}
                  display: {index: 8}
                required: [version, display, system, code]
      text: {index: 9}
  valueCodeableConcept:
    type: CodeableConcept
    choiceOf: value
    index: 27
    slicing:
      slices:
        valueCodeableConcept:
          match: {}
          schema: {type: CodeableConcept, choiceOf: value, index: 27}
          min: 0
          max: 1
  bodySite:
    short: Körperstelle
    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_Observation_Pain_Scale_Score', severity: error, expression: '(coding.empty() and text.empty()) or extension(''http://hl7.org/fhir/StructureDefinition/bodySite'').empty()'}
    index: 43
    extensions:
      bodyStructure:
        url: http://hl7.org/fhir/StructureDefinition/bodySite
        type: Extension
        index: 44
        elements:
          value:
            choices: [valueReference]
            index: 46
          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: 47
    elements:
      extension:
        type: Extension
        url: http://hl7.org/fhir/StructureDefinition/bodySite
        index: 44
        slicing:
          slices:
            bodyStructure:
              match: {}
              schema:
                type: Extension
                url: http://hl7.org/fhir/StructureDefinition/bodySite
                index: 44
                elements:
                  value:
                    choices: [valueReference]
                    index: 46
                  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: 47
      coding:
        index: 48
        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/body-site'}
                pattern:
                  type: Coding
                  value: {system: 'http://snomed.info/sct'}
                index: 49
                elements:
                  system: {index: 50}
                  version: {index: 51}
                  code: {index: 52}
                  display: {index: 53}
                required: [version, display, system, code]
  subject:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Group', 'http://hl7.org/fhir/StructureDefinition/Location', 'http://hl7.org/fhir/StructureDefinition/Patient', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Device|1.9.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Patient|1.9.0']
    index: 10
package_version: 1.9.0
class: profile
kind: resource
url: https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Observation_Pain_Scale_Score
base: http://hl7.org/fhir/StructureDefinition/Observation
version: 1.9.0
required: [subject, category]