@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<https://emahealth.io/fhir/billing/ChargeItem/EjemploEmaChargeItem> a fhir:ChargeItem ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "EjemploEmaChargeItem"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://emahealth.io/fhir/billing/StructureDefinition/ema-charge-item"^^xsd:anyURI ;
       fhir:l <https://emahealth.io/fhir/billing/StructureDefinition/ema-charge-item>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: CargoDeItem EjemploEmaChargeItem</b></p><a name=\"EjemploEmaChargeItem\"> </a><a name=\"hcEjemploEmaChargeItem\"> </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-charge-item.html\">EMA ChargeItem</a></p></div><p><b>status</b>: Billed</p><p><b>code</b>: <span title=\"Codes:{https://emahealth.io/fhir/billing/CodeSystem/cs-prestaciones-fonasa 0101001}\">Consulta medicina general</span></p><p><b>subject</b>: <a href=\"Patient/ejemplo-patient\">María Fernández</a></p><p><b>context</b>: <a href=\"Encounter/ejemplo-encounter\">Consulta ambulatoria 2026-03-14</a></p><p><b>occurrence</b>: 2026-03-14 10:30:00-0300</p><h3>Performers</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=\"Practitioner/ejemplo-practitioner\">Dr. Carlos Muñoz</a></td></tr></table><p><b>quantity</b>: 1</p><h3>PriceOverrides</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>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:status [ fhir:v "billed"] ; # 
  fhir:code [
     fhir:coding ( [
       fhir:system [
         fhir:v "https://emahealth.io/fhir/billing/CodeSystem/cs-prestaciones-fonasa"^^xsd:anyURI ;
         fhir:l <https://emahealth.io/fhir/billing/CodeSystem/cs-prestaciones-fonasa>
       ] ;
       fhir:code [ fhir:v "0101001" ] ;
       fhir:display [ fhir:v "Consulta medicina general" ]
     ] )
  ] ; # 
  fhir:subject [
     fhir:l <https://emahealth.io/fhir/billing/Patient/ejemplo-patient> ;
     fhir:reference [ fhir:v "Patient/ejemplo-patient" ] ;
     fhir:display [ fhir:v "María Fernández" ]
  ] ; # 
  fhir:context [
     fhir:l <https://emahealth.io/fhir/billing/Encounter/ejemplo-encounter> ;
     fhir:reference [ fhir:v "Encounter/ejemplo-encounter" ] ;
     fhir:display [ fhir:v "Consulta ambulatoria 2026-03-14" ]
  ] ; # 
  fhir:occurrence [
     a fhir:DateTime ;
     fhir:v "2026-03-14T10:30:00-03:00"^^xsd:dateTime
  ] ; # 
  fhir:performer ( [
     fhir:actor [
       fhir:l <https://emahealth.io/fhir/billing/Practitioner/ejemplo-practitioner> ;
       fhir:reference [ fhir:v "Practitioner/ejemplo-practitioner" ] ;
       fhir:display [ fhir:v "Dr. Carlos Muñoz" ]
     ]
  ] ) ; # 
  fhir:quantity [
     fhir:value [ fhir:v "1"^^xsd:decimal ]
  ] ; # 
  fhir:priceOverride [
     fhir:value [ fhir:v "25000"^^xsd:decimal ] ;
     fhir:currency [ fhir:v "CLP" ]
  ] . # 

# -------------------------------------------------------------------------------------

