コード例 #1
0
 /**
  * Get all the form contents for rendering
  * @return type renderable array
  */
 function getForm($form, &$form_state, $disabled, $myvalues)
 {
     $form["data_entry_area1"] = array('#prefix' => "\n<section class='protocollib-admin raptor-dialog-table'>\n", '#suffix' => "\n</section>\n");
     $form["data_entry_area1"]['table_container'] = array('#type' => 'item', '#prefix' => '<div class="raptor-dialog-table-container">', '#suffix' => '</div>', '#tree' => TRUE);
     $oDD = new \raptor\DashboardData($this->m_oContext);
     $oPSD = new \raptor\ProtocolSupportingData($this->m_oContext);
     $radiology_reports_detail = $oPSD->getRadiologyReportsDetail();
     $raptor_protocoldashboard = $oDD->getDashboardDetails();
     $patientDFN = $raptor_protocoldashboard['PatientID'];
     $patientICN = $raptor_protocoldashboard['mpiPid'];
     $rows = '';
     foreach ($radiology_reports_detail as $data_row) {
         $reportID = $data_row['ReportID'];
         $caseNumber = $data_row['CaseNumber'];
         $rows .= "\n" . '<tr>' . '<td>' . $data_row["Title"] . '</td>' . '<td>' . $data_row["ReportedDate"] . '</td>' . '<td><a href="#" class="raptor-details">' . $data_row["Snippet"] . '</a>' . GetRadiologyReportsTab::raptor_print_details($data_row["Details"]) . '</td>' . '<td>' . GetRadiologyReportsTab::getImageInfoAsHTML($this->m_oContext, $patientDFN, $patientICN, $reportID, $caseNumber) . '</td>' . '</tr>';
     }
     $form["data_entry_area1"]['table_container']['reports'] = array('#type' => 'item', '#markup' => '<table id="my-raptor-dialog-table" class="dataTable">' . '<thead>' . '<tr>' . '<th>Title</th>' . '<th>Date</th>' . '<th>Details</th>' . '<th>Existing Images</th>' . '</tr>' . '</thead>' . '<tbody>' . $rows . '</tbody>' . '</table>');
     return $form;
 }
コード例 #2
0
ファイル: ProtocolInfoPage.php プロジェクト: rmurray1/RAPTOR
 /**
  * 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();
 }