Mahajan went to the hospital in the afternoon and was there for some time, a senior BJP leader said.
Parrikar was admitted to the hospital on February 15.
Vice President M Venkaiah Naidu had visited Parrikar yesterday to enquire about his health.
On Sunday, Prime Minister Narendra Modi had also paid a visit to Parrikar at the hospital.