The pain score and the degree of insomnia can be used to predict the leng of stay with the correlation coefficient R = 0.592 and the multivariate correlation function with statistical significance (p<0.001).