QI-Core Implementation Guide
4.1.0 - release

Publication Build: This will be filled in by the publication tooling

## Resource Profile: QICoreClaim - XML Profile

XML representation of the qicore-claim resource profile.

Raw xml | Download

    <StructureDefinition xmlns="http://hl7.org/fhir">
      <id value="qicore-claim"/>
      <text>
        <status value="extensions"/>
        <div xmlns="http://www.w3.org/1999/xhtml"><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/formats.html#table" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/formats.html#table" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/formats.html#table" title="Minimum and Maximum # of times the the element can appear in the instance">Card.</a></th><th style="width: 100px" class="hierarchy"><a href="http://hl7.org/fhir/R4/formats.html#table" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/formats.html#table" title="Additional information about the element">Description &amp; Constraints</a><span style="float: right"><a href="http://hl7.org/fhir/R4/formats.html#table" title="Legend for this format"><img src="http://hl7.org/fhir/R4/help16.png" alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_resource.png" alt="." style="background-color: white; background-color: inherit" title="Resource" class="hierarchy"/> <a href="StructureDefinition-qicore-claim-definitions.html#Claim">Claim</a><a name="Claim"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/claim.html">Claim</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Claim, Pre-determination or Pre-authorization</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-qicore-claim-definitions.html#Claim.patient">patient</a><a name="Claim.patient"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="StructureDefinition-qicore-patient.html">QICorePatient</a>)</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">The recipient of the products and services</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-qicore-claim-definitions.html#Claim.billablePeriod">billablePeriod</a><a name="Claim.billablePeriod"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#Period">Period</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Relevant time frame for the claim</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-qicore-claim-definitions.html#Claim.created">created</a><a name="Claim.created"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#dateTime">dateTime</a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Resource creation date</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: white; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-qicore-claim-definitions.html#Claim.provider">provider</a><a name="Claim.provider"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="StructureDefinition-qicore-practitioner.html">QICorePractitioner</a> | <a href="StructureDefinition-qicore-practitionerrole.html">QICorePractitionerRole</a> | <a href="StructureDefinition-qicore-organization.html">QICoreOrganization</a>)</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Party responsible for the claim</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-qicore-claim-definitions.html#Claim.prescription">prescription</a><a name="Claim.prescription"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="padding-left: 3px; padding-right: 3px; color: white; background-color: red" title="This element must be supported">S</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="StructureDefinition-qicore-devicerequest.html">QICoreDeviceRequest</a> | <a href="StructureDefinition-qicore-medicationrequest.html">QICoreMedicationRequest</a> | <a href="http://hl7.org/fhir/R4/visionprescription.html">VisionPrescription</a>)</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Prescription authorizing services and products</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck11.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-qicore-claim-definitions.html#Claim.payee">payee</a><a name="Claim.payee"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Recipient of benefits payable</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck100.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-qicore-claim-definitions.html#Claim.payee.party">party</a><a name="Claim.payee.party"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="StructureDefinition-qicore-practitioner.html">QICorePractitioner</a> | <a href="StructureDefinition-qicore-practitionerrole.html">QICorePractitionerRole</a> | <a href="StructureDefinition-qicore-organization.html">QICoreOrganization</a> | <a href="StructureDefinition-qicore-patient.html">QICorePatient</a> | <a href="StructureDefinition-qicore-relatedperson.html">QICoreRelatedPerson</a>)</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Recipient reference</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: white; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-qicore-claim-definitions.html#Claim.referral">referral</a><a name="Claim.referral"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="StructureDefinition-qicore-servicerequest.html">QICoreServiceRequest</a>)</td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Treatment referral</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck10.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-qicore-claim-definitions.html#Claim.facility">facility</a><a name="Claim.facility"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="StructureDefinition-qicore-location.html">QICoreLocation</a>)</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Servicing facility</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck01.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-qicore-claim-definitions.html#Claim.careTeam">careTeam</a><a name="Claim.careTeam"> </a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5" href="http://hl7.org/fhir/R4/datatypes.html#BackboneElement">BackboneElement</a></td><td style="vertical-align: top; text-align : left; background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Members of the care team</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck000.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_reference.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Reference to another Resource" class="hierarchy"/> <a href="StructureDefinition-qicore-claim-definitions.html#Claim.careTeam.provider">provider</a><a name="Claim.careTeam.provider"> </a></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">1</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">1</span></td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="http://hl7.org/fhir/R4/references.html">Reference</a>(<a href="StructureDefinition-qicore-practitioner.html">QICorePractitioner</a> | <a href="StructureDefinition-qicore-practitionerrole.html">QICorePractitionerRole</a> | <a href="StructureDefinition-qicore-organization.html">QICoreOrganization</a>)</td><td style="vertical-align: top; text-align : left; background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Practitioner or organization</span></td></tr>
    <tr><td colspan="5" class="hierarchy"><br/><a href="http://hl7.org/fhir/R4/formats.html#table" title="Legend for this format"><img src="http://hl7.org/fhir/R4/help16.png" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div>
      </text>
      <url value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-claim"/>
      <version value="4.1.0"/>
      <name value="QICoreClaim"/>
      <status value="draft"/>
      <experimental value="false"/>
      <date value="2018-08-22"/>
      <publisher value="http://www.hl7.org/Special/committees/cqi/index.cfm"/>
      <contact>
        <name value="Clinical Quality Information WG"/>
        <telecom>
          <system value="url"/>
          <value value="http://www.hl7.org/Special/committees/cqi"/>
        </telecom>
      </contact>
      <description
                   value="Profile of Claim for decision support/quality metrics. Defines the core set of elements and extensions for quality rule and measure authors."/>
      <jurisdiction>
        <coding>
          <system value="urn:iso:std:iso:3166"/>
          <code value="US"/>
        </coding>
      </jurisdiction>
      <fhirVersion value="4.0.1"/>
      <mapping>
        <identity value="workflow"/>
        <uri value="http://hl7.org/fhir/workflow"/>
        <name value="Workflow Pattern"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <uri value="http://hl7.org/fhir/fivews"/>
        <name value="FiveWs Pattern Mapping"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <uri value="http://hl7.org/v3"/>
        <name value="RIM Mapping"/>
      </mapping>
      <kind value="resource"/>
      <abstract value="false"/>
      <type value="Claim"/>
      <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Claim"/>
      <derivation value="constraint"/>
      <snapshot>
        <element id="Claim">
          <path value="Claim"/>
          <short value="Claim, Pre-determination or Pre-authorization"/>
          <definition
                      value="A provider issued list of professional services and products which have been provided, or are to be provided, to a patient which is sent to an insurer for reimbursement."/>
          <comment
                   value="The Claim resource fulfills three information request requirements: Claim - a request for adjudication for reimbursement for products and/or services provided; Preauthorization - a request to authorize the future provision of products and/or services including an anticipated adjudication; and, Predetermination - a request for a non-bind adjudication of possible future products and/or services."/>
          <alias value="Adjudication Request"/>
          <alias value="Preauthorization Request"/>
          <alias value="Predetermination Request"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Claim"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <constraint>
            <key value="dom-2"/>
            <severity value="error"/>
            <human
                   value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/>
            <expression value="contained.contained.empty()"/>
            <xpath value="not(parent::f:contained and f:contained)"/>
            <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/>
          </constraint>
          <constraint>
            <key value="dom-3"/>
            <severity value="error"/>
            <human
                   value="If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource"/>
            <expression
                        value="contained.where(((&#39;#&#39;+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = &#39;#&#39;).exists() or descendants().where(as(canonical) = &#39;#&#39;).exists() or descendants().where(as(canonical) = &#39;#&#39;).exists()).not()).trace(&#39;unmatched&#39;, id).empty()"/>
            <xpath
                   value="not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat(&#39;#&#39;, $contained/*/id/@value) or descendant::f:reference[@value=&#39;#&#39;])]))"/>
            <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/>
          </constraint>
          <constraint>
            <key value="dom-4"/>
            <severity value="error"/>
            <human
                   value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/>
            <expression
                        value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/>
            <xpath
                   value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/>
            <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/>
          </constraint>
          <constraint>
            <key value="dom-5"/>
            <severity value="error"/>
            <human
                   value="If a resource is contained in another resource, it SHALL NOT have a security label"/>
            <expression value="contained.meta.security.empty()"/>
            <xpath value="not(exists(f:contained/*/f:meta/f:security))"/>
            <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/>
          </constraint>
          <constraint>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice">
              <valueBoolean value="true"/>
            </extension>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation">
              <valueMarkdown
                             value="When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."/>
            </extension>
            <key value="dom-6"/>
            <severity value="warning"/>
            <human value="A resource should have narrative for robust management"/>
            <expression value="text.`div`.exists()"/>
            <xpath value="exists(f:text/h:div)"/>
            <source value="http://hl7.org/fhir/StructureDefinition/DomainResource"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="Entity. Role, or Act"/>
          </mapping>
          <mapping>
            <identity value="workflow"/>
            <map value="Request"/>
          </mapping>
        </element>
        <element id="Claim.id">
          <path value="Claim.id"/>
          <short value="Logical id of this artifact"/>
          <definition
                      value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/>
          <comment
                   value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Resource.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="true"/>
        </element>
        <element id="Claim.meta">
          <path value="Claim.meta"/>
          <short value="Metadata about the resource"/>
          <definition
                      value="The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Resource.meta"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Meta"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
        </element>
        <element id="Claim.implicitRules">
          <path value="Claim.implicitRules"/>
          <short value="A set of rules under which this content was created"/>
          <definition
                      value="A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc."/>
          <comment
                   value="Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it&#39;s narrative along with other profiles, value sets, etc."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Resource.implicitRules"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="uri"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it&#39;s meaning or interpretation"/>
          <isSummary value="true"/>
        </element>
        <element id="Claim.language">
          <path value="Claim.language"/>
          <short value="Language of the resource content"/>
          <definition value="The base language in which the resource is written."/>
          <comment
                   value="Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute)."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Resource.language"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet">
              <valueCanonical value="http://hl7.org/fhir/ValueSet/all-languages"/>
            </extension>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Language"/>
            </extension>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true"/>
            </extension>
            <strength value="preferred"/>
            <description value="A human language."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/languages"/>
          </binding>
        </element>
        <element id="Claim.text">
          <path value="Claim.text"/>
          <short value="Text summary of the resource, for human interpretation"/>
          <definition
                      value="A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it &quot;clinically safe&quot; for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety."/>
          <comment
                   value="Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a &quot;text blob&quot; or where text is additionally entered raw or narrated and encoded information is added later."/>
          <alias value="narrative"/>
          <alias value="html"/>
          <alias value="xhtml"/>
          <alias value="display"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="DomainResource.text"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Narrative"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="Act.text?"/>
          </mapping>
        </element>
        <element id="Claim.contained">
          <path value="Claim.contained"/>
          <short value="Contained, inline Resources"/>
          <definition
                      value="These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope."/>
          <comment
                   value="This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels."/>
          <alias value="inline resources"/>
          <alias value="anonymous resources"/>
          <alias value="contained resources"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="DomainResource.contained"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Resource"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Claim.extension">
          <path value="Claim.extension"/>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="DomainResource.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Claim.modifierExtension">
          <path value="Claim.modifierExtension"/>
          <short value="Extensions that cannot be ignored"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element&#39;s descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <requirements
                        value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="DomainResource.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Claim.identifier">
          <path value="Claim.identifier"/>
          <short value="Business Identifier for claim"/>
          <definition value="A unique identifier assigned to this claim."/>
          <requirements value="Allows claims to be distinguished and referenced."/>
          <alias value="Claim Number"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Claim.identifier"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Identifier"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.identifier"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.identifier"/>
          </mapping>
        </element>
        <element id="Claim.status">
          <path value="Claim.status"/>
          <short value="active | cancelled | draft | entered-in-error"/>
          <definition value="The status of the resource instance."/>
          <comment
                   value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid."/>
          <requirements
                        value="Need to track the status of the resource as &#39;draft&#39; resources may undergo further edits while &#39;active&#39; resources are immutable and may only have their status changed to &#39;cancelled&#39;."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Claim.status"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ClaimStatus"/>
            </extension>
            <strength value="required"/>
            <description
                         value="A code specifying the state of the resource instance."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/fm-status|4.0.1"/>
          </binding>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.status"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.status"/>
          </mapping>
        </element>
        <element id="Claim.type">
          <path value="Claim.type"/>
          <short value="Category or discipline"/>
          <definition
                      value="The category of claim, e.g. oral, pharmacy, vision, institutional, professional."/>
          <comment
                   value="The majority of jurisdictions use: oral, pharmacy, vision, professional and institutional, or variants on those terms, as the general styles of claims. The valueset is extensible to accommodate other jurisdictional requirements."/>
          <requirements
                        value="Claim type determine the general sets of business rules applied for information requirements and adjudication."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Claim.type"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ClaimType"/>
            </extension>
            <strength value="extensible"/>
            <description value="The type or discipline-style of the claim."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/claim-type"/>
          </binding>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.class"/>
          </mapping>
        </element>
        <element id="Claim.subType">
          <path value="Claim.subType"/>
          <short value="More granular claim type"/>
          <definition
                      value="A finer grained suite of claim type codes which may convey additional information such as Inpatient vs Outpatient and/or a specialty service."/>
          <comment
                   value="This may contain the local bill type codes, for example the US UB-04 bill type code or the CMS bill type."/>
          <requirements
                        value="Some jurisdictions need a finer grained claim type for routing and adjudication."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.subType"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ClaimSubType"/>
            </extension>
            <strength value="example"/>
            <description value="A more granular claim typecode."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/claim-subtype"/>
          </binding>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.class"/>
          </mapping>
        </element>
        <element id="Claim.use">
          <path value="Claim.use"/>
          <short value="claim | preauthorization | predetermination"/>
          <definition
                      value="A code to indicate whether the nature of the request is: to request adjudication of products and services previously rendered; or requesting authorization and adjudication for provision in the future; or requesting the non-binding adjudication of the listed products and services which could be provided in the future."/>
          <requirements
                        value="This element is required to understand the nature of the request for adjudication."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Claim.use"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Use"/>
            </extension>
            <strength value="required"/>
            <description
                         value="The purpose of the Claim: predetermination, preauthorization, claim."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/claim-use|4.0.1"/>
          </binding>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.class"/>
          </mapping>
        </element>
        <element id="Claim.patient">
          <path value="Claim.patient"/>
          <short value="The recipient of the products and services"/>
          <definition
                      value="The party to whom the professional services and/or products have been supplied or are being considered and for whom actual or forecast reimbursement is sought."/>
          <requirements
                        value="The patient must be supplied to the insurer so that confirmation of coverage and service history may be considered as part of the authorization and/or adjudiction."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Claim.patient"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.subject"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.subject[x]"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.subject"/>
          </mapping>
        </element>
        <element id="Claim.billablePeriod">
          <path value="Claim.billablePeriod"/>
          <short value="Relevant time frame for the claim"/>
          <definition value="The period for which charges are being submitted."/>
          <comment
                   value="Typically this would be today or in the past for a claim, and today or in the future for preauthorizations and predeterminations. Typically line item dates of service should fall within the billing period if one is specified."/>
          <requirements
                        value="A number jurisdictions required the submission of the billing period when submitting claims for example for hospital stays or long-term care."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.billablePeriod"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Period"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.done[x]"/>
          </mapping>
        </element>
        <element id="Claim.created">
          <path value="Claim.created"/>
          <short value="Resource creation date"/>
          <definition value="The date this resource was created."/>
          <comment
                   value="This field is independent of the date of creation of the resource as it may reflect the creation date of a source document prior to digitization. Typically for claims all services must be completed as of this date."/>
          <requirements
                        value="Need to record a timestamp for use by both the recipient and the issuer."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Claim.created"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="dateTime"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.authoredOn"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.recorded"/>
          </mapping>
        </element>
        <element id="Claim.enterer">
          <path value="Claim.enterer"/>
          <short value="Author of the claim"/>
          <definition
                      value="Individual who created the claim, predetermination or preauthorization."/>
          <requirements
                        value="Some jurisdictions require the contact information for personnel completing claims."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.enterer"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Practitioner"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/PractitionerRole"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.author"/>
          </mapping>
        </element>
        <element id="Claim.insurer">
          <path value="Claim.insurer"/>
          <short value="Target"/>
          <definition value="The Insurer who is target of the request."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.insurer"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/Organization"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.performer"/>
          </mapping>
        </element>
        <element id="Claim.provider">
          <path value="Claim.provider"/>
          <short value="Party responsible for the claim"/>
          <definition
                      value="The provider which is responsible for the claim, predetermination or preauthorization."/>
          <comment
                   value="Typically this field would be 1..1 where this party is responsible for the claim but not necessarily professionally responsible for the provision of the individual products and services listed below."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Claim.provider"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-practitioner"/>
            <targetProfile
                           value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-practitionerrole"/>
            <targetProfile
                           value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-organization"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.requester"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.source"/>
          </mapping>
        </element>
        <element id="Claim.priority">
          <path value="Claim.priority"/>
          <short value="Desired processing ugency"/>
          <definition
                      value="The provider-required urgency of processing the request. Typical values include: stat, routine deferred."/>
          <comment
                   value="If a claim processor is unable to complete the processing as per the priority then they should generate and error and not process the request."/>
          <requirements
                        value="The provider may need to indicate their processing requirements so that the processor can indicate if they are unable to comply."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Claim.priority"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProcessPriority"/>
            </extension>
            <strength value="example"/>
            <description
                         value="The timeliness with which processing is required: stat, normal, deferred."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/process-priority"/>
          </binding>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.priority"/>
          </mapping>
        </element>
        <element id="Claim.fundsReserve">
          <path value="Claim.fundsReserve"/>
          <short value="For whom to reserve funds"/>
          <definition
                      value="A code to indicate whether and for whom funds are to be reserved for future claims."/>
          <comment value="This field is only used for preauthorizations."/>
          <requirements
                        value="In the case of a Pre-Determination/Pre-Authorization the provider may request that funds in the amount of the expected Benefit be reserved (&#39;Patient&#39; or &#39;Provider&#39;) to pay for the Benefits determined on the subsequent claim(s). &#39;None&#39; explicitly indicates no funds reserving is requested."/>
          <alias value="Fund pre-allocation"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.fundsReserve"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="FundsReserve"/>
            </extension>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true"/>
            </extension>
            <strength value="example"/>
            <description
                         value="For whom funds are to be reserved: (Patient, Provider, None)."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/fundsreserve"/>
          </binding>
        </element>
        <element id="Claim.related">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="RelatedClaim"/>
          </extension>
          <path value="Claim.related"/>
          <short value="Prior or corollary claims"/>
          <definition
                      value="Other claims which are related to this claim such as prior submissions or claims for related services or for the same event."/>
          <comment
                   value="For example,  for the original treatment and follow-up exams."/>
          <requirements
                        value="For workplace or other accidents it is common to relate separate claims arising from the same event."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Claim.related"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="BackboneElement"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.related.id">
          <path value="Claim.related.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Claim.related.extension">
          <path value="Claim.related.extension"/>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Claim.related.modifierExtension">
          <path value="Claim.related.modifierExtension"/>
          <short value="Extensions that cannot be ignored even if unrecognized"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element&#39;s descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <requirements
                        value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <alias value="modifiers"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="BackboneElement.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Claim.related.claim">
          <path value="Claim.related.claim"/>
          <short value="Reference to the related claim"/>
          <definition value="Reference to a related claim."/>
          <requirements
                        value="For workplace or other accidents it is common to relate separate claims arising from the same event."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.related.claim"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Claim"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.replaces"/>
          </mapping>
        </element>
        <element id="Claim.related.relationship">
          <path value="Claim.related.relationship"/>
          <short value="How the reference claim is related"/>
          <definition value="A code to convey how the claims are related."/>
          <comment value="For example, prior claim or umbrella."/>
          <requirements
                        value="Some insurers need a declaration of the type of relationship."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.related.relationship"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RelatedClaimRelationship"/>
            </extension>
            <strength value="example"/>
            <description value="Relationship of this claim to a related Claim."/>
            <valueSet
                      value="http://hl7.org/fhir/ValueSet/related-claim-relationship"/>
          </binding>
        </element>
        <element id="Claim.related.reference">
          <path value="Claim.related.reference"/>
          <short value="File or case reference"/>
          <definition
                      value="An alternate organizational reference to the case or file to which this particular claim pertains."/>
          <comment
                   value="For example, Property/Casualty insurer claim # or Workers Compensation case # ."/>
          <requirements
                        value="In cases where an event-triggered claim is being submitted to an insurer which requires a reference number to be specified on all exchanges."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.related.reference"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Identifier"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.prescription">
          <path value="Claim.prescription"/>
          <short value="Prescription authorizing services and products"/>
          <definition
                      value="Prescription to support the dispensing of pharmacy, device or vision products."/>
          <requirements
                        value="Required to authorize the dispensing of controlled substances and devices."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.prescription"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-devicerequest"/>
            <targetProfile
                           value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/VisionPrescription"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="true"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.originalPrescription">
          <path value="Claim.originalPrescription"/>
          <short value="Original prescription if superseded by fulfiller"/>
          <definition
                      value="Original prescription which has been superseded by this prescription to support the dispensing of pharmacy services, medications or products."/>
          <comment
                   value="For example, a physician may prescribe a medication which the pharmacy determines is contraindicated, or for which the patient has an intolerance, and therefore issues a new prescription for an alternate medication which has the same therapeutic intent. The prescription from the pharmacy becomes the &#39;prescription&#39; and that from the physician becomes the &#39;original prescription&#39;."/>
          <requirements
                        value="Often required when a fulfiller varies what is fulfilled from that authorized on the original prescription."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.originalPrescription"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/DeviceRequest"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/MedicationRequest"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/VisionPrescription"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.payee">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Payee"/>
          </extension>
          <path value="Claim.payee"/>
          <short value="Recipient of benefits payable"/>
          <definition
                      value="The party to be reimbursed for cost of the products and services according to the terms of the policy."/>
          <comment
                   value="Often providers agree to receive the benefits payable to reduce the near-term costs to the patient. The insurer may decline to pay the provider and choose to pay the subscriber instead."/>
          <requirements
                        value="The provider needs to specify who they wish to be reimbursed and the claims processor needs express who they will reimburse."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.payee"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="BackboneElement"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.payee.id">
          <path value="Claim.payee.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Claim.payee.extension">
          <path value="Claim.payee.extension"/>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Claim.payee.modifierExtension">
          <path value="Claim.payee.modifierExtension"/>
          <short value="Extensions that cannot be ignored even if unrecognized"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element&#39;s descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <requirements
                        value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <alias value="modifiers"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="BackboneElement.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Claim.payee.type">
          <path value="Claim.payee.type"/>
          <short value="Category of recipient"/>
          <definition
                      value="Type of Party to be reimbursed: subscriber, provider, other."/>
          <requirements
                        value="Need to know who should receive payment with the most common situations being the Provider (assignment of benefits) or the Subscriber."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Claim.payee.type"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="PayeeType"/>
            </extension>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
              <valueBoolean value="true"/>
            </extension>
            <strength value="example"/>
            <description value="A code for the party to be reimbursed."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/payeetype"/>
          </binding>
        </element>
        <element id="Claim.payee.party">
          <path value="Claim.payee.party"/>
          <short value="Recipient reference"/>
          <definition
                      value="Reference to the individual or organization to whom any payment will be made."/>
          <comment
                   value="Not required if the payee is &#39;subscriber&#39; or &#39;provider&#39;."/>
          <requirements
                        value="Need to provide demographics if the payee is not &#39;subscriber&#39; nor &#39;provider&#39;."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.payee.party"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-practitioner"/>
            <targetProfile
                           value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-practitionerrole"/>
            <targetProfile
                           value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-organization"/>
            <targetProfile
                           value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"/>
            <targetProfile
                           value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-relatedperson"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.referral">
          <path value="Claim.referral"/>
          <short value="Treatment referral"/>
          <definition value="A reference to a referral resource."/>
          <comment
                   value="The referral resource which lists the date, practitioner, reason and other supporting information."/>
          <requirements
                        value="Some insurers require proof of referral to pay for services or to pay specialist rates for services."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.referral"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.cause"/>
          </mapping>
        </element>
        <element id="Claim.facility">
          <path value="Claim.facility"/>
          <short value="Servicing facility"/>
          <definition value="Facility where the services were provided."/>
          <requirements
                        value="Insurance adjudication can be dependant on where services were delivered."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.facility"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-location"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.where[x]"/>
          </mapping>
        </element>
        <element id="Claim.careTeam">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="CareTeam"/>
          </extension>
          <path value="Claim.careTeam"/>
          <short value="Members of the care team"/>
          <definition
                      value="The members of the team who provided the products and services."/>
          <requirements
                        value="Common to identify the responsible and supporting practitioners."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Claim.careTeam"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="BackboneElement"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.careTeam.id">
          <path value="Claim.careTeam.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Claim.careTeam.extension">
          <path value="Claim.careTeam.extension"/>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Claim.careTeam.modifierExtension">
          <path value="Claim.careTeam.modifierExtension"/>
          <short value="Extensions that cannot be ignored even if unrecognized"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element&#39;s descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <requirements
                        value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <alias value="modifiers"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="BackboneElement.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Claim.careTeam.sequence">
          <path value="Claim.careTeam.sequence"/>
          <short value="Order of care team"/>
          <definition value="A number to uniquely identify care team entries."/>
          <requirements
                        value="Necessary to maintain the order of the care team and provide a mechanism to link individuals to claim details."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Claim.careTeam.sequence"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="positiveInt"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.careTeam.provider">
          <path value="Claim.careTeam.provider"/>
          <short value="Practitioner or organization"/>
          <definition
                      value="Member of the team who provided the product or service."/>
          <requirements
                        value="Often a regulatory requirement to specify the responsible provider."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Claim.careTeam.provider"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-practitioner"/>
            <targetProfile
                           value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-practitionerrole"/>
            <targetProfile
                           value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-organization"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <mustSupport value="false"/>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.actor"/>
          </mapping>
        </element>
        <element id="Claim.careTeam.responsible">
          <path value="Claim.careTeam.responsible"/>
          <short value="Indicator of the lead practitioner"/>
          <definition
                      value="The party who is billing and/or responsible for the claimed products or services."/>
          <comment
                   value="Responsible might not be required when there is only a single provider listed."/>
          <requirements
                        value="When multiple parties are present it is required to distinguish the lead or responsible individual."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.careTeam.responsible"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="boolean"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.careTeam.role">
          <path value="Claim.careTeam.role"/>
          <short value="Function within the team"/>
          <definition
                      value="The lead, assisting or supervising practitioner and their discipline if a multidisciplinary team."/>
          <comment
                   value="Role might not be required when there is only a single provider listed."/>
          <requirements
                        value="When multiple parties are present it is required to distinguish the roles performed by each member."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.careTeam.role"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="CareTeamRole"/>
            </extension>
            <strength value="example"/>
            <description value="The role codes for the care team members."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/claim-careteamrole"/>
          </binding>
        </element>
        <element id="Claim.careTeam.qualification">
          <path value="Claim.careTeam.qualification"/>
          <short value="Practitioner credential or specialization"/>
          <definition
                      value="The qualification of the practitioner which is applicable for this service."/>
          <requirements
                        value="Need to specify which qualification a provider is delivering the product or service under."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.careTeam.qualification"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProviderQualification"/>
            </extension>
            <strength value="example"/>
            <description value="Provider professional qualifications."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/provider-qualification"/>
          </binding>
        </element>
        <element id="Claim.supportingInfo">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="SupportingInformation"/>
          </extension>
          <path value="Claim.supportingInfo"/>
          <short value="Supporting information"/>
          <definition
                      value="Additional information codes regarding exceptions, special considerations, the condition, situation, prior or concurrent issues."/>
          <comment
                   value="Often there are multiple jurisdiction specific valuesets which are required."/>
          <requirements
                        value="Typically these information codes are required to support the services rendered or the adjudication of the services rendered."/>
          <alias value="Attachments
    Exception Codes
    Occurrence Codes
    Value codes"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Claim.supportingInfo"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="BackboneElement"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.supportingInfo"/>
          </mapping>
        </element>
        <element id="Claim.supportingInfo.id">
          <path value="Claim.supportingInfo.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Claim.supportingInfo.extension">
          <path value="Claim.supportingInfo.extension"/>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Claim.supportingInfo.modifierExtension">
          <path value="Claim.supportingInfo.modifierExtension"/>
          <short value="Extensions that cannot be ignored even if unrecognized"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element&#39;s descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <requirements
                        value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <alias value="modifiers"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="BackboneElement.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Claim.supportingInfo.sequence">
          <path value="Claim.supportingInfo.sequence"/>
          <short value="Information instance identifier"/>
          <definition
                      value="A number to uniquely identify supporting information entries."/>
          <requirements
                        value="Necessary to maintain the order of the supporting information items and provide a mechanism to link to claim details."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Claim.supportingInfo.sequence"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="positiveInt"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.supportingInfo.category">
          <path value="Claim.supportingInfo.category"/>
          <short value="Classification of the supplied information"/>
          <definition
                      value="The general class of the information supplied: information; exception; accident, employment; onset, etc."/>
          <comment
                   value="This may contain a category for the local bill type codes."/>
          <requirements
                        value="Required to group or associate information items with common characteristics. For example: admission information or prior treatments."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Claim.supportingInfo.category"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="InformationCategory"/>
            </extension>
            <strength value="example"/>
            <description
                         value="The valuset used for additional information category codes."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/claim-informationcategory"/>
          </binding>
        </element>
        <element id="Claim.supportingInfo.code">
          <path value="Claim.supportingInfo.code"/>
          <short value="Type of information"/>
          <definition
                      value="System and code pertaining to the specific information regarding special conditions relating to the setting, treatment or patient  for which care is sought."/>
          <requirements
                        value="Required to identify the kind of additional information."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.supportingInfo.code"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="InformationCode"/>
            </extension>
            <strength value="example"/>
            <description value="The valuset used for additional information codes."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/claim-exception"/>
          </binding>
        </element>
        <element id="Claim.supportingInfo.timing[x]">
          <path value="Claim.supportingInfo.timing[x]"/>
          <short value="When it occurred"/>
          <definition
                      value="The date when or period to which this information refers."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.supportingInfo.timing[x]"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="date"/>
          </type>
          <type>
            <code value="Period"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.supportingInfo.value[x]">
          <path value="Claim.supportingInfo.value[x]"/>
          <short value="Data to be provided"/>
          <definition
                      value="Additional data or information such as resources, documents, images etc. including references to the data or the actual inclusion of the data."/>
          <comment
                   value="Could be used to provide references to other resources, document. For example could contain a PDF in an Attachment of the Police Report for an Accident."/>
          <requirements
                        value="To convey the data content to be provided when the information is more than a simple code or period."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.supportingInfo.value[x]"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="boolean"/>
          </type>
          <type>
            <code value="string"/>
          </type>
          <type>
            <code value="Quantity"/>
          </type>
          <type>
            <code value="Attachment"/>
          </type>
          <type>
            <code value="Reference"/>
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.supportingInfo.reason">
          <path value="Claim.supportingInfo.reason"/>
          <short value="Explanation for the information"/>
          <definition
                      value="Provides the reason in the situation where a reason code is required in addition to the content."/>
          <comment
                   value="For example: the reason for the additional stay, or why a tooth is  missing."/>
          <requirements
                        value="Needed when the supporting information has both a date and amount/value and requires explanation."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.supportingInfo.reason"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="MissingReason"/>
            </extension>
            <strength value="example"/>
            <description value="Reason codes for the missing teeth."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/missing-tooth-reason"/>
          </binding>
        </element>
        <element id="Claim.diagnosis">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Diagnosis"/>
          </extension>
          <path value="Claim.diagnosis"/>
          <short value="Pertinent diagnosis information"/>
          <definition
                      value="Information about diagnoses relevant to the claim items."/>
          <requirements
                        value="Required for the adjudication by provided context for the services and product listed."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Claim.diagnosis"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="BackboneElement"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.reasonReference"/>
          </mapping>
        </element>
        <element id="Claim.diagnosis.id">
          <path value="Claim.diagnosis.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Claim.diagnosis.extension">
          <path value="Claim.diagnosis.extension"/>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Claim.diagnosis.modifierExtension">
          <path value="Claim.diagnosis.modifierExtension"/>
          <short value="Extensions that cannot be ignored even if unrecognized"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element&#39;s descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <requirements
                        value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <alias value="modifiers"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="BackboneElement.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Claim.diagnosis.sequence">
          <path value="Claim.diagnosis.sequence"/>
          <short value="Diagnosis instance identifier"/>
          <definition value="A number to uniquely identify diagnosis entries."/>
          <comment
                   value="Diagnosis are presented in list order to their expected importance: primary, secondary, etc."/>
          <requirements
                        value="Necessary to maintain the order of the diagnosis items and provide a mechanism to link to claim details."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Claim.diagnosis.sequence"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="positiveInt"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.diagnosis.diagnosis[x]">
          <path value="Claim.diagnosis.diagnosis[x]"/>
          <short value="Nature of illness or problem"/>
          <definition
                      value="The nature of illness or problem in a coded form or as a reference to an external defined Condition."/>
          <requirements
                        value="Provides health context for the evaluation of the products and/or services."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Claim.diagnosis.diagnosis[x]"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <type>
            <code value="Reference"/>
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Condition"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ICD10"/>
            </extension>
            <strength value="example"/>
            <description value="Example ICD10 Diagnostic codes."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/icd-10"/>
          </binding>
        </element>
        <element id="Claim.diagnosis.type">
          <path value="Claim.diagnosis.type"/>
          <short value="Timing or nature of the diagnosis"/>
          <definition
                      value="When the condition was observed or the relative ranking."/>
          <comment value="For example: admitting, primary, secondary, discharge."/>
          <requirements
                        value="Often required to capture a particular diagnosis, for example: primary or discharge."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Claim.diagnosis.type"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DiagnosisType"/>
            </extension>
            <strength value="example"/>
            <description
                         value="The type of the diagnosis: admitting, principal, discharge."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/ex-diagnosistype"/>
          </binding>
        </element>
        <element id="Claim.diagnosis.onAdmission">
          <path value="Claim.diagnosis.onAdmission"/>
          <short value="Present on admission"/>
          <definition
                      value="Indication of whether the diagnosis was present on admission to a facility."/>
          <requirements
                        value="Many systems need to understand for adjudication if the diagnosis was present a time of admission."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.diagnosis.onAdmission"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DiagnosisOnAdmission"/>
            </extension>
            <strength value="example"/>
            <description value="Present on admission."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/ex-diagnosis-on-admission"/>
          </binding>
        </element>
        <element id="Claim.diagnosis.packageCode">
          <path value="Claim.diagnosis.packageCode"/>
          <short value="Package billing code"/>
          <definition
                      value="A package billing code or bundle code used to group products and services to a particular health condition (such as heart attack) which is based on a predetermined grouping code system."/>
          <comment
                   value="For example DRG (Diagnosis Related Group) or a bundled billing code. A patient may have a diagnosis of a Myocardial Infarction and a DRG for HeartAttack would be assigned. The Claim item (and possible subsequent claims) would refer to the DRG for those line items that were for services related to the heart attack event."/>
          <requirements
                        value="Required to relate the current  diagnosis to a package billing code that is then referenced on the individual claim items which are specific to the health condition covered by the package code."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.diagnosis.packageCode"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="DiagnosisRelatedGroup"/>
            </extension>
            <strength value="example"/>
            <description value="The DRG codes associated with the diagnosis."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/ex-diagnosisrelatedgroup"/>
          </binding>
        </element>
        <element id="Claim.procedure">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Procedure"/>
          </extension>
          <path value="Claim.procedure"/>
          <short value="Clinical procedures performed"/>
          <definition
                      value="Procedures performed on the patient relevant to the billing items with the claim."/>
          <requirements
                        value="The specific clinical invention are sometimes required to be provided to justify billing a greater than customary amount for a service."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Claim.procedure"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="BackboneElement"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.procedure.id">
          <path value="Claim.procedure.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Claim.procedure.extension">
          <path value="Claim.procedure.extension"/>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Claim.procedure.modifierExtension">
          <path value="Claim.procedure.modifierExtension"/>
          <short value="Extensions that cannot be ignored even if unrecognized"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element&#39;s descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <requirements
                        value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <alias value="modifiers"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="BackboneElement.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Claim.procedure.sequence">
          <path value="Claim.procedure.sequence"/>
          <short value="Procedure instance identifier"/>
          <definition value="A number to uniquely identify procedure entries."/>
          <requirements
                        value="Necessary to provide a mechanism to link to claim details."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Claim.procedure.sequence"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="positiveInt"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.procedure.type">
          <path value="Claim.procedure.type"/>
          <short value="Category of Procedure"/>
          <definition
                      value="When the condition was observed or the relative ranking."/>
          <comment value="For example: primary, secondary."/>
          <requirements
                        value="Often required to capture a particular diagnosis, for example: primary or discharge."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Claim.procedure.type"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProcedureType"/>
            </extension>
            <strength value="example"/>
            <description value="Example procedure type codes."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/ex-procedure-type"/>
          </binding>
        </element>
        <element id="Claim.procedure.date">
          <path value="Claim.procedure.date"/>
          <short value="When the procedure was performed"/>
          <definition value="Date and optionally time the procedure was performed."/>
          <requirements value="Required for auditing purposes."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.procedure.date"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="dateTime"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.procedure.procedure[x]">
          <path value="Claim.procedure.procedure[x]"/>
          <short value="Specific clinical procedure"/>
          <definition
                      value="The code or reference to a Procedure resource which identifies the clinical intervention performed."/>
          <requirements value="This identifies the actual clinical procedure."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Claim.procedure.procedure[x]"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <type>
            <code value="Reference"/>
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ICD10_Procedures"/>
            </extension>
            <strength value="example"/>
            <description value="Example ICD10 Procedure codes."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/icd-10-procedures"/>
          </binding>
        </element>
        <element id="Claim.procedure.udi">
          <path value="Claim.procedure.udi"/>
          <short value="Unique device identifier"/>
          <definition
                      value="Unique Device Identifiers associated with this line item."/>
          <requirements
                        value="The UDI code allows the insurer to obtain device level information on the product supplied."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Claim.procedure.udi"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.insurance">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Insurance"/>
          </extension>
          <path value="Claim.insurance"/>
          <short value="Patient insurance information"/>
          <definition
                      value="Financial instruments for reimbursement for the health care products and services specified on the claim."/>
          <comment
                   value="All insurance coverages for the patient which may be applicable for reimbursement, of the products and services listed in the claim, are typically provided in the claim to allow insurers to confirm the ordering of the insurance coverages relative to local &#39;coordination of benefit&#39; rules. One coverage (and only one) with &#39;focal=true&#39; is to be used in the adjudication of this claim. Coverages appearing before the focal Coverage in the list, and where &#39;Coverage.subrogation=false&#39;, should provide a reference to the ClaimResponse containing the adjudication results of the prior claim."/>
          <requirements
                        value="At least one insurer is required for a claim to be a claim."/>
          <min value="1"/>
          <max value="*"/>
          <base>
            <path value="Claim.insurance"/>
            <min value="1"/>
            <max value="*"/>
          </base>
          <type>
            <code value="BackboneElement"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="Coverage"/>
          </mapping>
        </element>
        <element id="Claim.insurance.id">
          <path value="Claim.insurance.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Claim.insurance.extension">
          <path value="Claim.insurance.extension"/>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Claim.insurance.modifierExtension">
          <path value="Claim.insurance.modifierExtension"/>
          <short value="Extensions that cannot be ignored even if unrecognized"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element&#39;s descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <requirements
                        value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <alias value="modifiers"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="BackboneElement.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Claim.insurance.sequence">
          <path value="Claim.insurance.sequence"/>
          <short value="Insurance instance identifier"/>
          <definition
                      value="A number to uniquely identify insurance entries and provide a sequence of coverages to convey coordination of benefit order."/>
          <requirements value="To maintain order of the coverages."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Claim.insurance.sequence"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="positiveInt"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
        </element>
        <element id="Claim.insurance.focal">
          <path value="Claim.insurance.focal"/>
          <short value="Coverage to be used for adjudication"/>
          <definition
                      value="A flag to indicate that this Coverage is to be used for adjudication of this claim when set to true."/>
          <comment
                   value="A patient may (will) have multiple insurance policies which provide reimbursement for healthcare services and products. For example a person may also be covered by their spouse&#39;s policy and both appear in the list (and may be from the same insurer). This flag will be set to true for only one of the listed policies and that policy will be used for adjudicating this claim. Other claims would be created to request adjudication against the other listed policies."/>
          <requirements
                        value="To identify which coverage in the list is being used to adjudicate this claim."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Claim.insurance.focal"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="boolean"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
        </element>
        <element id="Claim.insurance.identifier">
          <path value="Claim.insurance.identifier"/>
          <short value="Pre-assigned Claim number"/>
          <definition
                      value="The business identifier to be used when the claim is sent for adjudication against this insurance policy."/>
          <comment
                   value="Only required in jurisdictions where insurers, rather than the provider, are required to send claims to  insurers that appear after them in the list. This element is not required when &#39;subrogation=true&#39;."/>
          <requirements
                        value="This will be the claim number should it be necessary to create this claim in the future. This is provided so that payors may forward claims to other payors in the Coordination of Benefit for adjudication rather than the provider being required to initiate each adjudication."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.insurance.identifier"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Identifier"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.identifier"/>
          </mapping>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.identifier"/>
          </mapping>
        </element>
        <element id="Claim.insurance.coverage">
          <path value="Claim.insurance.coverage"/>
          <short value="Insurance information"/>
          <definition
                      value="Reference to the insurance card level information contained in the Coverage resource. The coverage issuing insurer will use these details to locate the patient&#39;s actual coverage within the insurer&#39;s information system."/>
          <requirements
                        value="Required to allow the adjudicator to locate the correct policy and history within their information system."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Claim.insurance.coverage"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Coverage"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="true"/>
        </element>
        <element id="Claim.insurance.businessArrangement">
          <path value="Claim.insurance.businessArrangement"/>
          <short value="Additional provider contract number"/>
          <definition
                      value="A business agreement number established between the provider and the insurer for special business processing purposes."/>
          <requirements
                        value="Providers may have multiple business arrangements with a given insurer and must supply the specific contract number for adjudication."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.insurance.businessArrangement"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.insurance.preAuthRef">
          <path value="Claim.insurance.preAuthRef"/>
          <short value="Prior authorization reference number"/>
          <definition
                      value="Reference numbers previously provided by the insurer to the provider to be quoted on subsequent claims containing services or products related to the prior authorization."/>
          <comment
                   value="This value is an alphanumeric string that may be provided over the phone, via text, via paper, or within a ClaimResponse resource and is not a FHIR Identifier."/>
          <requirements
                        value="Providers must quote previously issued authorization reference numbers in order to obtain adjudication as previously advised on the Preauthorization."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Claim.insurance.preAuthRef"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.insurance.claimResponse">
          <path value="Claim.insurance.claimResponse"/>
          <short value="Adjudication results"/>
          <definition
                      value="The result of the adjudication of the line items for the Coverage specified in this insurance."/>
          <comment
                   value="Must not be specified when &#39;focal=true&#39; for this insurance."/>
          <requirements
                        value="An insurer need the adjudication results from prior insurers to determine the outstanding balance remaining by item for the items in the curent claim."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.insurance.claimResponse"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/ClaimResponse"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.accident">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Accident"/>
          </extension>
          <path value="Claim.accident"/>
          <short value="Details of the event"/>
          <definition
                      value="Details of an accident which resulted in injuries which required the products and services listed in the claim."/>
          <requirements
                        value="When healthcare products and services are accident related, benefits may be payable under accident provisions of policies, such as automotive, etc before they are payable under normal health insurance."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.accident"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="BackboneElement"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.accident.id">
          <path value="Claim.accident.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Claim.accident.extension">
          <path value="Claim.accident.extension"/>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Claim.accident.modifierExtension">
          <path value="Claim.accident.modifierExtension"/>
          <short value="Extensions that cannot be ignored even if unrecognized"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element&#39;s descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <requirements
                        value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <alias value="modifiers"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="BackboneElement.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Claim.accident.date">
          <path value="Claim.accident.date"/>
          <short value="When the incident occurred"/>
          <definition
                      value="Date of an accident event  related to the products and services contained in the claim."/>
          <comment
                   value="The date of the accident has to precede the dates of the products and services but within a reasonable timeframe."/>
          <requirements value="Required for audit purposes and adjudication."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Claim.accident.date"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="date"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.accident.type">
          <path value="Claim.accident.type"/>
          <short value="The nature of the accident"/>
          <definition
                      value="The type or context of the accident event for the purposes of selection of potential insurance coverages and determination of coordination between insurers."/>
          <requirements value="Coverage may be dependant on the type of accident."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.accident.type"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="AccidentType"/>
            </extension>
            <strength value="extensible"/>
            <description value="Type of accident: work place, auto, etc."/>
            <valueSet value="http://terminology.hl7.org/ValueSet/v3-ActIncidentCode"/>
          </binding>
        </element>
        <element id="Claim.accident.location[x]">
          <path value="Claim.accident.location[x]"/>
          <short value="Where the event occurred"/>
          <definition value="The physical location of the accident event."/>
          <requirements
                        value="Required for audit purposes and determination of applicable insurance liability."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.accident.location[x]"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Address"/>
          </type>
          <type>
            <code value="Reference"/>
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.item">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Item"/>
          </extension>
          <path value="Claim.item"/>
          <short value="Product or service provided"/>
          <definition
                      value="A claim line. Either a simple  product or service or a &#39;group&#39; of details which can each be a simple items or groups of sub-details."/>
          <requirements value="The items to be processed for adjudication."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Claim.item"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="BackboneElement"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.item.id">
          <path value="Claim.item.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Claim.item.extension">
          <path value="Claim.item.extension"/>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Claim.item.modifierExtension">
          <path value="Claim.item.modifierExtension"/>
          <short value="Extensions that cannot be ignored even if unrecognized"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element&#39;s descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <requirements
                        value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <alias value="modifiers"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="BackboneElement.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Claim.item.sequence">
          <path value="Claim.item.sequence"/>
          <short value="Item instance identifier"/>
          <definition value="A number to uniquely identify item entries."/>
          <requirements
                        value="Necessary to provide a mechanism to link to items from within the claim and within the adjudication details of the ClaimResponse."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Claim.item.sequence"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="positiveInt"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.item.careTeamSequence">
          <path value="Claim.item.careTeamSequence"/>
          <short value="Applicable careTeam members"/>
          <definition value="CareTeam members related to this service or product."/>
          <requirements
                        value="Need to identify the individuals and their roles in the provision of the product or service."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Claim.item.careTeamSequence"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="positiveInt"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.item.diagnosisSequence">
          <path value="Claim.item.diagnosisSequence"/>
          <short value="Applicable diagnoses"/>
          <definition value="Diagnosis applicable for this service or product."/>
          <requirements
                        value="Need to related the product or service to the associated diagnoses."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Claim.item.diagnosisSequence"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="positiveInt"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.item.procedureSequence">
          <path value="Claim.item.procedureSequence"/>
          <short value="Applicable procedures"/>
          <definition value="Procedures applicable for this service or product."/>
          <requirements
                        value="Need to provide any listed specific procedures to support the product or service being claimed."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Claim.item.procedureSequence"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="positiveInt"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.item.informationSequence">
          <path value="Claim.item.informationSequence"/>
          <short value="Applicable exception and supporting information"/>
          <definition
                      value="Exceptions, special conditions and supporting information applicable for this service or product."/>
          <requirements
                        value="Need to reference the supporting information items that relate directly to this product or service."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Claim.item.informationSequence"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="positiveInt"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.item.revenue">
          <path value="Claim.item.revenue"/>
          <short value="Revenue or cost center code"/>
          <definition
                      value="The type of revenue or cost center providing the product and/or service."/>
          <requirements value="Needed in the processing of institutional claims."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.item.revenue"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RevenueCenter"/>
            </extension>
            <strength value="example"/>
            <description
                         value="Codes for the revenue or cost centers supplying the service and/or products."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/ex-revenue-center"/>
          </binding>
        </element>
        <element id="Claim.item.category">
          <path value="Claim.item.category"/>
          <short value="Benefit classification"/>
          <definition
                      value="Code to identify the general type of benefits under which products and services are provided."/>
          <comment
                   value="Examples include Medical Care, Periodontics, Renal Dialysis, Vision Coverage."/>
          <requirements
                        value="Needed in the processing of institutional claims as this allows the insurer to determine whether a facial X-Ray is for dental, orthopedic, or facial surgery purposes."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.item.category"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BenefitCategory"/>
            </extension>
            <strength value="example"/>
            <description
                         value="Benefit categories such as: oral-basic, major, glasses."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/ex-benefitcategory"/>
          </binding>
        </element>
        <element id="Claim.item.productOrService">
          <path value="Claim.item.productOrService"/>
          <short value="Billing, service, product, or drug code"/>
          <definition
                      value="When the value is a group code then this item collects a set of related claim details, otherwise this contains the product, service, drug or other billing code for the item."/>
          <comment
                   value="If this is an actual service or product line, i.e. not a Group, then use code to indicate the Professional Service or Product supplied (e.g. CTP, HCPCS, USCLS, ICD10, NCPDP, DIN, RxNorm, ACHI, CCI). If a grouping item then use a group code to indicate the type of thing being grouped e.g. &#39;glasses&#39; or &#39;compound&#39;."/>
          <requirements value="Necessary to state what was provided or done."/>
          <alias value="Drug Code"/>
          <alias value="Bill Code"/>
          <alias value="Service Code"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Claim.item.productOrService"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ServiceProduct"/>
            </extension>
            <strength value="example"/>
            <description value="Allowable service and product codes."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/service-uscls"/>
          </binding>
        </element>
        <element id="Claim.item.modifier">
          <path value="Claim.item.modifier"/>
          <short value="Product or service billing modifiers"/>
          <definition
                      value="Item typification or modifiers codes to convey additional context for the product or service."/>
          <comment
                   value="For example in Oral whether the treatment is cosmetic or associated with TMJ, or for Medical whether the treatment was outside the clinic or outside of office hours."/>
          <requirements
                        value="To support inclusion of the item for adjudication or to charge an elevated fee."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Claim.item.modifier"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Modifiers"/>
            </extension>
            <strength value="example"/>
            <description
                         value="Item type or modifiers codes, eg for Oral whether the treatment is cosmetic or associated with TMJ, or an appliance was lost or stolen."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/claim-modifiers"/>
          </binding>
        </element>
        <element id="Claim.item.programCode">
          <path value="Claim.item.programCode"/>
          <short value="Program the product or service is provided under"/>
          <definition
                      value="Identifies the program under which this may be recovered."/>
          <comment
                   value="For example: Neonatal program, child dental program or drug users recovery program."/>
          <requirements
                        value="Commonly used in in the identification of publicly provided program focused on population segments or disease classifications."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Claim.item.programCode"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProgramCode"/>
            </extension>
            <strength value="example"/>
            <description value="Program specific reason codes."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/ex-program-code"/>
          </binding>
        </element>
        <element id="Claim.item.serviced[x]">
          <path value="Claim.item.serviced[x]"/>
          <short value="Date or dates of service or product delivery"/>
          <definition
                      value="The date or dates when the service or product was supplied, performed or completed."/>
          <requirements
                        value="Needed to determine whether the  service or product was provided during the term of the insurance coverage."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.item.serviced[x]"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="date"/>
          </type>
          <type>
            <code value="Period"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.done[x]"/>
          </mapping>
        </element>
        <element id="Claim.item.location[x]">
          <path value="Claim.item.location[x]"/>
          <short value="Place of service or where product was supplied"/>
          <definition value="Where the product or service was provided."/>
          <requirements
                        value="The location can alter whether the item was acceptable for insurance purposes or impact the determination of the benefit amount."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.item.location[x]"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <type>
            <code value="Address"/>
          </type>
          <type>
            <code value="Reference"/>
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ServicePlace"/>
            </extension>
            <strength value="example"/>
            <description value="Place of service: pharmacy, school, prison, etc."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/service-place"/>
          </binding>
          <mapping>
            <identity value="w5"/>
            <map value="FiveWs.where[x]"/>
          </mapping>
        </element>
        <element id="Claim.item.quantity">
          <path value="Claim.item.quantity"/>
          <short value="Count of products or services"/>
          <definition value="The number of repetitions of a service or product."/>
          <requirements
                        value="Required when the product or service code does not convey the quantity provided."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.item.quantity"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Quantity"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.item.unitPrice">
          <path value="Claim.item.unitPrice"/>
          <short value="Fee, charge or cost per item"/>
          <definition
                      value="If the item is not a group then this is the fee for the product or service, otherwise this is the total of the fees for the details of the group."/>
          <requirements
                        value="The amount charged to the patient by the provider for a single unit."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.item.unitPrice"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Money"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.item.factor">
          <path value="Claim.item.factor"/>
          <short value="Price scaling factor"/>
          <definition
                      value="A real number that represents a multiplier used in determining the overall value of services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount."/>
          <comment
                   value="To show a 10% senior&#39;s discount, the value entered is: 0.90 (1.00 - 0.10)."/>
          <requirements
                        value="When discounts are provided to a patient (example: Senior&#39;s discount) then this must be documented for adjudication."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.item.factor"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="decimal"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.item.net">
          <path value="Claim.item.net"/>
          <short value="Total item cost"/>
          <definition
                      value="The quantity times the unit price for an additional service or product or charge."/>
          <comment
                   value="For example, the formula: quantity * unitPrice * factor  = net. Quantity and factor are assumed to be 1 if not supplied."/>
          <requirements
                        value="Provides the total amount claimed  for the group (if a grouper) or the line item."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.item.net"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Money"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.item.udi">
          <path value="Claim.item.udi"/>
          <short value="Unique device identifier"/>
          <definition
                      value="Unique Device Identifiers associated with this line item."/>
          <requirements
                        value="The UDI code allows the insurer to obtain device level information on the product supplied."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Claim.item.udi"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.item.bodySite">
          <path value="Claim.item.bodySite"/>
          <short value="Anatomical location"/>
          <definition
                      value="Physical service site on the patient (limb, tooth, etc.)."/>
          <comment
                   value="For example: Providing a tooth code, allows an insurer to identify a provider performing a filling on a tooth that was previously removed."/>
          <requirements value="Allows insurer to validate specific procedures."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.item.bodySite"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="OralSites"/>
            </extension>
            <strength value="example"/>
            <description value="The code for the teeth, quadrant, sextant and arch."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/tooth"/>
          </binding>
        </element>
        <element id="Claim.item.subSite">
          <path value="Claim.item.subSite"/>
          <short value="Anatomical sub-location"/>
          <definition
                      value="A region or surface of the bodySite, e.g. limb region or tooth surface(s)."/>
          <requirements value="Allows insurer to validate specific procedures."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Claim.item.subSite"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Surface"/>
            </extension>
            <strength value="example"/>
            <description
                         value="The code for the tooth surface and surface combinations."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/surface"/>
          </binding>
        </element>
        <element id="Claim.item.encounter">
          <path value="Claim.item.encounter"/>
          <short value="Encounters related to this billed item"/>
          <definition
                      value="The Encounters during which this Claim was created or to which the creation of this record is tightly associated."/>
          <comment
                   value="This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter."/>
          <requirements
                        value="Used in some jurisdictions to link clinical events to claim items."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Claim.item.encounter"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="workflow"/>
            <map value="Request.context"/>
          </mapping>
        </element>
        <element id="Claim.item.detail">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="Detail"/>
          </extension>
          <path value="Claim.item.detail"/>
          <short value="Product or service provided"/>
          <definition
                      value="A claim detail line. Either a simple (a product or service) or a &#39;group&#39; of sub-details which are simple items."/>
          <requirements value="The items to be processed for adjudication."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Claim.item.detail"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="BackboneElement"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.item.detail.id">
          <path value="Claim.item.detail.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Claim.item.detail.extension">
          <path value="Claim.item.detail.extension"/>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Claim.item.detail.modifierExtension">
          <path value="Claim.item.detail.modifierExtension"/>
          <short value="Extensions that cannot be ignored even if unrecognized"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element&#39;s descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <requirements
                        value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <alias value="modifiers"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="BackboneElement.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Claim.item.detail.sequence">
          <path value="Claim.item.detail.sequence"/>
          <short value="Item instance identifier"/>
          <definition value="A number to uniquely identify item entries."/>
          <requirements
                        value="Necessary to provide a mechanism to link to items from within the claim and within the adjudication details of the ClaimResponse."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Claim.item.detail.sequence"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="positiveInt"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.item.detail.revenue">
          <path value="Claim.item.detail.revenue"/>
          <short value="Revenue or cost center code"/>
          <definition
                      value="The type of revenue or cost center providing the product and/or service."/>
          <requirements value="Needed in the processing of institutional claims."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.item.detail.revenue"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RevenueCenter"/>
            </extension>
            <strength value="example"/>
            <description
                         value="Codes for the revenue or cost centers supplying the service and/or products."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/ex-revenue-center"/>
          </binding>
        </element>
        <element id="Claim.item.detail.category">
          <path value="Claim.item.detail.category"/>
          <short value="Benefit classification"/>
          <definition
                      value="Code to identify the general type of benefits under which products and services are provided."/>
          <comment
                   value="Examples include Medical Care, Periodontics, Renal Dialysis, Vision Coverage."/>
          <requirements
                        value="Needed in the processing of institutional claims as this allows the insurer to determine whether a facial X-Ray is for dental, orthopedic, or facial surgery purposes."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.item.detail.category"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BenefitCategory"/>
            </extension>
            <strength value="example"/>
            <description
                         value="Benefit categories such as: oral-basic, major, glasses."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/ex-benefitcategory"/>
          </binding>
        </element>
        <element id="Claim.item.detail.productOrService">
          <path value="Claim.item.detail.productOrService"/>
          <short value="Billing, service, product, or drug code"/>
          <definition
                      value="When the value is a group code then this item collects a set of related claim details, otherwise this contains the product, service, drug or other billing code for the item."/>
          <comment
                   value="If this is an actual service or product line, i.e. not a Group, then use code to indicate the Professional Service or Product supplied (e.g. CTP, HCPCS, USCLS, ICD10, NCPDP, DIN, RxNorm, ACHI, CCI). If a grouping item then use a group code to indicate the type of thing being grouped e.g. &#39;glasses&#39; or &#39;compound&#39;."/>
          <requirements value="Necessary to state what was provided or done."/>
          <alias value="Drug Code"/>
          <alias value="Bill Code"/>
          <alias value="Service Code"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Claim.item.detail.productOrService"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ServiceProduct"/>
            </extension>
            <strength value="example"/>
            <description value="Allowable service and product codes."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/service-uscls"/>
          </binding>
        </element>
        <element id="Claim.item.detail.modifier">
          <path value="Claim.item.detail.modifier"/>
          <short value="Service/Product billing modifiers"/>
          <definition
                      value="Item typification or modifiers codes to convey additional context for the product or service."/>
          <comment
                   value="For example in Oral whether the treatment is cosmetic or associated with TMJ, or for Medical whether the treatment was outside the clinic or out of office hours."/>
          <requirements
                        value="To support inclusion of the item for adjudication or to charge an elevated fee."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Claim.item.detail.modifier"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Modifiers"/>
            </extension>
            <strength value="example"/>
            <description
                         value="Item type or modifiers codes, eg for Oral whether the treatment is cosmetic or associated with TMJ, or an appliance was lost or stolen."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/claim-modifiers"/>
          </binding>
        </element>
        <element id="Claim.item.detail.programCode">
          <path value="Claim.item.detail.programCode"/>
          <short value="Program the product or service is provided under"/>
          <definition
                      value="Identifies the program under which this may be recovered."/>
          <comment
                   value="For example: Neonatal program, child dental program or drug users recovery program."/>
          <requirements
                        value="Commonly used in in the identification of publicly provided program focused on population segments or disease classifications."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Claim.item.detail.programCode"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProgramCode"/>
            </extension>
            <strength value="example"/>
            <description value="Program specific reason codes."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/ex-program-code"/>
          </binding>
        </element>
        <element id="Claim.item.detail.quantity">
          <path value="Claim.item.detail.quantity"/>
          <short value="Count of products or services"/>
          <definition value="The number of repetitions of a service or product."/>
          <requirements
                        value="Required when the product or service code does not convey the quantity provided."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.item.detail.quantity"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Quantity"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.item.detail.unitPrice">
          <path value="Claim.item.detail.unitPrice"/>
          <short value="Fee, charge or cost per item"/>
          <definition
                      value="If the item is not a group then this is the fee for the product or service, otherwise this is the total of the fees for the details of the group."/>
          <requirements
                        value="The amount charged to the patient by the provider for a single unit."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.item.detail.unitPrice"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Money"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.item.detail.factor">
          <path value="Claim.item.detail.factor"/>
          <short value="Price scaling factor"/>
          <definition
                      value="A real number that represents a multiplier used in determining the overall value of services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount."/>
          <comment
                   value="To show a 10% senior&#39;s discount, the value entered is: 0.90 (1.00 - 0.10)."/>
          <requirements
                        value="When discounts are provided to a patient (example: Senior&#39;s discount) then this must be documented for adjudication."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.item.detail.factor"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="decimal"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.item.detail.net">
          <path value="Claim.item.detail.net"/>
          <short value="Total item cost"/>
          <definition
                      value="The quantity times the unit price for an additional service or product or charge."/>
          <comment
                   value="For example, the formula: quantity * unitPrice * factor  = net. Quantity and factor are assumed to be 1 if not supplied."/>
          <requirements
                        value="Provides the total amount claimed  for the group (if a grouper) or the line item."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.item.detail.net"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Money"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.item.detail.udi">
          <path value="Claim.item.detail.udi"/>
          <short value="Unique device identifier"/>
          <definition
                      value="Unique Device Identifiers associated with this line item."/>
          <requirements
                        value="The UDI code allows the insurer to obtain device level information on the product supplied."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Claim.item.detail.udi"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.item.detail.subDetail">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
            <valueString value="SubDetail"/>
          </extension>
          <path value="Claim.item.detail.subDetail"/>
          <short value="Product or service provided"/>
          <definition
                      value="A claim detail line. Either a simple (a product or service) or a &#39;group&#39; of sub-details which are simple items."/>
          <requirements value="The items to be processed for adjudication."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Claim.item.detail.subDetail"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="BackboneElement"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.item.detail.subDetail.id">
          <path value="Claim.item.detail.subDetail.id"/>
          <representation value="xmlAttr"/>
          <short value="Unique id for inter-element referencing"/>
          <definition
                      value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Element.id"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
              <valueUrl value="string"/>
            </extension>
            <code value="http://hl7.org/fhirpath/System.String"/>
          </type>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Claim.item.detail.subDetail.extension">
          <path value="Claim.item.detail.subDetail.extension"/>
          <short value="Additional content defined by implementations"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Element.extension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <mapping>
            <identity value="rim"/>
            <map value="n/a"/>
          </mapping>
        </element>
        <element id="Claim.item.detail.subDetail.modifierExtension">
          <path value="Claim.item.detail.subDetail.modifierExtension"/>
          <short value="Extensions that cannot be ignored even if unrecognized"/>
          <definition
                      value="May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element&#39;s descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

    Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/>
          <comment
                   value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/>
          <requirements
                        value="Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension)."/>
          <alias value="extensions"/>
          <alias value="user content"/>
          <alias value="modifiers"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="BackboneElement.modifierExtension"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Extension"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <constraint>
            <key value="ext-1"/>
            <severity value="error"/>
            <human value="Must have either extensions or value[x], not both"/>
            <expression value="extension.exists() != value.exists()"/>
            <xpath
                   value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), &quot;value&quot;)])"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Extension"/>
          </constraint>
          <isModifier value="true"/>
          <isModifierReason
                            value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/>
          <isSummary value="true"/>
          <mapping>
            <identity value="rim"/>
            <map value="N/A"/>
          </mapping>
        </element>
        <element id="Claim.item.detail.subDetail.sequence">
          <path value="Claim.item.detail.subDetail.sequence"/>
          <short value="Item instance identifier"/>
          <definition value="A number to uniquely identify item entries."/>
          <requirements
                        value="Necessary to provide a mechanism to link to items from within the claim and within the adjudication details of the ClaimResponse."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Claim.item.detail.subDetail.sequence"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="positiveInt"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.item.detail.subDetail.revenue">
          <path value="Claim.item.detail.subDetail.revenue"/>
          <short value="Revenue or cost center code"/>
          <definition
                      value="The type of revenue or cost center providing the product and/or service."/>
          <requirements value="Needed in the processing of institutional claims."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.item.detail.subDetail.revenue"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="RevenueCenter"/>
            </extension>
            <strength value="example"/>
            <description
                         value="Codes for the revenue or cost centers supplying the service and/or products."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/ex-revenue-center"/>
          </binding>
        </element>
        <element id="Claim.item.detail.subDetail.category">
          <path value="Claim.item.detail.subDetail.category"/>
          <short value="Benefit classification"/>
          <definition
                      value="Code to identify the general type of benefits under which products and services are provided."/>
          <comment
                   value="Examples include Medical Care, Periodontics, Renal Dialysis, Vision Coverage."/>
          <requirements
                        value="Needed in the processing of institutional claims as this allows the insurer to determine whether a facial X-Ray is for dental, orthopedic, or facial surgery purposes."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.item.detail.subDetail.category"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="BenefitCategory"/>
            </extension>
            <strength value="example"/>
            <description
                         value="Benefit categories such as: oral-basic, major, glasses."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/ex-benefitcategory"/>
          </binding>
        </element>
        <element id="Claim.item.detail.subDetail.productOrService">
          <path value="Claim.item.detail.subDetail.productOrService"/>
          <short value="Billing, service, product, or drug code"/>
          <definition
                      value="When the value is a group code then this item collects a set of related claim details, otherwise this contains the product, service, drug or other billing code for the item."/>
          <comment
                   value="If this is an actual service or product line, i.e. not a Group, then use code to indicate the Professional Service or Product supplied (e.g. CTP, HCPCS, USCLS, ICD10, NCPDP, DIN, RxNorm, ACHI, CCI). If a grouping item then use a group code to indicate the type of thing being grouped e.g. &#39;glasses&#39; or &#39;compound&#39;."/>
          <requirements value="Necessary to state what was provided or done."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="Claim.item.detail.subDetail.productOrService"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ServiceProduct"/>
            </extension>
            <strength value="example"/>
            <description value="Allowable service and product codes."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/service-uscls"/>
          </binding>
        </element>
        <element id="Claim.item.detail.subDetail.modifier">
          <path value="Claim.item.detail.subDetail.modifier"/>
          <short value="Service/Product billing modifiers"/>
          <definition
                      value="Item typification or modifiers codes to convey additional context for the product or service."/>
          <comment
                   value="For example in Oral whether the treatment is cosmetic or associated with TMJ, or for Medical whether the treatment was outside the clinic or out of office hours."/>
          <requirements
                        value="To support inclusion of the item for adjudication or to charge an elevated fee."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Claim.item.detail.subDetail.modifier"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="Modifiers"/>
            </extension>
            <strength value="example"/>
            <description
                         value="Item type or modifiers codes, eg for Oral whether the treatment is cosmetic or associated with TMJ, or an appliance was lost or stolen."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/claim-modifiers"/>
          </binding>
        </element>
        <element id="Claim.item.detail.subDetail.programCode">
          <path value="Claim.item.detail.subDetail.programCode"/>
          <short value="Program the product or service is provided under"/>
          <definition
                      value="Identifies the program under which this may be recovered."/>
          <comment
                   value="For example: Neonatal program, child dental program or drug users recovery program."/>
          <requirements
                        value="Commonly used in in the identification of publicly provided program focused on population segments or disease classifications."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Claim.item.detail.subDetail.programCode"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="CodeableConcept"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
          <binding>
            <extension
                       url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
              <valueString value="ProgramCode"/>
            </extension>
            <strength value="example"/>
            <description value="Program specific reason codes."/>
            <valueSet value="http://hl7.org/fhir/ValueSet/ex-program-code"/>
          </binding>
        </element>
        <element id="Claim.item.detail.subDetail.quantity">
          <path value="Claim.item.detail.subDetail.quantity"/>
          <short value="Count of products or services"/>
          <definition value="The number of repetitions of a service or product."/>
          <requirements
                        value="Required when the product or service code does not convey the quantity provided."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.item.detail.subDetail.quantity"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Quantity"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.item.detail.subDetail.unitPrice">
          <path value="Claim.item.detail.subDetail.unitPrice"/>
          <short value="Fee, charge or cost per item"/>
          <definition
                      value="If the item is not a group then this is the fee for the product or service, otherwise this is the total of the fees for the details of the group."/>
          <requirements
                        value="The amount charged to the patient by the provider for a single unit."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.item.detail.subDetail.unitPrice"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Money"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.item.detail.subDetail.factor">
          <path value="Claim.item.detail.subDetail.factor"/>
          <short value="Price scaling factor"/>
          <definition
                      value="A real number that represents a multiplier used in determining the overall value of services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount."/>
          <comment
                   value="To show a 10% senior&#39;s discount, the value entered is: 0.90 (1.00 - 0.10)."/>
          <requirements
                        value="When discounts are provided to a patient (example: Senior&#39;s discount) then this must be documented for adjudication."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.item.detail.subDetail.factor"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="decimal"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.item.detail.subDetail.net">
          <path value="Claim.item.detail.subDetail.net"/>
          <short value="Total item cost"/>
          <definition
                      value="The quantity times the unit price for an additional service or product or charge."/>
          <comment
                   value="For example, the formula: quantity * unitPrice * factor  = net. Quantity and factor are assumed to be 1 if not supplied."/>
          <requirements
                        value="Provides the total amount claimed  for the group (if a grouper) or the line item."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.item.detail.subDetail.net"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Money"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.item.detail.subDetail.udi">
          <path value="Claim.item.detail.subDetail.udi"/>
          <short value="Unique device identifier"/>
          <definition
                      value="Unique Device Identifiers associated with this line item."/>
          <requirements
                        value="The UDI code allows the insurer to obtain device level information on the product supplied."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Claim.item.detail.subDetail.udi"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Reference"/>
            <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
        <element id="Claim.total">
          <path value="Claim.total"/>
          <short value="Total claim cost"/>
          <definition value="The total value of the all the items in the claim."/>
          <requirements value="Used for  control total purposes."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="Claim.total"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Money"/>
          </type>
          <constraint>
            <key value="ele-1"/>
            <severity value="error"/>
            <human value="All FHIR elements must have a @value or children"/>
            <expression value="hasValue() or (children().count() &gt; id.count())"/>
            <xpath value="@value|f:*|h:div"/>
            <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
          </constraint>
          <isModifier value="false"/>
          <isSummary value="false"/>
        </element>
      </snapshot>
      <differential>
        <element id="Claim">
          <path value="Claim"/>
          <mustSupport value="false"/>
        </element>
        <element id="Claim.patient">
          <path value="Claim.patient"/>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="Claim.billablePeriod">
          <path value="Claim.billablePeriod"/>
          <mustSupport value="true"/>
        </element>
        <element id="Claim.created">
          <path value="Claim.created"/>
          <mustSupport value="true"/>
        </element>
        <element id="Claim.provider">
          <path value="Claim.provider"/>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-practitioner"/>
            <targetProfile
                           value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-practitionerrole"/>
            <targetProfile
                           value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-organization"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="Claim.prescription">
          <path value="Claim.prescription"/>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-devicerequest"/>
            <targetProfile
                           value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest"/>
            <targetProfile
                           value="http://hl7.org/fhir/StructureDefinition/VisionPrescription"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="Claim.payee">
          <path value="Claim.payee"/>
          <mustSupport value="false"/>
        </element>
        <element id="Claim.payee.party">
          <path value="Claim.payee.party"/>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-practitioner"/>
            <targetProfile
                           value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-practitionerrole"/>
            <targetProfile
                           value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-organization"/>
            <targetProfile
                           value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"/>
            <targetProfile
                           value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-relatedperson"/>
          </type>
          <mustSupport value="false"/>
        </element>
        <element id="Claim.referral">
          <path value="Claim.referral"/>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest"/>
          </type>
          <mustSupport value="false"/>
        </element>
        <element id="Claim.facility">
          <path value="Claim.facility"/>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-location"/>
          </type>
          <mustSupport value="false"/>
        </element>
        <element id="Claim.careTeam">
          <path value="Claim.careTeam"/>
          <mustSupport value="false"/>
        </element>
        <element id="Claim.careTeam.provider">
          <path value="Claim.careTeam.provider"/>
          <type>
            <code value="Reference"/>
            <targetProfile
                           value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-practitioner"/>
            <targetProfile
                           value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-practitionerrole"/>
            <targetProfile
                           value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-organization"/>
          </type>
          <mustSupport value="false"/>
        </element>
      </differential>
    </StructureDefinition>