code: public void auditRegistryQueryEvent(
  			RFC3881EventOutcomeCodes eventOutcome,
  			String registryEndpointUri,
              String consumerUserName,
  			String adhocQueryRequestPayload,
  			String patientId)
  	{
  		if (!isAuditorEnabled()) {
  			return;
  		}
  		auditQueryEvent(true, 
  				new IHETransactionEventTypeCodes.RegistrySQLQuery(), eventOutcome, 
  				getAuditSourceId(), getAuditEnterpriseSiteId(),
  				getSystemUserId(), getSystemAltUserId(), getSystemUserName(), getSystemNetworkId(),
  				consumerUserName, consumerUserName, true,
  				registryEndpointUri, null,
  				"", adhocQueryRequestPayload, "", 
  				patientId, null, null);
  
  	}
docs: Audits an ITI-16 Registry Query event for XDS.a Document Consumer actors.
  
  @param eventOutcome The event outcome indicator
  @param registryEndpointUri The endpoint of the registry in this transaction
  @param adhocQueryRequestPayload The payload of the adhoc query request element
  @param patientId The patient ID queried (if query pertained to a patient id)