@Test public void testBuildVardRefId() { LocalDateTime ts = LocalDateTime.parse("2014-01-01T12:34:56.123"); String res = IntygConverterUtil.buildVardReferensId("ABC123", ts); assertNotNull(res); assertEquals(res, "SEND-ABC123-20140101T123456.123"); }
public static String buildVardReferensId(String intygId) { return buildVardReferensId(intygId, LocalDateTime.now()); }
IntygConverterUtil { public static String buildVardReferensId(String intygId) { return buildVardReferensId(intygId, LocalDateTime.now()); } }
IntygConverterUtil { public static String buildVardReferensId(String intygId) { return buildVardReferensId(intygId, LocalDateTime.now()); } private  IntygConverterUtil(); }
IntygConverterUtil { public static String buildVardReferensId(String intygId) { return buildVardReferensId(intygId, LocalDateTime.now()); } private  IntygConverterUtil(); static SendType buildSendTypeFromUtlatande(Utlatande utlatande); static String concatPatientName(String fName, String mName, String lName); static String buildVardReferensId(String intygId); static String buildVardReferensId(String intygId, LocalDateTime ts); static List<Status> buildStatusesFromUtkast(Utkast draft); static HoSPersonal buildHosPersonalFromWebCertUser(WebCertUser user, Vardenhet vardenhet); }
IntygConverterUtil { public static String buildVardReferensId(String intygId) { return buildVardReferensId(intygId, LocalDateTime.now()); } private  IntygConverterUtil(); static SendType buildSendTypeFromUtlatande(Utlatande utlatande); static String concatPatientName(String fName, String mName, String lName); static String buildVardReferensId(String intygId); static String buildVardReferensId(String intygId, LocalDateTime ts); static List<Status> buildStatusesFromUtkast(Utkast draft); static HoSPersonal buildHosPersonalFromWebCertUser(WebCertUser user, Vardenhet vardenhet);  }