Change in pain and function while waiting for major joint arthroplasty