Although opioids are commonly prescribed to address chronic pain , they confer risk for misuse and addiction in some patients and may not fully restore life function-particularly with regard to psychosocial factors .