<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="IRD-Sensor-Observation" />
  <url value="https://health.linova.de/fhir/v1/IRD/Sensor_Observation" />
  <version value="1.0.0" />
  <name value="IRD_Sensor_Observation" />
  <status value="draft" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Observation" />
  <derivation value="specialization" />
  <differential>
    <element id="Observation">
      <path value="Observation" />
      <definition value="A sensor observation describes one or many raw measurements made by a sensor within a timeframe." />
    </element>
    <element id="Observation.code">
      <path value="Observation.code" />
      <min value="1" />
      <max value="1" />
      <fixedCodeableConcept>
        <coding>
          <system value="https://health.linova.de/CodeSystem/Observations" />
          <code value="SENSOR_RAW" />
          <display value="Sensor Observation" />
        </coding>
      </fixedCodeableConcept>
    </element>
    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <min value="0" />
      <max value="0" />
    </element>
    <element id="Observation.subject">
      <path value="Observation.subject" />
      <definition value="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 value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://health.linova.de/fhir/v1/IRD/Patient" />
        <targetProfile value="https://health.linova.de/fhir/v1/IRD/Task" />
      </type>
    </element>
    <element id="Observation.component">
      <path value="Observation.component" />
      <short value="Sensor Measurements" />
      <definition value="Each single measurement of a sensor is represented as an Observation component" />
      <min value="1" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
      <isSummary value="true" />
    </element>
    <element id="Observation.component.value[x]">
      <path value="Observation.component.value[x]" />
      <min value="0" />
      <max value="0" />
    </element>
    <element id="Observation.component.extension:measurement">
      <path value="Observation.component.extension" />
      <definition value="The actual, single measurement made by the sensor" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://health.linova.de/fhir/v1/IRD/Extensions/Observation_Sensor_Reading" />
      </type>
    </element>
  </differential>
</StructureDefinition>