Passing encounter data to encounterService