public function indexAction() { $this->view->filterDates = $this->_filterDates; $this->view->filterGraphs = $this->_filterGraphs; $this->view->labelKeyValues = $this->getVitalSignsTemplateKeyValue(); $this->render('index'); return; exit; $pat = new Patient(); $pat->personId = 1983; $pat->populate(); echo $pat->bmi; //var_dump(VitalSignGroup::getBMIVitalsForPatientId(1983)); exit; $vitals = new VitalSignGroup(); $vitalsIter = $vitals->getIterator(); foreach ($vitalsIter as $vitals) { print_r($vitals->toString()); } $this->render(); }
public function vitalsJsonAction() { $rows = array(); $vitals = new VitalSignGroup(); $vitalsIter = $vitals->getIterator(); foreach ($vitalsIter as $vitals) { foreach ($vitals->vitalSignValues as $vitalSign) { $tmp = array(); $tmp['id'] = $vitalSign->vitalSignValueId; $tmp['data'][] = $vitals->dateTime; $tmp['data'][] = $vitalSign->vital; $tmp['data'][] = $vitalSign->value; //USS Value $tmp['data'][] = 'Metric Value'; $tmp['data'][] = ''; //Qualifiers $tmp['data'][] = $vitals->enteringUserId; $rows[] = $tmp; } } $json = Zend_Controller_Action_HelperBroker::getStaticHelper('json'); $json->suppressExit = true; $json->direct(array("rows" => $rows), true); }