Judaism recognizes psychiatric as well as physical factors in evaluating the potential threat that the fetus poses to the mother.
The danger posed by the fetus (whether physical or emotional) must be both probable and substantial to justify abortion.