@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/ClaimResponse/R3501> a fhir:ClaimResponse ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "R3501"] ; # 
  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 ClaimResponse that demonstrates returning errors</div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:identifier ( [
     fhir:system [
       fhir:v "http://www.BenefitsInc.com/fhir/remittance"^^xsd:anyURI ;
       fhir:l <http://www.BenefitsInc.com/fhir/remittance>
     ] ;
     fhir:value [ fhir:v "R3501" ]
  ] ) ; # 
  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:use [ fhir:v "claim"] ; # 
  fhir:subject [
     fhir:l <http://hl7.org/fhir/Patient/1> ;
     fhir:reference [ fhir:v "Patient/1" ]
  ] ; # 
  fhir:created [ fhir:v "2014-08-16"^^xsd:date] ; # 
  fhir:insurer [
     fhir:identifier [
       fhir:system [
         fhir:v "http://www.jurisdiction.org/insurers"^^xsd:anyURI ;
         fhir:l <http://www.jurisdiction.org/insurers>
       ] ;
       fhir:value [ fhir:v "555123" ]
     ]
  ] ; # 
  fhir:requestor [
     fhir:l <http://hl7.org/fhir/Practitioner/1> ;
     fhir:reference [ fhir:v "Practitioner/1" ]
  ] ; # 
  fhir:request [
     fhir:l <http://hl7.org/fhir/Claim/100156> ;
     fhir:reference [ fhir:v "Claim/100156" ]
  ] ; # 
  fhir:outcome [ fhir:v "error"] ; # 
  fhir:disposition [ fhir:v "Claim could not be processed"] ; # 
  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" ]
       ] )
     ]
  ] ) ; # 
  fhir:communicationRequest ( [
     fhir:l <http://hl7.org/fhir/CommunicationRequest/fm-solicit> ;
     fhir:reference [ fhir:v "CommunicationRequest/fm-solicit" ]
  ] ) ; # 
  fhir:error ( [
     fhir:itemSequence [ fhir:v "3"^^xsd:positiveInteger ] ;
     fhir:detailSequence [ fhir:v "2"^^xsd:positiveInteger ] ;
     fhir:code [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/adjudication-error"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/adjudication-error>
         ] ;
         fhir:code [ fhir:v "a002" ]
       ] )
     ]
  ] ) . #   Detailed error description  

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

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

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

<http://hl7.org/fhir/CommunicationRequest/fm-solicit> a fhir:CommunicationRequest .

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

