A system for allocating mental health resources