Under the Mental Health Act (at least here in BC)  persons who exhibit symptoms of a mental disorder and present a danger to themselves or others can be detained involuntarily for up to 30 days for observation, diagnosis and potential treatment.

People who are injecting street drugs clearly have some sort of mental health issue going on and are engaging in very high risk behaviour that is dangerous to their well being.

Why are they not being detained and cleaned up?