added provider method to EncounterBuilder