示例#1
0
 function getLabsGraphValues()
 {
     $oDD = new \raptor\DashboardData($this->m_oContext);
     $aDD = $oDD->getDashboardDetails();
     $selectedPatient = array('ethnicity' => $aDD['PatientEthnicity'], 'gender' => $aDD['PatientGender'], 'age' => $aDD['PatientAge']);
     $labsResult = MdwsUtils::getChemHemLabs($this->m_oContext->getMdwsClient());
     //Pass in selected patient and egfr formula if one is defined
     $result = MdwsUtils::convertSoapLabsToGraph($selectedPatient, NULL, $labsResult, 3);
     error_log('getLabsGraphValues patient>>>' . print_r($selectedPatient, TRUE));
     error_log('getLabsGraphValues labs>>>' . print_r($labsResult, TRUE));
     error_log('getLabsGraphValues filtered>>>' . print_r($result, TRUE));
     if (!is_array($result)) {
         $result = array();
     }
     return $result;
 }