#1310 | changing visit service to use the new encounter transaction api to get encounters