Abortion is never medically necessary.
https://americanpregnancy.org/pregnancy-complications/ectopic-pregnancy/