I'm on meds were I can't breastfeed for 7days how much and often do I need to pump so my milk doesn't dry up?

Regularly. Pump as often as you would breast feed to keep up your supply. 7 days is a long time.....So if you do not pump regularly then you will dry up..And preserve only the times you are pumping.