A 22-year-old university student presents to the emergency department with active suicidal ideation and a specific plan to overdose on medications at home. She has a history of major depression and is living alone. What is the most appropriate management?