protected void auditProvideAndRegisterEvent ( IHETransactionEventTypeCodes transaction , RFC3881EventOutcomeCodes eventOutcome , String sourceUserId , String sourceIpAddress , String userName , String repositoryEndpointUri , String submissionSetUniqueId , String patientId , List < CodedValueType > purposesOfUse , List < CodedValueType > userRoles ) { ImportEvent importEvent = new ImportEvent ( false , eventOutcome , transaction , purposesOfUse ) ; importEvent . setAuditSourceId ( getAuditSourceId ( ) , getAuditEnterpriseSiteId ( ) ) ; importEvent . addSourceActiveParticipant ( sourceUserId , null , null , sourceIpAddress , true ) ; if ( ! EventUtils . isEmptyOrNull ( userName ) ) { importEvent . addHumanRequestorActiveParticipant ( userName , null , userName , userRoles ) ; } importEvent . addDestinationActiveParticipant ( repositoryEndpointUri , getSystemAltUserId ( ) , null , EventUtils . getAddressForUrl ( repositoryEndpointUri , false ) , false ) ; if ( ! EventUtils . isEmptyOrNull ( patientId ) ) { importEvent . addPatientParticipantObject ( patientId ) ; } importEvent . addSubmissionSetParticipantObject ( submissionSetUniqueId ) ; audit ( importEvent ) ; }
Generically sends audit messages for XDS Document Repository Provide And Register Document Set events