The association between weight-bearing status and early complications in hip fractures