encounter by type