Australian Digital Health Agency Medicare Records FHIR Implementation Guide 2.2.0

Australian Digital Health Agency Medicare Records FHIR Implementation Guide. This is the current published version. It is based on FHIR® version 3.0.2. See the Directory of published versions for a list of available versions.

StructureDefinition-explanationofbenefit-medicare.xml

Formats: Narrative, XML, JSON, Turtle

Raw xml



<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="explanationofbenefit-medicare"/>
  <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://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" 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://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" 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://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" 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://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" 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://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description &amp; Constraints</a><span style="float: right"><a href="http://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="http://hl7.org/fhir/STU3/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-explanationofbenefit-medicare-definitions.html#ExplanationOfBenefit">ExplanationOfBenefit</a><a name="ExplanationOfBenefit"> </a></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="padding-left: 3px; padding-right: 3px; border: 1px maroon solid; font-weight: bold; color: #301212; background-color: #fdf4f4;" href="http://hl7.org/fhir/STU3conformance-rules.html#constraints" title="This element has or is affected by constraints (inv-dh-eob-01, inv-dh-eob-02, inv-dh-eob-03, inv-dh-eob-04, inv-dh-eob-05)">C</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">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/STU3/explanationofbenefit.html">ExplanationOfBenefit</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">Explanation of Benefit resource</span><br/><span style="font-weight:bold">inv-dh-eob-01: </span>A PBS or RPBS claim SHALL include a prescription.<br/><span style="font-weight:bold">inv-dh-eob-02: </span>A MBS or DVABS claim SHALL NOT include a prescription.<br/><span style="font-weight:bold">inv-dh-eob-03: </span>One of subType or item.category SHALL be present.<br/><span style="font-weight:bold">inv-dh-eob-04: </span>A PBS claim SHALL be of type 'Pharmacy' (type='pharmacy').<br/><span style="font-weight:bold">inv-dh-eob-05: </span>One meta.profile SHALL have value 'http://ns.electronichealth.net.au/ci/fhir/StructureDefinition/explanationofbenefit-medicare'.</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_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: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-explanationofbenefit-medicare-definitions.html#ExplanationOfBenefit.meta">meta</a><a name="ExplanationOfBenefit.meta"> </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">1..<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/STU3/datatypes.html#Meta">Meta</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">Metadata about the resource</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_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_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-explanationofbenefit-medicare-definitions.html#ExplanationOfBenefit.meta.profile">profile</a><a name="ExplanationOfBenefit.meta.profile"> </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">1..<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/STU3/datatypes.html#uri">uri</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">Profiles this resource claims to conform to</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-explanationofbenefit-medicare-definitions.html#ExplanationOfBenefit.identifier">identifier</a><a name="ExplanationOfBenefit.identifier"> </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">1..1</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/STU3/datatypes.html#Identifier">Identifier</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">Business Identifier</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-explanationofbenefit-medicare-definitions.html#ExplanationOfBenefit.status">status</a><a name="ExplanationOfBenefit.status"> </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/STU3/datatypes.html#code">code</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">active | cancelled | draft | entered-in-error</span><br/><span style="font-weight:bold">Fixed Value: </span><span style="color: darkgreen">active</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-explanationofbenefit-medicare-definitions.html#ExplanationOfBenefit.type">type</a><a name="ExplanationOfBenefit.type"> </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 style="opacity: 0.5" href="http://hl7.org/fhir/STU3/datatypes.html#CodeableConcept">CodeableConcept</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">Type or discipline</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-explanationofbenefit-medicare-definitions.html#ExplanationOfBenefit.subType">subType</a><a name="ExplanationOfBenefit.subType"> </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">*</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/STU3/datatypes.html#CodeableConcept">CodeableConcept</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">Finer grained claim type information</span><br/><span style="font-weight:bold">Binding: </span><a href="https://healthterminologies.gov.au/fhir/ValueSet/australian-medicare-benefit-claim-category-1">https://healthterminologies.gov.au/fhir/ValueSet/australian-medicare-benefit-claim-category-1</a> (<a href="http://hl7.org/fhir/STU3/terminologies.html#required" title="To be conformant, the concept in this element SHALL be from the specified value set.">required</a>)</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-explanationofbenefit-medicare-definitions.html#ExplanationOfBenefit.patient">patient</a><a name="ExplanationOfBenefit.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">1..<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/STU3/references.html">Reference</a>(<a href="http://hl7.org.au/fhir/2018Sep/StructureDefinition-au-patient.html">AU Base 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="opacity: 0.5">The subject 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-explanationofbenefit-medicare-definitions.html#ExplanationOfBenefit.created">created</a><a name="ExplanationOfBenefit.created"> </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">1..<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/STU3/datatypes.html#dateTime">dateTime</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">Creation date</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-explanationofbenefit-medicare-definitions.html#ExplanationOfBenefit.insurer">insurer</a><a name="ExplanationOfBenefit.insurer"> </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/STU3/references.html">Reference</a>(<a href="http://hl7.org.au/fhir/2018Sep/StructureDefinition-au-organisation.html">AU Base Organisation</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">Insurer responsible for the EOB</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-explanationofbenefit-medicare-definitions.html#ExplanationOfBenefit.provider">provider</a><a name="ExplanationOfBenefit.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">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/STU3/references.html">Reference</a>(<a href="http://hl7.org.au/fhir/2018Sep/StructureDefinition-au-practitioner.html">AU Base Practitioner</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">Responsible provider 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-explanationofbenefit-medicare-definitions.html#ExplanationOfBenefit.organization">organization</a><a name="ExplanationOfBenefit.organization"> </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/STU3/references.html">Reference</a>(<a href="http://hl7.org.au/fhir/2018Sep/StructureDefinition-au-organisation.html">AU Base Organisation</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">Responsible organization for the claim</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-explanationofbenefit-medicare-definitions.html#ExplanationOfBenefit.prescription">prescription</a><a name="ExplanationOfBenefit.prescription"> </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 href="http://hl7.org/fhir/STU3/references.html">Reference</a>(<a href="StructureDefinition-medicationrequest-pbs.html">ADHA PBS MedicationRequest</a>)<a href="http://hl7.org/fhir/STU3/valueset-resource-aggregation-mode.html"> {</a><a href="http://hl7.org/fhir/STU3/valueset-resource-aggregation-mode.html" title="The reference is a local reference to a contained resource.">c</a><a href="http://hl7.org/fhir/STU3/valueset-resource-aggregation-mode.html">}</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">Prescription authorizing services or products</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_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: #F7F7F7; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-explanationofbenefit-medicare-definitions.html#ExplanationOfBenefit.item">item</a><a name="ExplanationOfBenefit.item"> </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">1..1</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/STU3/datatypes.html#BackboneElement">BackboneElement</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">Goods 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_bck010.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.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-explanationofbenefit-medicare-definitions.html#ExplanationOfBenefit.item.sequence">sequence</a><a name="ExplanationOfBenefit.item.sequence"> </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 style="opacity: 0.5" href="http://hl7.org/fhir/STU3/datatypes.html#positiveInt">positiveInt</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">Service instance</span><br/><span style="font-weight:bold">Fixed Value: </span><span style="color: darkgreen">1</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_bck010.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.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-explanationofbenefit-medicare-definitions.html#ExplanationOfBenefit.item.category">category</a><a name="ExplanationOfBenefit.item.category"> </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 style="opacity: 0.5" href="http://hl7.org/fhir/STU3/datatypes.html#CodeableConcept">CodeableConcept</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">Type of service or product</span><br/><span style="font-weight:bold">Binding: </span><a href="https://healthterminologies.gov.au/fhir/ValueSet/australian-medicare-benefit-claim-category-1">https://healthterminologies.gov.au/fhir/ValueSet/australian-medicare-benefit-claim-category-1</a> (<a href="http://hl7.org/fhir/STU3/terminologies.html#extensible" title="To be conformant, the concept in this element SHALL be from the specified value set if any of the codes within the value set can apply to the concept being communicated.  If the value set does not cover the concept (based on human review), alternate codings (or, data type allowing, text) may be included instead.">extensible</a>)</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_bck010.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.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-explanationofbenefit-medicare-definitions.html#ExplanationOfBenefit.item.service">service</a><a name="ExplanationOfBenefit.item.service"> </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">1..<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/STU3/datatypes.html#CodeableConcept">CodeableConcept</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">Billing Code</span><br/><span style="font-weight:bold">Binding: </span><a href="https://healthterminologies.gov.au/fhir/ValueSet/australian-dhs-modifications-pbs-mbs-dva-item-1">https://healthterminologies.gov.au/fhir/ValueSet/australian-dhs-modifications-pbs-mbs-dva-item-1</a> (<a href="http://hl7.org/fhir/STU3/terminologies.html#required" title="To be conformant, the concept in this element SHALL be from the specified value set.">required</a>)</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_bck010.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.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-explanationofbenefit-medicare-definitions.html#ExplanationOfBenefit.item.serviced[x]">serviced[x]</a><a name="ExplanationOfBenefit.item.serviced_x_"> </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">1..<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/STU3/datatypes.html#date">date</a><span style="opacity: 0.5">, </span><a style="opacity: 0.5" href="http://hl7.org/fhir/STU3/datatypes.html#Period">Period</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">Date or dates of Service</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_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_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-explanationofbenefit-medicare-definitions.html#ExplanationOfBenefit.item.quantity">quantity</a><a name="ExplanationOfBenefit.item.quantity"> </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/STU3/datatypes.html#SimpleQuantity" title="Quantity">SimpleQuantity</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">Count of Products or Services</span></td></tr>
