Exemplo n.º 1
0
 /**
  * Get the boilerplate details for the requested row
  * @param type $sTrackingID
  */
 function getDashboardDetails()
 {
     $sThisResultName = 'getDashboardDetails';
     $aCachedResult = $this->m_oRuntimeResultCache->checkCache($sThisResultName);
     if ($aCachedResult !== null) {
         //Found it in the cache!
         return $aCachedResult;
     }
     $wl = new WorklistData($this->m_oContext);
     $aResult = $wl->getDashboardMap();
     $this->m_oRuntimeResultCache->addToCache($sThisResultName, $aResult);
     return $aResult;
 }
Exemplo n.º 2
0
 function __construct($oContext)
 {
     $this->m_aResultCache = array();
     $this->m_oContext = $oContext;
     $this->m_oRuntimeResultCache = \raptor\RuntimeResultCache::getInstance($this->m_oContext, 'ProtocolSupportingData');
     $wl = new WorklistData($this->m_oContext);
     $this->m_aDashboardMap = $wl->getDashboardMap();
     // getWorklistForProtocolSupport();
     $this->m_aPatientInfo = $wl->getPatient($this->m_aDashboardMap["PatientID"]);
     if ($this->m_aPatientInfo == NULL) {
         $msg = 'Did NOT get patient data in constructor of ProtocolSupport for context=' . $oContext . '<br>orders=' . print_r($this->m_aDashboardMap, TRUE) . '<br>Stack trace...<br>' . Context::debugGetCallerInfo(5);
         error_log($msg);
         throw new \Exception($msg);
     }
 }