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