<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="ext-R5-Observation.triggeredBy" />
  <url value="http://hl7.org/fhir/5.0/StructureDefinition/extension-Observation.triggeredBy" />
  <version value="0.1.0" />
  <name value="ExtensionObservation_TriggeredBy" />
  <title value="R5: Triggering observation(s) (new)" />
  <status value="active" />
  <experimental value="false" />
  <publisher value="FHIR Infrastructure" />
  <contact>
    <name value="FHIR Infrastructure" />
    <telecom>
      <system value="url" />
      <value value="http://www.hl7.org/Special/committees/fiwg" />
    </telecom>
  </contact>
  <description value="R5: `Observation.triggeredBy` (new:BackboneElement)" />
  <jurisdiction>
    <coding>
      <system value="http://unstats.un.org/unsd/methods/m49/m49.htm" />
      <code value="001" />
      <display value="World" />
    </coding>
  </jurisdiction>
  <purpose value="This extension is part of the cross-version definitions generated to enable use of the&#xD;&#xA;element `Observation.triggeredBy` as defined in FHIR R5&#xD;&#xA;in FHIR R4.&#xD;&#xA;&#xD;&#xA;The source element is defined as:&#xD;&#xA;`Observation.triggeredBy` 0..* `BackboneElement`&#xD;&#xA;&#xD;&#xA;Across FHIR versions, the element set has been mapped as:&#xD;&#xA;*  R5: `Observation.triggeredBy` 0..* `BackboneElement`&#xD;&#xA;&#xD;&#xA;Following are the generation technical comments:&#xD;&#xA;Element `Observation.triggeredBy` has a context of Observation based on following the parent source element upwards and mapping to `Observation`.&#xA;Element `Observation.triggeredBy` has no mapping targets in FHIR R4. Typically, this is because the element has been added (is a new element)." />
  <fhirVersion value="4.0.1" />
  <kind value="complex-type" />
  <abstract value="false" />
  <context>
    <type value="element" />
    <expression value="Observation" />
  </context>
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <differential>
    <element id="Extension">
      <path value="Extension" />
      <short value="R5: Triggering observation(s) (new)" />
      <definition value="R5: `Observation.triggeredBy` (new:BackboneElement)" />
      <comment value="Element `Observation.triggeredBy` has a context of Observation based on following the parent source element upwards and mapping to `Observation`.&#xA;Element `Observation.triggeredBy` has no mapping targets in FHIR R4. Typically, this is because the element has been added (is a new element)." />
    </element>
    <element id="Extension.extension">
      <path value="Extension.extension" />
      <min value="2" />
    </element>
    <element id="Extension.extension:observation">
      <path value="Extension.extension" />
      <sliceName value="observation" />
      <short value="R5: Triggering observation (new)" />
      <definition value="R5: `Observation.triggeredBy.observation` (new:Reference(Observation))" />
      <comment value="Element `Observation.triggeredBy.observation` is part of an existing definition because parent element `Observation.triggeredBy` requires a cross-version extension.&#xA;Element `Observation.triggeredBy.observation` has a context of Observation based on following the parent source element upwards and mapping to `Observation`.&#xA;Element `Observation.triggeredBy.observation` has no mapping targets in FHIR R4. Typically, this is because the element has been added (is a new element)." />
      <requirements value="Element `Observation.triggeredBy.observation` is part of an existing definition because parent element `Observation.triggeredBy` requires a cross-version extension.&#xA;Element `Observation.triggeredBy.observation` has a context of Observation based on following the parent source element upwards and mapping to `Observation`.&#xA;Element `Observation.triggeredBy.observation` has no mapping targets in FHIR R4. Typically, this is because the element has been added (is a new element)." />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Extension.extension:observation.extension">
      <path value="Extension.extension.extension" />
      <max value="0" />
    </element>
    <element id="Extension.extension:observation.url">
      <path value="Extension.extension.url" />
      <fixedUri value="observation" />
    </element>
    <element id="Extension.extension:observation.value[x]">
      <path value="Extension.extension.value[x]" />
      <short value="Triggering observation" />
      <definition value="Reference to the triggering observation." />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Observation" />
      </type>
    </element>
    <element id="Extension.extension:type">
      <path value="Extension.extension" />
      <sliceName value="type" />
      <short value="R5: reflex | repeat | re-run (new)" />
      <definition value="R5: `Observation.triggeredBy.type` (new:code)" />
      <comment value="Element `Observation.triggeredBy.type` is part of an existing definition because parent element `Observation.triggeredBy` requires a cross-version extension.&#xA;Element `Observation.triggeredBy.type` has a context of Observation based on following the parent source element upwards and mapping to `Observation`.&#xA;Element `Observation.triggeredBy.type` has no mapping targets in FHIR R4. Typically, this is because the element has been added (is a new element)." />
      <requirements value="Element `Observation.triggeredBy.type` is part of an existing definition because parent element `Observation.triggeredBy` requires a cross-version extension.&#xA;Element `Observation.triggeredBy.type` has a context of Observation based on following the parent source element upwards and mapping to `Observation`.&#xA;Element `Observation.triggeredBy.type` has no mapping targets in FHIR R4. Typically, this is because the element has been added (is a new element)." />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Extension.extension:type.extension">
      <path value="Extension.extension.extension" />
      <max value="0" />
    </element>
    <element id="Extension.extension:type.url">
      <path value="Extension.extension.url" />
      <fixedUri value="type" />
    </element>
    <element id="Extension.extension:type.value[x]">
      <path value="Extension.extension.value[x]" />
      <short value="reflex | repeat | re-run" />
      <definition value="The type of trigger.&#xA;Reflex | Repeat | Re-run." />
      <min value="1" />
      <type>
        <code value="code" />
      </type>
      <binding>
        <strength value="required" />
        <description value="The type of TriggeredBy Observation." />
        <valueSet value="http://hl7.org/fhir/uv/xver/ValueSet/R5-observation-triggeredbytype-for-R4|0.1.0" />
      </binding>
    </element>
    <element id="Extension.extension:reason">
      <path value="Extension.extension" />
      <sliceName value="reason" />
      <short value="R5: Reason that the observation was triggered (new)" />
      <definition value="R5: `Observation.triggeredBy.reason` (new:string)" />
      <comment value="Element `Observation.triggeredBy.reason` is part of an existing definition because parent element `Observation.triggeredBy` requires a cross-version extension.&#xA;Element `Observation.triggeredBy.reason` has a context of Observation based on following the parent source element upwards and mapping to `Observation`.&#xA;Element `Observation.triggeredBy.reason` has no mapping targets in FHIR R4. Typically, this is because the element has been added (is a new element)." />
      <requirements value="Element `Observation.triggeredBy.reason` is part of an existing definition because parent element `Observation.triggeredBy` requires a cross-version extension.&#xA;Element `Observation.triggeredBy.reason` has a context of Observation based on following the parent source element upwards and mapping to `Observation`.&#xA;Element `Observation.triggeredBy.reason` has no mapping targets in FHIR R4. Typically, this is because the element has been added (is a new element)." />
      <min value="0" />
      <max value="1" />
    </element>
    <element id="Extension.extension:reason.extension">
      <path value="Extension.extension.extension" />
      <max value="0" />
    </element>
    <element id="Extension.extension:reason.url">
      <path value="Extension.extension.url" />
      <fixedUri value="reason" />
    </element>
    <element id="Extension.extension:reason.value[x]">
      <path value="Extension.extension.value[x]" />
      <short value="Reason that the observation was triggered" />
      <definition value="Provides the reason why this observation was performed as a result of the observation(s) referenced." />
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <fixedUri value="http://hl7.org/fhir/5.0/StructureDefinition/extension-Observation.triggeredBy" />
    </element>
    <element id="Extension.value[x]">
      <path value="Extension.value[x]" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>