Example AuditEvent/example (Turtle)
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:Resource.id [ fhir:value "example"]; #
fhir:DomainResource.text [
fhir:Narrative.status [ fhir:value "generated" ];
fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">Application Start for under service login "Grahame" (id: Grahame's Test HL7Connect)</div>"
]; #
fhir:AuditEvent.category [
fhir:index 0;
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://dicom.nema.org/resources/ontology/DCM" ];
fhir:Coding.code [ fhir:value "110100" ];
fhir:Coding.display [ fhir:value "Application Activity" ]
]
]; #
fhir:AuditEvent.code [
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://dicom.nema.org/resources/ontology/DCM" ];
fhir:Coding.code [ fhir:value "110120" ];
fhir:Coding.display [ fhir:value "Application Start" ]
]
]; #
fhir:AuditEvent.action [ fhir:value "E"]; #
fhir:AuditEvent.recorded [ fhir:value "2012-10-25T22:04:27+11:00"^^xsd:dateTime]; #
fhir:AuditEvent.outcome [
fhir:AuditEvent.outcome.code [
fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/audit-event-outcome" ];
fhir:Coding.code [ fhir:value "success" ];
fhir:Coding.display [ fhir:value "Success" ]
]
]; #
fhir:AuditEvent.agent [
fhir:index 0;
fhir:AuditEvent.agent.role [
fhir:index 0;
fhir:CodeableConcept.text [ fhir:value "Service User (Logon)" ]
];
fhir:AuditEvent.agent.who [
fhir:Reference.identifier [
fhir:Identifier.value [ fhir:value "Grahame" ]
]
];
fhir:AuditEvent.agent.requestor [ fhir:value "false"^^xsd:boolean ]
], [
fhir:index 1;
fhir:Element.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/auditevent-AlternativeUserID" ];
fhir:Extension.valueIdentifier [
fhir:Identifier.type [
fhir:CodeableConcept.text [ fhir:value "process ID" ]
];
fhir:Identifier.value [ fhir:value "6580" ]
]
]; # Source active participant, the software making the . AlternativeUserId - Process ID
fhir:AuditEvent.agent.who [
fhir:Reference.identifier [
fhir:Identifier.system [ fhir:value "urn:oid:2.16.840.1.113883.4.2" ];
fhir:Identifier.value [ fhir:value "2.16.840.1.113883.4.2" ]
]
];
fhir:AuditEvent.agent.requestor [ fhir:value "false"^^xsd:boolean ];
fhir:AuditEvent.agent.networkString [ fhir:value "Workstation1.ehr.familyclinic.com" ]
]; #
fhir:AuditEvent.source [
fhir:AuditEvent.source.observer [
fhir:Reference.display [ fhir:value "Grahame's Laptop" ]
];
fhir:AuditEvent.source.type [
fhir:index 0;
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://dicom.nema.org/resources/ontology/DCM" ];
fhir:Coding.code [ fhir:value "110122" ];
fhir:Coding.display [ fhir:value "Login" ]
]
]
]; #
fhir:AuditEvent.entity [
fhir:index 0;
fhir:AuditEvent.entity.what [
fhir:Reference.identifier [
fhir:Identifier.type [
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v2-0203" ];
fhir:Coding.code [ fhir:value "SNO" ]
];
fhir:CodeableConcept.text [ fhir:value "Dell Serial Number" ]
];
fhir:Identifier.value [ fhir:value "ABCDEF" ]
]
];
fhir:AuditEvent.entity.role [
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/object-role" ];
fhir:Coding.code [ fhir:value "4" ];
fhir:Coding.display [ fhir:value "Domain Resource" ]
]
]
]] . #
# - ontology header ------------------------------------------------------------
[a owl:Ontology;
owl:imports fhir:fhir.ttl] .
# -------------------------------------------------------------------------------------
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.