Networked devices help head off medical woes and speed recovery