My surgeon said a week but set up an appointment the Monday after my Wednesday operation!

I took pain meds the day of surgery and the day after and didn't need anymore after that. I would not have been ok to drive either of those days. By that Monday I was more then ready (walking more than an hour a day, healing fast) and it was safe for me to drive. But I will not drive with any alcohol in my system and I would not have driven if I was still on the pain meds. Also, the first few days i was still pretty loopy from surgery so I doubt I was ok to drive for at least for 4 days including surgery day. Don't drive with drugs in your system, don't drive if you can't go for a long walk, and don't drive if your brain is foggy. Once you are back to par you should be fine to drive and I suspect it will depend on how your system responds to the shock it will undergo.
Good luck!