added getAllPatients method