Move getPatients() to QueryResult