AuditDataTransformHelper { public static CodedValueType createEventId(final String eventCode, final String eventCodeSys, final String eventCodeSysName, final String dispName) { final CodedValueType eventId = new CodedValueType(); eventId.setCode(eventCode); eventId.setCodeSystem(eventCodeSys); eventId.setCodeSystemName(eventCodeSysName); eventId.setDisplayName(dispName); return eventId; }  static EventIdentificationType createEventIdentification(final String actionCode, final Integer eventOutcome,
        final CodedValueType eventId); static CodedValueType createEventId(final String eventCode, final String eventCodeSys,
        final String eventCodeSysName, final String dispName); static CodedValueType createCodeValueType(final String code, final String codeSys, final String codeSysName,
        final String dispName); static AuditMessageType.ActiveParticipant createActiveParticipantFromUser(final UserType userInfo,
        final Boolean userIsReq); static AuditMessageType.ActiveParticipant createActiveParticipant(final String userId,
        final String altUserId, final String userName, final Boolean userIsReq); static AuditSourceIdentificationType createAuditSourceIdentificationFromUser(final UserType userInfo); static AuditSourceIdentificationType createAuditSourceIdentification(final String communityId,
        final String communityName); static ParticipantObjectIdentificationType createParticipantObjectIdentification(final String patientId); static ParticipantObjectIdentificationType createDocumentParticipantObjectIdentification(
        final String documentId); static void logAuditMessage(final AuditMessageType message); static ExternalIdentifierType findSingleExternalIdentifier(final List<ExternalIdentifierType> olExtId,
        final String sIdentScheme); static String findSingleExternalIdentifierAndExtractValue(final List<ExternalIdentifierType> olExtId,
        final String sIdentScheme); static String createCompositePatientId(final String assigningAuthId, final String patientId); static String createCompositePatientIdFromAssertion(final UserType userInfo, final String patientId);  }
@Test public void testCreateEventId() { String eventCode = AuditDataTransformConstants.EVENT_ACTION_CODE_DELETE; String eventCodeSys = ""; String eventCodeSysName = AuditDataTransformConstants.EVENT_ID_CODE_SYS_NAME_SDD; String dispName = AuditDataTransformConstants.EVENT_ID_DISPLAY_NAME_SDREV; CodedValueType expResult = new CodedValueType(); expResult.setCodeSystemName(eventCodeSysName); expResult.setDisplayName(dispName); expResult.setCode(eventCode); CodedValueType result = AuditDataTransformHelper.createEventId(eventCode, eventCodeSys, eventCodeSysName, dispName); assertSame(expResult.getCodeSystemName(), result.getCodeSystemName()); assertSame(expResult.getDisplayName(), result.getDisplayName()); assertSame(expResult.getCode(), result.getCode()); }