Extract {ProblemList} codes to template document

hi @Stewart_Cusick , add some functionality to interface/patient_file/download_template.php.

Specifically, grab the code from the diagnosis field by adding it to the sql query.