<AuditEvent xmlns="http://hl7.org/fhir">
<id value="825c3fdd-b784-4370-8dd2-c1d3bed674ec"/>
<meta>
<versionId value="1"/>
<lastUpdated value="2025-01-16T13:12:17.184Z"/>
<profile
value="https://gematik.de/fhir/epa/StructureDefinition/epa-auditevent|1.3.0"/>
</meta>
<type>
<system value="http://terminology.hl7.org/CodeSystem/audit-event-type"/>
<code value="rest"/>
</type>
<action value="U"/>
<recorded value="2025-01-16T13:12:17.184Z"/>
<outcome value="0"/>
<agent>
<type>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/v3-RoleClass"/>
<code value="PAT"/>
<display value="patient"/>
</coding>
</type>
<who>
<identifier>
<system value="http://fhir.de/sid/gkv/kvid-10"/>
<value value="A123456780"/>
</identifier>
</who>
<altId value="A123456780"/>
<name value="Erika Musterfrau"/>
<requestor value="true"/>
</agent>
<source>
<observer>
<display value="Elektronische Patientenakte Fachdienst"/>
</observer>
<type>
<system
value="https://gematik.de/fhir/epa/CodeSystem/epa-auditevent-sourcetype-cs"/>
<code value="CDMGMT"/>
<display value="Consent Decision Management"/>
</type>
</source>
<entity>
<name value="ConsentDecision"/>
<description value="updateConsentDecision"/>
<detail>
<type value="ConsentClass"/>
<valueString value="healthCareProcess"/>
</detail>
<detail>
<type value="ConsentClassId"/>
<valueString value="erp-submission"/>
</detail>
<detail>
<type value="ConsentDecision"/>
<valueString value="deny"/>
</detail>
</entity>
</AuditEvent>