/**
  * Lab Orders text/label in JSON format
  * TODO: to be implemented (currently returns empty JSON)
  */
 public function labOrdersJsonAction()
 {
     $personId = (int) $this->_getParam('personId');
     $filters = array('patientId' => $personId);
     $data = array();
     $labOrder = new LabOrder();
     $labsIterator = $labOrder->getIteratorByPersonId($personId);
     //$labsIterator->setFilters($filters);
     $labs = array();
     foreach ($labsIterator as $lab) {
         $description = $lab->description;
         if (!strlen($description) > 0) {
             $description = 'Order provided by ' . $lab->orderingProvider;
         }
         $labs[$lab->labOrderId] = $description;
     }
     $rows = $this->_toJsonArray($labs);
     $data = array();
     $data['rows'] = $rows;
     $json = Zend_Controller_Action_HelperBroker::getStaticHelper('json');
     $json->suppressExit = true;
     $json->direct($data);
 }