<AuditEvent xmlns="http://hl7.org/fhir">
  <id value="auditevent-create-patient" />
  <meta>
    <profile value="http://koppeltaal.nl/fhir/StructureDefinition/KT2AuditEvent" />
  </meta>
  <language value="nl-NL" />
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl-NL" lang="nl-NL">Example of an AuditEvent about creating a Patient</div>
  </text>
  <extension url="http://koppeltaal.nl/fhir/StructureDefinition/trace-id">
    <valueId value="8385f600-9bf7-4b96-8467-268070c27677" />
  </extension>
  <extension url="http://koppeltaal.nl/fhir/StructureDefinition/request-id">
    <valueId value="L4t9tLExU6oQr3cT" />
  </extension>
  <type>
    <system value="http://terminology.hl7.org/CodeSystem/audit-event-type" />
    <version value="0.5.0" />
    <code value="rest" />
    <display value="Restful Operation" />
  </type>
  <subtype>
    <system value="http://hl7.org/fhir/restful-interaction" />
    <code value="create" />
    <display value="create" />
  </subtype>
  <action value="C" />
  <recorded value="2023-01-19T23:42:24+00:00" />
  <outcome value="0" />
  <agent>
    <type>
      <coding>
        <system value="http://dicom.nema.org/resources/ontology/DCM" />
        <code value="110153" />
      </coding>
    </type>
    <who>
      <reference value="Device/ba33314a-795a-4777-bef8-e6611f6be645" />
    </who>
    <requestor value="true" />
  </agent>
  <agent>
    <type>
      <coding>
        <system value="http://dicom.nema.org/resources/ontology/DCM" />
        <code value="110152" />
      </coding>
    </type>
    <who>
      <reference value="Device/device-volledig" />
    </who>
    <requestor value="false" />
  </agent>
  <source>
    <site value="Koppeltaal Domein X" />
    <observer>
      <reference value="Device/ba33314a-795a-4777-bef8-e6611f6be645" />
      <type value="Device" />
    </observer>
    <type>
      <system value="http://terminology.hl7.org/CodeSystem/security-source-type" />
      <code value="4" />
      <display value="Application Server" />
    </type>
  </source>
  <entity>
    <what>
      <reference value="Patient/patient-botje-minimaal/_history/1" />
      <type value="Patient" />
    </what>
    <type>
      <system value="http://hl7.org/fhir/resource-types" />
      <code value="Patient" />
      <display value="Patient" />
    </type>
  </entity>
</AuditEvent>