It's the hospital's responsibility to educate their doctors on how to practice medicine within the bounds of Catholic morality. They obviously dropped the ball pretty completely.
Which brings up the question - should they have let the woman die? Since that’s what would have happened, in which case both mother and baby die - two lives lost instead of one.