If you are questioning whether to take medicine on Shabbat or not, remember that the Torah does not want anyone to suffer. Be honest with yourself in judging what is best to do, and, if possible, ask your rabbi.