Health and quality of life before and after hip or knee arthroplasty