<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://IrisObservation.org/fhir/StructureDefinition/MyObservation" />
  <name value="IrisObservation" />
  <status value="draft" />
  <description value="HearingTest result based on observation created for the Furore FHIR modelling training" />
  <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">
      <path value="Observation" />
      <constraint>
        <key value="Iris-1" />
        <severity value="error" />
        <human value="ValueQuantity or Note are not available" />
        <expression value="value.ofType(Quantity).exists() or note.exists()" />
      </constraint>
    </element>
    <element id="Observation.extension:laterality">
      <path value="Observation.extension" />
      <sliceName value="laterality" />
      <type>
        <code value="Extension" />
        <profile value="https://laterality.org/fhir/StructureDefinition/Laterality" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Observation.subject">
      <path value="Observation.subject" />
      <short value="Who the observation is about" />
      <definition value="The patient 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." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <targetProfile value="https://IrisPatient.org/fhir/StructureDefinition/MyPatient" />
      </type>
    </element>
    <element id="Observation.effective[x]">
      <path value="Observation.effective[x]" />
      <min value="1" />
      <type>
        <code value="dateTime" />
      </type>
    </element>
    <element id="Observation.value[x]">
      <path value="Observation.value[x]" />
      <condition value="Iris-1" />
    </element>
    <element id="Observation.note">
      <path value="Observation.note" />
      <condition value="Iris-1" />
    </element>
    <element id="Observation.bodySite">
      <path value="Observation.bodySite" />
      <min value="1" />
    </element>
    <element id="Observation.bodySite.extension:extAnatomicalLocationLaterality">
      <path value="Observation.bodySite.extension" />
      <sliceName value="extAnatomicalLocationLaterality" />
      <type>
        <code value="Extension" />
        <profile value="http://nictiz.nl/fhir/StructureDefinition/ext-AnatomicalLocation.Laterality" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Observation.method">
      <path value="Observation.method" />
      <min value="1" />
    </element>
    <element id="Observation.derivedFrom">
      <path value="Observation.derivedFrom" />
      <short value="Audiogram that the observation is made from" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Media" />
      </type>
    </element>
  </differential>
</StructureDefinition>