@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://exchange.example.org/fhir/ig/340b-exchange/AuditEvent/audit-001> a fhir:AuditEvent ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "audit-001"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://exchange.example.org/fhir/ig/340b-exchange/StructureDefinition/340b-audit-event"^^xsd:anyURI ;
       fhir:l <https://exchange.example.org/fhir/ig/340b-exchange/StructureDefinition/340b-audit-event>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "extensions" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: AuditEvent audit-001</b></p><a name=\"audit-001\"> </a><a name=\"hcaudit-001\"> </a><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\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-340b-audit-event.html\">340B Audit Event Profile</a></p></div><p><b>340B Exchange Transaction ID Extension</b>: tx-1001</p><p><b>340B Correlation ID Extension</b>: corr-9001</p><p><b>type</b>: <a href=\"http://hl7.org/fhir/R4/codesystem-dicom-dcim.html#dicom-dcim-110106\">DICOM: 110106</a> (Export)</p><p><b>action</b>: Execute</p><p><b>recorded</b>: 2026-04-24 15:05:01+0000</p><p><b>outcome</b>: Success</p><h3>Agents</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Who</b></td><td><b>Requestor</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/extra-security-role-type authserver}\">Authorization Server</span></td><td><a href=\"Organization-manufacturer-77.html\">Organization Example Manufacturer 77</a></td><td>true</td></tr></table><h3>Sources</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Observer</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"Organization-manufacturer-77.html\">Organization Example Manufacturer 77</a></td></tr></table><h3>Entities</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>What</b></td><td><b>Type</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"ClaimResponse-claimresponse-example-ruleset.html\">ClaimResponse: extension = corr-cb-7721,tx-cb-7721,1.2.0,https://exchange.example.org/manufacturers#mfr-77; identifier = https://exchange.example.org/claimresponse-ids#cr-7721; status = active; type = Pharmacy; use = claim; created = 2026-04-24; outcome = complete</a></td><td><a href=\"http://terminology.hl7.org/7.1.0/CodeSystem-audit-entity-type.html#audit-entity-type-2\">Audit event entity type: 2</a> (System Object)</td></tr></table></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:extension ( [
     fhir:url [
       fhir:v "https://exchange.example.org/fhir/ig/340b-exchange/StructureDefinition/340b-exchange-transaction-id"^^xsd:anyURI ;
       fhir:l <https://exchange.example.org/fhir/ig/340b-exchange/StructureDefinition/340b-exchange-transaction-id>
     ] ;
     fhir:value [
       a fhir:String ;
       fhir:v "tx-1001"
     ]
  ] [
     fhir:url [
       fhir:v "https://exchange.example.org/fhir/ig/340b-exchange/StructureDefinition/340b-correlation-id"^^xsd:anyURI ;
       fhir:l <https://exchange.example.org/fhir/ig/340b-exchange/StructureDefinition/340b-correlation-id>
     ] ;
     fhir:value [
       a fhir:String ;
       fhir:v "corr-9001"
     ]
  ] ) ; # 
  fhir:type [
     fhir:system [
       fhir:v "http://dicom.nema.org/resources/ontology/DCM"^^xsd:anyURI ;
       fhir:l <http://dicom.nema.org/resources/ontology/DCM>
     ] ;
     fhir:code [ fhir:v "110106" ] ;
     fhir:display [ fhir:v "Export" ]
  ] ; # 
  fhir:action [ fhir:v "E"] ; # 
  fhir:recorded [ fhir:v "2026-04-24T15:05:01Z"^^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 "authserver" ]
       ] )
     ] ;
     fhir:who [
       fhir:l <https://exchange.example.org/fhir/ig/340b-exchange/Organization/manufacturer-77> ;
       fhir:reference [ fhir:v "Organization/manufacturer-77" ]
     ] ;
     fhir:requestor [ fhir:v true ]
  ] ) ; # 
  fhir:source [
     fhir:observer [
       fhir:l <https://exchange.example.org/fhir/ig/340b-exchange/Organization/manufacturer-77> ;
       fhir:reference [ fhir:v "Organization/manufacturer-77" ]
     ]
  ] ; # 
  fhir:entity ( [
     fhir:what [
       fhir:l <https://exchange.example.org/fhir/ig/340b-exchange/ClaimResponse/claimresponse-example-ruleset> ;
       fhir:reference [ fhir:v "ClaimResponse/claimresponse-example-ruleset" ]
     ] ;
     fhir:type [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/audit-entity-type"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/audit-entity-type>
       ] ;
       fhir:code [ fhir:v "2" ] ;
       fhir:display [ fhir:v "System Object" ]
     ]
  ] ) . # 

# -------------------------------------------------------------------------------------

