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

#   TODO need to make a new style entity with entity.agent for this media
#		<media>
#			<coding>
#				<system value="http://dicom.nema.org/resources/ontology/DCM"/>
#				<code value="110033"/>
#				<display value="DVD"/>
#			</coding>
#		</media>
#   

<http://hl7.org/fhir/AuditEvent/example-media> a fhir:AuditEvent ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example-media"] ; # 
  fhir:type [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://dicom.nema.org/resources/ontology/DCM"^^xsd:anyURI ;
         fhir:l <http://dicom.nema.org/resources/ontology/DCM>
       ] ;
       fhir:code [ fhir:v "110106" ] ;
       fhir:display [ fhir:v "Export" ]
     ] )
  ] ; # 
  fhir:subtype ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "urn:ihe:event-type-code"^^xsd:anyURI ;
         fhir:l <urn:ihe:event-type-code>
       ] ;
       fhir:code [ fhir:v "ITI-32" ] ;
       fhir:display [ fhir:v "Distribute Document Set on Media" ]
     ] )
  ] ) ; # 
  fhir:action [ fhir:v "R"] ; # 
  fhir:recorded [ fhir:v "2015-08-27T23:42:24Z"^^xsd:dateTime] ; # 
  fhir:outcome [
     fhir:code [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/audit-event-outcome"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/audit-event-outcome>
       ] ;
       fhir:code [ fhir:v "0" ] ;
       fhir:display [ fhir:v "Success" ]
     ]
  ] ; # 
  fhir:agent ( [
     fhir:type [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://dicom.nema.org/resources/ontology/DCM"^^xsd:anyURI ;
           fhir:l <http://dicom.nema.org/resources/ontology/DCM>
         ] ;
         fhir:code [ fhir:v "110153" ] ;
         fhir:display [ fhir:v "Source Role ID" ]
       ] )
     ] ; #   Source active participant, the software making the PIX query\n  UserId - The identity of the Patient Identifier Cross-reference Consumer Actor facility and sending application from the HL7 message; \n  concatenated together, separated by the | character. \n  AlternativeUserId - Process ID\n   
     fhir:who [
       fhir:display [ fhir:v "ExportToMedia.app" ]
     ] ;
     fhir:requestor [ fhir:v false ]
  ] [
     fhir:type [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/extra-security-role-type"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/extra-security-role-type>
         ] ;
         fhir:code [ fhir:v "humanuser" ] ;
         fhir:display [ fhir:v "human user" ]
       ] )
     ] ; #    The Human using the software, if known   
     fhir:who [
       fhir:identifier [
         fhir:value [ fhir:v "95" ]
       ] ;
       fhir:display [ fhir:v "Grahame Grieve" ]
     ] ;
     fhir:requestor [ fhir:v true ]
  ] [
     fhir:type [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://dicom.nema.org/resources/ontology/DCM"^^xsd:anyURI ;
           fhir:l <http://dicom.nema.org/resources/ontology/DCM>
         ] ;
         fhir:code [ fhir:v "110154" ] ;
         fhir:display [ fhir:v "Destination Media" ]
       ] )
     ] ; #    The media exported onto   
     fhir:who [
       fhir:display [ fhir:v "Media title: Hello World" ]
     ] ;
     fhir:requestor [ fhir:v false ]
  ] ) ; # 
  fhir:source [
     fhir:observer [
       fhir:identifier [
         fhir:value [ fhir:v "hl7connect.healthintersections.com.au" ]
       ] ;
       fhir:display [ fhir:v "Cloud" ]
     ]
  ] ; # 
  fhir:entity ( [
     fhir:what [
       fhir:identifier [
         fhir:value [ fhir:v "e3cdfc81a0d24bd^^^&2.16.840.1.113883.4.2&ISO" ]
       ]
     ] ; #  \n  The Patient\n   
     fhir:role [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/object-role"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/object-role>
         ] ;
         fhir:code [ fhir:v "1" ] ;
         fhir:display [ fhir:v "Patient" ]
       ] )
     ]
  ] [
     fhir:what [
       fhir:identifier [
         fhir:type [
           fhir:coding ( [
             fhir:system [
               fhir:v "urn:uuid:a54d6aa5-d40d-43f9-88c5-b4633d873bdd"^^xsd:anyURI ;
               fhir:l <urn:uuid:a54d6aa5-d40d-43f9-88c5-b4633d873bdd>
             ] ;
             fhir:code [ fhir:v "IHE XDS Metadata" ] ;
             fhir:display [ fhir:v "submission set classificationNode" ]
           ] )
         ] ;
         fhir:value [ fhir:v "e3cdfc81a0d24bd^^^&2.16.840.1.113883.4.2&ISO" ]
       ]
     ] ; #   The SubmissionSet identifier  
     fhir:role [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/object-role"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/object-role>
         ] ;
         fhir:code [ fhir:v "20" ] ;
         fhir:display [ fhir:v "Job" ]
       ] )
     ]
  ] [
     fhir:what [
       fhir:l <http://hl7.org/fhir/DocumentReference/example> ;
       fhir:reference [ fhir:v "DocumentReference/example" ]
     ] #   The Document Manifest exported  
  ] ) . # 

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

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

