[OE-3760] optimised genetic patients-by-diagnosis search query