dictionaryConvertStr+=" LEFT JOIN dbo.emr_dictionary AS t_dictionary_10 ON t_diag.diag_type = t_dictionary_10.CODE AND t_dictionary_10.parent_id = 'dis_diag_type'";
whereNames+="between '"+val+"' and '"+select22Val+"'))";
}elseif(age!=''&&age==commomtable+'.age'){
whereNames+="between "+val+" and "+(select22Val-1)+" OR ("+commomtable+".age = "+select22Val+" AND "+commomtable+".age_month = 0 AND "+commomtable+".age_day = 0))) ";
whereNames+="between "+val+" and "+(select22Val-1)+" AND "+commomtable+".age = 0 OR ("+commomtable+".age = 0 AND "+commomtable+".age_month = "+select22Val+" AND "+commomtable+".age_day = 0))) ";