Using electronic health records to characterize prescription patterns: focus on antidepressants in nonpsychiatric outpatient settings