Why do you have to take your pill at 7am? Usually there is some leeway with when you can take pills.

I used to have a similar problem when we got a puppy- he would want to go out at 6 am and then there was no way I could get back to sleep. But as he got older we started getting up for him later each day, now he waits till we're up.