added method to print batches containing the same patients