Wow, this seems dangerous. I can't imagine the ACLU not challenging this. Nor the employees not suing for wrongful termination and invasion of privacy.
What's next -- fire everyone who drinks alcohol, or drinks caffeinated drinks, or is considered obese by National Institute of Health standards, or uses birth control pills.
This can't be upheld.