PackagesCanonicalsLogsProblems
    Packages
    de.basisprofil.r4@1.5.0-alpha1
    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:
        VSCat:
          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
  value[x]:
    elements:
      value: {index: 15}
      unit: {index: 16}
      system:
        pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
        index: 17
      code: {index: 18}
    required: [value, unit, system, code]
  valueQuantity:
    type: Quantity
    choiceOf: value
    index: 14
    slicing:
      slices:
        valueQuantity:
          match: {}
          schema: {type: Quantity, choiceOf: value, index: 14}
          min: 0
          max: 1
  value:
    choices: []
    index: 11
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: type}
      min: null
      slices:
        valueQuantity:
          match: {}
          schema:
            choices: [valueQuantity]
            index: 13
          min: 0
          max: 1
  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: 19
    elements:
      value:
        choices: []
        index: 21
        slicing:
          rules: open
          discriminator:
          - {path: $this, type: type}
          min: null
          slices:
            valueQuantity:
              match: {}
              schema:
                choices: [valueQuantity]
                index: 23
              min: 0
              max: 1
      valueQuantity:
        type: Quantity
        choiceOf: value
        index: 24
        slicing:
          slices:
            valueQuantity:
              match: {}
              schema: {type: Quantity, choiceOf: value, index: 24}
              min: 0
              max: 1
      value[x]:
        elements:
          value: {index: 25}
          unit: {index: 26}
          system:
            pattern: {type: Uri, value: 'http://unitsofmeasure.org'}
            index: 27
          code: {index: 28}
        required: [value, unit, system, code]
  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: 9
    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: 9
          min: 0
          max: 1
  effective:
    choices: []
    index: 6
    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: 8
          min: 0
          max: 1
  code:
    elements:
      coding:
        index: 2
        slicing:
          rules: open
          discriminator:
          - {path: $this, type: pattern}
          min: 1
          slices:
            loinc:
              match: {}
              schema: {array: true, min: 1, _required: true, index: 3}
              min: 1
    required: [coding]
  subject:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/Group', 'http://hl7.org/fhir/StructureDefinition/Patient']
    index: 4
package_version: 1.5.0-alpha1
class: profile
kind: resource
url: http://fhir.de/StructureDefinition/observation-de-vitalsign
base: http://hl7.org/fhir/StructureDefinition/Observation
version: 1.5.0
required: [subject, category, effective]