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

#   could include an .entity of the patient if possible  

<http://hl7.org/fhir/AuditEvent/example-search> a fhir:AuditEvent ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example-search"] ; # 
  fhir:type [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/audit-event-type"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/audit-event-type>
       ] ;
       fhir:code [ fhir:v "rest" ] ;
       fhir:display [ fhir:v "Restful Operation" ]
     ] )
  ] ; # 
  fhir:subtype ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://hl7.org/fhir/restful-interaction"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/restful-interaction>
       ] ;
       fhir:code [ fhir:v "search" ] ;
       fhir:display [ fhir:v "search" ]
     ] )
  ] ) ; # 
  fhir:action [ fhir:v "E"] ; # 
  fhir:recorded [ fhir:v "2015-08-22T23: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://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" ]
       ] )
     ] ;
     fhir:who [
       fhir:identifier [
         fhir:value [ fhir:v "95" ]
       ] ;
       fhir:display [ fhir:v "Grahame Grieve" ]
     ] ;
     fhir:requestor [ fhir:v true ]
  ] [
     fhir:extension ( [
       fhir:url [
         fhir:v "http://hl7.org/fhir/StructureDefinition/auditevent-AlternativeUserID"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/StructureDefinition/auditevent-AlternativeUserID>
       ] ;
       fhir:value [
         a fhir:Identifier ;
         fhir:type [
           fhir:text [ fhir:v "process ID" ]
         ] ;
         fhir:value [ fhir:v "6580" ]
       ]
     ] ) ; #   Source active participant, the software making the . AlternativeUserId - Process ID  
     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" ]
       ] )
     ] ;
     fhir:who [
       fhir:identifier [
         fhir:system [
           fhir:v "urn:oid:2.16.840.1.113883.4.2"^^xsd:anyURI ;
           fhir:l <urn:oid:2.16.840.1.113883.4.2>
         ] ;
         fhir:value [ fhir:v "2.16.840.1.113883.4.2" ]
       ]
     ] ;
     fhir:requestor [ fhir:v false ] ;
     fhir:network [
       a fhir:String ;
       fhir:v "Workstation1.ehr.familyclinic.com"
     ]
  ] ) ; # 
  fhir:source [
     fhir:observer [
       fhir:display [ fhir:v "hl7connect.healthintersections.com.au" ]
     ] ;
     fhir:type ( [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/security-source-type"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/security-source-type>
         ] ;
         fhir:code [ fhir:v "3" ] ;
         fhir:display [ fhir:v "Web Server" ]
       ] )
     ] )
  ] ; # 
  fhir:entity ( [
     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 "24" ] ;
         fhir:display [ fhir:v "Query" ]
       ] )
     ] ; #   HTTP GET encoded in base64Binary  ,   orignal example encoded here is  ,   \"http:\/\/fhir-dev.healthintersections.com.au\/open\/Encounter?participant=13\"  
     fhir:description [ fhir:v "http://fhir-dev.healthintersections.com.au/open/Encounter?participant=13" ] ;
     fhir:query [ fhir:v "aHR0cDovL2ZoaXItZGV2LmhlYWx0aGludGVyc2VjdGlvbnMuY29tLmF1L29wZW4vRW5jb3VudGVyP3BhcnRpY2lwYW50PTEz"^^xsd:base64Binary ]
  ] ) . # 

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