<tr><td colspan="5" class="hierarchy"><br/><a href="http://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="http://hl7.org/fhir/STU3/help16.png" alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div>
  </text>
  <url
       value="http://ns.electronichealth.net.au/ci/fhir/StructureDefinition/explanationofbenefit-medicare"/>
  <version value="1.1.0"/>
  <name value="ADHAExplanationofBenefitMedicare"/>
  <title value="ADHA Medicare ExplanationOfBenefit"/>
  <status value="active"/>
  <experimental value="false"/>
  <date value="2023-04-14T04:08:50+00:00"/>
  <publisher value="Australian Digital Health Agency"/>
  <contact>
    <telecom>
      <system value="email"/>
      <value value="[email protected]"/>
    </telecom>
  </contact>
  <description
               value="The purpose of this profile is to define a representation of a record of a claim against the Medicare Benefits Schedule (MBS), Department of Veterans’ Affairs (DVA), Pharmaceutical Benefits Schedule (PBS) or Repatriation Pharmaceutical Benefits Scheme (RPBS) for the electronic exchange of digital health information between Medicare repositories and the My Health Record system infrastructure in Australia."/>
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166"/>
      <code value="AU"/>
      <display value="Australia"/>
    </coding>
  </jurisdiction>
  <copyright
             value="Copyright © 2022 Australian Digital Health Agency - All rights reserved. This content is licensed under a Creative Commons Attribution 4.0 International License. See https://creativecommons.org/licenses/by/4.0/."/>
  <fhirVersion value="3.0.2"/>
  <mapping>
    <identity value="w5"/>
    <uri value="http://hl7.org/fhir/w5"/>
    <name value="W5 Mapping"/>
  </mapping>
  <mapping>
    <identity value="cdanetv4"/>
    <uri value="http://www.cda-adc.ca/en/services/cdanet/"/>
    <name value="Canadian Dental Association eclaims standard"/>
  </mapping>
  <mapping>
    <identity value="v2"/>
    <uri value="http://hl7.org/v2"/>
    <name value="HL7 v2 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="ExplanationOfBenefit"/>
  <baseDefinition
                  value="http://hl7.org/fhir/StructureDefinition/ExplanationOfBenefit"/>
  <derivation value="constraint"/>
  <snapshot>
    <element id="ExplanationOfBenefit">
      <path value="ExplanationOfBenefit"/>
      <short value="Explanation of Benefit resource"/>
      <definition
                  value="This resource provides: the claim details; adjudication details from the processing of a Claim; and optionally account balance information, for informing the subscriber of the benefits provided."/>
      <alias value="EOB"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit"/>
        <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-1"/>
        <severity value="error"/>
        <human
               value="If the resource is contained in another resource, it SHALL NOT contain any narrative"/>
        <expression value="contained.text.empty()"/>
        <xpath value="not(parent::f:contained and f:text)"/>
        <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-3"/>
        <severity value="error"/>
        <human
               value="If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource"/>
        <expression
                    value="contained.where(('#'+id in %resource.descendants().reference).not()).empty()"/>
        <xpath
               value="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))"/>
        <source
                value="http://hl7.org/fhir/StructureDefinition/DomainResource"/>
      </constraint>
      <constraint>
        <key value="inv-dh-eob-01"/>
        <severity value="error"/>
        <human value="A PBS or RPBS claim SHALL include a prescription."/>
        <expression
                    value="prescription.exists() implies (subType.coding.code='pbs' or subType.coding.code='rpbs' or item.category.coding.code='pbs' or item.category.coding.code='rpbs')"/>
      </constraint>
      <constraint>
        <key value="inv-dh-eob-02"/>
        <severity value="error"/>
        <human
               value="A MBS or DVABS claim SHALL NOT include a prescription."/>
        <expression
                    value="prescription.empty() implies (subType.coding.code='mbs' or subType.coding.code='dva' or item.category.coding.code='mbs' or item.category.coding.code='dva')"/>
      </constraint>
      <constraint>
        <key value="inv-dh-eob-03"/>
        <severity value="error"/>
        <human value="One of subType or item.category SHALL be present."/>
        <expression value="subType.exists() or item.category.exists()"/>
      </constraint>
      <constraint>
        <key value="inv-dh-eob-04"/>
        <severity value="error"/>
        <human
               value="A PBS claim SHALL be of type 'Pharmacy' (type='pharmacy')."/>
        <expression
                    value="prescription.exists() implies type.coding.code='pharmacy'"/>
      </constraint>
      <constraint>
        <key value="inv-dh-eob-05"/>
        <severity value="error"/>
        <human
               value="One meta.profile SHALL have value 'http://ns.electronichealth.net.au/ci/fhir/StructureDefinition/explanationofbenefit-medicare'."/>
        <expression
                    value="meta.profile.where($this='http://ns.electronichealth.net.au/ci/fhir/StructureDefinition/explanationofbenefit-medicare').exists()"/>
      </constraint>
      <mapping>
        <identity value="rim"/>
        <map value="Entity. Role, or Act"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="financial.other"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.id">
      <path value="ExplanationOfBenefit.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>
        <code value="id"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="ExplanationOfBenefit.meta">
      <path value="ExplanationOfBenefit.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 may not always be associated with version changes to the resource."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="Resource.meta"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Meta"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="ExplanationOfBenefit.meta.id">
      <path value="ExplanationOfBenefit.meta.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <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>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.meta.extension">
      <path value="ExplanationOfBenefit.meta.extension"/>
      <slicing>
        <discriminator>
          <type value="value"/>
          <path value="url"/>
        </discriminator>
        <description value="Extensions are always sliced by (at least) url"/>
        <rules value="open"/>
      </slicing>
      <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. In order 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."/>
      <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>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.meta.versionId">
      <path value="ExplanationOfBenefit.meta.versionId"/>
      <short value="Version specific identifier"/>
      <definition
                  value="The version specific identifier, as it appears in the version portion of the URL. This values changes when the resource is created, updated, or deleted."/>
      <comment
               value="The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Meta.versionId"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="id"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="ExplanationOfBenefit.meta.lastUpdated">
      <path value="ExplanationOfBenefit.meta.lastUpdated"/>
      <short value="When the resource version last changed"/>
      <definition
                  value="When the resource last changed - e.g. when the version changed."/>
      <comment
               value="This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Meta.lastUpdated"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="instant"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="ExplanationOfBenefit.meta.profile">
      <path value="ExplanationOfBenefit.meta.profile"/>
      <short value="Profiles this resource claims to conform to"/>
      <definition
                  value="A list of profiles (references to [StructureDefinition](http://hl7.org/fhir/STU3/structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url]()."/>
      <comment
               value="It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time.  The list of profile URLs is a set."/>
      <min value="1"/>
      <max value="*"/>
      <base>
        <path value="Meta.profile"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="uri"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="ExplanationOfBenefit.meta.security">
      <path value="ExplanationOfBenefit.meta.security"/>
      <short value="Security Labels applied to this resource"/>
      <definition
                  value="Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure."/>
      <comment
               value="The security labels can be updated without changing the stated version of the resource  The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Meta.security"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Coding"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="SecurityLabels"/>
        </extension>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/>
        </extension>
        <strength value="extensible"/>
        <description
                     value="Security Labels from the Healthcare Privacy and Security Classification System."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/security-labels"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.meta.tag">
      <path value="ExplanationOfBenefit.meta.tag"/>
      <short value="Tags applied to this resource"/>
      <definition
                  value="Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource."/>
      <comment
               value="The tags can be updated without changing the stated version of the resource.  The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Meta.tag"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Coding"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="Tags"/>
        </extension>
        <strength value="example"/>
        <description
                     value="Codes that represent various types of tags, commonly workflow-related; e.g. &quot;Needs review by Dr. Jones&quot;"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/common-tags"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.implicitRules">
      <path value="ExplanationOfBenefit.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."/>
      <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. 

