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

<AuditEvent xmlns="http://hl7.org/fhir">
  <id value="auditevent-login-introspect"/>
  <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 a User Authentication AuditEvent for a launch via HTI: introspection of the HTI launch token (outcomeDesc prefix 'introspect')</div>
  </text>
  <extension url="http://koppeltaal.nl/fhir/StructureDefinition/trace-id">
    <valueId value="5b0e5adc-3d0c-4a55-8a2e-9c1f4d6b7a10"/>
  </extension>
  <extension url="http://koppeltaal.nl/fhir/StructureDefinition/request-id">
    <valueId value="Qw7bT2xVfR9sLm4Z"/>
  </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="110122"/>
    <display value="Login"/>
  </subtype>
  <action value="E"/>
  <recorded value="2026-06-17T09:14:07+00:00"/>
  <outcome value="0"/>
  <outcomeDesc value="introspect: Introspectie van het HTI launch token geslaagd"/>
  <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="Koppeltaal Domein X"/>
    <observer>
      <reference value="Device/autorisatieserver"/>
      <type value="Device"/>
    </observer>
    <type>
      <system value="http://terminology.hl7.org/CodeSystem/security-source-type"/>
      <code value="6"/>
      <display value="Security 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>