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

<http://hl7.org/fhir/AuditEvent/example-advanced-create> a fhir:AuditEvent ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example-advanced-create"] ; # 
  fhir:type [
     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 "create" ] ;
       fhir:display [ fhir:v "create" ]
     ] )
  ] ; #   to include elements not typically populated, but for which there are query parameters  ,   derived off of example in IHE.BALP IG  
  fhir:subtype ( [
     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:action [ fhir:v "C"] ; # 
  fhir:severity [ fhir:v "informational"] ; # 
  fhir:occurred [
     a fhir:DateTime ;
     fhir:v "2020-04-29T09:49:00.000Z"^^xsd:dateTime
  ] ; # 
  fhir:recorded [ fhir:v "2020-04-29T09:49:00.000Z"^^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:authorization ( [
     fhir:coding ( [
       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 "TREAT" ]
     ] )
  ] ) ; # 
  fhir:basedOn ( [
     fhir:l <http://hl7.org/fhir/CarePlan/example> ;
     fhir:reference [ fhir:v "CarePlan/example" ]
  ] ) ; # 
  fhir:patient [
     fhir:l <http://hl7.org/fhir/Patient/example> ;
     fhir:reference [ fhir:v "Patient/example" ]
  ] ; # 
  fhir:encounter [
     fhir:l <http://hl7.org/fhir/Encounter/home> ;
     fhir:reference [ fhir:v "Encounter/home" ]
  ] ; # 
  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" ]
       ] )
     ] ;
     fhir:who [
       fhir:display [ fhir:v "myMachine.example.org" ]
     ] ;
     fhir:requestor [ fhir:v false ] ;
     fhir:network [
       a fhir:Uri ;
       fhir:v "urn:ipv6:2001:0db8:85a3:0000:0000:8a2e:0370:7334"^^xsd:anyURI ;
       fhir:l <urn:ipv6:2001:0db8:85a3:0000:0000:8a2e:0370:7334>
     ]
  ] [
     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 "110152" ] ;
         fhir:display [ fhir:v "Destination Role ID" ]
       ] )
     ] ;
     fhir:who [
       fhir:l <http://hl7.org/fhir/Device/example> ;
       fhir:reference [ fhir:v "Device/example" ]
     ] ;
     fhir:requestor [ fhir:v false ] ;
     fhir:network [
       a fhir:Uri ;
       fhir:v "http://server.example.com/fhir"^^xsd:anyURI ;
       fhir:l <http://server.example.com/fhir>
     ]
  ] [
     fhir:type [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/v3-ParticipationType"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/v3-ParticipationType>
         ] ;
         fhir:code [ fhir:v "INF" ] ;
         fhir:display [ fhir:v "Informant" ]
       ] )
     ] ;
     fhir:who [
       fhir:display [ fhir:v "Betty Jones" ]
     ] ;
     fhir:requestor [ fhir:v true ]
  ] ) ; # 
  fhir:source [
     fhir:site [
       fhir:identifier [
         fhir:value [ fhir:v "http://server.example.com" ]
       ]
     ] ;
     fhir:observer [
       fhir:l <http://hl7.org/fhir/Device/example> ;
       fhir:reference [ fhir:v "Device/example" ]
     ] ;
     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 "4" ] ;
         fhir:display [ fhir:v "Application Server" ]
       ] )
     ] )
  ] ; # 
  fhir:entity ( [
     fhir:what [
       fhir:l <http://hl7.org/fhir/List/example> ;
       fhir:reference [ fhir:v "List/example" ]
     ] ;
     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 "4" ] ;
         fhir:display [ fhir:v "Domain Resource" ]
       ] )
     ]
  ] ) . # 

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

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

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

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

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

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

