{
  "resourceType": "AuditEvent",
  "category": [
    {
      "coding": [
        {
          "system": "http://terminology.hl7.org/CodeSystem/audit-event-type",
          "code": "rest",
          "display": "RESTful Operation"
        }
      ]
    },
    {
      "coding": [
        {
          "system": "http://hl7.org/fhir/http-verb",
          "code": "GET",
          "display": "GET"
        }
      ]
    }
  ],
  "code": {
    "coding": [
      {
        "system": "http://hl7.org/fhir/restful-interaction",
        "code": "search-type",
        "display": "search-type"
      }
    ]
  },
  "action": "E",
  "recorded": "2022-10-18T13:05:19.152+00:00",
  "outcome": {
    "code": {
      "system": "http://terminology.hl7.org/CodeSystem/audit-event-outcome",
      "code": "success",
      "display": "Success"
    },
    "detail": [
      {
        "text": "200"
      }
    ]
  },
  "agent": [
    {
      "who": {
        "display": "%USER_NAME%",
        "identifier": {
          "system": "%TOKEN_ISSUER%",
          "value": "%USER_ID%"
        }
      },
      "type": {
        "coding": [
          {
            "system": "https://profiles.ihe.net/ITI/BALP/CodeSystem/UserAgentTypes",
            "code": "UserOauthAgent",
            "display": "User OAuth Agent participant"
          }
        ]
      },
      "requestor": true,
      "policy": [
        "%TOKEN_JWT_ID%"
      ]
    },
    {
      "type": {
        "coding": [
          {
            "system": "http://dicom.nema.org/resources/ontology/DCM",
            "code": "110153",
            "display": "Source Role ID"
          }
        ]
      },
      "who": {
        "identifier": {
          "value": "%TOKEN_CLIENT_ID%"
        }
      },
      "networkString": "127.0.0.1",
      "extension": [
        {
          "url": "http://hl7.org/fhir/4.0/StructureDefinition/extension-AuditEvent.agent.network.type",
          "valueCode": "2"
        }
      ]
    }
  ],
  "source": {
    "site": {
      "display": "Firely Server"
    },
    "type": [
      {
        "coding": [
          {
            "system": "http://hl7.org/fhir/security-source-type",
            "code": "4",
            "display": "Application Server"
          }
        ]
      }
    ],
    "observer": {
      "identifier": {
        "system": "http://fire.ly/fhir/sid/devices",
        "value": "firely-server"
      },
      "display": "SERVER_HOST_NAME"
    }
  },
  "entity": [
    {
      "what": {
        "identifier": {
          "system": "http://fire.ly/fhir/sid/api-diagnostics-requestid",
          "value": "REQUEST_ID"
        }
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/4.0/StructureDefinition/extension-AuditEvent.entity.type",
          "valueCoding": {
            "system": "http://terminology.hl7.org/CodeSystem/audit-entity-type",
            "code": "2",
            "display": "System Object"
          }
        }
      ],
      "role": {
        "coding": [
          {
            "system": "http://terminology.hl7.org/CodeSystem/object-role",
            "code": "13",
            "display": "Security Resource"
          }
        ]
      }
    },
    {
      "what": {
        "identifier": {
          "system": "http://fire.ly/fhir/sid/api-diagnostics-connectionid",
          "value": "CONNECTION_ID"
        }
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/4.0/StructureDefinition/extension-AuditEvent.entity.type",
          "valueCoding": {
            "system": "http://terminology.hl7.org/CodeSystem/audit-entity-type",
            "code": "2",
            "display": "System Object"
          }
        }
      ],
      "role": {
        "coding": [
          {
            "system": "http://terminology.hl7.org/CodeSystem/object-role",
            "code": "13",
            "display": "Security Resource"
          }
        ]
      }
    },
    {
      "detail": [
        {
          "type": {
            "coding": [
              {
                "system": "http://dicom.nema.org/resources/ontology/DCM",
                "code": "110112",
                "display": "Query"
              }
            ]
          },
          "valueString": "/Patient?name=Eugene"
        }
      ],
      "extension": [
        {
          "url": "http://hl7.org/fhir/4.0/StructureDefinition/extension-AuditEvent.entity.type",
          "valueCoding": {
            "system": "http://terminology.hl7.org/CodeSystem/audit-entity-type",
            "code": "2",
            "display": "System Object"
          }
        }
      ],
      "role": {
        "coding": [
          {
            "system": "http://terminology.hl7.org/CodeSystem/object-role",
            "code": "24",
            "display": "Query"
          }
        ]
      }
    },
    {
      "what": {
        "reference": "Bundle/bundle-id/_history/bundle-version"
      },
      "extension": [
        {
          "url": "http://hl7.org/fhir/4.0/StructureDefinition/extension-AuditEvent.entity.type",
          "valueCoding": {
            "system": "http://hl7.org/fhir/resource-types",
            "code": "Bundle",
            "display": "Bundle"
          }
        }
      ],
      "query": "bmFtZT1FdWdlbmU=",
      "detail": [
        {
          "type": {
            "text": "ResourceKey"
          },
          "valueString": "Patient/instance-id1/_history/version-id1"
        },
        {
          "type": {
            "text": "ResourceKey"
          },
          "valueString": "Patient/instance-id2/_history/version-id2"
        }
      ]
    }
  ]
}