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

<Invoice xmlns="http://hl7.org/fhir">
  <id value="EjemploEmaCoreInvoice"/>
  <meta>
    <profile value="https://emahealth.io/fhir/core/StructureDefinition/ema-core-invoice"/>
  </meta>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: Invoice EjemploEmaCoreInvoice</b></p><a name="EjemploEmaCoreInvoice"> </a><a name="hcEjemploEmaCoreInvoice"> </a><div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px"/><p style="margin-bottom: 0px">Profile: <a href="StructureDefinition-ema-core-invoice.html">EMA Core Invoice</a></p></div><p><b>identifier</b>: <code>https://tenant-ejemplo.emahealth.io/fhir/sid/boleta</code>/BOL-2026-004512</p><p><b>status</b>: issued</p><p><b>subject</b>: <a href="Patient-EjemploEmaCorePatient.html">Carmen Díaz (official) Female, DoB: 1969-04-22 ( Medical record number (use: usual, ))</a></p><p><b>date</b>: 2026-08-18 09:35:00-0400</p><h3>Participants</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Actor</b></td></tr><tr><td style="display: none">*</td><td><a href="Organization-EjemploEmaCoreOrganization.html">Organization Centro Médico EMA</a></td></tr></table><blockquote><p><b>lineItem</b></p><p><b>sequence</b>: 1</p><p><b>chargeItem</b>: <a href="ChargeItem-EjemploEmaCoreChargeItem.html">ChargeItem CLI-CONS-CTRL</a></p><blockquote><p><b>priceComponent</b></p><p><b>type</b>: base price</p><h3>Amounts</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Value</b></td><td><b>Currency</b></td></tr><tr><td style="display: none">*</td><td>35000</td><td>Chilean peso</td></tr></table></blockquote></blockquote><h3>TotalNets</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Value</b></td><td><b>Currency</b></td></tr><tr><td style="display: none">*</td><td>35000</td><td>Chilean peso</td></tr></table><h3>TotalGrosses</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Value</b></td><td><b>Currency</b></td></tr><tr><td style="display: none">*</td><td>35000</td><td>Chilean peso</td></tr></table></div>
  </text>
  <identifier>
    <system value="https://tenant-ejemplo.emahealth.io/fhir/sid/boleta"/>
    <value value="BOL-2026-004512"/>
  </identifier>
  <status value="issued"/>
  <subject>
    <reference value="Patient/EjemploEmaCorePatient"/>
  </subject>
  <date value="2026-08-18T09:35:00-04:00"/>
  <participant>
    <actor>
      <reference value="Organization/EjemploEmaCoreOrganization"/>
    </actor>
  </participant>
  <lineItem>
    <sequence value="1"/>
    <chargeItemReference>
      <reference value="ChargeItem/EjemploEmaCoreChargeItem"/>
    </chargeItemReference>
    <priceComponent>
      <type value="base"/>
      <amount>
        <value value="35000"/>
        <currency value="CLP"/>
      </amount>
    </priceComponent>
  </lineItem>
  <totalNet>
    <value value="35000"/>
    <currency value="CLP"/>
  </totalNet>
  <totalGross>
    <value value="35000"/>
    <currency value="CLP"/>
  </totalGross>
</Invoice>