added working hibernate/service for encounter table