How to take into account exposure to drugs over time in pharmacoepidemiology studies of pregnant women?

How to take into account exposure to drugs over time in pharmacoepidemiology studies of pregnant women?