After performing a series of tests to examine the knee, the patient's doctor may ask for a history of back, foot, hip, or leg pain. X-Rays and MRIs may be ordered to diagnose the offending area. Once the cause of the referred pain is determined, the doctor will determine a course of treatment.