Text this: Results and validation of an index to measure health state of patients with depression in automated healthcare databases