The role of algorithms in the detection and treatment of depression in primary care.