Typically, doctors have to cultivate a patient sample in a petri dish over several days before they can test it for pathogens. The new method takes only hours. It passes an electric current over the sample and uses an algorithm to detect any bacteria, virus or parasite present as well as any drug the patient might be resistant to.