Why did the doctor rub a pen on my dad's foot?

My dad had a stroke 2 days ago and we were in hospital today when the neurologist came in and assessed him and he took a pen and rubbed it on the bottom of my dad's foot.

What was the point of that? it looked uncomfortable?
7 answers 7