Some places have breast milk donations that maybe you could use? Formula is good and healthy for the baby. If you have to go back to work or school right away and need those medications, then I'd recommend just doing formula. But, yes, talk to your doctor and a lactation consultant.
Just talk with you doc and with him weigh the pros and cons of med changes as well as breastfeeding.
Good luck...not sure what else to tell ya.