{
  "resourceType" : "AuditEvent",
  "id" : "auditevent-login-authorize",
  "meta" : {
    "profile" : ["http://koppeltaal.nl/fhir/StructureDefinition/KT2AuditEvent"]
  },
  "language" : "nl-NL",
  "text" : {
    "status" : "generated",
    "div" : "<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 SMART App Launch: the /authorize call (outcomeDesc prefix 'authorize')</div>"
  },
  "extension" : [{
    "url" : "http://koppeltaal.nl/fhir/StructureDefinition/trace-id",
    "valueId" : "c9d2a4f1-6e3b-4c8d-9f0a-2b5e7d1c8a43"
  },
  {
    "url" : "http://koppeltaal.nl/fhir/StructureDefinition/request-id",
    "valueId" : "Hj3nP8rKw2xYd6Vb"
  }],
  "type" : {
    "system" : "http://dicom.nema.org/resources/ontology/DCM",
    "code" : "110114",
    "display" : "User Authentication"
  },
  "subtype" : [{
    "system" : "http://dicom.nema.org/resources/ontology/DCM",
    "code" : "110122",
    "display" : "Login"
  }],
  "action" : "E",
  "recorded" : "2026-06-17T10:15:00+00:00",
  "outcome" : "0",
  "outcomeDesc" : "authorize: Autorisatie via /authorize geslaagd",
  "agent" : [{
    "type" : {
      "coding" : [{
        "system" : "http://dicom.nema.org/resources/ontology/DCM",
        "code" : "110153",
        "display" : "Source Role ID"
      }]
    },
    "who" : {
      "reference" : "Device/device-volledig",
      "type" : "Device"
    },
    "requestor" : true
  }],
  "source" : {
    "site" : "Koppeltaal Domein X",
    "observer" : {
      "reference" : "Device/autorisatieserver",
      "type" : "Device"
    },
    "type" : [{
      "system" : "http://terminology.hl7.org/CodeSystem/security-source-type",
      "code" : "6",
      "display" : "Security Server"
    }]
  },
  "entity" : [{
    "what" : {
      "reference" : "Patient/patient-botje-minimaal",
      "type" : "Patient"
    },
    "type" : {
      "system" : "http://hl7.org/fhir/resource-types",
      "code" : "Patient",
      "display" : "Patient"
    },
    "role" : {
      "system" : "http://terminology.hl7.org/CodeSystem/object-role",
      "code" : "1",
      "display" : "Patient"
    }
  }]
}