Dr told me to take Advil before insertion

Ev
I'm getting Merina put in on Friday morning and my doctor told me to take Advil throughout the day on Thursday. and 30mins before the appointment. specifically 3 at breakfast, 3 at lunch,  3 at dinner and 3 as a late night snack. so that's 12 total in one day! is it safe? what did your doctor have you do?