Source:
protected LogEventRequestType getLogEventRequestType(EDXLDistribution body, AssertionType assertion, String direction, NhinTargetSystemType target, String _interface) { LOG.trace("Entering ADTransform-getLogEventRequestType() method."); LogEventRequestType result = new LogEventRequestType(); AuditMessageType auditMsg = new AuditMessageType(); boolean bRequiredFieldsAreNull = areRequiredUserTypeFieldsNull(assertion); if (bRequiredFieldsAreNull) { LOG.error("One or more of the required fields needed to transform to an audit message request were null."); return null; } UserType userInfo = assertion.getUserInfo(); CodedValueType eventID = null; eventID = AuditDataTransformHelper.createEventId(AuditDataTransformConstants.EVENT_ID_CODE_SYS_NAME_T63, AuditDataTransformConstants.EVENT_ID_DISPLAY_NAME_ADMIN_DIST, AuditDataTransformConstants.EVENT_ID_CODE_SYS_NAME_T63, AuditDataTransformConstants.EVENT_ID_DISPLAY_NAME_ADMIN_DIST); auditMsg.setEventIdentification(AuditDataTransformHelper.createEventIdentification( AuditDataTransformConstants.EVENT_ACTION_CODE_CREATE, AuditDataTransformConstants.EVENT_OUTCOME_INDICATOR_SUCCESS, eventID)); AuditMessageType.ActiveParticipant participant = AuditDataTransformHelper.createActiveParticipantFromUser( userInfo, true); auditMsg.getActiveParticipant().add(participant); String communityId = getAdminDistributionMessageCommunityID(assertion, direction, _interface, target); AuditSourceIdentificationType auditSource = AuditDataTransformHelper.createAuditSourceIdentification( communityId, communityId); auditMsg.getAuditSourceIdentification().add(auditSource); result.setAuditMessage(auditMsg); result.setDirection(direction); result.setRemoteHCID(HomeCommunityMap.formatHomeCommunityId(communityId)); LOG.trace("Exiting ADTransform-getLogEventRequestType() method."); return result; }

Target:
protected LogEventRequestType getLogEventRequestType(EDXLDistribution body, AssertionType assertion, String direction, NhinTargetSystemType target, String _interface) { LOG.trace("Entering ADTransform-getLogEventRequestType() method."); LogEventRequestType result = new LogEventRequestType(); AuditMessageType auditMsg = new AuditMessageType(); boolean bRequiredFieldsAreNull = areRequiredUserTypeFieldsNull(assertion); if (bRequiredFieldsAreNull) { LOG.error("One or more of the required fields needed to transform to an audit message request were null."); return null; } UserType userInfo = assertion.getUserInfo(); CodedValueType eventID = null; eventID = AuditDataTransformHelper.createEventId(AuditDataTransformConstants.EVENT_ID_CODE_SYS_NAME_T63, AuditDataTransformConstants.EVENT_ID_DISPLAY_NAME_ADMIN_DIST, AuditDataTransformConstants.EVENT_ID_CODE_SYS_NAME_T63, AuditDataTransformConstants.EVENT_ID_DISPLAY_NAME_ADMIN_DIST); auditMsg.setEventIdentification(AuditDataTransformHelper.createEventIdentification( AuditDataTransformConstants.EVENT_ACTION_CODE_CREATE, AuditDataTransformConstants.EVENT_OUTCOME_INDICATOR_SUCCESS, eventID)); AuditMessageType.ActiveParticipant participant = AuditDataTransformHelper.createActiveParticipantFromUser( userInfo, true); auditMsg.getActiveParticipant().add(participant); String communityId = getAdminDistributionMessageCommunityID(assertion, direction, _interface, target); AuditSourceIdentificationType auditSource = AuditDataTransformHelper.createAuditSourceIdentification( communityId, communityId); auditMsg.getAuditSourceIdentification().add(auditSource); result.setAuditMessage(auditMsg); result.setDirection(_interface + " " + direction); result.setRemoteHCID(HomeCommunityMap.formatHomeCommunityId(communityId)); LOG.trace("Exiting ADTransform-getLogEventRequestType() method."); return result; }