Wearables and other technologies help providers better understand patients’ behavior — and their needs.