HotBeverage FHIR Implementation Guide
1.4.2022 - release International flag

This page is part of the HotBeverage FHIR Implementation Guide (v1.4.2022: Release) based on FHIR R4. . For a full list of available versions, see the Directory of published versions

: Audit Example of a basic brew - 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-auditBasicBrew"];
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://fhir.org/guides/acme/HotBeverage/StructureDefinition/BrewedLog";
       fhir:index 0;
       fhir:link <http://fhir.org/guides/acme/HotBeverage/StructureDefinition/BrewedLog>     ]
  ];
  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-auditBasicBrew\" </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-BrewedLog.html\">The AuditEvent for a successful Brewed Hot Beverage</a></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>: operation (Details: http://hl7.org/fhir/restful-interaction code operation = 'operation', stated as 'operation')</p><p><b>action</b>: E</p><p><b>recorded</b>: 29/04/2020 7:49:00 PM</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>: my phone</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-VertuoNext.html\">Device/VertuoNext</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/coffee</td><td>5</td></tr></table></blockquote><blockquote><p><b>agent</b></p><p><b>type</b>: beneficiary <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>#BEN)</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-VertuoNext.html\">Device/VertuoNext</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>: Job (Details: http://terminology.hl7.org/CodeSystem/object-role code 20 = 'Job', stated as 'Job')</p><blockquote><p><b>detail</b></p><p><b>type</b>: beverageType</p><p><b>value</b>: #ESPRESSO</p></blockquote><blockquote><p><b>detail</b></p><p><b>type</b>: drinkSize</p><p><b>value</b>: #PROG</p></blockquote></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 "operation" ];
     fhir:Coding.display [ fhir:value "operation" ]
  ];
  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 "my phone" ]     ];
     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/VertuoNext" ]     ];
     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/coffee" ];
       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 "BEN" ];
         fhir:Coding.display [ fhir:value "beneficiary" ]       ]     ];
     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/VertuoNext" ]     ];
     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 "20" ];
       fhir:Coding.display [ fhir:value "Job" ]     ];
     fhir:AuditEvent.entity.detail [
       fhir:index 0;
       fhir:AuditEvent.entity.detail.type [ fhir:value "beverageType" ];
       fhir:AuditEvent.entity.detail.valueString [ fhir:value "#ESPRESSO" ]     ], [
       fhir:index 1;
       fhir:AuditEvent.entity.detail.type [ fhir:value "drinkSize" ];
       fhir:AuditEvent.entity.detail.valueString [ fhir:value "#PROG" ]     ]
  ].

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

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