R6 Ballot (2nd Draft)

Publish-box (todo)

Example AuditEvent/example-advanced-create (Turtle)

Security Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Device, Patient, Practitioner

Raw Turtle (+ also see Turtle/RDF Format Specification)

An AuditEvent recording a create of a List resource for a given Patient, Encounter, and CarePlan.

@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

[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: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:code [ fhir:v "rest" ] ;
       fhir:display [ fhir:v "Restful Operation" ]
     ] )
  ] ) ; # 
  fhir:action [ fhir:v "C"] ; # 
  fhir:severity [ fhir:v "informational"] ; # 
  fhir:occurred [ 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: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:code [ fhir:v "TREAT" ]
     ] )
  ] ) ; # 
  fhir:basedOn ( [
     fhir:reference [ fhir:v "CarePlan/example" ]
  ] ) ; # 
  fhir:patient [
     fhir:reference [ fhir:v "Patient/example" ]
  ] ; # 
  fhir:encounter [
     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: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"^^xsd:boolean ] ;
     fhir:network [ fhir:v "urn:ipv6:2001:0db8:85a3:0000:0000:8a2e:0370:7334"^^xsd:anyURI ]
  ] [
     fhir:type [
       fhir:coding ( [
         fhir:system [ fhir:v "http://dicom.nema.org/resources/ontology/DCM"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "110152" ] ;
         fhir:display [ fhir:v "Destination Role ID" ]
       ] )
     ] ;
     fhir:who [
       fhir:reference [ fhir:v "Device/example" ]
     ] ;
     fhir:requestor [ fhir:v "false"^^xsd:boolean ] ;
     fhir:network [ fhir:v "http://server.example.com/fhir"^^xsd:anyURI ]
  ] [
     fhir:type [
       fhir:coding ( [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ParticipationType"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "INF" ] ;
         fhir:display [ fhir:v "Informant" ]
       ] )
     ] ;
     fhir:who [
       fhir:display [ fhir:v "Betty Jones" ]
     ] ;
     fhir:requestor [ fhir:v "true"^^xsd:boolean ]
  ] ) ; # 
  fhir:source [
     fhir:site [
       fhir:identifier [
         fhir:value [ fhir:v "http://server.example.com" ]
       ]
     ] ;
     fhir:observer [
       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:code [ fhir:v "4" ] ;
         fhir:display [ fhir:v "Application Server" ]
       ] )
     ] )
  ] ; # 
  fhir:entity ( [
     fhir:what [
       fhir:reference [ fhir:v "List/example" ]
     ] ;
     fhir:role [
       fhir:coding ( [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/object-role"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "4" ] ;
         fhir:display [ fhir:v "Domain Resource" ]
       ] )
     ]
  ] )] . # 

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


Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.