Pikuach nefesh sets aside Shabbat, as it is said, And he shall live by them, and not that he die by them. The hasty one is praiseworthy, and even a doubt of danger sets Shabbat aside, as explained below. From the booklet Shabbat baHalachah ubaAgadah of Rabbi David Shalom Naki, shlit"a.