no code needed. If you click on the magnifying glass it will popuate the fields you need:
If you want to change the fields, you can go to Lists and find Patient List Columns
and by editing that you can get a view like this: