Basic Audit Log Patterns (BALP)
1.1.0 - Trial-Implementation International flag

This page is part of the IHE Basic Audit Log Patterns (BALP) (v1.1.0: Trial Implementation) based on FHIR R4. This is the current published version. For a full list of available versions, see the Directory of published versions

: Server - Audit Example of a basic Query (GET) - TTL Representation

Raw ttl | Download


@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 "ex-auditBasicQueryGetNoPatient"];
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://profiles.ihe.net/ITI/BALP/StructureDefinition/IHE.BasicAudit.Query";
       fhir:index 0;
       fhir:link <https://profiles.ihe.net/ITI/BALP/StructureDefinition/IHE.BasicAudit.Query>     ];
     fhir:Meta.security [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/v3-ActReason" ];
       fhir:Coding.code [ fhir:value "HTEST" ]     ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></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 \"ex-auditBasicQueryGetNoPatient\" </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-IHE.BasicAudit.Query.html\">Basic AuditEvent for a successful Query</a></p><p style=\"margin-bottom: 0px\">Security Labels: <span title=\"{http://terminology.hl7.org/CodeSystem/v3-ActReason http://terminology.hl7.org/CodeSystem/v3-ActReason}\">http://terminology.hl7.org/CodeSystem/v3-ActReason</span></p></div><p><b>type</b>: Restful Operation (Details: http://terminology.hl7.org/CodeSystem/audit-event-type code rest = 'RESTful Operation', stated as 'Restful Operation')</p><p><b>subtype</b>: search (Details: http://hl7.org/fhir/restful-interaction code search = 'search', stated as 'search')</p><p><b>action</b>: E</p><p><b>recorded</b>: Apr 29, 2020 4:49:00 AM</p><p><b>outcome</b>: 0</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://terminology.hl7.org/3.1.0/CodeSystem-v3-DCM.html\">DICOM</a>#110153)</span></p><p><b>who</b>: <span>: myMachine.example.org</span></p><p><b>requestor</b>: false</p><h3>Networks</h3><table class=\"grid\"><tr><td>-</td><td><b>Address</b></td><td><b>Type</b></td></tr><tr><td>*</td><td>2001:0db8:85a3:0000:0000:8a2e:0370:7334</td><td>2</td></tr></table></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://terminology.hl7.org/3.1.0/CodeSystem-v3-DCM.html\">DICOM</a>#110152)</span></p><p><b>who</b>: <a href=\"Device-ex-device.html\">Device/ex-device</a></p><p><b>requestor</b>: false</p><h3>Networks</h3><table class=\"grid\"><tr><td>-</td><td><b>Address</b></td><td><b>Type</b></td></tr><tr><td>*</td><td>http://server.example.com/fhir</td><td>5</td></tr></table></blockquote><blockquote><p><b>agent</b></p><p><b>type</b>: information recipient <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>#IRCP)</span></p><p><b>who</b>: <span>: John Smith</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>server.example.com</td><td><a href=\"Device-ex-device.html\">Device/ex-device</a></td><td>Application Server (Details: http://terminology.hl7.org/CodeSystem/security-source-type code 4 = 'Application Server', stated as 'Application Server')</td></tr></table><blockquote><p><b>entity</b></p><p><b>type</b>: System Object (Details: http://terminology.hl7.org/CodeSystem/audit-entity-type code 2 = 'System Object', stated as 'System Object')</p><p><b>role</b>: Query (Details: http://terminology.hl7.org/CodeSystem/object-role code 24 = 'Query', stated as 'Query')</p><p><b>description</b>: GET test.fhir.org/r4/MeasureReport?_lastUpdated=gt2020-11-06T21:52:30.300Z&amp;_sort=_lastUpdated&amp;_count=10\nAccept: application/fhir+json; fhirVersion=4.0\nX-Request-Id: 4a8dca3c-2205-4dc7-90e1-db877781d7cc</p><p><b>query</b>: R0VUIHRlc3QuZmhpci5vcmcvcjQvTWVhc3VyZVJlcG9ydD9fbGFzdFVwZGF0ZWQ9Z3QyMDIwLTExLTA2VDIxOjUyOjMwLjMwMFomX3NvcnQ9X2xhc3RVcGRhdGVkJl9jb3VudD0xMApBY2NlcHQ6IGFwcGxpY2F0aW9uL2ZoaXIranNvbjsgZmhpclZlcnNpb249NC4wClgtUmVxdWVzdC1JZDogNGE4ZGNhM2MtMjIwNS00ZGM3LTkwZTEtZGI4Nzc3ODFkN2Nj</p></blockquote><blockquote><p><b>entity</b></p><p><b>what</b>: <span></span></p><p><b>type</b>: transport specific unique identifier where http X-Request-Id is used (Details: https://profiles.ihe.net/ITI/BALP/CodeSystem/BasicAuditEntityType code XrequestId = 'transport specific unique identifier where http X-Request-Id is used', stated as 'null')</p></blockquote></div>"
  ];
  fhir:AuditEvent.type [
     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.subtype [
     fhir:index 0;
     fhir:Coding.system [ fhir:value "http://hl7.org/fhir/restful-interaction" ];
     fhir:Coding.code [ fhir:value "search" ];
     fhir:Coding.display [ fhir:value "search" ]
  ];
  fhir:AuditEvent.action [ fhir:value "E"];
  fhir:AuditEvent.recorded [ fhir:value "2020-04-29T09:49:00.000Z"^^xsd:dateTime];
  fhir:AuditEvent.outcome [ fhir:value "0"];
  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.network [
       fhir:AuditEvent.agent.network.address [ fhir:value "2001:0db8:85a3:0000:0000:8a2e:0370:7334" ];
       fhir:AuditEvent.agent.network.type [ fhir:value "2" ]     ]
  ], [
     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/ex-device" ]     ];
     fhir:AuditEvent.agent.requestor [ fhir:value "false"^^xsd:boolean ];
     fhir:AuditEvent.agent.network [
       fhir:AuditEvent.agent.network.address [ fhir:value "http://server.example.com/fhir" ];
       fhir:AuditEvent.agent.network.type [ fhir:value "5" ]     ]
  ], [
     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 "IRCP" ];
         fhir:Coding.display [ fhir:value "information recipient" ]       ]     ];
     fhir:AuditEvent.agent.who [
       fhir:Reference.display [ fhir:value "John Smith" ]     ];
     fhir:AuditEvent.agent.requestor [ fhir:value "true"^^xsd:boolean ]
  ];
  fhir:AuditEvent.source [
     fhir:AuditEvent.source.site [ fhir:value "server.example.com" ];
     fhir:AuditEvent.source.observer [
       fhir:Reference.reference [ fhir:value "Device/ex-device" ]     ];
     fhir:AuditEvent.source.type [
       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.type [
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/audit-entity-type" ];
       fhir:Coding.code [ fhir:value "2" ];
       fhir:Coding.display [ fhir:value "System Object" ]     ];
     fhir:AuditEvent.entity.role [
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/object-role" ];
       fhir:Coding.code [ fhir:value "24" ];
       fhir:Coding.display [ fhir:value "Query" ]     ];
     fhir:AuditEvent.entity.description [ fhir:value "GET test.fhir.org/r4/MeasureReport?_lastUpdated=gt2020-11-06T21:52:30.300Z&_sort=_lastUpdated&_count=10\nAccept: application/fhir+json; fhirVersion=4.0\nX-Request-Id: 4a8dca3c-2205-4dc7-90e1-db877781d7cc" ];
     fhir:AuditEvent.entity.query [ fhir:value "R0VUIHRlc3QuZmhpci5vcmcvcjQvTWVhc3VyZVJlcG9ydD9fbGFzdFVwZGF0ZWQ9Z3QyMDIwLTExLTA2VDIxOjUyOjMwLjMwMFomX3NvcnQ9X2xhc3RVcGRhdGVkJl9jb3VudD0xMApBY2NlcHQ6IGFwcGxpY2F0aW9uL2ZoaXIranNvbjsgZmhpclZlcnNpb249NC4wClgtUmVxdWVzdC1JZDogNGE4ZGNhM2MtMjIwNS00ZGM3LTkwZTEtZGI4Nzc3ODFkN2Nj"^^xsd:base64Binary ]
  ], [
     fhir:index 1;
     fhir:AuditEvent.entity.what [
       fhir:Reference.identifier [
         fhir:Identifier.value [ fhir:value "4a8dca3c-2205-4dc7-90e1-db877781d7cc" ]       ]     ];
     fhir:AuditEvent.entity.type [
       fhir:Coding.system [ fhir:value "https://profiles.ihe.net/ITI/BALP/CodeSystem/BasicAuditEntityType" ];
       fhir:Coding.code [ fhir:value "XrequestId" ]     ]
  ].

# - ontology header ------------------------------------------------------------

 a owl:Ontology;
  owl:imports fhir:fhir.ttl.