Fernandes attacked the medical officer yesterday when he was brought for a routine checkup, police said.
The incident took place at the out patient department of the jail dispensary inside the prison, located 15 kms away from the state capital.
Calangute police have registered an offence against Fernandes.