<?xml version="1.0" encoding="UTF-8"?>

<AuditEvent xmlns="http://hl7.org/fhir">
  <id value="dr-ai-audit-event"/>
  <meta>
    <profile value="http://example.org/fhir/trust-ai-transparency/StructureDefinition/trust-ai-machine-execution-audit-event"/>
  </meta>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: AuditEvent dr-ai-audit-event</b></p><a name="dr-ai-audit-event"> </a><a name="hcdr-ai-audit-event"> </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-trust-ai-machine-execution-audit-event.html">Trust AI Execution Audit Event</a></p></div><p><b>code</b>: <span title="Codes:">AI diagnostic report generation</span></p><p><b>action</b>: Create</p><p><b>occurred</b>: 2026-03-10 09:05:00+0000 --&gt; 2026-03-10 09:05:03+0000</p><p><b>recorded</b>: 2026-03-10 09:05:04+0000</p><h3>Agents</h3><table class="grid"><tr><td style="display: none">-</td><td><b>Who</b></td><td><b>Requestor</b></td></tr><tr><td style="display: none">*</td><td><a href="Device-dr-ai-device.html">Device: extension = ,-&gt;DocumentReference: extension = Not Clinically Validated,,,; status = current; type = AI Model Card; date = 2026-03-01 10:00:00+0000; description = Synthetic model card for an AI system generating diagnostic reports from structured clinical input.,-&gt;DocumentReference: status = current; identifier = Trust AI Registration Number; status = active; manufacturer = Example AI Medical GmbH; contact = manufacturer@example-ai-medical.example,dpo@example-ai-medical.example; note = Annual maintenance and validation required.</a></td><td>false</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="Device-dr-ai-device.html">Device: extension = ,-&gt;DocumentReference: extension = Not Clinically Validated,,,; status = current; type = AI Model Card; date = 2026-03-01 10:00:00+0000; description = Synthetic model card for an AI system generating diagnostic reports from structured clinical input.,-&gt;DocumentReference: status = current; identifier = Trust AI Registration Number; status = active; manufacturer = Example AI Medical GmbH; contact = manufacturer@example-ai-medical.example,dpo@example-ai-medical.example; note = Annual maintenance and validation required.</a></td></tr></table><h3>Entities</h3><table class="grid"><tr><td style="display: none">-</td><td><b>What</b></td><td><b>Role</b></td></tr><tr><td style="display: none">*</td><td><a href="DiagnosticReport-dr-ai-diagnostic-report.html">Diagnostic Report for '' for '-&gt;Anonymous Patient Female, DoB: 1965-06-15'</a></td><td><span title="Codes:{http://example.org/fhir/trust-ai-transparency/CodeSystem/trust-ai-audit-entity-role ai-output}">AI Output</span></td></tr></table></div>
  </text>
  <code>
    <text value="AI diagnostic report generation"/>
  </code>
  <action value="C"/>
  <occurredPeriod>
    <start value="2026-03-10T09:05:00Z"/>
    <end value="2026-03-10T09:05:03Z"/>
  </occurredPeriod>
  <recorded value="2026-03-10T09:05:04Z"/>
  <agent>
    <who>
      <reference value="Device/dr-ai-device"/>
    </who>
    <requestor value="false"/>
  </agent>
  <source>
    <observer>
      <reference value="Device/dr-ai-device"/>
    </observer>
  </source>
  <entity>
    <what>
      <reference value="DiagnosticReport/dr-ai-diagnostic-report"/>
    </what>
    <role>
      <coding>
        <system value="http://example.org/fhir/trust-ai-transparency/CodeSystem/trust-ai-audit-entity-role"/>
        <code value="ai-output"/>
      </coding>
    </role>
  </entity>
</AuditEvent>