Pregnancy with painkillers

Patient: I just found out i was 6 weeks pregnant and worried because beforehand I have been taking vicadin and other painkillers. I am worried and need to know if it would be best for my baby to stop taking them completely or wean myself off of them? Now that I know i am pregnant I have the best intentions to provide my baby with the best health and best life it can possibly have.