@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 -------------------------------------------------------------------

#  
#source data from http://wiki.ihe.net/index.php?title=Annotated_ProvideAndRegister.b_Transaction.
# 
#  
#	<related>
#		<identifier>
#			<system value="http://example.org/documents"/>
#			<value value="23425234234-9999"/>
#		</identifier>
#		<ref>
#			<reference value="DocumentReference/example"/>
#		</ref>
#	</related>
# 

<http://hl7.org/fhir/List/example-xds> a fhir:List ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example-xds"] ; # 
  fhir:contained ( [
     a fhir:Practitioner ;
     fhir:id [ fhir:v "a1" ] ;
     fhir:name ( [
       fhir:family [ fhir:v "Dopplemeyer" ] ;
       fhir:given ( [ fhir:v "Sherry" ] )
     ] ) ;
     fhir:telecom ( [
       fhir:system [ fhir:v "email" ] ;
       fhir:value [ fhir:v "john.doe@healthcare.example.org" ]
     ] )
  ] ) ; # 
  fhir:identifier ( [
     fhir:type [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://ihe.net/fhir/CodeSystem/identifier-type"^^xsd:anyURI ;
           fhir:l <http://ihe.net/fhir/CodeSystem/identifier-type>
         ] ;
         fhir:code [ fhir:v "master" ]
       ] )
     ] ; #   master identifier  
     fhir:system [
       fhir:v "http://example.org/documents"^^xsd:anyURI ;
       fhir:l <http://example.org/documents>
     ] ;
     fhir:value [ fhir:v "23425234234-2346" ]
  ] [
     fhir:type [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://ihe.net/fhir/CodeSystem/identifier-type"^^xsd:anyURI ;
           fhir:l <http://ihe.net/fhir/CodeSystem/identifier-type>
         ] ;
         fhir:code [ fhir:v "set" ]
       ] )
     ] ; #   set identifier  
     fhir:system [
       fhir:v "http://example.org/documents"^^xsd:anyURI ;
       fhir:l <http://example.org/documents>
     ] ;
     fhir:value [ fhir:v "23425234234-2347" ]
  ] ) ; # 
  fhir:status [ fhir:v "current"] ; # 
  fhir:mode [ fhir:v "working"] ; # 
  fhir:title [ fhir:v "Physical"] ; # 
  fhir:code [
     fhir:text [ fhir:v "History and Physical" ]
  ] ; # 
  fhir:subject ( [
     fhir:l <http://hl7.org/fhir/Patient/xcda> ;
     fhir:reference [ fhir:v "Patient/xcda" ]
  ] ) ; # 
  fhir:date [ fhir:v "2004-12-25T23:50:50-05:00"^^xsd:dateTime] ; # 
  fhir:source [
     fhir:l <#a1> ;
     fhir:reference [ fhir:v "#a1" ]
  ] ; # 
  fhir:entry ( [
     fhir:item [
       fhir:l <http://hl7.org/fhir/DocumentReference/example> ;
       fhir:reference [ fhir:v "DocumentReference/example" ]
     ]
  ] ) . #  
#	<recipient>
#		<reference value="Practitioner/xcda1"/>
#	</recipient>
#	<source value="urn:oid:1.3.6.1.4.1.21367.2009.1.2.1"/>
# 

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

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

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

