Treatment would IMO, include housing while under treatment, and some sort of halfway-housing afterwards.
I don't know if there are "one time" or "one shot" solutions. Certainly there are some unhoused that can be helped by that but I'm under the impression that most have issues that go substantially beyond a one time check or a pill or a one time treatment.