Psychiatric patients at the emergency department: factors associated with length of stay and likelihood of hospitalization