Release 5 Ballot

This page is part of the FHIR Specification (v5.0.0-ballot: R5 Ballot - 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

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:Resource.id [ fhir:value "example-advanced-create"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: AuditEvent</b><a name=\"example-advanced-create\"> </a></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource AuditEvent &quot;example-advanced-create&quot; </p></div><p><b>category</b>: <span title=\"  to include elements not typically populated, but for which there are query parameters  &amp;#10;  derived off of example in IHE.BALP IG  \">create <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"codesystem-restful-interaction.html\">FHIR Restful Interactions</a>#create)</span></span></p><p><b>code</b>: Restful Operation <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/3.1.0/CodeSystem-audit-event-type.html\">Audit Event ID</a>#rest)</span></p><p><b>action</b>: C</p><p><b>severity</b>: informational</p><p><b>occurred</b>: 2020-04-29T09:49:00Z</p><p><b>recorded</b>: 29/04/2020 7:49:00 PM</p><h3>Outcomes</h3><table class=\"grid\"><tr><td>-</td><td><b>Code</b></td></tr><tr><td>*</td><td>Success (Details: http://terminology.hl7.org/CodeSystem/audit-event-outcome code success = 'Success', stated as 'Success')</td></tr></table><p><b>authorization</b>: treatment <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/3.1.0/CodeSystem-v3-ActReason.html\">ActReason</a>#TREAT)</span></p><p><b>basedOn</b>: <a href=\"careplan-example.html\">CarePlan/example</a></p><p><b>patient</b>: <a href=\"patient-example.html\">Patient/example</a> &quot;Peter CHALMERS&quot;</p><p><b>encounter</b>: <a href=\"encounter-example-home.html\">Encounter/home</a></p><blockquote><p><b>agent</b></p><p><b>type</b>: Source Role ID <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://dicom.nema.org/resources/ontology/DCM\">DICOM</a>#110153)</span></p><p><b>who</b>: <span>: myMachine.example.org</span></p><p><b>requestor</b>: false</p><p><b>network</b>: <code>urn:ipv6:2001:0db8:85a3:0000:0000:8a2e:0370:7334</code></p></blockquote><blockquote><p><b>agent</b></p><p><b>type</b>: Destination Role ID <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://dicom.nema.org/resources/ontology/DCM\">DICOM</a>#110152)</span></p><p><b>who</b>: <a href=\"device-example.html\">Device/example</a></p><p><b>requestor</b>: false</p><p><b>network</b>: <a href=\"http://server.example.com/fhir\">http://server.example.com/fhir</a></p></blockquote><blockquote><p><b>agent</b></p><p><b>type</b>: Informant <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/3.1.0/CodeSystem-v3-ParticipationType.html\">ParticipationType</a>#INF)</span></p><p><b>who</b>: <span>: Betty Jones</span></p><p><b>requestor</b>: true</p></blockquote><h3>Sources</h3><table class=\"grid\"><tr><td>-</td><td><b>Site</b></td><td><b>Observer</b></td><td><b>Type</b></td></tr><tr><td>*</td><td><span/></td><td><a href=\"device-example.html\">Device/example</a></td><td>Application Server <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/3.1.0/CodeSystem-security-source-type.html\">Audit Event Source Type</a>#4)</span></td></tr></table><h3>Entities</h3><table class=\"grid\"><tr><td>-</td><td><b>What</b></td><td><b>Role</b></td></tr><tr><td>*</td><td><a href=\"list-example.html\">List/example</a></td><td>Domain Resource <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"codesystem-object-role.html\">AuditEventEntityRole</a>#4)</span></td></tr></table></div>"
  ];
  fhir:AuditEvent.category [
     fhir:index 0;
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://hl7.org/fhir/restful-interaction" ];
       fhir:Coding.code [ fhir:value "create" ];
       fhir:Coding.display [ fhir:value "create" ]
     ]
  ];
  fhir:AuditEvent.code [
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/audit-event-type" ];
       fhir:Coding.code [ fhir:value "rest" ];
       fhir:Coding.display [ fhir:value "Restful Operation" ]
     ]
  ];
  fhir:AuditEvent.action [ fhir:value "C"];
  fhir:AuditEvent.severity [ fhir:value "informational"];
  fhir:AuditEvent.occurredDateTime [ fhir:value "2020-04-29T09:49:00.000Z"^^xsd:dateTime];
  fhir:AuditEvent.recorded [ fhir:value "2020-04-29T09:49:00.000Z"^^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.authorization [
     fhir:index 0;
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-ActReason" ];
       fhir:Coding.code [ fhir:value "TREAT" ]
     ]
  ];
  fhir:AuditEvent.basedOn [
     fhir:index 0;
     fhir:Reference.reference [ fhir:value "CarePlan/example" ]
  ];
  fhir:AuditEvent.patient [
     fhir:Reference.reference [ fhir:value "Patient/example" ]
  ];
  fhir:AuditEvent.encounter [
     fhir:Reference.reference [ fhir:value "Encounter/home" ]
  ];
  fhir:AuditEvent.agent [
     fhir:index 0;
     fhir:AuditEvent.agent.type [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://dicom.nema.org/resources/ontology/DCM" ];
         fhir:Coding.code [ fhir:value "110153" ];
         fhir:Coding.display [ fhir:value "Source Role ID" ]
       ]
     ];
     fhir:AuditEvent.agent.who [
       fhir:Reference.display [ fhir:value "myMachine.example.org" ]
     ];
     fhir:AuditEvent.agent.requestor [ fhir:value "false"^^xsd:boolean ];
     fhir:AuditEvent.agent.networkUri [ fhir:value "urn:ipv6:2001:0db8:85a3:0000:0000:8a2e:0370:7334" ]
  ], [
     fhir:index 1;
     fhir:AuditEvent.agent.type [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://dicom.nema.org/resources/ontology/DCM" ];
         fhir:Coding.code [ fhir:value "110152" ];
         fhir:Coding.display [ fhir:value "Destination Role ID" ]
       ]
     ];
     fhir:AuditEvent.agent.who [
       fhir:Reference.reference [ fhir:value "Device/example" ]
     ];
     fhir:AuditEvent.agent.requestor [ fhir:value "false"^^xsd:boolean ];
     fhir:AuditEvent.agent.networkUri [ fhir:value "http://server.example.com/fhir" ]
  ], [
     fhir:index 2;
     fhir:AuditEvent.agent.type [
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-ParticipationType" ];
         fhir:Coding.code [ fhir:value "INF" ];
         fhir:Coding.display [ fhir:value "Informant" ]
       ]
     ];
     fhir:AuditEvent.agent.who [
       fhir:Reference.display [ fhir:value "Betty Jones" ]
     ];
     fhir:AuditEvent.agent.requestor [ fhir:value "true"^^xsd:boolean ]
  ];
  fhir:AuditEvent.source [
     fhir:AuditEvent.source.site [
       fhir:Reference.identifier [
         fhir:Identifier.value [ fhir:value "http://server.example.com" ]
       ]
     ];
     fhir:AuditEvent.source.observer [
       fhir:Reference.reference [ fhir:value "Device/example" ]
     ];
     fhir:AuditEvent.source.type [
       fhir:index 0;
       fhir:CodeableConcept.coding [
         fhir:index 0;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/security-source-type" ];
         fhir:Coding.code [ fhir:value "4" ];
         fhir:Coding.display [ fhir:value "Application Server" ]
       ]
     ]
  ];
  fhir:AuditEvent.entity [
     fhir:index 0;
     fhir:AuditEvent.entity.what [
       fhir:Reference.reference [ fhir:value "List/example" ]
     ];
     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.