<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://simplifier.net/ziv-schnittstellen/ziv_sensorik" />
  <name value="ZIV_Sensorik" />
  <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="constraint" />
  <differential>
    <element id="Observation.identifier">
      <path value="Observation.identifier" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.identifier.type">
      <path value="Observation.identifier.type" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.identifier.type.coding">
      <path value="Observation.identifier.type.coding" />
      <code>
        <system value="http://snomed.info/sct" />
      </code>
      <code>
        <system value="http://loinc.org" />
      </code>
      <mustSupport value="true" />
    </element>
    <element id="Observation.basedOn">
      <path value="Observation.basedOn" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/CarePlan" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/DeviceRequest" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationRequest" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/NutritionOrder" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ServiceRequest" />
        <targetProfile value="http:://hl7.org/fhir/StructureDefinition/DiagnosticReport" />
        <targetProfile value="http:://hl7.org/fhir/StructureDefinition/Condition" />
      </type>
    </element>
    <element id="Observation.basedOn.identifier.type.text">
      <path value="Observation.basedOn.identifier.type.text" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.partOf">
      <path value="Observation.partOf" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationDispense" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationStatement" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Procedure" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ImagingStudy" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/DiagnosticReport" />
      </type>
    </element>
    <element id="Observation.partOf.identifier.type.text">
      <path value="Observation.partOf.identifier.type.text" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.code">
      <path value="Observation.code" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.code.coding">
      <path value="Observation.code.coding" />
      <code>
        <system value="http://loinc.org" />
      </code>
      <code>
        <system value="http://snomed.info/sct" />
      </code>
    </element>
    <element id="Observation.code.text">
      <path value="Observation.code.text" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.subject">
      <path value="Observation.subject" />
      <definition value="The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation.&#xD;&#xA;ZIV: Für Klinik und Patient einsehbar." />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.focus">
      <path value="Observation.focus" />
      <definition value="The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record.  The focus of an observation could also be an existing condition,  an intervention, the subject's diet,  another observation of the subject,  or a body structure such as tumor or implanted device.   An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.&#xD;&#xA;ZIV: Für Klinik und Patient einsehbar." />
    </element>
    <element id="Observation.encounter">
      <path value="Observation.encounter" />
      <definition value="The healthcare event  (e.g. a patient and healthcare provider interaction) during which this observation is made.&#xD;&#xA;ZIV: Für Klinik und Patient einsehbar." />
      <mustSupport value="true" />
    </element>
    <element id="Observation.effective[x]">
      <path value="Observation.effective[x]" />
      <definition value="The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the &quot;physiologically relevant time&quot;. This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.&#xD;&#xA;ZIV: Für Klinik und Patient einsehbar." />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.performer">
      <path value="Observation.performer" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <code>
        <system value="http://snomed.info/sct" />
      </code>
      <code>
        <system value="http://loinc.org" />
      </code>
      <definition value="The information determined as a result of making the observation, if the information has a simple value.&#xD;&#xA;ZIV: Für Klinik und Patient einsehbar." />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.dataAbsentReason">
      <path value="Observation.dataAbsentReason" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.dataAbsentReason.text">
      <path value="Observation.dataAbsentReason.text" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.interpretation">
      <path value="Observation.interpretation" />
      <definition value="A categorical assessment of an observation value.  For example, high, low, normal.&#xD;&#xA;ZIV: Für Klinik einsehbar, für Patient, wenn von Klinikseite aus gewünscht." />
      <mustSupport value="true" />
    </element>
    <element id="Observation.interpretation.coding">
      <path value="Observation.interpretation.coding" />
      <code>
        <system value="http://snomed.info/sct" />
      </code>
      <code>
        <system value="http://loinc.org" />
      </code>
    </element>
    <element id="Observation.interpretation.text">
      <path value="Observation.interpretation.text" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.bodySite">
      <path value="Observation.bodySite" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.bodySite.coding">
      <path value="Observation.bodySite.coding" />
      <code>
        <system value="http://snomed.info/sct" />
      </code>
      <code>
        <system value="http://loinc.org" />
      </code>
    </element>
    <element id="Observation.bodySite.text">
      <path value="Observation.bodySite.text" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.method">
      <path value="Observation.method" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.method.coding">
      <path value="Observation.method.coding" />
      <code>
        <system value="http://snomed.info/sct" />
      </code>
    </element>
    <element id="Observation.device">
      <path value="Observation.device" />
      <definition value="The device used to generate the observation data.&#xD;&#xA;ZIV: Für Klinik und Patient einsehbar." />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Observation.referenceRange">
      <path value="Observation.referenceRange" />
      <definition value="Guidance on how to interpret the value by comparison to a normal or recommended range.  Multiple reference ranges are interpreted as an &quot;OR&quot;.   In other words, to represent two distinct target populations, two `referenceRange` elements would be used.&#xD;&#xA;ZIV: Für Klinik und Patient einsehbar." />
      <mustSupport value="true" />
    </element>
    <element id="Observation.referenceRange.low">
      <path value="Observation.referenceRange.low" />
      <comment value="The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.&#xD;&#xA;ZIV: Für Klinik und Patient einsehbar." />
    </element>
    <element id="Observation.referenceRange.high">
      <path value="Observation.referenceRange.high" />
      <comment value="The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.&#xD;&#xA;ZIV: Für Klinik und Patient einsehbar." />
    </element>
    <element id="Observation.referenceRange.text">
      <path value="Observation.referenceRange.text" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>