This doesn't work for two encounters. it is a fix for two patient entries like an accidentally misspelled name. two encounters on the same patient will mess up your meaningful use data and will not be helped by this merge function.