Patterns and correlates of psychiatric hospitalization in a nationwide sample