@Test public void shouldCreateTemplateIDIfParametersareNull() { II templateid=CDAHelper.buildTemplateID(null, null, null); String root=templateid.getRoot(); String extension=templateid.getExtension(); String authority=templateid.getAssigningAuthorityName(); Assert.assertEquals(root, null); Assert.assertEquals(extension, null); Assert.assertEquals(authority, null); }
public static II buildTemplateID(String root , String extension ,String assigningAuthorityName) { II templateID = DatatypesFactory.eINSTANCE.createII(); if(root!=null) { templateID.setRoot(root); } if(extension!=null) { templateID.setExtension(extension); } if(assigningAuthorityName!=null) { templateID.setAssigningAuthorityName(assigningAuthorityName); } return templateID; }
CDAHelper { public static II buildTemplateID(String root , String extension ,String assigningAuthorityName) { II templateID = DatatypesFactory.eINSTANCE.createII(); if(root!=null) { templateID.setRoot(root); } if(extension!=null) { templateID.setExtension(extension); } if(assigningAuthorityName!=null) { templateID.setAssigningAuthorityName(assigningAuthorityName); } return templateID; } }
CDAHelper { public static II buildTemplateID(String root , String extension ,String assigningAuthorityName) { II templateID = DatatypesFactory.eINSTANCE.createII(); if(root!=null) { templateID.setRoot(root); } if(extension!=null) { templateID.setExtension(extension); } if(assigningAuthorityName!=null) { templateID.setAssigningAuthorityName(assigningAuthorityName); } return templateID; }  }
CDAHelper { public static II buildTemplateID(String root , String extension ,String assigningAuthorityName) { II templateID = DatatypesFactory.eINSTANCE.createII(); if(root!=null) { templateID.setRoot(root); } if(extension!=null) { templateID.setExtension(extension); } if(assigningAuthorityName!=null) { templateID.setAssigningAuthorityName(assigningAuthorityName); } return templateID; }  static SimpleDateFormat getDateFormat(); static IVL_TS buildEffectiveTimeinIVL(Date d , Date d1); static IVL_TS buildEffectiveTimeinIVL(Date d); static II buildTemplateID(String root , String extension ,String assigningAuthorityName); static ST buildTitle(String title); static II buildID(String root , String extension); static CE buildCodeCE(String code , String codeSystem, String displayString, String codeSystemName); static CD buildCodeCD(String code , String codeSystem, String displayString, String codeSystemName); static TS buildEffectiveTime(Date d); static ED buildEDText(String value); static String getDatatypesValue(Integer datatypeId,Obs obs); static Obs getLatestObs(List<Obs> observationList); static CS getStatusCode(String statusCode); static IVL_TS buildDateTime(Date date); static String getCodeSystemByName(String codeSystemName); static String removeDirtyValue(String input); static String getUnitsaccordingto_Tf_PCC(String unit); static String getConceptIdasString(int conceptId); }
CDAHelper { public static II buildTemplateID(String root , String extension ,String assigningAuthorityName) { II templateID = DatatypesFactory.eINSTANCE.createII(); if(root!=null) { templateID.setRoot(root); } if(extension!=null) { templateID.setExtension(extension); } if(assigningAuthorityName!=null) { templateID.setAssigningAuthorityName(assigningAuthorityName); } return templateID; }  static SimpleDateFormat getDateFormat(); static IVL_TS buildEffectiveTimeinIVL(Date d , Date d1); static IVL_TS buildEffectiveTimeinIVL(Date d); static II buildTemplateID(String root , String extension ,String assigningAuthorityName); static ST buildTitle(String title); static II buildID(String root , String extension); static CE buildCodeCE(String code , String codeSystem, String displayString, String codeSystemName); static CD buildCodeCD(String code , String codeSystem, String displayString, String codeSystemName); static TS buildEffectiveTime(Date d); static ED buildEDText(String value); static String getDatatypesValue(Integer datatypeId,Obs obs); static Obs getLatestObs(List<Obs> observationList); static CS getStatusCode(String statusCode); static IVL_TS buildDateTime(Date date); static String getCodeSystemByName(String codeSystemName); static String removeDirtyValue(String input); static String getUnitsaccordingto_Tf_PCC(String unit); static String getConceptIdasString(int conceptId);  }