Phones could become diagnostic tools