/** * List of patients on a worklist (only supporting worklists generated by a definition. * * @param $id * * @throws CHttpException */ public function actionWorklistPatients($id) { $worklist = $this->manager->getWorklist($id); if (!$worklist) { throw new CHttpException(404, 'Worklist not found'); } if (!$worklist->worklist_definition) { throw new CHttpException(400, 'Worklist does not have a definition so not viewable in this admin.'); } $this->render('//admin/worklists/worklist_patients', array('worklist' => $worklist)); }