Are healthcare costs from obesity associated with body mass index, comorbidity or depression? Cohort study using electronic health records