Management of hip fractures by total hip arthroplasty