Those from the most deprived areas were more likely to experience complications from hip replacement operations.