@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/Claim/EjemploEmaClaim> a fhir:Claim ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "EjemploEmaClaim"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://emahealth.io/fhir/billing/StructureDefinition/ema-claim"^^xsd:anyURI ;
       fhir:l <https://emahealth.io/fhir/billing/StructureDefinition/ema-claim>
     ] )
  ] ; # 
  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: Reclamación / Factura EjemploEmaClaim</b></p><a name=\"EjemploEmaClaim\"> </a><a name=\"hcEjemploEmaClaim\"> </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-claim.html\">EMA Claim</a></p></div><p><b>status</b>: Active</p><p><b>type</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/claim-type professional}\">Professional</span></p><p><b>use</b>: Claim</p><p><b>patient</b>: <a href=\"Patient/ejemplo-patient\">María Fernández</a></p><p><b>created</b>: 2026-03-14</p><p><b>provider</b>: <a href=\"Organization/ejemplo-organization\">EMA Clinic</a></p><p><b>priority</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/processpriority normal}\">Normal</span></p><h3>Insurances</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Sequence</b></td><td><b>Focal</b></td><td><b>Coverage</b></td></tr><tr><td style=\"display: none\">*</td><td>1</td><td>true</td><td><a href=\"Coverage/ejemplo-coverage\">FONASA Tramo B</a></td></tr></table><blockquote><p><b>item</b></p><p><b>sequence</b>: 1</p><p><b>productOrService</b>: <span title=\"Codes:{https://emahealth.io/fhir/billing/CodeSystem/cs-prestaciones-fonasa 0101001}\">Consulta medicina general</span></p><p><b>serviced</b>: 2026-03-14</p><h3>UnitPrices</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><h3>Nets</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></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:type [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/claim-type"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/claim-type>
       ] ;
       fhir:code [ fhir:v "professional" ] ;
       fhir:display [ fhir:v "Professional" ]
     ] )
  ] ; # 
  fhir:use [ fhir:v "claim"] ; # 
  fhir:patient [
     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:created [ fhir:v "2026-03-14"^^xsd:date] ; # 
  fhir:provider [
     fhir:l <https://emahealth.io/fhir/billing/Organization/ejemplo-organization> ;
     fhir:reference [ fhir:v "Organization/ejemplo-organization" ] ;
     fhir:display [ fhir:v "EMA Clinic" ]
  ] ; # 
  fhir:priority [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/processpriority"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/processpriority>
       ] ;
       fhir:code [ fhir:v "normal" ] ;
       fhir:display [ fhir:v "Normal" ]
     ] )
  ] ; # 
  fhir:insurance ( [
     fhir:sequence [ fhir:v "1"^^xsd:positiveInteger ] ;
     fhir:focal [ fhir:v true ] ;
     fhir:coverage [
       fhir:l <https://emahealth.io/fhir/billing/Coverage/ejemplo-coverage> ;
       fhir:reference [ fhir:v "Coverage/ejemplo-coverage" ] ;
       fhir:display [ fhir:v "FONASA Tramo B" ]
     ]
  ] ) ; # 
  fhir:item ( [
     fhir:sequence [ fhir:v "1"^^xsd:positiveInteger ] ;
     fhir:productOrService [
       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:serviced [
       a fhir:Date ;
       fhir:v "2026-03-14"^^xsd:date
     ] ;
     fhir:unitPrice [
       fhir:value [ fhir:v "25000"^^xsd:decimal ] ;
       fhir:currency [ fhir:v "CLP" ]
     ] ;
     fhir:net [
       fhir:value [ fhir:v "25000"^^xsd:decimal ] ;
       fhir:currency [ fhir:v "CLP" ]
     ]
  ] ) . # 

# -------------------------------------------------------------------------------------

