﻿<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
  <entity name="llp_incident" >
    <attribute name="llp_incidentcode" />
    <attribute name="createdon" />
    <attribute name='statuscode' />
    <order attribute="createdon" descending="true" />
    <link-entity name="account" from="accountid" to="llp_providerid" link-type="inner" alias="provider" >
      <filter type="and" >
        <condition attribute="llp_providercode" operator="eq" value="${partnerID}" />
      </filter>
    </link-entity>
    <link-entity name="incident" from="incidentid" to="llp_claimid" link-type="outer" alias="incident" >
      <attribute name="llp_claimnumber" />
    </link-entity>
  </entity>
</fetch>