The problem is while technically Jacobson v Massachusetts is supposed to declare unreasonable restrictions unconstitutional, in practice it has allowed forced vaccination, forced sterilization, and forced detention. Oops!
My point is that this does fall under that reasoning.