Esempio n. 1
0
 /**
  * Setup all the global variables that are part of the form context.
  */
 function setupFormContext()
 {
     global $raptor_protocoldashboard;
     global $raptor_protocol_content;
     global $raptor_context;
     $userinfo = $this->m_oContext->getUserInfo();
     $userprivs = $userinfo->getSystemPrivileges();
     $raptor_context = $this->m_oContext;
     if ($userinfo->getUserID() < 0 || $userinfo->getUserID() == NULL) {
         //This is not a valid user session, this can happen on kickout and things like that.
         $errormsg = 'Did not have a valid user id (' . $userinfo->getUserID() . ')';
         error_log($errormsg);
         die($errormsg);
     }
     module_load_include('php', 'raptor_datalayer', 'core/data_dashboard');
     module_load_include('php', 'raptor_datalayer', 'core/data_protocolsupport');
     module_load_include('php', 'raptor_datalayer', 'core/data_listoptions');
     module_load_include('php', 'raptor_graph', 'core/GraphData');
     if (!$this->m_oContext->hasSelectedTrackingID()) {
         //This can happen when we are done with a personal batch or somethning like that.
         die('Did NOT find a selected Tracking ID.  Go back to the worklist.');
     }
     //Set all the Protocol page values
     $oDD = new \raptor\DashboardData($this->m_oContext);
     $raptor_protocoldashboard = $oDD->getDashboardDetails();
     $oPSD = new \raptor\ProtocolSupportingData($this->m_oContext);
     $oGD = new \raptor\GraphData($this->m_oContext);
     $oLO = new \raptor\ListOptions();
     $raptor_protocol_content = array();
     //$formContent = raptor_glue_protocolinfo_form_inputarea();
     $raptor_protocol_content['Input']['Protocol'] = '<h1>THIS GLOBAL ENTRY HAS BEEN DEPRECATED!</h1>';
     //drupal_render($formContent);
     $raptor_protocol_content['Reference']['OrderOverview'] = $oPSD->getOrderOverview();
     $raptor_protocol_content['Reference']['VitalsSummary'] = $oPSD->getVitalsSummary();
     $raptor_protocol_content['Reference']['MedicationsDetail'] = $oPSD->getMedicationsDetail();
     $raptor_protocol_content['Reference']['VitalsDetail'] = $oPSD->getVitalsDetail();
     $raptor_protocol_content['Reference']['AllergiesDetail'] = $oPSD->getAllergiesDetail();
     $raptor_protocol_content['Reference']['ProcedureLabsDetail'] = $oPSD->getProcedureLabsDetail();
     $raptor_protocol_content['Reference']['DiagnosticLabsDetail'] = $oPSD->getDiagnosticLabsDetail();
     $raptor_protocol_content['Reference']['DoseHxDetail'] = $oPSD->getDoseHxDetail();
     $raptor_protocol_content['Reference']['PathologyReportsDetail'] = $oPSD->getPathologyReportsDetail();
     $raptor_protocol_content['Reference']['SurgeryReportsDetail'] = $oPSD->getSurgeryReportsDetail();
     $raptor_protocol_content['Reference']['ProblemsListDetail'] = $oPSD->getProblemsListDetail();
     $raptor_protocol_content['Reference']['NotesDetail'] = $oPSD->getNotesDetail();
     $raptor_protocol_content['Reference']['RadiologyReportsDetail'] = $oPSD->getRadiologyReportsDetail();
     $raptor_protocol_content['Reference']['Graph']['Thumbnail'] = $oGD->getThumbnailGraphValues();
     $raptor_protocol_content['Reference']['Graph']['Labs'] = $oGD->getLabsGraphValues();
     $raptor_protocol_content['Reference']['Graph']['Vitals'] = $oGD->getVitalsGraphValues();
     $raptor_protocol_content['AtRiskMeds'] = $oLO->getAtRiskMedsKeywords();
 }