clean up diagnosis search