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

<Invoice xmlns="http://hl7.org/fhir">
  <id value="EjemploEmaInvoice"/>
  <meta>
    <profile value="https://emahealth.io/fhir/billing/StructureDefinition/ema-invoice"/>
  </meta>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: Invoice EjemploEmaInvoice</b></p><a name="EjemploEmaInvoice"> </a><a name="hcEjemploEmaInvoice"> </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-invoice.html">EMA Invoice</a></p></div><p><b>status</b>: issued</p><p><b>subject</b>: <a href="Patient/ejemplo-patient">María Fernández</a></p><p><b>date</b>: 2026-03-14</p><h3>Participants</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Role</b></td><td><b>Actor</b></td></tr><tr><td style="display: none">*</td><td><span title="Codes:{http://terminology.hl7.org/CodeSystem/v3-ParticipationType PPRF}">primary performer</span></td><td><a href="Practitioner/ejemplo-practitioner">Dr. Carlos Muñoz</a></td></tr></table><blockquote><p><b>lineItem</b></p><p><b>chargeItem</b>: <a href="ChargeItem-EjemploEmaChargeItem.html">Consulta medicina general</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>25000</td><td>Chilean peso</td></tr></table></blockquote></blockquote><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>25000</td><td>Chilean peso</td></tr></table></div>
  </text>
  <status value="issued"/>
  <subject>
    <reference value="Patient/ejemplo-patient"/>
    <display value="María Fernández"/>
  </subject>
  <date value="2026-03-14"/>
  <participant>
    <role>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/v3-ParticipationType"/>
        <code value="PPRF"/>
        <display value="primary performer"/>
      </coding>
    </role>
    <actor>
      <reference value="Practitioner/ejemplo-practitioner"/>
      <display value="Dr. Carlos Muñoz"/>
    </actor>
  </participant>
  <lineItem>
    <chargeItemReference>
      <reference value="ChargeItem/EjemploEmaChargeItem"/>
      <display value="Consulta medicina general"/>
    </chargeItemReference>
    <priceComponent>
      <type value="base"/>
      <amount>
        <value value="25000"/>
        <currency value="CLP"/>
      </amount>
    </priceComponent>
  </lineItem>
  <totalGross>
    <value value="25000"/>
    <currency value="CLP"/>
  </totalGross>
</Invoice>