here What is considered a potentially life-threatening condition that allows one to pursue medical treatment on Shabbos? Sources can be found here.