<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="observation-de-score-gcs" />
  <url value="http://fhir.de/StructureDefinition/observation-de-score-gcs" />
  <version value="1.6.0-ballot" />
  <name value="ScoreDE_GCS" />
  <title value="Observation-Profil Glasgow Coma Score" />
  <status value="active" />
  <experimental value="false" />
  <date value="2025-12-23" />
  <publisher value="HL7 Deutschland e.V. (Technisches Komitee FHIR)" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://hl7.de/technische-komitees/fhir/" />
    </telecom>
  </contact>
  <description value="Observation-Profil für Glasgow Coma Score" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Observation" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation.category">
      <path value="Observation.category" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="Observation.category:survey">
      <path value="Observation.category" />
      <sliceName value="survey" />
      <min value="1" />
      <max value="1" />
      <patternCodeableConcept>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/observation-category" />
          <code value="survey" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Observation.code.coding">
      <path value="Observation.code.coding" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="Observation.code.coding.system">
      <path value="Observation.code.coding.system" />
      <min value="1" />
    </element>
    <element id="Observation.code.coding.code">
      <path value="Observation.code.coding.code" />
      <min value="1" />
    </element>
    <element id="Observation.code.coding:loinc">
      <path value="Observation.code.coding" />
      <sliceName value="loinc" />
      <min value="1" />
      <max value="1" />
      <patternCoding>
        <system value="http://loinc.org" />
        <code value="9269-2" />
      </patternCoding>
    </element>
    <element id="Observation.code.coding:snomed">
      <path value="Observation.code.coding" />
      <sliceName value="snomed" />
      <min value="0" />
      <max value="*" />
      <patternCoding>
        <system value="http://snomed.info/sct" />
        <code value="248241002" />
      </patternCoding>
    </element>
    <element id="Observation.subject">
      <path value="Observation.subject" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
      </type>
    </element>
    <element id="Observation.effective[x]">
      <path value="Observation.effective[x]" />
      <min value="1" />
      <type>
        <code value="dateTime" />
      </type>
      <constraint>
        <key value="vs-de-1" />
        <severity value="error" />
        <human value="If Observation.effective[x] has a value then that value shall be precise to the day" />
        <expression value="(($this is dateTime) implies ($this as dateTime).toString().length() &gt;= 10) and ($this.start.exists() implies ($this.start as dateTime).toString().length() &gt;= 10) and ($this.end.exists() implies ($this.end as dateTime).toString().length() &gt;= 10)" />
        <source value="http://fhir.de/StructureDefinition/observation-de-score-gcs" />
      </constraint>
    </element>
    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <min value="1" />
      <type>
        <code value="Quantity" />
      </type>
      <patternQuantity>
        <system value="http://unitsofmeasure.org" />
        <code value="1" />
      </patternQuantity>
    </element>
    <element id="Observation.bodySite">
      <path value="Observation.bodySite" />
      <max value="0" />
    </element>
    <element id="Observation.specimen">
      <path value="Observation.specimen" />
      <max value="0" />
    </element>
    <element id="Observation.component">
      <path value="Observation.component" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="code" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Observation.component:Eye">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="trial-use" />
      </extension>
      <path value="Observation.component" />
      <sliceName value="Eye" />
      <min value="0" />
      <max value="1" />
    </element>
    <element id="Observation.component:Eye.code">
      <path value="Observation.component.code" />
      <patternCodeableConcept>
        <coding>
          <system value="http://loinc.org" />
          <code value="9267-6" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Observation.component:Eye.value[x]">
      <path value="Observation.component.value[x]" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="http://fhir.de/ValueSet/glasgow-coma-score-eye" />
      </binding>
    </element>
    <element id="Observation.component:Motor">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="trial-use" />
      </extension>
      <path value="Observation.component" />
      <sliceName value="Motor" />
      <min value="0" />
      <max value="1" />
    </element>
    <element id="Observation.component:Motor.code">
      <path value="Observation.component.code" />
      <patternCodeableConcept>
        <coding>
          <system value="http://loinc.org" />
          <code value="9268-4" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Observation.component:Motor.value[x]">
      <path value="Observation.component.value[x]" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="http://fhir.de/ValueSet/glasgow-coma-score-motor" />
      </binding>
    </element>
    <element id="Observation.component:Verbal">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="trial-use" />
      </extension>
      <path value="Observation.component" />
      <sliceName value="Verbal" />
      <min value="0" />
      <max value="1" />
    </element>
    <element id="Observation.component:Verbal.code">
      <path value="Observation.component.code" />
      <patternCodeableConcept>
        <coding>
          <system value="http://loinc.org" />
          <code value="9270-0" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Observation.component:Verbal.value[x]">
      <path value="Observation.component.value[x]" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="http://fhir.de/ValueSet/glasgow-coma-score-verbal" />
      </binding>
    </element>
  </differential>
</StructureDefinition>