openMRS code for listing all patients and link their names to a list of encounters