The orthopedic surgeon will ask you to have a few tests before hip replacement surgery, including-
X-Ray
MRI
Echocardiogram
These imaging tests will help in better diagnosis of the condition, the surgeon will suggest the best suitable treatment option for you after evaluating your condition based on the test results.