@Test public void shouldBuildCE_Element_IfParametersareNull() { CE ce=CDAHelper.buildCodeCE(null, null, null,null); String code=ce.getCode(); String codeSystem=ce.getCodeSystem(); String codeSystemName=ce.getCodeSystemName(); String displayName=ce.getDisplayName(); Assert.assertEquals(code, null); Assert.assertEquals(codeSystem, null); Assert.assertEquals(codeSystemName, null); Assert.assertEquals(displayName, null); }
public static CE buildCodeCE(String code , String codeSystem, String displayString, String codeSystemName) { CE e = DatatypesFactory.eINSTANCE.createCE(); if(code!=null) { e.setCode(code); } if(codeSystem!=null) { e.setCodeSystem(codeSystem); } if(displayString!=null) { e.setDisplayName(displayString); } if(codeSystemName!=null) { e.setCodeSystemName(codeSystemName); } return e; }
CDAHelper { public static CE buildCodeCE(String code , String codeSystem, String displayString, String codeSystemName) { CE e = DatatypesFactory.eINSTANCE.createCE(); if(code!=null) { e.setCode(code); } if(codeSystem!=null) { e.setCodeSystem(codeSystem); } if(displayString!=null) { e.setDisplayName(displayString); } if(codeSystemName!=null) { e.setCodeSystemName(codeSystemName); } return e; } }
CDAHelper { public static CE buildCodeCE(String code , String codeSystem, String displayString, String codeSystemName) { CE e = DatatypesFactory.eINSTANCE.createCE(); if(code!=null) { e.setCode(code); } if(codeSystem!=null) { e.setCodeSystem(codeSystem); } if(displayString!=null) { e.setDisplayName(displayString); } if(codeSystemName!=null) { e.setCodeSystemName(codeSystemName); } return e; }  }
CDAHelper { public static CE buildCodeCE(String code , String codeSystem, String displayString, String codeSystemName) { CE e = DatatypesFactory.eINSTANCE.createCE(); if(code!=null) { e.setCode(code); } if(codeSystem!=null) { e.setCodeSystem(codeSystem); } if(displayString!=null) { e.setDisplayName(displayString); } if(codeSystemName!=null) { e.setCodeSystemName(codeSystemName); } return e; }  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 CE buildCodeCE(String code , String codeSystem, String displayString, String codeSystemName) { CE e = DatatypesFactory.eINSTANCE.createCE(); if(code!=null) { e.setCode(code); } if(codeSystem!=null) { e.setCodeSystem(codeSystem); } if(displayString!=null) { e.setDisplayName(displayString); } if(codeSystemName!=null) { e.setCodeSystemName(codeSystemName); } return e; }  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);  }