PackagesCanonicalsLogsProblems
    Packages
    kbv.basis@1.10.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: 59
    elements:
      low:
        pattern:
          type: Quantity
          value: {code: '1', system: 'http://unitsofmeasure.org'}
        index: 60
        elements:
          value: {index: 61}
          unit: {index: 62}
          system:
            pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
            index: 63
          code: {index: 64}
        required: [value, unit, system, code]
      high:
        pattern:
          type: Quantity
          value: {code: '1', system: 'http://unitsofmeasure.org'}
        index: 65
        elements:
          value: {index: 66}
          unit: {index: 67}
          system: {index: 68}
          code: {index: 69}
        required: [value, unit, system, code]
      type:
        index: 70
        elements:
          coding: {index: 71}
          text: {index: 72}
  value[x]:
    elements:
      coding: {index: 28}
      text: {index: 29}
  interpretation:
    index: 30
    elements:
      coding: {index: 31}
      text: {index: 32}
  method:
    index: 55
    elements:
      coding: {index: 56}
      text: {index: 57}
  specimen: {index: 58}
  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: 73
    elements:
      code:
        index: 74
        elements:
          text: {index: 75}
      value:
        choices: []
        index: 77
      interpretation:
        index: 78
        elements:
          text: {index: 79}
      referenceRange:
        index: 80
        elements:
          low:
            index: 81
            elements:
              value: {index: 82}
            required: [value]
          high:
            index: 83
            elements:
              value: {index: 84}
            required: [value]
          type:
            elements:
              text: {index: 85}
  note:
    index: 33
    elements:
      author:
        choices: [authorString]
        index: 40
        slicing:
          slices:
            authorString:
              match: {}
              schema:
                choices: [authorString]
                index: 40
              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: 38
        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: 38
              min: 0
              max: 1
      authorString:
        type: string
        choiceOf: author
        index: 41
        slicing:
          slices:
            authorString:
              match: {}
              schema: {type: string, choiceOf: author, index: 41}
              min: 0
              max: 1
      time: {index: 42}
      text: {index: 43}
  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: 44
    extensions:
      bodyStructure:
        url: http://hl7.org/fhir/StructureDefinition/bodySite
        type: Extension
        index: 45
        elements:
          value:
            choices: [valueReference]
            index: 47
          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: 48
    elements:
      extension:
        type: Extension
        url: http://hl7.org/fhir/StructureDefinition/bodySite
        index: 45
        slicing:
          slices:
            bodyStructure:
              match: {}
              schema:
                type: Extension
                url: http://hl7.org/fhir/StructureDefinition/bodySite
                index: 45
                elements:
                  value:
                    choices: [valueReference]
                    index: 47
                  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: 48
      coding:
        index: 49
        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: 50
                elements:
                  system: {index: 51}
                  version: {index: 52}
                  code: {index: 53}
                  display: {index: 54}
                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.10.0', 'https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Patient|1.10.0']
    index: 10
package_version: 1.10.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.10.0
required: [subject, category]