It sounds like it, and it might be, but testing for weed really does impact recruiting. I know of a very large US firm that has quietly stopped including it in their drug test over the past 3-4 years in part because of that.
(I wouldn’t be surprised if folks start to push testing as a HIPAA issue.)
I'm no expert but it could place you in a situation where you are faced with divulging a legal* medical prescription as a condition of keeping your job.
That has nothing to do with HIPAA, your employer is in almost all cases not a covered entity. People frequently believe that they have a right not to have to disclose health information to their employer; this is true in certain cases but by and large is false. There are explicit provisions in HIPAA saying that requiring doctors notes is legal, for example.
HIPAA applies exclusively to covered entities. Your employer is, in most cases, not a covered entity. If you want evidence of this (assuming you're in the United States) go look at the information required by your employers FMLA disclosure form.
Hint, the I in HIPAA stands for insurance. If insurance isn't involved, HIPAA probably isn't either.