גריי מאטר ב Laws of Shabbat / Saving Lives on Shabbat · סג
Gray Matter II 63
Generally speaking, one may not deliberately create a situation that will necessitate desecrating Shabbat in order to save a life. One may do so, however, for the sake of a mitzvah, so practical cases must be presented to a competent rabbi in order to determine whether they contain an element that might constitute a mitzvah for these purposes.