A healthcare provider may order an X-ray of both knees in the AP view while standing if a patient is experiencing knee pain, swelling, stiffness, or limited range of motion. The test may also be used to diagnose conditions such as osteoarthritis, rheumatoid arthritis, or gout. An X-ray of both knees in the AP view while standing may also be ordered if the patient has sustained a knee injury, such as a sprain or fracture.