update encounter