Update DiagnosesController.php

Now only diagnosed patients are shown
*Fixed: Unknown column 'Analyze.patientid' in 'where clause'