A doctor can determine if someone has a fracture with an X-ray. Treatment for a fractured kneecap may involve surgery to repair the broken bones or replacing all or part of the kneecap.