public void auditRetrieveDocumentEvent ( RFC3881EventOutcomeCodes eventOutcome , String consumerIpAddress , String userName , String repositoryRetrieveUri , String documentUniqueId ) { if ( ! isAuditorEnabled ( ) ) { return ; } ExportEvent exportEvent = new ExportEvent ( true , eventOutcome , new IHETransactionEventTypeCodes . RetrieveDocument ( ) , null ) ; exportEvent . setAuditSourceId ( getAuditSourceId ( ) , getAuditEnterpriseSiteId ( ) ) ; exportEvent . addSourceActiveParticipant ( repositoryRetrieveUri , getSystemAltUserId ( ) , null , EventUtils . getAddressForUrl ( repositoryRetrieveUri , false ) , false ) ; if ( ! EventUtils . isEmptyOrNull ( userName ) ) { exportEvent . addHumanRequestorActiveParticipant ( userName , null , userName , ( List < CodedValueType > ) null ) ; } exportEvent . addDestinationActiveParticipant ( consumerIpAddress , null , null , consumerIpAddress , true ) ; //exportEvent.addPatientParticipantObject(patientId); exportEvent . addDocumentUriParticipantObject ( repositoryRetrieveUri , documentUniqueId ) ; audit ( exportEvent ) ; }
Audits an ITI - 17 Retrieve Document event for XDS . a Document Repository actors .