@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/EpisodeOfCare/example> a fhir:EpisodeOfCare ;
  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\">\n      HACC Program for Peter James Chalmers at HL7 Healthcare 15 Sept 2014 - current<br/>\n			was on leave from 22 Sept - 24 Sept while in respite care\n    </div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:identifier ( [
     fhir:system [
       fhir:v "http://example.org/sampleepisodeofcare-identifier"^^xsd:anyURI ;
       fhir:l <http://example.org/sampleepisodeofcare-identifier>
     ] ;
     fhir:value [ fhir:v "123" ]
  ] ) ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:statusHistory ( [
     fhir:status [ fhir:v "planned" ] ;
     fhir:period [
       fhir:start [ fhir:v "2014-09-01"^^xsd:date ] ;
       fhir:end [ fhir:v "2014-09-14"^^xsd:date ]
     ]
  ] [
     fhir:status [ fhir:v "active" ] ;
     fhir:period [
       fhir:start [ fhir:v "2014-09-15"^^xsd:date ] ;
       fhir:end [ fhir:v "2014-09-21"^^xsd:date ]
     ]
  ] [
     fhir:status [ fhir:v "onhold" ] ;
     fhir:period [
       fhir:start [ fhir:v "2014-09-22"^^xsd:date ] ;
       fhir:end [ fhir:v "2014-09-24"^^xsd:date ]
     ]
  ] [
     fhir:status [ fhir:v "active" ] ;
     fhir:period [
       fhir:start [ fhir:v "2014-09-25"^^xsd:date ]
     ]
  ] ) ; # 
  fhir:type ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/episodeofcare-type"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/episodeofcare-type>
       ] ;
       fhir:code [ fhir:v "hacc" ] ;
       fhir:display [ fhir:v "Home and Community Care" ]
     ] )
  ] ) ; # 
  fhir:diagnosis ( [
     fhir:condition ( [
       fhir:reference [
         fhir:l <http://hl7.org/fhir/Condition/stroke> ;
         fhir:reference [ fhir:v "Condition/stroke" ]
       ]
     ] ) ;
     fhir:use ( [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/diagnosis-role"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/diagnosis-role>
         ] ;
         fhir:code [ fhir:v "CC" ] ;
         fhir:display [ fhir:v "Chief complaint" ]
       ] )
     ] )
  ] ) ; # 
  fhir:subject [
     fhir:l <http://hl7.org/fhir/Patient/example> ;
     fhir:reference [ fhir:v "Patient/example" ]
  ] ; # 
  fhir:managingOrganization [
     fhir:l <http://hl7.org/fhir/Organization/hl7> ;
     fhir:reference [ fhir:v "Organization/hl7" ]
  ] ; # 
  fhir:period [
     fhir:start [ fhir:v "2014-09-01"^^xsd:date ]
  ] ; # 
  fhir:referralRequest ( [
     fhir:display [ fhir:v "Referral from Example Aged Care Services" ]
  ] ) ; # 
  fhir:careManager [
     fhir:l <http://hl7.org/fhir/Practitioner/f204> ;
     fhir:reference [ fhir:v "Practitioner/f204" ] ;
     fhir:display [ fhir:v "Carla Espinosa" ]
  ] ; # 
  fhir:careTeam ( [
     fhir:l <http://hl7.org/fhir/CareTeam/example> ;
     fhir:reference [ fhir:v "CareTeam/example" ] ;
     fhir:display [ fhir:v "example care team" ]
  ] ) ; # 
  fhir:account ( [
     fhir:l <http://hl7.org/fhir/Account/example> ;
     fhir:reference [ fhir:v "Account/example" ] ;
     fhir:display [ fhir:v "example account" ]
  ] ) . # 

<http://hl7.org/fhir/Condition/stroke> a fhir:Condition .

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

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

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

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

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

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

