My doctor calls it "pain brain"!
I take my scheduled meds 4 times a day so every morning I prepare my pills for the day. I took empty pill bottles and labeled each one morning, noon, evening and bedtime. I found this helps when I have the did I take my pills moment.
We all have moments (sometimes days!) where we are stuck in a fog or just too tired to think straight. Don't let it get you down!