code: public void auditRegistryQueryEvent(
  			RFC3881EventOutcomeCodes eventOutcome,
  			String consumerUserId, String consumerUserName, String consumerIpAddress,
  			String registryEndpointUri, 
  			String adhocQueryRequestPayload,
  			String patientId)
  	{
  		if (!isAuditorEnabled()) {
  			return;
  		}
  		auditQueryEvent(false, 
  				new IHETransactionEventTypeCodes.RegistrySQLQuery(), eventOutcome, 
  				getAuditSourceId(), getAuditEnterpriseSiteId(), 
  				consumerUserId, null, consumerUserName, consumerIpAddress, 
  				consumerUserName, consumerUserName, true,
  				registryEndpointUri, getSystemAltUserId(), 
  				"", adhocQueryRequestPayload, "", 
  				patientId, null, null);
  	}
docs: Audits an ITI-16 Registry SQL Query event for XDS.a Document Registry actors.
  
  @param eventOutcome The event outcome indicator
  @param consumerUserId The Active Participant UserID for the consumer (if using WS-Addressing)
  @param consumerUserName The Active Participant UserName for the consumer (if using WS-Security / XUA)
  @param consumerIpAddress The IP Address of the consumer that initiated the transaction
  @param registryEndpointUri The URI of this registry's endpoint that received the transaction
  @param adhocQueryRequestPayload The payload of the adhoc query request element
  @param patientId The patient ID queried (if query pertained to a patient id)