Both are grammatically correct, but different in meaning: (1) means they went to the doctor's while they were complaining of chest pains (time), while (2) means they visited the doctor for the purpose of complaining/in order to complain about chest pains (purpose).
I'm not sure that "complain" is the verb speakers would naturally use in the circumstances. Perhaps they wanted to ask about the chest pains they were experiencing.
When you block a person, they can no longer invite you to a private message or post to your profile wall. Replies and comments they make will be collapsed/hidden by default. Finally, you'll never receive email notifications about content they create or likes they designate for your content.
Note: if you proceed, you will no longer be following .