Medicine is on the brink of an era where microscopic devices inside our bodies connect us directly to the digital world.