refactoring - renaming getNonVoidedSortedEncounters to getSortedEncounters.