If a doctor were to take such a job, and then refuse to perform any abortions, would the facility not have the right to fire him? If it didn't, that would seem an easy way to shut down abortion mills.
If the hospital were looking for a doctor to perform abortions they would tell him that at the interview and he would be hired on those conditions.