Optimizing the primary care management of chronic pain through telecare