Move getPatients() to QueryResult

Also slight optimization (don't build new set if we already have one).