<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="IRD-Bodymodel-Observation" />
  <url value="https://health.linova.de/fhir/v1/IRD/Bodymodel_Observation" />
  <version value="1.0.0" />
  <name value="IRD_Bodymodel_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 body model observation describes the mapping between a Patient and a Bodymodel, i.e. which bodymodel the patient was assigned to the Patient by an algorithm." />
    </element>
    <element id="Observation.code">
      <path value="Observation.code" />
      <min value="0" />
      <max value="1" />
      <fixedCodeableConcept>
        <coding>
          <system value="https://health.linova.de/CodeSystem/Observations" />
          <code value="BODY_MODEL" />
          <display value="Body Model" />
        </coding>
      </fixedCodeableConcept>
    </element>
    <element id="Observation.effective[x]">
      <path value="Observation.effective[x]" />
      <definition value="Date and time when the body model assignment was made." />
    </element>
    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <definition value="The body model instance which was assigned to the patient." />
      <min value="0" />
      <max value="0" />
    </element>
    <element id="Observation.component.value[x]">
      <path value="Observation.component.value[x]" />
      <definition value="The body model instance which was assigned to the patient." />
      <min value="0" />
      <max value="0" />
    </element>
    <element id="Observation.component.extension:bodymodel">
      <path value="Observation.component.extension" />
      <sliceName value="bodymodel" />
      <definition value="The body model instance which was assigned to the patient." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://health.linova.de/fhir/v1/IRD/Extensions/Observation_BodyModel" />
      </type>
    </element>
    <element id="Observation.method">
      <path value="Observation.method" />
      <definition value="Algorithm which the bodymodel assignment is based on" />
      <min value="0" />
      <max value="0" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="Observation.subject">
      <path value="Observation.subject" />
      <definition value="Patient the observation is based on." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://health.linova.de/fhir/v1/IRD/Patient" />
      </type>
    </element>
    <element id="Observation.extension">
      <path value="Observation.extension" />
      <definition value="Observation IRD specific extensions" />
      <type>
        <code value="Extension" />
        <profile value="https://health.linova.de/fhir/v1/IRD/Extensions/Observation" />
      </type>
    </element>
  </differential>
</StructureDefinition>