<?xml version="1.0" encoding="UTF-8"?>

  <!-- This example demonstrates predecessor relationships when lesions merge and subsequently split. -->
<Bundle xmlns="http://hl7.org/fhir">
  <id value="bodystructure-lesion-evolution"/>
  <type value="collection"/>
  <entry>
    <fullUrl value="http://example.org/fhir/BodyStructure/liver-lesion-l1"/>
    <resource>
      <BodyStructure>
        <id value="liver-lesion-l1"/>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: BodyStructure liver-lesion-l1</b></p><a name="liver-lesion-l1"> </a><a name="hcliver-lesion-l1"> </a><p><b>identifier</b>: <code>http://example.org/fhir/bodystructure-identifiers</code>/L1</p><h3>IncludedStructures</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Structure</b></td><td><b>Morphology</b></td></tr><tr><td style="display: none">*</td><td><span title="Codes:{http://snomed.info/sct 10200004}">Liver structure</span></td><td><span title="Codes:{http://snomed.info/sct 4147007}">Mass (morphologic abnormality)</span></td></tr></table><p><b>description</b>: </p><div><p>First liver lesion before merging.</p>
</div></div>
        </text>
        <identifier>
          <system value="http://example.org/fhir/bodystructure-identifiers"/>
          <value value="L1"/>
        </identifier>
        <includedStructure>
          <structure>
            <coding>
              <system value="http://snomed.info/sct"/>
              <code value="10200004"/>
              <display value="Liver structure"/>
            </coding>
          </structure>
          <morphology>
            <coding>
              <system value="http://snomed.info/sct"/>
              <code value="4147007"/>
              <display value="Mass (morphologic abnormality)"/>
            </coding>
          </morphology>
        </includedStructure>
        <description value="First liver lesion before merging."/>
      </BodyStructure>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://example.org/fhir/BodyStructure/liver-lesion-l2"/>
    <resource>
      <BodyStructure>
        <id value="liver-lesion-l2"/>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: BodyStructure liver-lesion-l2</b></p><a name="liver-lesion-l2"> </a><a name="hcliver-lesion-l2"> </a><p><b>identifier</b>: <code>http://example.org/fhir/bodystructure-identifiers</code>/L2</p><h3>IncludedStructures</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Structure</b></td><td><b>Morphology</b></td></tr><tr><td style="display: none">*</td><td><span title="Codes:{http://snomed.info/sct 10200004}">Liver structure</span></td><td><span title="Codes:{http://snomed.info/sct 4147007}">Mass (morphologic abnormality)</span></td></tr></table><p><b>description</b>: </p><div><p>Second liver lesion before merging.</p>
</div></div>
        </text>
        <identifier>
          <system value="http://example.org/fhir/bodystructure-identifiers"/>
          <value value="L2"/>
        </identifier>
        <includedStructure>
          <structure>
            <coding>
              <system value="http://snomed.info/sct"/>
              <code value="10200004"/>
              <display value="Liver structure"/>
            </coding>
          </structure>
          <morphology>
            <coding>
              <system value="http://snomed.info/sct"/>
              <code value="4147007"/>
              <display value="Mass (morphologic abnormality)"/>
            </coding>
          </morphology>
        </includedStructure>
        <description value="Second liver lesion before merging."/>
      </BodyStructure>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://example.org/fhir/BodyStructure/merged-liver-lesion"/>
    <resource>
      <BodyStructure>
        <id value="merged-liver-lesion"/>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: BodyStructure merged-liver-lesion</b></p><a name="merged-liver-lesion"> </a><a name="hcmerged-liver-lesion"> </a><p><b>identifier</b>: <code>http://example.org/fhir/bodystructure-identifiers</code>/L3</p><blockquote><p><b>includedStructure</b></p><p><b>structure</b>: <span title="Codes:{http://snomed.info/sct 10200004}">Liver structure</span></p><p><b>morphology</b>: <span title="Codes:{http://snomed.info/sct 4147007}">Mass (morphologic abnormality)</span></p><blockquote><p><b>related</b></p><p><b>type</b>: <span title="Codes:{http://hl7.org/fhir/bodystructure-relationship-type predecessor}">Predecessor</span></p><p><b>reference</b>: <a href="broken-link.html">BodyStructure/liver-lesion-l1</a></p></blockquote><blockquote><p><b>related</b></p><p><b>type</b>: <span title="Codes:{http://hl7.org/fhir/bodystructure-relationship-type predecessor}">Predecessor</span></p><p><b>reference</b>: <a href="broken-link.html">BodyStructure/liver-lesion-l2</a></p></blockquote></blockquote><p><b>description</b>: </p><div><p>Liver lesion formed by the merging of lesions L1 and L2.</p>
