Factors predicting a change in diagnosis in patients hospitalised through the emergency room