public void auditRetrieveDocumentSetEvent ( RFC3881EventOutcomeCodes eventOutcome , String repositoryEndpointUri , String userName , String [ ] documentUniqueIds , String [ ] repositoryUniqueIds , String [ ] homeCommunityIds , String patientId , List < CodedValueType > purposesOfUse , List < CodedValueType > userRoles ) { if ( ! isAuditorEnabled ( ) ) { return ; } ImportEvent importEvent = new ImportEvent ( false , eventOutcome , new IHETransactionEventTypeCodes . RetrieveDocumentSet ( ) , purposesOfUse ) ; importEvent . setAuditSourceId ( getAuditSourceId ( ) , getAuditEnterpriseSiteId ( ) ) ; importEvent . addSourceActiveParticipant ( repositoryEndpointUri , null , null , EventUtils . getAddressForUrl ( repositoryEndpointUri , false ) , false ) ; /* * FIXME: Overriding endpoint URI with "anonymous", for now */ String replyToUri = "http://www.w3.org/2005/08/addressing/anonymous" ; importEvent . addDestinationActiveParticipant ( replyToUri , getSystemAltUserId ( ) , getSystemUserName ( ) , getSystemNetworkId ( ) , true ) ; if ( ! EventUtils . isEmptyOrNull ( userName ) ) { importEvent . addHumanRequestorActiveParticipant ( userName , null , userName , userRoles ) ; } if ( ! EventUtils . isEmptyOrNull ( patientId ) ) { importEvent . addPatientParticipantObject ( patientId ) ; } if ( ! EventUtils . isEmptyOrNull ( documentUniqueIds ) ) { for ( int i = 0 ; i < documentUniqueIds . length ; i ++ ) { importEvent . addDocumentParticipantObject ( documentUniqueIds [ i ] , repositoryUniqueIds [ i ] , homeCommunityIds [ i ] ) ; } } audit ( importEvent ) ; }
Audits an ITI - 43 Retrieve Document Set event for XDS . b Document Consumer actors . Sends audit messages for situations when more than one repository and more than one community are specified in the transaction .