PackagesCanonicalsLogsProblems
    Packages
    de.basisprofil.r4@1.4.0
    http://fhir.de/StructureDefinition/observation-de-vitalsign
description: null
package_name: de.basisprofil.r4
derivation: constraint
name: VitalSignDE
type: Observation
elements:
  category:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: pattern}
      min: 1
      slices:
        vs-cat:
          match:
            coding:
            - {code: vital-signs, system: 'http://terminology.hl7.org/CodeSystem/observation-category'}
          schema:
            pattern:
              type: CodeableConcept
              value:
                coding:
                - {code: vital-signs, system: 'http://terminology.hl7.org/CodeSystem/observation-category'}
            _required: true
            index: 1
          min: 1
          max: 1
  subject:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/Group', 'http://hl7.org/fhir/StructureDefinition/Patient']
    index: 2
  effective:
    choices: []
    index: 4
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: type}
      min: 1
      slices:
        effectiveDateTime:
          match: {}
          schema:
            constraint:
              vs-de-1: {human: 'If Observation.effective[x] is dateTime and has a value then that value shall be precise to the day', source: 'http://fhir.de/StructureDefinition/observation-de-vitalsign', severity: error, expression: $this.toString().length() >= 8}
            choices: [effectiveDateTime]
            index: 6
  effectiveDateTime:
    type: dateTime
    constraint:
      vs-de-1: {human: 'If Observation.effective[x] is dateTime and has a value then that value shall be precise to the day', source: 'http://fhir.de/StructureDefinition/observation-de-vitalsign', severity: error, expression: $this.toString().length() >= 8}
    choiceOf: effective
    index: 7
    slicing:
      slices:
        effectiveDateTime:
          match: {}
          schema:
            type: dateTime
            constraint:
              vs-de-1: {human: 'If Observation.effective[x] is dateTime and has a value then that value shall be precise to the day', source: 'http://fhir.de/StructureDefinition/observation-de-vitalsign', severity: error, expression: $this.toString().length() >= 8}
            choiceOf: effective
            index: 7
  value:
    choices: []
    index: 9
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: type}
      min: null
      slices:
        valueQuantity:
          match: {}
          schema:
            choices: [valueQuantity]
            index: 11
  valueQuantity:
    type: Quantity
    choiceOf: value
    index: 12
    slicing:
      slices:
        valueQuantity:
          match: {}
          schema: {type: Quantity, choiceOf: value, index: 12}
  value[x]:
    elements:
      value: {index: 13}
      unit: {index: 14}
      system:
        pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
        index: 15
      code: {index: 16}
    required: [value, unit, system, code]
  component:
    constraint:
      vs-de-3: {human: If there is no a value a data absent reason must be present, source: 'http://fhir.de/StructureDefinition/observation-de-vitalsign', severity: error, expression: value.exists() xor dataAbsentReason.exists()}
    index: 17
    elements:
      value:
        choices: []
        index: 19
        slicing:
          rules: open
          discriminator:
          - {path: $this, type: type}
          min: null
          slices:
            valueQuantity:
              match: {}
              schema:
                choices: [valueQuantity]
                index: 21
      valueQuantity:
        type: Quantity
        choiceOf: value
        index: 22
        slicing:
          slices:
            valueQuantity:
              match: {}
              schema: {type: Quantity, choiceOf: value, index: 22}
      value[x]:
        elements:
          value: {index: 23}
          unit: {index: 24}
          system:
            pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
            index: 25
          code: {index: 26}
        required: [value, unit, system, code]
package_version: 1.4.0
class: profile
kind: resource
url: http://fhir.de/StructureDefinition/observation-de-vitalsign
base: http://hl7.org/fhir/StructureDefinition/Observation
version: 1.4.0
required: [subject, category, effective]