</div></div>
        </text>
        <identifier>
          <system value="http://example.org/fhir/bodystructure-identifiers"/>
          <value value="L3"/>
        </identifier>
        <includedStructure>
          <structure>
            <coding>
              <system value="http://snomed.info/sct"/>
              <code value="10200004"/>
              <display value="Liver structure"/>
            </coding>
          </structure>
          <morphology>
            <coding>
              <system value="http://snomed.info/sct"/>
              <code value="4147007"/>
              <display value="Mass (morphologic abnormality)"/>
            </coding>
          </morphology>
          <related>
            <type>
              <coding>
                <system value="http://hl7.org/fhir/bodystructure-relationship-type"/>
                <code value="predecessor"/>
                <display value="Predecessor"/>
              </coding>
            </type>
            <reference>
              <reference value="BodyStructure/liver-lesion-l1"/>
            </reference>
          </related>
          <related>
            <type>
              <coding>
                <system value="http://hl7.org/fhir/bodystructure-relationship-type"/>
                <code value="predecessor"/>
                <display value="Predecessor"/>
              </coding>
            </type>
            <reference>
              <reference value="BodyStructure/liver-lesion-l2"/>
            </reference>
          </related>
        </includedStructure>
        <description value="Liver lesion formed by the merging of lesions L1 and L2."/>
      </BodyStructure>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://example.org/fhir/BodyStructure/split-liver-lesion-l4"/>
    <resource>
      <BodyStructure>
        <id value="split-liver-lesion-l4"/>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: BodyStructure split-liver-lesion-l4</b></p><a name="split-liver-lesion-l4"> </a><a name="hcsplit-liver-lesion-l4"> </a><p><b>identifier</b>: <code>http://example.org/fhir/bodystructure-identifiers</code>/L4</p><blockquote><p><b>includedStructure</b></p><p><b>structure</b>: <span title="Codes:{http://snomed.info/sct 10200004}">Liver structure</span></p><p><b>morphology</b>: <span title="Codes:{http://snomed.info/sct 4147007}">Mass (morphologic abnormality)</span></p><h3>Relateds</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Type</b></td><td><b>Reference</b></td></tr><tr><td style="display: none">*</td><td><span title="Codes:{http://hl7.org/fhir/bodystructure-relationship-type predecessor}">Predecessor</span></td><td><a href="broken-link.html">BodyStructure/merged-liver-lesion</a></td></tr></table></blockquote><p><b>description</b>: </p><div><p>First lesion produced when merged lesion L3 split.</p>
</div></div>
        </text>
        <identifier>
          <system value="http://example.org/fhir/bodystructure-identifiers"/>
          <value value="L4"/>
        </identifier>
        <includedStructure>
          <structure>
            <coding>
              <system value="http://snomed.info/sct"/>
              <code value="10200004"/>
              <display value="Liver structure"/>
            </coding>
          </structure>
          <morphology>
            <coding>
              <system value="http://snomed.info/sct"/>
              <code value="4147007"/>
              <display value="Mass (morphologic abnormality)"/>
            </coding>
          </morphology>
          <related>
            <type>
              <coding>
                <system value="http://hl7.org/fhir/bodystructure-relationship-type"/>
                <code value="predecessor"/>
                <display value="Predecessor"/>
              </coding>
            </type>
            <reference>
              <reference value="BodyStructure/merged-liver-lesion"/>
            </reference>
          </related>
        </includedStructure>
        <description value="First lesion produced when merged lesion L3 split."/>
      </BodyStructure>
    </resource>
  </entry>
  <entry>
    <fullUrl value="http://example.org/fhir/BodyStructure/split-liver-lesion-l5"/>
    <resource>
      <BodyStructure>
        <id value="split-liver-lesion-l5"/>
        <text>
          <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: BodyStructure split-liver-lesion-l5</b></p><a name="split-liver-lesion-l5"> </a><a name="hcsplit-liver-lesion-l5"> </a><p><b>identifier</b>: <code>http://example.org/fhir/bodystructure-identifiers</code>/L5</p><blockquote><p><b>includedStructure</b></p><p><b>structure</b>: <span title="Codes:{http://snomed.info/sct 10200004}">Liver structure</span></p><p><b>morphology</b>: <span title="Codes:{http://snomed.info/sct 4147007}">Mass (morphologic abnormality)</span></p><h3>Relateds</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Type</b></td><td><b>Reference</b></td></tr><tr><td style="display: none">*</td><td><span title="Codes:{http://hl7.org/fhir/bodystructure-relationship-type predecessor}">Predecessor</span></td><td><a href="broken-link.html">BodyStructure/merged-liver-lesion</a></td></tr></table></blockquote><p><b>description</b>: </p><div><p>Second lesion produced when merged lesion L3 split.</p>
</div></div>
        </text>
        <identifier>
          <system value="http://example.org/fhir/bodystructure-identifiers"/>
          <value value="L5"/>
        </identifier>
        <includedStructure>
          <structure>
            <coding>
              <system value="http://snomed.info/sct"/>
              <code value="10200004"/>
              <display value="Liver structure"/>
            </coding>
          </structure>
          <morphology>
            <coding>
              <system value="http://snomed.info/sct"/>
              <code value="4147007"/>
              <display value="Mass (morphologic abnormality)"/>
            </coding>
          </morphology>
          <related>
            <type>
              <coding>
                <system value="http://hl7.org/fhir/bodystructure-relationship-type"/>
                <code value="predecessor"/>
                <display value="Predecessor"/>
              </coding>
            </type>
            <reference>
              <reference value="BodyStructure/merged-liver-lesion"/>
            </reference>
          </related>
        </includedStructure>
        <description value="Second lesion produced when merged lesion L3 split."/>
      </BodyStructure>
    </resource>
  </entry>
</Bundle>