<AuditEvent xmlns="http://hl7.org/fhir">
  <id value="9361863d-fec0-4ba9-8776-7905cf1b0cfa" />
  <meta>
    <profile value="https://gematik.de/fhir/erp/StructureDefinition/GEM_ERP_PR_AuditEvent|1.6" />
    <tag>
      <display value="AuditEvent entry generated by E-Rezept-Fachdienst on access to any patient data by any person" />
    </tag>
  </meta>
  <language value="de" />
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml" lang="de" xml:lang="de">Praxis Dr. Müller, Bahnhofstr. 78 hat ein E-Rezept 160.123.456.789.123.58 eingestellt</div>
  </text>
  <type>
    <system value="http://terminology.hl7.org/CodeSystem/audit-event-type" />
    <code value="rest" />
  </type>
  <subtype>
    <system value="http://hl7.org/fhir/restful-interaction" />
    <code value="create" />
  </subtype>
  <action value="C" />
  <recorded value="2026-07-01T15:29:00.434+00:00" />
  <outcome value="0" />
  <agent>
    <type>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/extra-security-role-type" />
        <code value="humanuser" />
        <display value="Human User" />
      </coding>
    </type>
    <who>
      <identifier>
        <system value="https://gematik.de/fhir/sid/telematik-id" />
        <value value="1-SMC-B-Testkarte-883110000095957" />
      </identifier>
    </who>
    <name value="Praxis Dr. Müller" />
    <requestor value="false" />
  </agent>
  <source>
    <site value="E-Rezept Fachdienst" />
    <observer>
      <reference value="Device/1" />
    </observer>
  </source>
  <entity>
    <what>
      <reference value="https://erp.app.ti-dienste.de/Task/160.123.456.789.123.58" />
      <identifier>
        <system value="https://gematik.de/fhir/erp/NamingSystem/GEM_ERP_NS_PrescriptionId" />
        <value value="160.123.456.789.123.58" />
      </identifier>
    </what>
    <name value="X234567890" />
    <description value="160.123.456.789.123.58" />
  </entity>
</AuditEvent>