@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 sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.org/fhir/CarePlan/f001> a fhir:CarePlan ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "f001"] ; # 
  fhir:contained ( [
     a fhir:CareTeam ;
     fhir:id [ fhir:v "careteam" ] ;
     fhir:participant ( [
       fhir:member [
         fhir:l <http://hl7.org/fhir/Practitioner/f002> ;
         fhir:reference [ fhir:v "Practitioner/f002" ] ;
         fhir:display [ fhir:v "P. Voigt" ]
       ]
     ] )
  ] [
     a fhir:Goal ;
     fhir:id [ fhir:v "goal" ] ;
     fhir:lifecycleStatus [ fhir:v "completed" ] ;
     fhir:achievementStatus [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/goal-achievement"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/goal-achievement>
         ] ;
         fhir:code [ fhir:v "achieved" ] ;
         fhir:display [ fhir:v "Achieved" ]
       ] ) ;
       fhir:text [ fhir:v "Achieved" ]
     ] ;
     fhir:description [
       fhir:text [ fhir:v "recovery surgery on heart of patient" ]
     ] ;
     fhir:subject [
       fhir:l <http://hl7.org/fhir/Patient/f001> ;
       fhir:reference [ fhir:v "Patient/f001" ] ;
       fhir:display [ fhir:v "P. van de Heuvel" ]
     ] ;
     fhir:note ( [
       fhir:text [ fhir:v "goal accomplished without complications" ]
     ] )
  ] [
     a fhir:ServiceRequest ;
     fhir:id [ fhir:v "activity" ] ;
     fhir:status [ fhir:v "completed" ] ;
     fhir:intent [ fhir:v "order" ] ;
     fhir:code [
       fhir:concept [
         fhir:coding ( [
           a sct:64915003 ;
           fhir:system [
             fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
             fhir:l <http://snomed.info/sct>
           ] ;
           fhir:code [ fhir:v "64915003" ] ;
           fhir:display [ fhir:v "Operation on heart" ]
         ] )
       ]
     ] ;
     fhir:subject [
       fhir:l <http://hl7.org/fhir/Patient/f001> ;
       fhir:reference [ fhir:v "Patient/f001" ] ;
       fhir:display [ fhir:v "P. van de Heuvel" ]
     ] ;
     fhir:occurrence [
       a fhir:DateTime ;
       fhir:v "2011-06-27T09:30:10+01:00"^^xsd:dateTime
     ] ;
     fhir:performer ( [
       fhir:l <http://hl7.org/fhir/Practitioner/f002> ;
       fhir:reference [ fhir:v "Practitioner/f002" ] ;
       fhir:display [ fhir:v "P. Voigt" ]
     ] )
  ] ) ; # 
  fhir:identifier ( [
     fhir:use [ fhir:v "official" ] ;
     fhir:system [
       fhir:v "http://www.bmc.nl/zorgportal/identifiers/careplans"^^xsd:anyURI ;
       fhir:l <http://www.bmc.nl/zorgportal/identifiers/careplans>
     ] ; #   urn:oid:2.16.840.1.113883.4.642.1.36  
     fhir:value [ fhir:v "CP2903" ]
  ] ) ; # 
  fhir:status [ fhir:v "completed"] ; # 
  fhir:intent [ fhir:v "plan"] ; # 
  fhir:subject [
     fhir:l <http://hl7.org/fhir/Patient/f001> ;
     fhir:reference [ fhir:v "Patient/f001" ] ;
     fhir:display [ fhir:v "P. van de Heuvel" ]
  ] ; # 
  fhir:period [
     fhir:start [ fhir:v "2011-06-26"^^xsd:date ] ;
     fhir:end [ fhir:v "2011-06-27"^^xsd:date ]
  ] ; # 
  fhir:careTeam ( [
     fhir:l <#careteam> ;
     fhir:reference [ fhir:v "#careteam" ]
  ] ) ; # 
  fhir:addresses ( [
     fhir:reference [
       fhir:l <http://hl7.org/fhir/Condition/f201> ;
       fhir:reference [ fhir:v "Condition/f201" ] ;
       fhir:display [ fhir:v "?????" ] #  TODO Correcte referentie 
     ]
  ] ) ; # 
  fhir:goal ( [
     fhir:l <#goal> ;
     fhir:reference [ fhir:v "#goal" ]
  ] ) ; # 
  fhir:activity ( [
     fhir:plannedActivityReference [
       fhir:l <#activity> ;
       fhir:reference [ fhir:v "#activity" ]
     ]
  ] ) . #   moved to contained
#	<plannedActivityDetail>
#      <kind value="ServiceRequest"/>
#      <code>
#        <coding>
#          <system value="http://snomed.info/sct"/>
#          <code value="64915003"/>
#          <display value="Operation on heart"/>
#        </coding>
#      </code>
#      <status value="completed"/>
#      <doNotPerform value="true"/>
#      <scheduledString value="2011-06-27T09:30:10+01:00"/>
#      <performer>
#        <reference value="Practitioner/f002"/>
#        <display value="P. Voigt"/>
#      </performer>
#    </plannedActivityDetail>
#	 

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

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

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

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

