PackagesCanonicalsLogsProblems
    Packages
    de.basisprofil.r4@1.5.1-beta2
    http://fhir.de/StructureDefinition/observation-de-score-gcs
description: Observation-Profil für Glasgow Coma Score
package_name: de.basisprofil.r4
derivation: constraint
name: ScoreDE_GCS
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
  specimen: {index: 15}
  valueQuantity:
    type: Quantity
    pattern:
      type: Quantity
      value: {code: '1', system: 'http://unitsofmeasure.org'}
    choiceOf: value
    index: 13
  value:
    pattern:
      type: Quantity
      value: {code: '1', system: 'http://unitsofmeasure.org'}
    choices: [valueQuantity]
    index: 12
  component:
    index: 16
    slicing:
      rules: open
      discriminator:
      - {path: code, type: pattern}
      min: null
      slices:
        Eye:
          match:
            code:
              coding:
              - {code: 9267-6, system: 'http://loinc.org'}
          schema:
            index: 17
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 9267-6, system: 'http://loinc.org'}
                index: 18
              value:
                choices: [valueCodeableConcept]
                index: 20
              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 21}
        Motor:
          match:
            code:
              coding:
              - {code: 9268-4, system: 'http://loinc.org'}
          schema:
            index: 22
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 9268-4, system: 'http://loinc.org'}
                index: 23
              value:
                choices: [valueCodeableConcept]
                index: 25
              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 26}
        Verbal:
          match:
            code:
              coding:
              - {code: 9270-0, system: 'http://loinc.org'}
          schema:
            index: 27
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: 9270-0, system: 'http://loinc.org'}
                index: 28
              value:
                choices: [valueCodeableConcept]
                index: 30
              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 31}
  effectiveDateTime:
    type: dateTime
    constraint:
      vs-de-1: {human: 'If Observation.effective[x] has a value then that value shall be precise to the day', source: 'http://fhir.de/StructureDefinition/observation-de-score-gcs', severity: error, expression: (($this is dateTime) implies ($this as dateTime).toString().length() >= 10) and ($this.start.exists() implies ($this.start as dateTime).toString().length() >= 10) and ($this.end.exists() implies ($this.end as dateTime).toString().length() >= 10)}
    choiceOf: effective
    index: 10
  effective:
    constraint:
      vs-de-1: {human: 'If Observation.effective[x] has a value then that value shall be precise to the day', source: 'http://fhir.de/StructureDefinition/observation-de-score-gcs', severity: error, expression: (($this is dateTime) implies ($this as dateTime).toString().length() >= 10) and ($this.start.exists() implies ($this.start as dateTime).toString().length() >= 10) and ($this.end.exists() implies ($this.end as dateTime).toString().length() >= 10)}
    choices: [effectiveDateTime]
    index: 9
  code:
    elements:
      coding:
        index: 2
        elements:
          system: {index: 3}
          code: {index: 4}
        required: [system, code]
        slicing:
          rules: open
          discriminator:
          - {path: $this, type: pattern}
          min: 1
          slices:
            loinc:
              match: {code: 9269-2, system: 'http://loinc.org'}
              schema:
                pattern:
                  type: Coding
                  value: {code: 9269-2, system: 'http://loinc.org'}
                _required: true
                index: 5
              min: 1
              max: 1
            snomed:
              match: {code: '248241002', system: 'http://snomed.info/sct'}
              schema:
                pattern:
                  type: Coding
                  value: {code: '248241002', system: 'http://snomed.info/sct'}
                array: true
                index: 6
              min: 0
    required: [coding]
  bodySite: {index: 14}
  subject:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/Patient']
    index: 7
package_version: 1.5.1-beta2
class: profile
kind: resource
url: http://fhir.de/StructureDefinition/observation-de-score-gcs
base: http://hl7.org/fhir/StructureDefinition/Observation
version: 1.5.1
required: [effectiveDateTime, value, subject, category, valueQuantity, effective]