A microdevice for rapid optical detection of magnetically captured rare blood pathogens.