{
  "resourceType": "AuditEvent",
  "type": {
    "system": "http://hl7.org/fhir/audit-event-type",
    "code": "rest",
    "display": "RESTful Operation"
  },
  "subtype": [
    {
      "system": "http://hl7.org/fhir/http-verb",
      "code": "GET",
      "display": "GET"
    },
    {
      "system": "http://hl7.org/fhir/restful-interaction",
      "code": "read",
      "display": "read"
    }
  ],
  "action": "R",
  "recorded": "2022-10-18T13:05:19.150+00:00",
  "outcome": "0",
  "outcomeDesc": "200",
  "agent": [
    {
      "userId": {
        "value": "%USER_ID%"
      },
      "reference": {
        "display": "%USER_NAME%",
        "identifier": {
          "system": "%TOKEN_ISSUER%",
          "value": "%USER_ID%"
        }
      },
      "role": [
        {
          "coding": [
            {
              "system": "https://profiles.ihe.net/ITI/BALP/CodeSystem/UserAgentTypes",
              "code": "UserOauthAgent",
              "display": "User OAuth Agent participant"
            }
          ]
        }
      ],
      "requestor": true,
      "policy": [
        "%TOKEN_JWT_ID%"
      ]
    },
    {
      "role": [
        {
          "coding": [
            {
              "system": "http://dicom.nema.org/resources/ontology/DCM",
              "code": "110153",
              "display": "Source Role ID"
            }
          ]
        }
      ],
      "reference": {
        "identifier": {
          "value": "%TOKEN_CLIENT_ID%"
        }
      },
      "network": {
        "address": "127.0.0.1",
        "type": "2"
      },
      "requestor": false
    }
  ],
  "source": {
    "site": "Firely Server",
    "type": [
      {
        "system": "http://hl7.org/fhir/security-source-type",
        "code": "4",
        "display": "Application Server"
      }
    ],
    "identifier": {
      "system": "http://fire.ly/fhir/sid/devices",
      "value": "firely-server"
    },
    "extension": [
      {
        "url": "http://hl7.org/fhir/4.0/StructureDefinition/extension-AuditEvent.source.observer",
        "valueReference": {
          "display": "SERVER_HOST_NAME"
        }
      }
    ]
  },
  "entity": [
    {
      "reference": {
        "identifier": {
          "system": "http://fire.ly/fhir/sid/api-diagnostics-requestid",
          "value": "REQUEST_ID"
        }
      },
      "type": {
        "system": "http://hl7.org/fhir/audit-entity-type",
        "code": "2",
        "display": "System Object"
      },
      "role": {
        "system": "http://hl7.org/fhir/object-role",
        "code": "13",
        "display": "Security Resource"
      }
    },
    {
      "reference": {
        "identifier": {
          "system": "http://fire.ly/fhir/sid/api-diagnostics-connectionid",
          "value": "CONNECTION_ID"
        }
      },
      "type": {
        "system": "http://hl7.org/fhir/audit-entity-type",
        "code": "2",
        "display": "System Object"
      },
      "role": {
        "system": "http://hl7.org/fhir/object-role",
        "code": "13",
        "display": "Security Resource"
      }
    },
    {
      "detail": [
        {
          "type": "path",
          "value": "L1BhdGllbnQvaW5zdGFuY2UtaWQ="
        }
      ],
      "type": {
        "system": "http://hl7.org/fhir/audit-entity-type",
        "code": "2",
        "display": "System Object"
      },
      "role": {
        "system": "http://hl7.org/fhir/object-role",
        "code": "24",
        "display": "Query"
      }
    },
    {
      "reference": {
        "reference": "Patient/instance-id/_history/version-id"
      },
      "type": {
        "system": "http://hl7.org/fhir/resource-types",
        "code": "Patient",
        "display": "Patient"
      }
    }
  ]
}