In my pregnancy class there was a woman who went on medication for premature contractions. They started for her very early in the pregnancy and the dr just wanted her to get to 34 weeks. They ended up having to induce her at full term because she didn't end up in early labor. (They induced due to gestational diabetes, they didn't want her to go too long.)

If the dr tells you that you need bed rest then rest, your health and the baby's is definitely more important than work!!!

Good luck with the rest of your pregnancy!