Long-stay in short-stay inpatient facilities: risk factors and barriers to discharge