{
  "resourceType" : "AuditEvent",
  "id" : "auditevent-with-outcome-4",
  "meta" : {
    "profile" : ["http://koppeltaal.nl/fhir/StructureDefinition/KT2AuditEvent"]
  },
  "language" : "nl-NL",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"nl-NL\" lang=\"nl-NL\">Example of AuditEvent with create Operation resulting in outcome code 4</div>"
  },
  "contained" : [{
    "resourceType" : "OperationOutcome",
    "id" : "no-matching-profile",
    "issue" : [{
      "severity" : "error",
      "code" : "invalid",
      "diagnostics" : "No matching profile"
    }]
  }],
  "extension" : [{
    "url" : "http://koppeltaal.nl/fhir/StructureDefinition/resource-origin",
    "valueReference" : {
      "reference" : "Device/device-volledig",
      "type" : "Device"
    }
  },
  {
    "url" : "http://koppeltaal.nl/fhir/StructureDefinition/request-id",
    "valueId" : "f272ae9f83a49bdd"
  },
  {
    "url" : "http://koppeltaal.nl/fhir/StructureDefinition/trace-id",
    "valueId" : "decc45dd65cb97ea25e6d2a53e067f09"
  },
  {
    "url" : "http://koppeltaal.nl/fhir/StructureDefinition/correlation-id",
    "valueId" : "58aafb4e-0283-4c12-b95f-16be1425c96c"
  }],
  "type" : {
    "system" : "http://terminology.hl7.org/CodeSystem/audit-event-type",
    "version" : "0.5.0",
    "code" : "rest",
    "display" : "RESTful Operation"
  },
  "subtype" : [{
    "system" : "http://hl7.org/fhir/restful-interaction",
    "code" : "create"
  }],
  "action" : "C",
  "recorded" : "2023-01-10T12:50:22+01:00",
  "outcome" : "4",
  "agent" : [{
    "type" : {
      "coding" : [{
        "system" : "http://dicom.nema.org/resources/ontology/DCM",
        "code" : "110153"
      }]
    },
    "who" : {
      "reference" : "Device/device-volledig"
    },
    "requestor" : true
  }],
  "source" : {
    "site" : "domein1",
    "observer" : {
      "reference" : "Device/device-volledig",
      "type" : "Device"
    },
    "type" : [{
      "system" : "http://terminology.hl7.org/CodeSystem/security-source-type",
      "code" : "4",
      "display" : "Application Server"
    }]
  },
  "entity" : [{
    "what" : {
      "reference" : "#no-matching-profile"
    },
    "type" : {
      "system" : "http://hl7.org/fhir/resource-types",
      "code" : "OperationOutcome",
      "display" : "OperationOutcome"
    }
  },
  {
    "type" : {
      "system" : "http://hl7.org/fhir/resource-types",
      "code" : "Patient",
      "display" : "Patient"
    }
  }]
}