Smartphone which performs medical tests could save lives