@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/Account/example> a fhir:Account ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">HACC Funded Billing for Peter James Chalmers</div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:identifier ( [
     fhir:system [
       fhir:v "urn:oid:0.1.2.3.4.5.6.7"^^xsd:anyURI ;
       fhir:l <urn:oid:0.1.2.3.4.5.6.7>
     ] ;
     fhir:value [ fhir:v "654321" ]
  ] ) ; # 
  fhir:status [ fhir:v "active"] ; # 
  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 "PBILLACCT" ] ;
       fhir:display [ fhir:v "patient billing account" ]
     ] ) ;
     fhir:text [ fhir:v "patient" ]
  ] ; # 
  fhir:name [ fhir:v "HACC Funded Billing for Peter James Chalmers"] ; # 
  fhir:subject ( [
     fhir:l <http://hl7.org/fhir/Patient/example> ;
     fhir:reference [ fhir:v "Patient/example" ] ;
     fhir:display [ fhir:v "Peter James Chalmers" ]
  ] ) ; # 
  fhir:servicePeriod [
     fhir:start [ fhir:v "2016-01-01"^^xsd:date ] ;
     fhir:end [ fhir:v "2016-06-30"^^xsd:date ]
  ] ; # 
  fhir:coverage ( [
     fhir:coverage [
       fhir:l <http://hl7.org/fhir/Coverage/7546D> ;
       fhir:reference [ fhir:v "Coverage/7546D" ]
     ] ;
     fhir:priority [ fhir:v "1"^^xsd:positiveInteger ]
  ] ) ; # 
  fhir:owner [
     fhir:l <http://hl7.org/fhir/Organization/hl7> ;
     fhir:reference [ fhir:v "Organization/hl7" ]
  ] ; # 
  fhir:description [ fhir:v "Hospital charges"] ; # 
  fhir:guarantor ( [
     fhir:account [
       fhir:l <http://hl7.org/fhir/Account/ewg> ;
       fhir:reference [ fhir:v "Account/ewg" ]
     ]
  ] ) . # 

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

<http://hl7.org/fhir/Coverage/7546D> a fhir:Coverage .

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

<http://hl7.org/fhir/Account/ewg> a fhir:Account .

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

