An algorithm for predicting blood loss and transfusion risk after total hip arthroplasty