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