@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <https://loinc.org/rdf/> .
@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/DocumentReference/example-composition> a fhir:DocumentReference ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example-composition"] ; # 
  fhir:meta [
     fhir:security ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActReason"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/v3-ActReason>
       ] ;
       fhir:code [ fhir:v "HTEST" ]
     ] )
  ] ; # 
  fhir:identifier ( [
     fhir:system [
       fhir:v "http://healthintersections.com.au/test"^^xsd:anyURI ;
       fhir:l <http://healthintersections.com.au/test>
     ] ;
     fhir:value [ fhir:v "1" ]
  ] ) ; # 
  fhir:status [ fhir:v "current"] ; # 
  fhir:type [
     fhir:coding ( [
       a loinc:11488-4 ;
       fhir:system [
         fhir:v "http://loinc.org"^^xsd:anyURI ;
         fhir:l <http://loinc.org>
       ] ;
       fhir:code [ fhir:v "11488-4" ] ;
       fhir:display [ fhir:v "Consult note" ]
     ] )
  ] ; # 
  fhir:category ( [
     fhir:coding ( [
       a loinc:LP183761-8 ;
       fhir:system [
         fhir:v "http://loinc.org"^^xsd:anyURI ;
         fhir:l <http://loinc.org>
       ] ;
       fhir:code [ fhir:v "LP183761-8" ] ;
       fhir:display [ fhir:v "Report" ]
     ] )
  ] ) ; # 
  fhir:subject [
     fhir:l <http://hl7.org/fhir/Patient/xcda> ;
     fhir:reference [ fhir:v "Patient/xcda" ] ;
     fhir:display [ fhir:v "Henry Levin the 7th" ]
  ] ; # 
  fhir:context ( [
     fhir:l <http://hl7.org/fhir/Encounter/xcda> ;
     fhir:reference [ fhir:v "Encounter/xcda" ]
  ] ) ; # 
  fhir:event ( [
     fhir:concept [
       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 "HEALTHREC" ] ;
         fhir:display [ fhir:v "health record" ]
       ] )
     ]
  ] [
     fhir:reference [
       fhir:l <http://hl7.org/fhir/Observation/example> ;
       fhir:reference [ fhir:v "Observation/example" ]
     ]
  ] ) ; # 
  fhir:period [
     fhir:start [ fhir:v "2010-07-18"^^xsd:date ] ;
     fhir:end [ fhir:v "2012-11-12"^^xsd:date ]
  ] ; # 
  fhir:date [ fhir:v "2012-01-04T09:10:14Z"^^xsd:dateTime] ; # 
  fhir:author ( [
     fhir:l <http://hl7.org/fhir/Practitioner/xcda-author> ;
     fhir:reference [ fhir:v "Practitioner/xcda-author" ] ;
     fhir:display [ fhir:v "Harold Hippocrates, MD" ]
  ] ) ; # 
  fhir:attester ( [
     fhir:mode [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://hl7.org/fhir/composition-attestation-mode"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/composition-attestation-mode>
         ] ;
         fhir:code [ fhir:v "professional" ]
       ] )
     ] ;
     fhir:party [
       fhir:l <http://hl7.org/fhir/Practitioner/xcda-author> ;
       fhir:reference [ fhir:v "Practitioner/xcda-author" ] ;
       fhir:display [ fhir:v "Harold Hippocrates, MD" ]
     ]
  ] ) ; # 
  fhir:relatesTo ( [
     fhir:code [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/document-relationship-type"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/document-relationship-type>
         ] ;
         fhir:code [ fhir:v "replaces" ]
       ] )
     ] ;
     fhir:target [
       fhir:l <http://hl7.org/fhir/DocumentReference/old-example> ;
       fhir:reference [ fhir:v "DocumentReference/old-example" ]
     ]
  ] ) ; # 
  fhir:description [ fhir:v "Example of a Comprehensive DocumentReference resource. This is fully filled for all mandatory elements and all optional elements."] ; # 
  fhir:content ( [
     fhir:attachment [
       fhir:url [
         fhir:v "Composition/example"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/Composition/example>
       ]
     ]
  ] ) . # 

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

<http://hl7.org/fhir/Encounter/xcda> a fhir:Encounter .

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

<http://hl7.org/fhir/Practitioner/xcda-author> a fhir:Practitioner .

<http://hl7.org/fhir/DocumentReference/old-example> a fhir:DocumentReference .

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

