@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 -------------------------------------------------------------------

<http://hl7.org/fhir/ExplanationOfBenefit/EB3501> a fhir:ExplanationOfBenefit ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "EB3501"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">A human-readable rendering of the ExplanationOfBenefit for a claim that had errors, various other attributes (such as accident and hospitalization) are also completed.</div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:identifier ( [
     fhir:system [
       fhir:v "http://www.BenefitsInc.com/fhir/explanationofbenefit"^^xsd:anyURI ;
       fhir:l <http://www.BenefitsInc.com/fhir/explanationofbenefit>
     ] ;
     fhir:value [ fhir:v "error-1" ]
  ] ) ; # 
  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 "oral" ]
     ] )
  ] ; # 
  fhir:subType [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/ex-claimsubtype"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/ex-claimsubtype>
       ] ;
       fhir:code [ fhir:v "emergency" ]
     ] )
  ] ; # 
  fhir:use [ fhir:v "claim"] ; # 
  fhir:subject [
     fhir:l <http://hl7.org/fhir/Patient/pat1> ;
     fhir:reference [ fhir:v "Patient/pat1" ]
  ] ; # 
  fhir:billablePeriod [
     fhir:start [ fhir:v "2014-02-01"^^xsd:date ] ;
     fhir:end [ fhir:v "2014-03-01"^^xsd:date ]
  ] ; # 
  fhir:created [ fhir:v "2014-08-16"^^xsd:date] ; # 
  fhir:enterer [
     fhir:l <http://hl7.org/fhir/Practitioner/1> ;
     fhir:reference [ fhir:v "Practitioner/1" ]
  ] ; # 
  fhir:insurer [
     fhir:l <http://hl7.org/fhir/Organization/2> ;
     fhir:reference [ fhir:v "Organization/2" ]
  ] ; # 
  fhir:provider [
     fhir:l <http://hl7.org/fhir/Organization/2> ;
     fhir:reference [ fhir:v "Organization/2" ]
  ] ; # 
  fhir:related ( [
     fhir:reference [
       fhir:system [
         fhir:v "http://www.BenefitsInc.com/case-number"^^xsd:anyURI ;
         fhir:l <http://www.BenefitsInc.com/case-number>
       ] ;
       fhir:value [ fhir:v "23-56Tu-XX-47-20150M14" ]
     ]
  ] ) ; # 
  fhir:prescription [
     fhir:l <http://hl7.org/fhir/MedicationRequest/medrx002> ;
     fhir:reference [ fhir:v "MedicationRequest/medrx002" ]
  ] ; # 
  fhir:originalPrescription [
     fhir:l <http://hl7.org/fhir/MedicationRequest/medrx0301> ;
     fhir:reference [ fhir:v "MedicationRequest/medrx0301" ]
  ] ; # 
  fhir:facility [
     fhir:l <http://hl7.org/fhir/Location/1> ;
     fhir:reference [ fhir:v "Location/1" ]
  ] ; # 
  fhir:claim [
     fhir:l <http://hl7.org/fhir/Claim/100150> ;
     fhir:reference [ fhir:v "Claim/100150" ]
  ] ; # 
  fhir:claimResponse [
     fhir:l <http://hl7.org/fhir/ClaimResponse/R3500> ;
     fhir:reference [ fhir:v "ClaimResponse/R3500" ]
  ] ; # 
  fhir:outcome [ fhir:v "error"] ; # 
  fhir:disposition [ fhir:v "Could not process."] ; # 
  fhir:supportingInfo ( [
     fhir:sequence [ fhir:v "1"^^xsd:positiveInteger ] ;
     fhir:category [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/claiminformationcategory"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/claiminformationcategory>
         ] ;
         fhir:code [ fhir:v "employmentimpacted" ]
       ] )
     ] ;
     fhir:timing [
       a fhir:Period ;
       fhir:start [ fhir:v "2014-02-14"^^xsd:date ] ;
       fhir:end [ fhir:v "2014-02-28"^^xsd:date ]
     ]
  ] [
     fhir:sequence [ fhir:v "2"^^xsd:positiveInteger ] ;
     fhir:category [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/claiminformationcategory"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/claiminformationcategory>
         ] ;
         fhir:code [ fhir:v "hospitalized" ]
       ] )
     ] ;
     fhir:timing [
       a fhir:Period ;
       fhir:start [ fhir:v "2014-02-14"^^xsd:date ] ;
       fhir:end [ fhir:v "2014-02-16"^^xsd:date ]
     ]
  ] ) ; # 
  fhir:procedure ( [
     fhir:sequence [ fhir:v "1"^^xsd:positiveInteger ] ;
     fhir:date [ fhir:v "2014-02-14"^^xsd:date ] ;
     fhir:procedure [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         fhir:system [
           fhir:v "http://hl7.org/fhir/sid/ex-icd-10-procedures"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/sid/ex-icd-10-procedures>
         ] ;
         fhir:code [ fhir:v "123001" ]
       ] )
     ] ;
     fhir:udi ( [
       fhir:l <http://hl7.org/fhir/Device/example> ;
       fhir:reference [ fhir:v "Device/example" ]
     ] )
  ] ) ; # 
  fhir:precedence [ fhir:v "2"^^xsd:positiveInteger] ; # 
  fhir:insurance ( [
     fhir:focal [ fhir:v true ] ;
     fhir:coverage [
       fhir:l <http://hl7.org/fhir/Coverage/9876B1> ;
       fhir:reference [ fhir:v "Coverage/9876B1" ]
     ]
  ] ) ; # 
  fhir:accident [
     fhir:date [ fhir:v "2014-02-14"^^xsd:date ] ;
     fhir:type [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActCode"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/v3-ActCode>
         ] ;
         fhir:code [ fhir:v "SPT" ]
       ] )
     ] ;
     fhir:location [
       a fhir:Reference ;
       fhir:l <http://hl7.org/fhir/Location/ph> ;
       fhir:reference [ fhir:v "Location/ph" ]
     ]
  ] ; # 
  fhir:total ( [
     fhir:category [
       fhir:coding ( [
         fhir:code [ fhir:v "submitted" ]
       ] )
     ] ;
     fhir:amount [
       fhir:value [ fhir:v 2478.57 ] ;
       fhir:currency [ fhir:v "USD" ]
     ]
  ] [
     fhir:category [
       fhir:coding ( [
         fhir:code [ fhir:v "benefit" ]
       ] )
     ] ;
     fhir:amount [
       fhir:value [ fhir:v 0.00 ] ;
       fhir:currency [ fhir:v "USD" ]
     ]
  ] ) ; # 
  fhir:formCode [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/forms-codes"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/forms-codes>
       ] ;
       fhir:code [ fhir:v "2" ]
     ] )
  ] ; # 
  fhir:processNote ( [
     fhir:number [ fhir:v "1"^^xsd:positiveInteger ] ;
     fhir:type [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://hl7.org/fhir/note-type"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/note-type>
         ] ;
         fhir:code [ fhir:v "display" ]
       ] )
     ] ;
     fhir:text [ fhir:v "Invalid claim" ] ;
     fhir:language [
       fhir:coding ( [
         fhir:system [
           fhir:v "urn:ietf:bcp:47"^^xsd:anyURI ;
           fhir:l <urn:ietf:bcp:47>
         ] ;
         fhir:code [ fhir:v "en-CA" ]
       ] )
     ]
  ] ) . # 

<http://hl7.org/fhir/Patient/pat1> a fhir:Patient .

<http://hl7.org/fhir/Practitioner/1> a fhir:Practitioner .

<http://hl7.org/fhir/Organization/2> a fhir:Organization .

<http://hl7.org/fhir/MedicationRequest/medrx002> a fhir:MedicationRequest .

<http://hl7.org/fhir/MedicationRequest/medrx0301> a fhir:MedicationRequest .

<http://hl7.org/fhir/Location/1> a fhir:Location .

<http://hl7.org/fhir/Claim/100150> a fhir:Claim .

<http://hl7.org/fhir/ClaimResponse/R3500> a fhir:ClaimResponse .

<http://hl7.org/fhir/Device/example> a fhir:Device .

<http://hl7.org/fhir/Coverage/9876B1> a fhir:Coverage .

<http://hl7.org/fhir/Location/ph> a fhir:Location .

# -------------------------------------------------------------------------------------

