How to export patient encounter data and files

I had only been able to export the patient data into a csv file, however, this does not include the information from the patient encounter. I also need to export the files which belong to all the patients. Is there a fast way to do all this process?