There was no significant difference in cognitive function four months after surgery between patients treated in the acute geriatric and the orthopedic wards ( mean 54.7 versus 52.9 , 95 % confidence interval for the difference -5.9 to 9.5 ; P = 0.65 ) .