R5 Final QA

This page is part of the FHIR Specification (v5.0.0-draft-final: Final QA Preview for R5 - see ballot notes). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3

Example AuditEvent/example (Turtle)

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

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

General AuditEvent Example

@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"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\">Application Start for under service login &quot;Grahame&quot; (id: Grahame's Test HL7Connect)</div>"
  ] ; # 
  fhir:category ( [
     fhir:coding ( [
       fhir:system [ fhir:v "http://dicom.nema.org/resources/ontology/DCM"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "110100" ] ;
       fhir:display [ fhir:v "Application Activity" ]
     ] )
  ] ) ; # 
  fhir:code [
     fhir:coding ( [
       fhir:system [ fhir:v "http://dicom.nema.org/resources/ontology/DCM"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "110120" ] ;
       fhir:display [ fhir:v "Application Start" ]
     ] )
  ] ; # 
  fhir:action [ fhir:v "E"] ; # 
  fhir:recorded [ fhir:v "2012-10-25T22:04:27+11:00"^^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:agent ( [
     fhir:role ( [
       fhir:text [ fhir:v "Service User (Logon)" ]
     ] ) ;
     fhir:who [
       fhir:identifier [
         fhir:value [ fhir:v "Grahame" ]
       ]
     ] ;
     fhir:requestor [ fhir:v "false"^^xsd:boolean ]
  ] [
     fhir:extension ( [
       fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/auditevent-AlternativeUserID"^^xsd:anyURI ] ;
       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:who [
       fhir:identifier [
         fhir:system [ fhir:v "urn:oid:2.16.840.1.113883.4.2"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "2.16.840.1.113883.4.2" ]
       ]
     ] ;
     fhir:requestor [ fhir:v "false"^^xsd:boolean ] ;
     fhir:network [ fhir:v "Workstation1.ehr.familyclinic.com" ]
  ] ) ; # 
  fhir:source [
     fhir:observer [
       fhir:display [ fhir:v "Grahame's Laptop" ]
     ] ;
     fhir:type ( [
       fhir:coding ( [
         fhir:system [ fhir:v "http://dicom.nema.org/resources/ontology/DCM"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "110122" ] ;
         fhir:display [ fhir:v "Login" ]
       ] )
     ] )
  ] ; # 
  fhir:entity ( [
     fhir:what [
       fhir:identifier [
         fhir:type [
           fhir:coding ( [
             fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v2-0203"^^xsd:anyURI ] ;
             fhir:code [ fhir:v "SNO" ]
           ] ) ;
           fhir:text [ fhir:v "Dell Serial Number" ]
         ] ;
         fhir:value [ fhir:v "ABCDEF" ]
       ]
     ] ;
     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.