finished assignment which displays all patients and encounters FINAL