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

<AuditEvent xmlns="http://hl7.org/fhir">
  <id value="auditevent-application-login"/>
  <meta>
    <profile value="http://koppeltaal.nl/fhir/StructureDefinition/KT2AuditEvent"/>
  </meta>
  <language value="nl-NL"/>
  <text>
    <status value="generated"/><div xml:lang="nl-NL" xmlns="http://www.w3.org/1999/xhtml" lang="nl-NL">Example of an Application User Authentication AuditEvent: the application authenticates the user outside the Koppeltaal authentication chain (subtype DCM#110126 Node Authentication), created by the application itself</div>
  </text>
  <extension url="http://koppeltaal.nl/fhir/StructureDefinition/trace-id">
    <valueId value="7f4a1c9e-2d6b-4e8f-a3c5-0b9d8e7f6a21"/>
  </extension>
  <extension url="http://koppeltaal.nl/fhir/StructureDefinition/request-id">
    <valueId value="0ae41ca5-7459-4590-982c-a2f326190a4d"/>
  </extension>
  <type>
    <system value="http://dicom.nema.org/resources/ontology/DCM"/>
    <code value="110114"/>
    <display value="User Authentication"/>
  </type>
  <subtype>
    <system value="http://dicom.nema.org/resources/ontology/DCM"/>
    <code value="110126"/>
    <display value="Node Authentication"/>
  </subtype>
  <action value="E"/>
  <recorded value="2026-06-19T19:03:12+00:00"/>
  <outcome value="0"/>
  <outcomeDesc value="Applicatie-login geslaagd (zonder Koppeltaal-interactie)"/>
  <agent>
    <type>
      <coding>
        <system value="http://dicom.nema.org/resources/ontology/DCM"/>
        <code value="110153"/>
        <display value="Source Role ID"/>
      </coding>
    </type>
    <who>
      <reference value="Device/device-volledig"/>
      <type value="Device"/>
    </who>
    <requestor value="true"/>
  </agent>
  <source>
    <site value="applicatie.example.nl"/>
    <observer>
      <reference value="Device/device-volledig"/>
      <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"/>
      <type value="Patient"/>
    </what>
    <type>
      <system value="http://hl7.org/fhir/resource-types"/>
      <code value="Patient"/>
      <display value="Patient"/>
    </type>
    <role>
      <system value="http://terminology.hl7.org/CodeSystem/object-role"/>
      <code value="1"/>
      <display value="Patient"/>
    </role>
  </entity>
</AuditEvent>