{
  "resourceType": "StructureDefinition",
  "id": "IRD-Sensor-Observation",
  "url": "https://health.linova.de/fhir/v1/IRD/Sensor_Observation",
  "version": "1.0.0",
  "name": "IRD_Sensor_Observation",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "derivation": "specialization",
  "abstract": false,
  "type": "Observation",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
  "differential": {
    "element": [
      {
        "id": "Observation",
        "path": "Observation",
        "definition": "A sensor observation describes one or many raw measurements made by a sensor within a timeframe."
      },
      {
        "id": "Observation.code",
        "path": "Observation.code",
        "min": 1,
        "max": "1",
        "fixedCodeableConcept": {
          "coding": [
            {
              "system": "https://health.linova.de/CodeSystem/Observations",
              "code": "SENSOR_RAW",
              "display": "Sensor Observation"
            }
          ]
        }
      },
      {
        "id": "Observation.value[x]",
        "path": "Observation.value[x]",
        "min": 0,
        "max": "0"
      },
      {
        "id": "Observation.subject",
        "path": "Observation.subject",
        "definition": "If the observation is related to a task the Patient has executed, a Task is assigned as subject, otherwise, if the measurement was extracted without any Task being active, the Patient itself is specified as subject.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://health.linova.de/fhir/v1/IRD/Patient",
              "https://health.linova.de/fhir/v1/IRD/Task"
            ]
          }
        ]
      },
      {
        "id": "Observation.component",
        "path": "Observation.component",
        "short": "Sensor Measurements",
        "definition": "Each single measurement of a sensor is represented as an Observation component",
        "min": 1,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "isSummary": true
      },
      {
        "id": "Observation.component.value[x]",
        "path": "Observation.component.value[x]",
        "min": 0,
        "max": "0"
      },
      {
        "id": "Observation.component.extension:measurement",
        "path": "Observation.component.extension",
        "definition": "The actual, single measurement made by the sensor",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://health.linova.de/fhir/v1/IRD/Extensions/Observation_Sensor_Reading"
            ]
          }
        ]
      }
    ]
  }
}