Assessment of attention to pain using handheld computer diaries