Title: A unified approach to patient classification and nurse staffing for long-term care facilities