Source:
<code>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); <START> result.setRemoteHCID(HomeCommunityMap.formatHomeCommunityId(communityId)); <END> LOG.trace("Exiting ADTransform-getLogEventRequestType() method."); return result; }</code><technical_language>This method for AD Remote homecommunityID - getAdminDistributionMessageCommunityID() This method require changes needs get hcid based direction ignoring interface</technical_language>

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; }