{
  "resourceType" : "Invoice",
  "id" : "EjemploEmaInvoice",
  "meta" : {
    "profile" : ["https://emahealth.io/fhir/billing/StructureDefinition/ema-invoice"]
  },
  "text" : {
    "status" : "generated",
    "div" : "<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>"
  },
  "status" : "issued",
  "subject" : {
    "reference" : "Patient/ejemplo-patient",
    "display" : "María Fernández"
  },
  "date" : "2026-03-14",
  "participant" : [{
    "role" : {
      "coding" : [{
        "system" : "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
        "code" : "PPRF",
        "display" : "primary performer"
      }]
    },
    "actor" : {
      "reference" : "Practitioner/ejemplo-practitioner",
      "display" : "Dr. Carlos Muñoz"
    }
  }],
  "lineItem" : [{
    "chargeItemReference" : {
      "reference" : "ChargeItem/EjemploEmaChargeItem",
      "display" : "Consulta medicina general"
    },
    "priceComponent" : [{
      "type" : "base",
      "amount" : {
        "value" : 25000,
        "currency" : "CLP"
      }
    }]
  }],
  "totalGross" : {
    "value" : 25000,
    "currency" : "CLP"
  }
}