@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<https://gematik.de/fhir/tiflow-erezept/Bundle/example-searchset-auditevent> a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example-searchset-auditevent"] ; # 
  fhir:type [ fhir:v "searchset"] ; # 
  fhir:total [ fhir:v "1"^^xsd:nonNegativeInteger] ; # 
  fhir:link ( [
     fhir:relation [ fhir:v "self" ] ;
     fhir:url [
       fhir:v "https://erp-ref.zentral.erp.splitdns.ti-dienste.de/AuditEvent?date=ge2025-01-01"^^xsd:anyURI ;
       fhir:l <https://erp-ref.zentral.erp.splitdns.ti-dienste.de/AuditEvent?date=ge2025-01-01>
     ]
  ] ) ; # 
  fhir:entry ( [
     fhir:fullUrl [
       fhir:v "https://erp-ref.zentral.erp.splitdns.ti-dienste.de/AuditEvent/9361863d-fec0-4ba9-8776-7905cf1b0cfa"^^xsd:anyURI ;
       fhir:l <https://erp-ref.zentral.erp.splitdns.ti-dienste.de/AuditEvent/9361863d-fec0-4ba9-8776-7905cf1b0cfa>
     ] ;
     fhir:resource ( <https://erp-ref.zentral.erp.splitdns.ti-dienste.de/AuditEvent/9361863d-fec0-4ba9-8776-7905cf1b0cfa> )
  ] ) . # 

<https://erp-ref.zentral.erp.splitdns.ti-dienste.de/AuditEvent/9361863d-fec0-4ba9-8776-7905cf1b0cfa> a fhir:AuditEvent ;
  fhir:id [ fhir:v "9361863d-fec0-4ba9-8776-7905cf1b0cfa"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_AuditEvent|2.0"^^xsd:anyURI ;
       fhir:l <https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_AuditEvent?version=2.0>
     ] ) ;
     fhir:tag ( [
       fhir:display [ fhir:v "AuditEvent entry generated by TI-Flow-Fachdienst on access to any patient data by any person" ]
     ] )
  ] ; # 
  fhir:language [ fhir:v "de"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xml:lang=\"de\" xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"de\">Praxis Dr. Müller, Bahnhofstr. 78 hat ein E-Rezept 160.123.456.789.123.58 eingestellt</div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:type [
     fhir:system [
       fhir:v "http://terminology.hl7.org/CodeSystem/audit-event-type"^^xsd:anyURI ;
       fhir:l <http://terminology.hl7.org/CodeSystem/audit-event-type>
     ] ;
     fhir:code [ fhir:v "rest" ]
  ] ; # 
  fhir:subtype ( [
     fhir:system [
       fhir:v "http://hl7.org/fhir/restful-interaction"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/restful-interaction>
     ] ;
     fhir:code [ fhir:v "create" ]
  ] ) ; # 
  fhir:action [ fhir:v "C"] ; # 
  fhir:recorded [ fhir:v "2028-10-01T15:29:00.434+00:00"^^xsd:dateTime] ; # 
  fhir:outcome [ fhir:v "0"] ; # 
  fhir:agent ( [
     fhir:type [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/extra-security-role-type"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/extra-security-role-type>
         ] ;
         fhir:code [ fhir:v "humanuser" ] ;
         fhir:display [ fhir:v "Human User" ]
       ] )
     ] ;
     fhir:who [
       fhir:identifier [
         fhir:system [
           fhir:v "https://gematik.de/fhir/sid/telematik-id"^^xsd:anyURI ;
           fhir:l <https://gematik.de/fhir/sid/telematik-id>
         ] ;
         fhir:value [ fhir:v "1-SMC-B-Testkarte-883110000095957" ]
       ]
     ] ;
     fhir:name [ fhir:v "Praxis Dr. Müller" ] ;
     fhir:requestor [ fhir:v false ]
  ] ) ; # 
  fhir:source [
     fhir:site [ fhir:v "TI-Flow-Fachdienst" ] ;
     fhir:observer [
       fhir:l <https://gematik.de/fhir/tiflow-erezept/Device/ReceiptBundleDevice> ;
       fhir:reference [ fhir:v "Device/ReceiptBundleDevice" ]
     ]
  ] ; # 
  fhir:entity ( [
     fhir:what [
       fhir:l <https://erp.app.ti-dienste.de/Task/160.123.456.789.123.58> ;
       fhir:reference [ fhir:v "https://erp.app.ti-dienste.de/Task/160.123.456.789.123.58" ] ;
       fhir:identifier [
         fhir:system [
           fhir:v "https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId"^^xsd:anyURI ;
           fhir:l <https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId>
         ] ;
         fhir:value [ fhir:v "160.123.456.789.123.58" ]
       ]
     ] ;
     fhir:name [ fhir:v "X234567890" ] ;
     fhir:description [ fhir:v "160.123.456.789.123.58" ]
  ] ) . # 

# -------------------------------------------------------------------------------------

