protected void auditProvideAndRegisterEvent ( IHETransactionEventTypeCodes transaction , RFC3881EventOutcomeCodes eventOutcome , String repositoryEndpointUri , String userName , String submissionSetUniqueId , String patientId , List < CodedValueType > purposesOfUse , List < CodedValueType > userRoles ) { ExportEvent exportEvent = new ExportEvent ( true , eventOutcome , transaction , purposesOfUse ) ; exportEvent . setAuditSourceId ( getAuditSourceId ( ) , getAuditEnterpriseSiteId ( ) ) ; /* * FIXME: Overriding endpoint URI with "anonymous", for now */ String replyToUri = "http://www.w3.org/2005/08/addressing/anonymous" ; //String replyToUri = getSystemUserId(); exportEvent . addSourceActiveParticipant ( replyToUri , getSystemAltUserId ( ) , getSystemUserName ( ) , getSystemNetworkId ( ) , true ) ; if ( ! EventUtils . isEmptyOrNull ( userName ) ) { exportEvent . addHumanRequestorActiveParticipant ( userName , null , userName , userRoles ) ; } exportEvent . addDestinationActiveParticipant ( repositoryEndpointUri , null , null , EventUtils . getAddressForUrl ( repositoryEndpointUri , false ) , false ) ; if ( ! EventUtils . isEmptyOrNull ( patientId ) ) { exportEvent . addPatientParticipantObject ( patientId ) ; } exportEvent . addSubmissionSetParticipantObject ( submissionSetUniqueId ) ; audit ( exportEvent ) ; }
Generically sends audit messages for XDS Document Source Provide And Register Document Set events