public function before($context)
 {
     parent::before($context);
     $group = OutpatientToolInspectGroup::getPatientCaseGroup();
     DBC::requireTrue($group->isIn($context->response->curInspector), '你没有权限访问');
 }
 public function doctorList($request, $response)
 {
     /*{{{*/
     $doctorNameOrUsername = $request->doctorNameOrUsername;
     $response->doctorNameOrUsername = $doctorNameOrUsername;
     $spaces = array();
     if (false == empty($doctorNameOrUsername)) {
         $spaces = SpaceClient::getInstance()->getSpacesByName($doctorNameOrUsername);
         if (current($spaces)->isNull()) {
             $spaces = array();
         }
     }
     $response->spaces = $spaces;
     $response->title = "信息录入";
     $response->inspectGroup = OutpatientToolInspectGroup::getPatientCaseGroup();
 }