This element is labelled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Resource.implicitRules"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="uri"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
    </element>
    <element id="ExplanationOfBenefit.language">
      <path value="ExplanationOfBenefit.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>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet">
          <valueReference>
            <reference value="http://hl7.org/fhir/ValueSet/all-languages"/>
          </valueReference>
        </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="extensible"/>
        <description value="A human language."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/languages"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.text">
      <path value="ExplanationOfBenefit.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 may 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 in formation 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>
      <condition value="dom-1"/>
      <mapping>
        <identity value="rim"/>
        <map value="Act.text?"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.contained">
      <path value="ExplanationOfBenefit.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."/>
      <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>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.extension">
      <path value="ExplanationOfBenefit.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. In order 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."/>
      <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>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.modifierExtension">
      <path value="ExplanationOfBenefit.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. Usually modifier elements provide negation or qualification. In order 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."/>
      <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.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.identifier">
      <path value="ExplanationOfBenefit.identifier"/>
      <short value="Business Identifier"/>
      <definition value="The EOB Business Identifier."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.identifier"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Identifier"/>
      </type>
      <mustSupport value="true"/>
      <mapping>
        <identity value="w5"/>
        <map value="id"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.status">
      <path value="ExplanationOfBenefit.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."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.status"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <fixedCode value="active"/>
      <mustSupport value="true"/>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ExplanationOfBenefitStatus"/>
        </extension>
        <strength value="required"/>
        <description
                     value="A code specifying the state of the resource instance."/>
        <valueSetReference>
          <reference
                     value="http://hl7.org/fhir/ValueSet/explanationofbenefit-status"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="w5"/>
        <map value="status"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.type">
      <path value="ExplanationOfBenefit.type"/>
      <short value="Type or discipline"/>
      <definition
                  value="The category of claim, eg, oral, pharmacy, vision, insitutional, professional."/>
      <comment value="Affects which fields and value sets are used."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.type"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <mustSupport value="true"/>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ClaimType"/>
        </extension>
        <strength value="required"/>
        <description value="The type or discipline-style of the claim"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/claim-type"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="w5"/>
        <map value="class"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.subType">
      <path value="ExplanationOfBenefit.subType"/>
      <short value="Finer grained claim type information"/>
      <definition
                  value="A finer grained suite of claim subtype codes which may convey Inpatient vs Outpatient and/or a specialty service. In the US the BillType."/>
      <comment
               value="This may contain the local bill type codes such as the US UB-04 bill type code."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.subType"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <mustSupport value="true"/>
      <binding>
        <strength value="required"/>
        <valueSetReference>
          <reference
                     value="https://healthterminologies.gov.au/fhir/ValueSet/australian-medicare-benefit-claim-category-1"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="w5"/>
        <map value="class"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.patient">
      <path value="ExplanationOfBenefit.patient"/>
      <short value="The subject of the Products and Services"/>
      <definition value="Patient Resource."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.patient"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org.au/fhir/StructureDefinition/au-patient"/>
      </type>
      <mustSupport value="true"/>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="C06,C07,C08, C05, C04"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="who.focus"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.billablePeriod">
      <path value="ExplanationOfBenefit.billablePeriod"/>
      <short value="Period for charge submission"/>
      <definition
                  value="The billable period for which charges are being submitted."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.billablePeriod"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Period"/>
      </type>
      <mapping>
        <identity value="w5"/>
        <map value="when.done"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.created">
      <path value="ExplanationOfBenefit.created"/>
      <short value="Creation date"/>
      <definition value="The date when the EOB was created."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.created"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="dateTime"/>
      </type>
      <mustSupport value="true"/>
      <mapping>
        <identity value="w5"/>
        <map value="when.recorded"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.enterer">
      <path value="ExplanationOfBenefit.enterer"/>
      <short value="Author"/>
      <definition value="The person who created the explanation of benefit."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.enterer"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/Practitioner"/>
      </type>
      <mapping>
        <identity value="w5"/>
        <map value="who.author"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.insurer">
      <path value="ExplanationOfBenefit.insurer"/>
      <short value="Insurer responsible for the EOB"/>
      <definition
                  value="The insurer which is responsible for the explanation of benefit."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.insurer"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org.au/fhir/StructureDefinition/au-organisation"/>
      </type>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="B02"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="who.author"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.provider">
      <path value="ExplanationOfBenefit.provider"/>
      <short value="Responsible provider for the claim"/>
      <definition value="The provider which is responsible for the claim."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.provider"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org.au/fhir/StructureDefinition/au-practitioner"/>
      </type>
      <mustSupport value="true"/>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="B02"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="who.source"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.organization">
      <path value="ExplanationOfBenefit.organization"/>
      <short value="Responsible organization for the claim"/>
      <definition value="The provider which is responsible for the claim."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.organization"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org.au/fhir/StructureDefinition/au-organisation"/>
      </type>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="B02"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="who.source"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.referral">
      <path value="ExplanationOfBenefit.referral"/>
      <short value="Treatment Referral"/>
      <definition
                  value="The referral resource which lists the date, practitioner, reason and other supporting information."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.referral"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/ReferralRequest"/>
      </type>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="B05"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="who.cause"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.facility">
      <path value="ExplanationOfBenefit.facility"/>
      <short value="Servicing Facility"/>
      <definition value="Facility where the services were provided."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.facility"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/Location"/>
      </type>
      <mapping>
        <identity value="w5"/>
        <map value="where"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.claim">
      <path value="ExplanationOfBenefit.claim"/>
      <short value="Claim reference"/>
      <definition
                  value="The business identifier for the instance: invoice number, claim number, pre-determination or pre-authorization number."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.claim"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Claim"/>
      </type>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="A02|G01"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="why"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.claimResponse">
      <path value="ExplanationOfBenefit.claimResponse"/>
      <short value="Claim response reference"/>
      <definition
                  value="The business identifier for the instance: invoice number, claim number, pre-determination or pre-authorization number."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.claimResponse"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/ClaimResponse"/>
      </type>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="A02|G01"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.outcome">
      <path value="ExplanationOfBenefit.outcome"/>
      <short value="complete | error | partial"/>
      <definition
                  value="Processing outcome errror, partial or complete processing."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.outcome"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="RemittanceOutcome"/>
        </extension>
        <strength value="example"/>
        <description value="The result of the claim processing"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/remittance-outcome"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.disposition">
      <path value="ExplanationOfBenefit.disposition"/>
      <short value="Disposition Message"/>
      <definition value="A description of the status of the adjudication."/>
      <comment value="Do we need a disposition code?"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.disposition"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.related">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="RelatedClaim"/>
      </extension>
      <path value="ExplanationOfBenefit.related"/>
      <short
             value="Related Claims which may be revelant to processing this claim"/>
      <definition
                  value="Other claims which are related to this claim such as prior claim versions or for related services."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.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() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
    </element>
    <element id="ExplanationOfBenefit.related.id">
      <path value="ExplanationOfBenefit.related.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <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>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.related.extension">
      <path value="ExplanationOfBenefit.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. In order 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."/>
      <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>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.related.modifierExtension">
      <path value="ExplanationOfBenefit.related.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order 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."/>
      <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"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.related.claim">
      <path value="ExplanationOfBenefit.related.claim"/>
      <short value="Reference to the related claim"/>
      <definition
                  value="Other claims which are related to this claim such as prior claim versions or for related services."/>
      <comment value="Do we need a relationship code?"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.related.claim"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Claim"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.related.relationship">
      <path value="ExplanationOfBenefit.related.relationship"/>
      <short value="How the reference claim is related"/>
      <definition value="For example prior or umbrella."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.related.relationship"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <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"/>
        <valueSetReference>
          <reference
                     value="http://hl7.org/fhir/ValueSet/related-claim-relationship"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.related.reference">
      <path value="ExplanationOfBenefit.related.reference"/>
      <short value="Related file or case reference"/>
      <definition
                  value="An alternate organizational reference to the case or file to which this particular claim pertains - eg Property/Casualy insurer claim # or Workers Compensation case # ."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.related.reference"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Identifier"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.prescription">
      <path value="ExplanationOfBenefit.prescription"/>
      <short value="Prescription authorizing services or products"/>
      <definition
                  value="Prescription to support the dispensing of Pharmacy or Vision products."/>
      <requirements value="For type=Pharmacy and Vision only."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.prescription"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://ns.electronichealth.net.au/ci/fhir/StructureDefinition/medicationrequest-pbs"/>
        <aggregation value="contained"/>
      </type>
      <mustSupport value="true"/>
    </element>
    <element id="ExplanationOfBenefit.originalPrescription">
      <path value="ExplanationOfBenefit.originalPrescription"/>
      <short value="Original prescription if superceded by fulfiller"/>
      <definition
                  value="Original prescription which has been superceded by this prescription to support the dispensing of pharmacy services, medications or products. For example, a physician may prescribe a medication which the pharmacy determines is contraindicated, or for which the patient has an intolerance, and therefor issues a new precription for an alternate medication which has the same theraputic intent. The prescription from the pharmacy becomes the 'prescription' and that from the physician becomes the 'original prescription'."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.originalPrescription"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/MedicationRequest"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.payee">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="Payee"/>
      </extension>
      <path value="ExplanationOfBenefit.payee"/>
      <short value="Party to be paid any benefits payable"/>
      <definition value="The party to be reimbursed for the services."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.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() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="F02"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.payee.id">
      <path value="ExplanationOfBenefit.payee.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <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>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.payee.extension">
      <path value="ExplanationOfBenefit.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. In order 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."/>
      <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>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.payee.modifierExtension">
      <path value="ExplanationOfBenefit.payee.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order 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."/>
      <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"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.payee.type">
      <path value="ExplanationOfBenefit.payee.type"/>
      <short value="Type of party: Subscriber, Provider, other"/>
      <definition
                  value="Type of Party to be reimbursed: Subscriber, provider, other."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.payee.type"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <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."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/payeetype"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.payee.resourceType">
      <path value="ExplanationOfBenefit.payee.resourceType"/>
      <short value="organization | patient | practitioner | relatedperson"/>
      <definition
                  value="organization | patient | practitioner | relatedperson."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.payee.resourceType"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="PayeeResourceType"/>
        </extension>
        <strength value="required"/>
        <description value="The type of payee Resource"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/resource-type-link"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.payee.party">
      <path value="ExplanationOfBenefit.payee.party"/>
      <short value="Party to receive the payable"/>
      <definition
                  value="Party to be reimbursed: Subscriber, provider, other."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.payee.party"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/Practitioner"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/Organization"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/Patient"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/RelatedPerson"/>
      </type>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="B03, B04"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.information">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="SupportingInformation"/>
      </extension>
      <path value="ExplanationOfBenefit.information"/>
      <short
             value="Exceptions, special considerations, the condition, situation, prior or concurrent issues"/>
      <definition
                  value="Additional information codes regarding exceptions, special considerations, the condition, situation, prior or concurrent issues. Often there are mutiple 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."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.information"/>
        <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() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
    </element>
    <element id="ExplanationOfBenefit.information.id">
      <path value="ExplanationOfBenefit.information.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <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>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.information.extension">
      <path value="ExplanationOfBenefit.information.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. In order 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."/>
      <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>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.information.modifierExtension">
      <path value="ExplanationOfBenefit.information.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order 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."/>
      <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"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.information.sequence">
      <path value="ExplanationOfBenefit.information.sequence"/>
      <short value="Information instance identifier"/>
      <definition
                  value="Sequence of the information element which serves to provide a link."/>
      <requirements value="To provide a reference link."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.information.sequence"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="positiveInt"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.information.category">
      <path value="ExplanationOfBenefit.information.category"/>
      <short value="General class of information"/>
      <definition
                  value="The general class of the information supplied: information; exception; accident, employment; onset, etc."/>
      <comment
               value="This may contain the local bill type codes such as the US UB-04 bill type code."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.information.category"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <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."/>
        <valueSetReference>
          <reference
                     value="http://hl7.org/fhir/ValueSet/claim-informationcategory"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.information.code">
      <path value="ExplanationOfBenefit.information.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 which may influence the adjudication."/>
      <comment
               value="This may contain the local bill type codes such as the US UB-04 bill type code."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.information.code"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <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."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/claim-exception"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="F23"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.information.timing[x]">
      <path value="ExplanationOfBenefit.information.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="ExplanationOfBenefit.information.timing[x]"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="date"/>
      </type>
      <type>
        <code value="Period"/>
      </type>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="F24"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.information.value[x]">
      <path value="ExplanationOfBenefit.information.value[x]"/>
      <short value="Additional Data or supporting information"/>
      <definition
                  value="Additional data or information such as resources, documents, images etc. including references to the data or the actual inclusion of the data."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.information.value[x]"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <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>
    </element>
    <element id="ExplanationOfBenefit.information.reason">
      <path value="ExplanationOfBenefit.information.reason"/>
      <short value="Reason associated with the information"/>
      <definition
                  value="For example, provides the reason for: the additional stay, or missing tooth or any other situation where a reason code is required in addition to the content."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.information.reason"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Coding"/>
      </type>
      <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"/>
        <valueSetReference>
          <reference
                     value="http://hl7.org/fhir/ValueSet/missing-tooth-reason"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.careTeam">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="CareTeam"/>
      </extension>
      <path value="ExplanationOfBenefit.careTeam"/>
      <short value="Care Team members"/>
      <definition
                  value="The members of the team who provided the overall service as well as their role and whether responsible and qualifications."/>
      <requirements
                    value="Role and Responsible may not be required when there is only a single provider listed."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.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() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
    </element>
    <element id="ExplanationOfBenefit.careTeam.id">
      <path value="ExplanationOfBenefit.careTeam.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <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>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.careTeam.extension">
      <path value="ExplanationOfBenefit.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. In order 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."/>
      <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>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.careTeam.modifierExtension">
      <path value="ExplanationOfBenefit.careTeam.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order 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."/>
      <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"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.careTeam.sequence">
      <path value="ExplanationOfBenefit.careTeam.sequence"/>
      <short value="Number to covey order of careteam"/>
      <definition
                  value="Sequence of careteam which serves to order and provide a link."/>
      <requirements
                    value="Required to maintain order of the careteam members."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.careTeam.sequence"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="positiveInt"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.careTeam.provider">
      <path value="ExplanationOfBenefit.careTeam.provider"/>
      <short value="Member of the Care Team"/>
      <definition
                  value="The members of the team who provided the overall service."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.careTeam.provider"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/Practitioner"/>
      </type>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/Organization"/>
      </type>
      <mapping>
        <identity value="w5"/>
        <map value="who.actor"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.careTeam.responsible">
      <path value="ExplanationOfBenefit.careTeam.responsible"/>
      <short value="Billing practitioner"/>
      <definition
                  value="The practitioner who is billing and responsible for the claimed services rendered to the patient."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.careTeam.responsible"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.careTeam.role">
      <path value="ExplanationOfBenefit.careTeam.role"/>
      <short value="Role on the team"/>
      <definition
                  value="The lead, assisting or supervising practitioner and their discipline if a multidisiplinary team."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.careTeam.role"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <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."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/claim-careteamrole"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.careTeam.qualification">
      <path value="ExplanationOfBenefit.careTeam.qualification"/>
      <short value="Type, classification or Specialization"/>
      <definition
                  value="The qualification which is applicable for this service."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.careTeam.qualification"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ProviderQualification"/>
        </extension>
        <strength value="example"/>
        <description value="Provider professional qualifications"/>
        <valueSetReference>
          <reference
                     value="http://hl7.org/fhir/ValueSet/provider-qualification"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.diagnosis">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="Diagnosis"/>
      </extension>
      <path value="ExplanationOfBenefit.diagnosis"/>
      <short value="List of Diagnosis"/>
      <definition
                  value="Ordered list of patient diagnosis for which care is sought."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.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() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
    </element>
    <element id="ExplanationOfBenefit.diagnosis.id">
      <path value="ExplanationOfBenefit.diagnosis.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <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>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.diagnosis.extension">
      <path value="ExplanationOfBenefit.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. In order 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."/>
      <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>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.diagnosis.modifierExtension">
      <path value="ExplanationOfBenefit.diagnosis.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order 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."/>
      <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"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.diagnosis.sequence">
      <path value="ExplanationOfBenefit.diagnosis.sequence"/>
      <short value="Number to covey order of diagnosis"/>
      <definition
                  value="Sequence of diagnosis which serves to provide a link."/>
      <requirements
                    value="Required to allow line items to reference the diagnoses."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.diagnosis.sequence"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="positiveInt"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.diagnosis.diagnosis[x]">
      <path value="ExplanationOfBenefit.diagnosis.diagnosis[x]"/>
      <short value="Patient's diagnosis"/>
      <definition value="The diagnosis."/>
      <requirements
                    value="Required to adjudicate services rendered to condition presented."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.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>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ICD10"/>
        </extension>
        <strength value="example"/>
        <description value="ICD10 Diagnostic codes"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/icd-10"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.diagnosis.type">
      <path value="ExplanationOfBenefit.diagnosis.type"/>
      <short value="Timing or nature of the diagnosis"/>
      <definition
                  value="The type of the Diagnosis, for example: admitting, primary, secondary, discharge."/>
      <comment
               value="Diagnosis are presented in list order to their expected importance: primary, secondary, etc."/>
      <requirements
                    value="Required to adjudicate services rendered to the mandated diagnosis grouping system."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.diagnosis.type"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <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"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/ex-diagnosistype"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.diagnosis.packageCode">
      <path value="ExplanationOfBenefit.diagnosis.packageCode"/>
      <short value="Package billing code"/>
      <definition
                  value="The package billing code, for example DRG, based on the assigned grouping code system."/>
      <requirements
                    value="Required to adjudicate services rendered to the mandated grouping system."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.diagnosis.packageCode"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <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"/>
        <valueSetReference>
          <reference
                     value="http://hl7.org/fhir/ValueSet/ex-diagnosisrelatedgroup"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.procedure">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="Procedure"/>
      </extension>
      <path value="ExplanationOfBenefit.procedure"/>
      <short value="Procedures performed"/>
      <definition
                  value="Ordered list of patient procedures performed to support the adjudication."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.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() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
    </element>
    <element id="ExplanationOfBenefit.procedure.id">
      <path value="ExplanationOfBenefit.procedure.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <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>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.procedure.extension">
      <path value="ExplanationOfBenefit.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. In order 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."/>
      <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>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.procedure.modifierExtension">
      <path value="ExplanationOfBenefit.procedure.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order 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."/>
      <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"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.procedure.sequence">
      <path value="ExplanationOfBenefit.procedure.sequence"/>
      <short value="Procedure sequence for reference"/>
      <definition
                  value="Sequence of procedures which serves to order and provide a link."/>
      <requirements value="Required to maintain order of the procudures."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.procedure.sequence"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="positiveInt"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.procedure.date">
      <path value="ExplanationOfBenefit.procedure.date"/>
      <short value="When the procedure was performed"/>
      <definition
                  value="Date and optionally time the procedure was performed ."/>
      <comment value="SB DateTime??"/>
      <requirements value="Required to adjudicate services rendered."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.procedure.date"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="dateTime"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.procedure.procedure[x]">
      <path value="ExplanationOfBenefit.procedure.procedure[x]"/>
      <short value="Patient's list of procedures performed"/>
      <definition value="The procedure code."/>
      <requirements value="Required to adjudicate services rendered."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.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>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ICD10_Procedures"/>
        </extension>
        <strength value="example"/>
        <description value="ICD10 Procedure codes"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/icd-10-procedures"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.precedence">
      <path value="ExplanationOfBenefit.precedence"/>
      <short value="Precedence (primary, secondary, etc.)"/>
      <definition value="Precedence (primary, secondary, etc.)."/>
      <requirements
                    value="Health care programs and insurers are significant payors of health service costs."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.precedence"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="positiveInt"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.insurance">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="Insurance"/>
      </extension>
      <path value="ExplanationOfBenefit.insurance"/>
      <short value="Insurance or medical plan"/>
      <definition
                  value="Financial instrument by which payment information for health care."/>
      <requirements
                    value="Health care programs and insurers are significant payors of health service costs."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.insurance"/>
        <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() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
      <mapping>
        <identity value="v2"/>
        <map value="Coverage"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.insurance.id">
      <path value="ExplanationOfBenefit.insurance.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <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>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.insurance.extension">
      <path value="ExplanationOfBenefit.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. In order 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."/>
      <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>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.insurance.modifierExtension">
      <path value="ExplanationOfBenefit.insurance.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order 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."/>
      <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"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.insurance.coverage">
      <path value="ExplanationOfBenefit.insurance.coverage"/>
      <short value="Insurance information"/>
      <definition
                  value="Reference to the program or plan identification, underwriter or payor."/>
      <requirements
                    value="Need to identify the issuer to target for processing and for coordination of benefit processing."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.insurance.coverage"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/Coverage"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.insurance.preAuthRef">
      <path value="ExplanationOfBenefit.insurance.preAuthRef"/>
      <short value="Pre-Authorization/Determination Reference"/>
      <definition
                  value="A list of references from the Insurer to which these services pertain."/>
      <requirements
                    value="To provide any pre=determination or prior authorization reference."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.insurance.preAuthRef"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="F03"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.accident">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="Accident"/>
      </extension>
      <path value="ExplanationOfBenefit.accident"/>
      <short value="Details of an accident"/>
      <definition
                  value="An accident which resulted in the need for healthcare services."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.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() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
    </element>
    <element id="ExplanationOfBenefit.accident.id">
      <path value="ExplanationOfBenefit.accident.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <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>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.accident.extension">
      <path value="ExplanationOfBenefit.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. In order 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."/>
      <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>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.accident.modifierExtension">
      <path value="ExplanationOfBenefit.accident.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order 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."/>
      <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"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.accident.date">
      <path value="ExplanationOfBenefit.accident.date"/>
      <short value="When the accident occurred"/>
      <definition
                  value="Date of an accident which these services are addressing."/>
      <requirements value="Coverage may be dependant on accidents."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.accident.date"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="date"/>
      </type>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="F02"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.accident.type">
      <path value="ExplanationOfBenefit.accident.type"/>
      <short value="The nature of the accident"/>
      <definition value="Type of accident: work, auto, etc."/>
      <requirements
                    value="Coverage may be dependant on the type of accident."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.accident.type"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="AccidentType"/>
        </extension>
        <strength value="required"/>
        <description value="Type of accident: work place, auto, etc."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/v3-ActIncidentCode"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.accident.location[x]">
      <path value="ExplanationOfBenefit.accident.location[x]"/>
      <short value="Accident Place"/>
      <definition value="Where the accident occurred."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.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>
    </element>
    <element id="ExplanationOfBenefit.employmentImpacted">
      <path value="ExplanationOfBenefit.employmentImpacted"/>
      <short value="Period unable to work"/>
      <definition
                  value="The start and optional end dates of when the patient was precluded from working due to the treatable condition(s)."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.employmentImpacted"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Period"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.hospitalization">
      <path value="ExplanationOfBenefit.hospitalization"/>
      <short value="Period in hospital"/>
      <definition
                  value="The start and optional end dates of when the patient was confined to a treatment center."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.hospitalization"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Period"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.item">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="Item"/>
      </extension>
      <path value="ExplanationOfBenefit.item"/>
      <short value="Goods and Services"/>
      <definition value="First tier of goods and services."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.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() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
      <mustSupport value="true"/>
    </element>
    <element id="ExplanationOfBenefit.item.id">
      <path value="ExplanationOfBenefit.item.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <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>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.item.extension">
      <path value="ExplanationOfBenefit.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. In order 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."/>
      <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>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.item.modifierExtension">
      <path value="ExplanationOfBenefit.item.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order 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."/>
      <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"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.item.sequence">
      <path value="ExplanationOfBenefit.item.sequence"/>
      <short value="Service instance"/>
      <definition value="A service line number."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.item.sequence"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="positiveInt"/>
      </type>
      <fixedPositiveInt value="1"/>
      <mustSupport value="true"/>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="F07"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.item.careTeamLinkId">
      <path value="ExplanationOfBenefit.item.careTeamLinkId"/>
      <short value="Applicable careteam members"/>
      <definition
                  value="Careteam applicable for this service or product line."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.item.careTeamLinkId"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="positiveInt"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.item.diagnosisLinkId">
      <path value="ExplanationOfBenefit.item.diagnosisLinkId"/>
      <short value="Applicable diagnoses"/>
      <definition
                  value="Diagnosis applicable for this service or product line."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.item.diagnosisLinkId"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="positiveInt"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.item.procedureLinkId">
      <path value="ExplanationOfBenefit.item.procedureLinkId"/>
      <short value="Applicable procedures"/>
      <definition
                  value="Procedures applicable for this service or product line."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.item.procedureLinkId"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="positiveInt"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.item.informationLinkId">
      <path value="ExplanationOfBenefit.item.informationLinkId"/>
      <short value="Applicable exception and supporting information"/>
      <definition
                  value="Exceptions, special conditions and supporting information pplicable for this service or product line."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.item.informationLinkId"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="positiveInt"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.item.revenue">
      <path value="ExplanationOfBenefit.item.revenue"/>
      <short value="Revenue or cost center code"/>
      <definition
                  value="The type of reveneu or cost center providing the product and/or service."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.item.revenue"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <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."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/ex-revenue-center"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.item.category">
      <path value="ExplanationOfBenefit.item.category"/>
      <short value="Type of service or product"/>
      <definition
                  value="Health Care Service Type Codes  to identify the classification of service or benefits."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.item.category"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <mustSupport value="true"/>
      <binding>
        <strength value="extensible"/>
        <valueSetReference>
          <reference
                     value="https://healthterminologies.gov.au/fhir/ValueSet/australian-medicare-benefit-claim-category-1"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.item.service">
      <path value="ExplanationOfBenefit.item.service"/>
      <short value="Billing Code"/>
      <definition
                  value="If this is an actual service or product line, ie. not a Group, then use code to indicate the Professional Service or Product supplied (eg. CTP, HCPCS,USCLS,ICD10, NCPDP,DIN,ACHI,CCI). If a grouping item then use a group code to indicate the type of thing being grouped eg. 'glasses' or 'compound'."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.item.service"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <mustSupport value="true"/>
      <binding>
        <strength value="required"/>
        <valueSetReference>
          <reference
                     value="https://healthterminologies.gov.au/fhir/ValueSet/australian-dhs-modifications-pbs-mbs-dva-item-1"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="F06"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.item.modifier">
      <path value="ExplanationOfBenefit.item.modifier"/>
      <short value="Service/Product billing modifiers"/>
      <definition
                  value="Item typification or modifiers codes, eg for 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="May impact on adjudication."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.item.modifier"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <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."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/claim-modifiers"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="F16 (required field for Oral) and F05"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.item.programCode">
      <path value="ExplanationOfBenefit.item.programCode"/>
      <short value="Program specific reason for item inclusion"/>
      <definition
                  value="For programs which require reson codes for the inclusion, covering, of this billed item under the program or sub-program."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.item.programCode"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ProgramCode"/>
        </extension>
        <strength value="example"/>
        <description value="Program specific reason codes"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/ex-program-code"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.item.serviced[x]">
      <path value="ExplanationOfBenefit.item.serviced[x]"/>
      <short value="Date or dates of Service"/>
      <definition
                  value="The date or dates when the enclosed suite of services were performed or completed."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.item.serviced[x]"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="date"/>
      </type>
      <type>
        <code value="Period"/>
      </type>
      <mustSupport value="true"/>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="F09"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="when.done"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.item.location[x]">
      <path value="ExplanationOfBenefit.item.location[x]"/>
      <short value="Place of service"/>
      <definition value="Where the service was provided."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.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>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ServicePlace"/>
        </extension>
        <strength value="example"/>
        <description value="Place where the service is rendered"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/service-place"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="w5"/>
        <map value="where"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.item.quantity">
      <path value="ExplanationOfBenefit.item.quantity"/>
      <short value="Count of Products or Services"/>
      <definition value="The number of repetitions of a service or product."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.item.quantity"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Quantity"/>
        <profile
                 value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
      </type>
      <mustSupport value="true"/>
    </element>
    <element id="ExplanationOfBenefit.item.unitPrice">
      <path value="ExplanationOfBenefit.item.unitPrice"/>
      <short value="Fee, charge or cost per point"/>
      <definition
                  value="If the item is a node then this is the fee for the product or service, otherwise this is the total of the fees for the children of the group."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.item.unitPrice"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Money"/>
      </type>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="F12"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.item.factor">
      <path value="ExplanationOfBenefit.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."/>
      <requirements
                    value="If a fee is present the associated product/service code must be present."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.item.factor"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="decimal"/>
      </type>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="F13/F14"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.item.net">
      <path value="ExplanationOfBenefit.item.net"/>
      <short value="Total item cost"/>
      <definition
                  value="The quantity times the unit price for an addittional service or product or charge. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number  * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied."/>
      <requirements
                    value="If a fee is present the associated product/service code must be present."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.item.net"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Money"/>
      </type>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="F13/F14"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.item.udi">
      <path value="ExplanationOfBenefit.item.udi"/>
      <short value="Unique Device Identifier"/>
      <definition
                  value="List of Unique Device Identifiers associated with this line item."/>
      <requirements
                    value="The UDI code and issuer if applicable for the supplied product."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.item.udi"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/Device"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.item.bodySite">
      <path value="ExplanationOfBenefit.item.bodySite"/>
      <short value="Service Location"/>
      <definition
                  value="Physical service site on the patient (limb, tooth, etc)."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.item.bodySite"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <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"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/tooth"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="F10"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.item.subSite">
      <path value="ExplanationOfBenefit.item.subSite"/>
      <short value="Service Sub-location"/>
      <definition
                  value="A region or surface of the site, eg. limb region or tooth surface(s)."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.item.subSite"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <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"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/surface"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="F11"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.item.encounter">
      <path value="ExplanationOfBenefit.item.encounter"/>
      <short value="Encounters related to this billed item"/>
      <definition
                  value="A billed item may include goods or services provided in multiple encounters."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.item.encounter"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/Encounter"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.item.noteNumber">
      <path value="ExplanationOfBenefit.item.noteNumber"/>
      <short value="List of note numbers which apply"/>
      <definition
                  value="A list of note references to the notes provided below."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.item.noteNumber"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="positiveInt"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.item.adjudication">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="Adjudication"/>
      </extension>
      <path value="ExplanationOfBenefit.item.adjudication"/>
      <short value="Adjudication details"/>
      <definition value="The adjudications results."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.item.adjudication"/>
        <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() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
    </element>
    <element id="ExplanationOfBenefit.item.adjudication.id">
      <path value="ExplanationOfBenefit.item.adjudication.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <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>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.item.adjudication.extension">
      <path value="ExplanationOfBenefit.item.adjudication.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. In order 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."/>
      <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>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.item.adjudication.modifierExtension">
      <path value="ExplanationOfBenefit.item.adjudication.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order 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."/>
      <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"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.item.adjudication.category">
      <path value="ExplanationOfBenefit.item.adjudication.category"/>
      <short
             value="Adjudication category such as co-pay, eligible, benefit, etc."/>
      <definition
                  value="Code indicating: Co-Pay, deductable, elegible, benefit, tax, etc."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.item.adjudication.category"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="Adjudication"/>
        </extension>
        <strength value="example"/>
        <description value="The adjudication codes."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/adjudication"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.item.adjudication.reason">
      <path value="ExplanationOfBenefit.item.adjudication.reason"/>
      <short value="Explanation of Adjudication outcome"/>
      <definition value="Adjudication reason such as limit reached."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.item.adjudication.reason"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="AdjudicationReason"/>
        </extension>
        <strength value="example"/>
        <description value="Adjudication reason codes."/>
        <valueSetReference>
          <reference
                     value="http://hl7.org/fhir/ValueSet/adjudication-reason"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.item.adjudication.amount">
      <path value="ExplanationOfBenefit.item.adjudication.amount"/>
      <short value="Monetary amount"/>
      <definition value="Monitory amount associated with the code."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.item.adjudication.amount"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Money"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.item.adjudication.value">
      <path value="ExplanationOfBenefit.item.adjudication.value"/>
      <short value="Non-monitory value"/>
      <definition
                  value="A non-monetary value for example a percentage. Mutually exclusive to the amount element above."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.item.adjudication.value"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="decimal"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.item.detail">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="Detail"/>
      </extension>
      <path value="ExplanationOfBenefit.item.detail"/>
      <short value="Additional items"/>
      <definition value="Second tier of goods and services."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.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() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
    </element>
    <element id="ExplanationOfBenefit.item.detail.id">
      <path value="ExplanationOfBenefit.item.detail.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <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>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.item.detail.extension">
      <path value="ExplanationOfBenefit.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. In order 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."/>
      <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>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.item.detail.modifierExtension">
      <path value="ExplanationOfBenefit.item.detail.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order 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."/>
      <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"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.item.detail.sequence">
      <path value="ExplanationOfBenefit.item.detail.sequence"/>
      <short value="Service instance"/>
      <definition value="A service line number."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.item.detail.sequence"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="positiveInt"/>
      </type>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="F07"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.item.detail.type">
      <path value="ExplanationOfBenefit.item.detail.type"/>
      <short value="Group or type of product or service"/>
      <definition value="The type of product or service."/>
      <comment value="ItemType."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.item.detail.type"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ItemType"/>
        </extension>
        <strength value="required"/>
        <description value="Service, Product, Rx Dispense, Rx Compound etc."/>
        <valueSetReference>
          <reference
                     value="http://hl7.org/fhir/ValueSet/v3-ActInvoiceGroupCode"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.item.detail.revenue">
      <path value="ExplanationOfBenefit.item.detail.revenue"/>
      <short value="Revenue or cost center code"/>
      <definition
                  value="The type of reveneu or cost center providing the product and/or service."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.item.detail.revenue"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <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."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/ex-revenue-center"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.item.detail.category">
      <path value="ExplanationOfBenefit.item.detail.category"/>
      <short value="Type of service or product"/>
      <definition
                  value="Health Care Service Type Codes  to identify the classification of service or benefits."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.item.detail.category"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="BenefitSubCategory"/>
        </extension>
        <strength value="example"/>
        <description
                     value="Benefit subcategories such as: oral-basic, major, glasses"/>
        <valueSetReference>
          <reference
                     value="http://hl7.org/fhir/ValueSet/benefit-subcategory"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.item.detail.service">
      <path value="ExplanationOfBenefit.item.detail.service"/>
      <short value="Billing Code"/>
      <definition
                  value="If this is an actual service or product line, ie. not a Group, then use code to indicate the Professional Service or Product supplied (eg. CTP, HCPCS,USCLS,ICD10, NCPDP,DIN,ACHI,CCI). If a grouping item then use a group code to indicate the type of thing being grouped eg. 'glasses' or 'compound'."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.item.detail.service"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ServiceProduct"/>
        </extension>
        <strength value="example"/>
        <description value="Allowable service and product codes"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/service-uscls"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="F34/F35"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.item.detail.modifier">
      <path value="ExplanationOfBenefit.item.detail.modifier"/>
      <short value="Service/Product billing modifiers"/>
      <definition
                  value="Item typification or modifiers codes, eg for 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="May impact on adjudication."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.item.detail.modifier"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <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."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/claim-modifiers"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="F16 (required field for Oral) and F05"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.item.detail.programCode">
      <path value="ExplanationOfBenefit.item.detail.programCode"/>
      <short value="Program specific reason for item inclusion"/>
      <definition
                  value="For programs which require reson codes for the inclusion, covering, of this billed item under the program or sub-program."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.item.detail.programCode"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ProgramCode"/>
        </extension>
        <strength value="example"/>
        <description value="Program specific reason codes"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/ex-program-code"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.item.detail.quantity">
      <path value="ExplanationOfBenefit.item.detail.quantity"/>
      <short value="Count of Products or Services"/>
      <definition value="The number of repetitions of a service or product."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.item.detail.quantity"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Quantity"/>
        <profile
                 value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.item.detail.unitPrice">
      <path value="ExplanationOfBenefit.item.detail.unitPrice"/>
      <short value="Fee, charge or cost per point"/>
      <definition
                  value="If the item is a node then this is the fee for the product or service, otherwise this is the total of the fees for the children of the group."/>
      <requirements
                    value="If a fee is present the associated product/service code must be present."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.item.detail.unitPrice"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Money"/>
      </type>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="F13/F14"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.item.detail.factor">
      <path value="ExplanationOfBenefit.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."/>
      <requirements
                    value="If a fee is present the associated product/service code must be present."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.item.detail.factor"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="decimal"/>
      </type>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="F13/F14"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.item.detail.net">
      <path value="ExplanationOfBenefit.item.detail.net"/>
      <short value="Total additional item cost"/>
      <definition
                  value="The quantity times the unit price for an addittional service or product or charge. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number  * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied."/>
      <requirements
                    value="If a fee is present the associated product/service code must be present."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.item.detail.net"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Money"/>
      </type>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="F13/F14"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.item.detail.udi">
      <path value="ExplanationOfBenefit.item.detail.udi"/>
      <short value="Unique Device Identifier"/>
      <definition
                  value="List of Unique Device Identifiers associated with this line item."/>
      <requirements
                    value="The UDI code and issuer if applicable for the supplied product."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.item.detail.udi"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/Device"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.item.detail.noteNumber">
      <path value="ExplanationOfBenefit.item.detail.noteNumber"/>
      <short value="List of note numbers which apply"/>
      <definition
                  value="A list of note references to the notes provided below."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.item.detail.noteNumber"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="positiveInt"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.item.detail.adjudication">
      <path value="ExplanationOfBenefit.item.detail.adjudication"/>
      <short value="Detail level adjudication details"/>
      <definition value="The adjudications results."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.item.detail.adjudication"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <contentReference
                        value="http://hl7.org/fhir/StructureDefinition/ExplanationOfBenefit#ExplanationOfBenefit.item.adjudication"/>
    </element>
    <element id="ExplanationOfBenefit.item.detail.subDetail">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="SubDetail"/>
      </extension>
      <path value="ExplanationOfBenefit.item.detail.subDetail"/>
      <short value="Additional items"/>
      <definition value="Third tier of goods and services."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.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() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
    </element>
    <element id="ExplanationOfBenefit.item.detail.subDetail.id">
      <path value="ExplanationOfBenefit.item.detail.subDetail.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <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>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.item.detail.subDetail.extension">
      <path value="ExplanationOfBenefit.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. In order 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."/>
      <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>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element
             id="ExplanationOfBenefit.item.detail.subDetail.modifierExtension">
      <path
            value="ExplanationOfBenefit.item.detail.subDetail.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order 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."/>
      <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"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.item.detail.subDetail.sequence">
      <path value="ExplanationOfBenefit.item.detail.subDetail.sequence"/>
      <short value="Service instance"/>
      <definition value="A service line number."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.item.detail.subDetail.sequence"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="positiveInt"/>
      </type>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="F07"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.item.detail.subDetail.type">
      <path value="ExplanationOfBenefit.item.detail.subDetail.type"/>
      <short value="Type of product or service"/>
      <definition value="The type of product or service."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.item.detail.subDetail.type"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ItemType"/>
        </extension>
        <strength value="required"/>
        <description value="Service, Product, Rx Dispense, Rx Compound etc."/>
        <valueSetReference>
          <reference
                     value="http://hl7.org/fhir/ValueSet/v3-ActInvoiceGroupCode"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.item.detail.subDetail.revenue">
      <path value="ExplanationOfBenefit.item.detail.subDetail.revenue"/>
      <short value="Revenue or cost center code"/>
      <definition
                  value="The type of reveneu or cost center providing the product and/or service."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.item.detail.subDetail.revenue"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <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."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/ex-revenue-center"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.item.detail.subDetail.category">
      <path value="ExplanationOfBenefit.item.detail.subDetail.category"/>
      <short value="Type of service or product"/>
      <definition
                  value="Health Care Service Type Codes  to identify the classification of service or benefits."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.item.detail.subDetail.category"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="BenefitSubCategory"/>
        </extension>
        <strength value="example"/>
        <description
                     value="Benefit subcategories such as: oral-basic, major, glasses"/>
        <valueSetReference>
          <reference
                     value="http://hl7.org/fhir/ValueSet/benefit-subcategory"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.item.detail.subDetail.service">
      <path value="ExplanationOfBenefit.item.detail.subDetail.service"/>
      <short value="Billing Code"/>
      <definition
                  value="A code to indicate the Professional Service or Product supplied (eg. CTP, HCPCS,USCLS,ICD10, NCPDP,DIN,ACHI,CCI)."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.item.detail.subDetail.service"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ServiceProduct"/>
        </extension>
        <strength value="example"/>
        <description value="Allowable service and product codes"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/service-uscls"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="F34/F35"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.item.detail.subDetail.modifier">
      <path value="ExplanationOfBenefit.item.detail.subDetail.modifier"/>
      <short value="Service/Product billing modifiers"/>
      <definition
                  value="Item typification or modifiers codes, eg for 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="May impact on adjudication."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.item.detail.subDetail.modifier"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <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."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/claim-modifiers"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="F16 (required field for Oral) and F05"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.item.detail.subDetail.programCode">
      <path value="ExplanationOfBenefit.item.detail.subDetail.programCode"/>
      <short value="Program specific reason for item inclusion"/>
      <definition
                  value="For programs which require reson codes for the inclusion, covering, of this billed item under the program or sub-program."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.item.detail.subDetail.programCode"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ProgramCode"/>
        </extension>
        <strength value="example"/>
        <description value="Program specific reason codes"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/ex-program-code"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.item.detail.subDetail.quantity">
      <path value="ExplanationOfBenefit.item.detail.subDetail.quantity"/>
      <short value="Count of Products or Services"/>
      <definition value="The number of repetitions of a service or product."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.item.detail.subDetail.quantity"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Quantity"/>
        <profile
                 value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.item.detail.subDetail.unitPrice">
      <path value="ExplanationOfBenefit.item.detail.subDetail.unitPrice"/>
      <short value="Fee, charge or cost per point"/>
      <definition
                  value="The fee for an addittional service or product or charge."/>
      <requirements
                    value="If a fee is present the associated product/service code must be present."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.item.detail.subDetail.unitPrice"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Money"/>
      </type>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="F13/F14"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.item.detail.subDetail.factor">
      <path value="ExplanationOfBenefit.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."/>
      <requirements
                    value="If a fee is present the associated product/service code must be present."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.item.detail.subDetail.factor"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="decimal"/>
      </type>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="F13/F14"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.item.detail.subDetail.net">
      <path value="ExplanationOfBenefit.item.detail.subDetail.net"/>
      <short value="Net additional item cost"/>
      <definition
                  value="The quantity times the unit price for an addittional service or product or charge. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number  * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied."/>
      <requirements
                    value="If a fee is present the associated product/service code must be present."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.item.detail.subDetail.net"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Money"/>
      </type>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="F13/F14"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.item.detail.subDetail.udi">
      <path value="ExplanationOfBenefit.item.detail.subDetail.udi"/>
      <short value="Unique Device Identifier"/>
      <definition
                  value="List of Unique Device Identifiers associated with this line item."/>
      <requirements
                    value="The UDI code and issuer if applicable for the supplied product."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.item.detail.subDetail.udi"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org/fhir/StructureDefinition/Device"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.item.detail.subDetail.noteNumber">
      <path value="ExplanationOfBenefit.item.detail.subDetail.noteNumber"/>
      <short value="List of note numbers which apply"/>
      <definition
                  value="A list of note references to the notes provided below."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.item.detail.subDetail.noteNumber"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="positiveInt"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.item.detail.subDetail.adjudication">
      <path value="ExplanationOfBenefit.item.detail.subDetail.adjudication"/>
      <short value="Language if different from the resource"/>
      <definition value="The adjudications results."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path
              value="ExplanationOfBenefit.item.detail.subDetail.adjudication"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <contentReference
                        value="http://hl7.org/fhir/StructureDefinition/ExplanationOfBenefit#ExplanationOfBenefit.item.adjudication"/>
    </element>
    <element id="ExplanationOfBenefit.addItem">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="AddedItem"/>
      </extension>
      <path value="ExplanationOfBenefit.addItem"/>
      <short value="Insurer added line items"/>
      <definition
                  value="The first tier service adjudications for payor added services."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.addItem"/>
        <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() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
    </element>
    <element id="ExplanationOfBenefit.addItem.id">
      <path value="ExplanationOfBenefit.addItem.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <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>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.addItem.extension">
      <path value="ExplanationOfBenefit.addItem.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. In order 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."/>
      <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>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.addItem.modifierExtension">
      <path value="ExplanationOfBenefit.addItem.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order 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."/>
      <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"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.addItem.sequenceLinkId">
      <path value="ExplanationOfBenefit.addItem.sequenceLinkId"/>
      <short value="Service instances"/>
      <definition
                  value="List of input service items which this service line is intended to replace."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.addItem.sequenceLinkId"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="positiveInt"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.addItem.revenue">
      <path value="ExplanationOfBenefit.addItem.revenue"/>
      <short value="Revenue or cost center code"/>
      <definition
                  value="The type of reveneu or cost center providing the product and/or service."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.addItem.revenue"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <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."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/ex-revenue-center"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.addItem.category">
      <path value="ExplanationOfBenefit.addItem.category"/>
      <short value="Type of service or product"/>
      <definition
                  value="Health Care Service Type Codes  to identify the classification of service or benefits."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.addItem.category"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="BenefitSubCategory"/>
        </extension>
        <strength value="example"/>
        <description
                     value="Benefit subcategories such as: oral-basic, major, glasses"/>
        <valueSetReference>
          <reference
                     value="http://hl7.org/fhir/ValueSet/benefit-subcategory"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="F06"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.addItem.service">
      <path value="ExplanationOfBenefit.addItem.service"/>
      <short value="Billing Code"/>
      <definition
                  value="If this is an actual service or product line, ie. not a Group, then use code to indicate the Professional Service or Product supplied (eg. CTP, HCPCS,USCLS,ICD10, NCPDP,DIN,ACHI,CCI). If a grouping item then use a group code to indicate the type of thing being grouped eg. 'glasses' or 'compound'."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.addItem.service"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ServiceProduct"/>
        </extension>
        <strength value="example"/>
        <description value="Allowable service and product codes"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/service-uscls"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.addItem.modifier">
      <path value="ExplanationOfBenefit.addItem.modifier"/>
      <short value="Service/Product billing modifiers"/>
      <definition
                  value="Item typification or modifiers codes, eg for 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="May impact on adjudication."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.addItem.modifier"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <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."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/claim-modifiers"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="F16 (required field for Oral) and F05"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.addItem.fee">
      <path value="ExplanationOfBenefit.addItem.fee"/>
      <short value="Professional fee or Product charge"/>
      <definition
                  value="The fee charged for the professional service or product."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.addItem.fee"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Money"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.addItem.noteNumber">
      <path value="ExplanationOfBenefit.addItem.noteNumber"/>
      <short value="List of note numbers which apply"/>
      <definition
                  value="A list of note references to the notes provided below."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.addItem.noteNumber"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="positiveInt"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.addItem.adjudication">
      <path value="ExplanationOfBenefit.addItem.adjudication"/>
      <short value="Added items adjudication"/>
      <definition value="The adjudications results."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.addItem.adjudication"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <contentReference
                        value="http://hl7.org/fhir/StructureDefinition/ExplanationOfBenefit#ExplanationOfBenefit.item.adjudication"/>
    </element>
    <element id="ExplanationOfBenefit.addItem.detail">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="AddedItemsDetail"/>
      </extension>
      <path value="ExplanationOfBenefit.addItem.detail"/>
      <short value="Added items details"/>
      <definition
                  value="The second tier service adjudications for payor added services."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.addItem.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() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
    </element>
    <element id="ExplanationOfBenefit.addItem.detail.id">
      <path value="ExplanationOfBenefit.addItem.detail.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <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>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.addItem.detail.extension">
      <path value="ExplanationOfBenefit.addItem.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. In order 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."/>
      <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>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.addItem.detail.modifierExtension">
      <path value="ExplanationOfBenefit.addItem.detail.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order 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."/>
      <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"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.addItem.detail.revenue">
      <path value="ExplanationOfBenefit.addItem.detail.revenue"/>
      <short value="Revenue or cost center code"/>
      <definition
                  value="The type of reveneu or cost center providing the product and/or service."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.addItem.detail.revenue"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <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."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/ex-revenue-center"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.addItem.detail.category">
      <path value="ExplanationOfBenefit.addItem.detail.category"/>
      <short value="Type of service or product"/>
      <definition
                  value="Health Care Service Type Codes  to identify the classification of service or benefits."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.addItem.detail.category"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="BenefitSubCategory"/>
        </extension>
        <strength value="example"/>
        <description
                     value="Benefit subcategories such as: oral-basic, major, glasses"/>
        <valueSetReference>
          <reference
                     value="http://hl7.org/fhir/ValueSet/benefit-subcategory"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="F06"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.addItem.detail.service">
      <path value="ExplanationOfBenefit.addItem.detail.service"/>
      <short value="Billing Code"/>
      <definition
                  value="A code to indicate the Professional Service or Product supplied (eg. CTP, HCPCS,USCLS,ICD10, NCPDP,DIN,ACHI,CCI)."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.addItem.detail.service"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ServiceProduct"/>
        </extension>
        <strength value="example"/>
        <description value="Allowable service and product codes"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/service-uscls"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.addItem.detail.modifier">
      <path value="ExplanationOfBenefit.addItem.detail.modifier"/>
      <short value="Service/Product billing modifiers"/>
      <definition
                  value="Item typification or modifiers codes, eg for 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="May impact on adjudication."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.addItem.detail.modifier"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <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."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/claim-modifiers"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="F16 (required field for Oral) and F05"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.addItem.detail.fee">
      <path value="ExplanationOfBenefit.addItem.detail.fee"/>
      <short value="Professional fee or Product charge"/>
      <definition
                  value="The fee charged for the professional service or product."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.addItem.detail.fee"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Money"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.addItem.detail.noteNumber">
      <path value="ExplanationOfBenefit.addItem.detail.noteNumber"/>
      <short value="List of note numbers which apply"/>
      <definition
                  value="A list of note references to the notes provided below."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.addItem.detail.noteNumber"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="positiveInt"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.addItem.detail.adjudication">
      <path value="ExplanationOfBenefit.addItem.detail.adjudication"/>
      <short value="Added items detail adjudication"/>
      <definition value="The adjudications results."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.addItem.detail.adjudication"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <contentReference
                        value="http://hl7.org/fhir/StructureDefinition/ExplanationOfBenefit#ExplanationOfBenefit.item.adjudication"/>
    </element>
    <element id="ExplanationOfBenefit.totalCost">
      <path value="ExplanationOfBenefit.totalCost"/>
      <short value="Total Cost of service from the Claim"/>
      <definition value="The total cost of the services reported."/>
      <requirements
                    value="This is a check value that the receiver calculates and returns."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.totalCost"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Money"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.unallocDeductable">
      <path value="ExplanationOfBenefit.unallocDeductable"/>
      <short value="Unallocated deductable"/>
      <definition
                  value="The amount of deductable applied which was not allocated to any particular service line."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.unallocDeductable"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Money"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.totalBenefit">
      <path value="ExplanationOfBenefit.totalBenefit"/>
      <short value="Total benefit payable for the Claim"/>
      <definition
                  value="Total amount of benefit payable (Equal to sum of the Benefit amounts from all detail lines and additions less the Unallocated Deductable)."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.totalBenefit"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Money"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.payment">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="Payment"/>
      </extension>
      <path value="ExplanationOfBenefit.payment"/>
      <short value="Payment (if paid)"/>
      <definition
                  value="Payment details for the claim if the claim has been paid."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.payment"/>
        <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() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
    </element>
    <element id="ExplanationOfBenefit.payment.id">
      <path value="ExplanationOfBenefit.payment.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <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>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.payment.extension">
      <path value="ExplanationOfBenefit.payment.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. In order 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."/>
      <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>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.payment.modifierExtension">
      <path value="ExplanationOfBenefit.payment.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order 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."/>
      <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"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.payment.type">
      <path value="ExplanationOfBenefit.payment.type"/>
      <short value="Partial or Complete"/>
      <definition
                  value="Whether this represents partial or complete payment of the claim."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.payment.type"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="PaymentType"/>
        </extension>
        <strength value="example"/>
        <description value="The type (partial, complete) of the payment"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/ex-paymenttype"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.payment.adjustment">
      <path value="ExplanationOfBenefit.payment.adjustment"/>
      <short value="Payment adjustment for non-Claim issues"/>
      <definition
                  value="Adjustment to the payment of this transaction which is not related to adjudication of this transaction."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.payment.adjustment"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Money"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.payment.adjustmentReason">
      <path value="ExplanationOfBenefit.payment.adjustmentReason"/>
      <short value="Explanation for the non-claim adjustment"/>
      <definition value="Reason for the payment adjustment."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.payment.adjustmentReason"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="PaymentAdjustmentReason"/>
        </extension>
        <strength value="example"/>
        <description value="Payment Adjustment reason codes."/>
        <valueSetReference>
          <reference
                     value="http://hl7.org/fhir/ValueSet/payment-adjustment-reason"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.payment.date">
      <path value="ExplanationOfBenefit.payment.date"/>
      <short value="Expected date of Payment"/>
      <definition value="Estimated payment date."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.payment.date"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="date"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.payment.amount">
      <path value="ExplanationOfBenefit.payment.amount"/>
      <short value="Payable amount after adjustment"/>
      <definition value="Payable less any payment adjustment."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.payment.amount"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Money"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.payment.identifier">
      <path value="ExplanationOfBenefit.payment.identifier"/>
      <short value="Identifier of the payment instrument"/>
      <definition value="Payment identifer."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.payment.identifier"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Identifier"/>
      </type>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="G01, B.23"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.form">
      <path value="ExplanationOfBenefit.form"/>
      <short value="Printed Form Identifier"/>
      <definition value="The form to be used for printing the content."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.form"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="Forms"/>
        </extension>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/>
        </extension>
        <strength value="example"/>
        <description value="The forms codes."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/forms"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="G42"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.processNote">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="Note"/>
      </extension>
      <path value="ExplanationOfBenefit.processNote"/>
      <short value="Processing notes"/>
      <definition value="Note text."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.processNote"/>
        <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() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
    </element>
    <element id="ExplanationOfBenefit.processNote.id">
      <path value="ExplanationOfBenefit.processNote.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <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>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.processNote.extension">
      <path value="ExplanationOfBenefit.processNote.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. In order 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."/>
      <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>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.processNote.modifierExtension">
      <path value="ExplanationOfBenefit.processNote.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order 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."/>
      <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"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.processNote.number">
      <path value="ExplanationOfBenefit.processNote.number"/>
      <short value="Sequence number for this note"/>
      <definition
                  value="An integer associated with each note which may be referred to from each service line item."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.processNote.number"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="positiveInt"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.processNote.type">
      <path value="ExplanationOfBenefit.processNote.type"/>
      <short value="display | print | printoper"/>
      <definition value="The note purpose: Print/Display."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.processNote.type"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="NoteType"/>
        </extension>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/>
        </extension>
        <strength value="required"/>
        <description value="The presentation types of notes."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/note-type"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.processNote.text">
      <path value="ExplanationOfBenefit.processNote.text"/>
      <short value="Note explanitory text"/>
      <definition value="The note text."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.processNote.text"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="cdanetv4"/>
        <map value="G32"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.processNote.language">
      <path value="ExplanationOfBenefit.processNote.language"/>
      <short value="Language if different from the resource"/>
      <definition
                  value="The ISO-639-1 alpha 2 code in lower case for the language, optionally followed by a hyphen and the ISO-3166-1 alpha 2 code for the region in upper case; e.g. &quot;en&quot; for English, or &quot;en-US&quot; for American English versus &quot;en-EN&quot; for England English."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.processNote.language"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet">
          <valueReference>
            <reference value="http://hl7.org/fhir/ValueSet/all-languages"/>
          </valueReference>
        </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="extensible"/>
        <description value="A human language."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/languages"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.benefitBalance">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="BenefitBalance"/>
      </extension>
      <path value="ExplanationOfBenefit.benefitBalance"/>
      <short value="Balance by Benefit Category"/>
      <definition value="Balance by Benefit Category."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.benefitBalance"/>
        <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() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
    </element>
    <element id="ExplanationOfBenefit.benefitBalance.id">
      <path value="ExplanationOfBenefit.benefitBalance.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <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>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.benefitBalance.extension">
      <path value="ExplanationOfBenefit.benefitBalance.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. In order 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."/>
      <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>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.benefitBalance.modifierExtension">
      <path value="ExplanationOfBenefit.benefitBalance.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order 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."/>
      <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"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.benefitBalance.category">
      <path value="ExplanationOfBenefit.benefitBalance.category"/>
      <short value="Type of services covered"/>
      <definition value="Dental, Vision, Medical, Pharmacy, Rehab etc."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.benefitBalance.category"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="BenefitCategory"/>
        </extension>
        <strength value="example"/>
        <description
                     value="Benefit categories such as: oral, medical, vision etc."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/benefit-category"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.benefitBalance.subCategory">
      <path value="ExplanationOfBenefit.benefitBalance.subCategory"/>
      <short value="Detailed services covered within the type"/>
      <definition
                  value="Dental: basic, major, ortho; Vision exam, glasses, contacts; etc."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.benefitBalance.subCategory"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="BenefitSubCategory"/>
        </extension>
        <strength value="example"/>
        <description
                     value="Benefit subcategories such as: oral-basic, major, glasses"/>
        <valueSetReference>
          <reference
                     value="http://hl7.org/fhir/ValueSet/benefit-subcategory"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.benefitBalance.excluded">
      <path value="ExplanationOfBenefit.benefitBalance.excluded"/>
      <short value="Excluded from the plan"/>
      <definition
                  value="True if the indicated class of service is excluded from the plan, missing or False indicated the service is included in the coverage."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.benefitBalance.excluded"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="boolean"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.benefitBalance.name">
      <path value="ExplanationOfBenefit.benefitBalance.name"/>
      <short value="Short name for the benefit"/>
      <definition
                  value="A short name or tag for the benefit, for example MED01, or DENT2."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.benefitBalance.name"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.benefitBalance.description">
      <path value="ExplanationOfBenefit.benefitBalance.description"/>
      <short value="Description of the benefit or services covered"/>
      <definition
                  value="A richer description of the benefit, for example 'DENT2 covers 100% of basic, 50% of major but exclused Ortho, Implants and Costmetic services'."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.benefitBalance.description"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.benefitBalance.network">
      <path value="ExplanationOfBenefit.benefitBalance.network"/>
      <short value="In or out of network"/>
      <definition value="Network designation."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.benefitBalance.network"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="BenefitNetwork"/>
        </extension>
        <strength value="example"/>
        <description value="Code to classify in or out of network services"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/benefit-network"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.benefitBalance.unit">
      <path value="ExplanationOfBenefit.benefitBalance.unit"/>
      <short value="Individual or family"/>
      <definition value="Unit designation: individual or family."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.benefitBalance.unit"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="BenefitUnit"/>
        </extension>
        <strength value="example"/>
        <description value="Unit covered/serviced - individual or family"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/benefit-unit"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.benefitBalance.term">
      <path value="ExplanationOfBenefit.benefitBalance.term"/>
      <short value="Annual or lifetime"/>
      <definition
                  value="The term or period of the values such as 'maximum lifetime benefit' or 'maximum annual vistis'."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.benefitBalance.term"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="BenefitTerm"/>
        </extension>
        <strength value="example"/>
        <description value="Coverage unit - annual, lifetime"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/benefit-term"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.benefitBalance.financial">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="Benefit"/>
      </extension>
      <path value="ExplanationOfBenefit.benefitBalance.financial"/>
      <short value="Benefit Summary"/>
      <definition value="Benefits Used to date."/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="ExplanationOfBenefit.benefitBalance.financial"/>
        <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() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/>
      </constraint>
    </element>
    <element id="ExplanationOfBenefit.benefitBalance.financial.id">
      <path value="ExplanationOfBenefit.benefitBalance.financial.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <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>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.benefitBalance.financial.extension">
      <path value="ExplanationOfBenefit.benefitBalance.financial.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. In order 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."/>
      <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>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element
             id="ExplanationOfBenefit.benefitBalance.financial.modifierExtension">
      <path
            value="ExplanationOfBenefit.benefitBalance.financial.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 element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order 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."/>
      <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"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="ExplanationOfBenefit.benefitBalance.financial.type">
      <path value="ExplanationOfBenefit.benefitBalance.financial.type"/>
      <short value="Deductable, visits, benefit amount"/>
      <definition value="Deductable, visits, benefit amount."/>
      <min value="1"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.benefitBalance.financial.type"/>
        <min value="1"/>
        <max value="1"/>
      </base>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <binding>
        <extension
                   url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="BenefitType"/>
        </extension>
        <strength value="example"/>
        <description value="Deductable, visits, co-pay, etc."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/benefit-type"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.benefitBalance.financial.allowed[x]">
      <path value="ExplanationOfBenefit.benefitBalance.financial.allowed[x]"/>
      <short value="Benefits allowed"/>
      <definition value="Benefits allowed."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path
              value="ExplanationOfBenefit.benefitBalance.financial.allowed[x]"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="unsignedInt"/>
      </type>
      <type>
        <code value="string"/>
      </type>
      <type>
        <code value="Money"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.benefitBalance.financial.used[x]">
      <path value="ExplanationOfBenefit.benefitBalance.financial.used[x]"/>
      <short value="Benefits used"/>
      <definition value="Benefits used."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="ExplanationOfBenefit.benefitBalance.financial.used[x]"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="unsignedInt"/>
      </type>
      <type>
        <code value="Money"/>
      </type>
    </element>
  </snapshot>
  <differential>
    <element id="ExplanationOfBenefit">
      <path value="ExplanationOfBenefit"/>
      <constraint>
        <key value="inv-dh-eob-01"/>
        <severity value="error"/>
        <human value="A PBS or RPBS claim SHALL include a prescription."/>
        <expression
                    value="prescription.exists() implies (subType.coding.code='pbs' or subType.coding.code='rpbs' or item.category.coding.code='pbs' or item.category.coding.code='rpbs')"/>
      </constraint>
      <constraint>
        <key value="inv-dh-eob-02"/>
        <severity value="error"/>
        <human
               value="A MBS or DVABS claim SHALL NOT include a prescription."/>
        <expression
                    value="prescription.empty() implies (subType.coding.code='mbs' or subType.coding.code='dva' or item.category.coding.code='mbs' or item.category.coding.code='dva')"/>
      </constraint>
      <constraint>
        <key value="inv-dh-eob-03"/>
        <severity value="error"/>
        <human value="One of subType or item.category SHALL be present."/>
        <expression value="subType.exists() or item.category.exists()"/>
      </constraint>
      <constraint>
        <key value="inv-dh-eob-04"/>
        <severity value="error"/>
        <human
               value="A PBS claim SHALL be of type 'Pharmacy' (type='pharmacy')."/>
        <expression
                    value="prescription.exists() implies type.coding.code='pharmacy'"/>
      </constraint>
      <constraint>
        <key value="inv-dh-eob-05"/>
        <severity value="error"/>
        <human
               value="One meta.profile SHALL have value 'http://ns.electronichealth.net.au/ci/fhir/StructureDefinition/explanationofbenefit-medicare'."/>
        <expression
                    value="meta.profile.where($this='http://ns.electronichealth.net.au/ci/fhir/StructureDefinition/explanationofbenefit-medicare').exists()"/>
      </constraint>
    </element>
    <element id="ExplanationOfBenefit.meta">
      <path value="ExplanationOfBenefit.meta"/>
      <min value="1"/>
    </element>
    <element id="ExplanationOfBenefit.meta.profile">
      <path value="ExplanationOfBenefit.meta.profile"/>
      <min value="1"/>
    </element>
    <element id="ExplanationOfBenefit.identifier">
      <path value="ExplanationOfBenefit.identifier"/>
      <min value="1"/>
      <max value="1"/>
      <mustSupport value="true"/>
    </element>
    <element id="ExplanationOfBenefit.status">
      <path value="ExplanationOfBenefit.status"/>
      <fixedCode value="active"/>
      <mustSupport value="true"/>
    </element>
    <element id="ExplanationOfBenefit.type">
      <path value="ExplanationOfBenefit.type"/>
      <mustSupport value="true"/>
    </element>
    <element id="ExplanationOfBenefit.subType">
      <path value="ExplanationOfBenefit.subType"/>
      <mustSupport value="true"/>
      <binding>
        <strength value="required"/>
        <valueSetUri
                     value="https://healthterminologies.gov.au/fhir/ValueSet/australian-medicare-benefit-claim-category-1"/>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.patient">
      <path value="ExplanationOfBenefit.patient"/>
      <min value="1"/>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org.au/fhir/StructureDefinition/au-patient"/>
      </type>
      <mustSupport value="true"/>
    </element>
    <element id="ExplanationOfBenefit.created">
      <path value="ExplanationOfBenefit.created"/>
      <min value="1"/>
      <mustSupport value="true"/>
    </element>
    <element id="ExplanationOfBenefit.insurer">
      <path value="ExplanationOfBenefit.insurer"/>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org.au/fhir/StructureDefinition/au-organisation"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.provider">
      <path value="ExplanationOfBenefit.provider"/>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org.au/fhir/StructureDefinition/au-practitioner"/>
      </type>
      <mustSupport value="true"/>
    </element>
    <element id="ExplanationOfBenefit.organization">
      <path value="ExplanationOfBenefit.organization"/>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://hl7.org.au/fhir/StructureDefinition/au-organisation"/>
      </type>
    </element>
    <element id="ExplanationOfBenefit.prescription">
      <path value="ExplanationOfBenefit.prescription"/>
      <type>
        <code value="Reference"/>
        <targetProfile
                       value="http://ns.electronichealth.net.au/ci/fhir/StructureDefinition/medicationrequest-pbs"/>
        <aggregation value="contained"/>
      </type>
      <mustSupport value="true"/>
    </element>
    <element id="ExplanationOfBenefit.item">
      <path value="ExplanationOfBenefit.item"/>
      <min value="1"/>
      <max value="1"/>
      <mustSupport value="true"/>
    </element>
    <element id="ExplanationOfBenefit.item.sequence">
      <path value="ExplanationOfBenefit.item.sequence"/>
      <fixedPositiveInt value="1"/>
      <mustSupport value="true"/>
    </element>
    <element id="ExplanationOfBenefit.item.category">
      <path value="ExplanationOfBenefit.item.category"/>
      <mustSupport value="true"/>
      <binding>
        <strength value="extensible"/>
        <valueSetUri
                     value="https://healthterminologies.gov.au/fhir/ValueSet/australian-medicare-benefit-claim-category-1"/>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.item.service">
      <path value="ExplanationOfBenefit.item.service"/>
      <min value="1"/>
      <mustSupport value="true"/>
      <binding>
        <strength value="required"/>
        <valueSetUri
                     value="https://healthterminologies.gov.au/fhir/ValueSet/australian-dhs-modifications-pbs-mbs-dva-item-1"/>
      </binding>
    </element>
    <element id="ExplanationOfBenefit.item.serviced[x]">
      <path value="ExplanationOfBenefit.item.serviced[x]"/>
      <min value="1"/>
      <mustSupport value="true"/>
    </element>
    <element id="ExplanationOfBenefit.item.quantity">
      <path value="ExplanationOfBenefit.item.quantity"/>
      <mustSupport value="true"/>
    </element>
  </differential>
</StructureDefinition>