Establishing causality and prognosis of chronic pain conditions including complex regional pain syndrome