/** * project metadata */ global $Proj; $baseline_event_id = $Proj->firstEventId; $plugin_title = "Derive values"; /** * plugin title */ echo "<h3>$plugin_title</h3>"; $timer['set tx data'] = microtime(true); set_tx_data($subjects, $debug); $timer['set bmi'] = microtime(true); set_bmi($subjects, $debug); $timer['set cbc'] = microtime(true); set_cbc_flags($subjects, $debug); $timer['set cirrhosis'] = microtime(true); set_cirrhosis($subjects, $debug); $timer['set crcl'] = microtime(true); set_crcl($subjects, null, 'both', $debug); $timer['set trt exp'] = microtime(true); set_treatment_exp($subjects, $debug); $timer['set egfr'] = microtime(true); set_egfr($subjects, null, 'both', $debug); /** * timing */ $timer['main_end'] = microtime(true); $init_time = benchmark_timing($timer); echo $init_time;
if ($debug) { $timer['main_end'] = microtime(true); error_log(benchmark_timing($timer)); } break; case 'prior_treatment_response': $debug = false; ?> <script type="text/javascript"> $(document).ready(function () { console.log('blah'); $("div#reqPopup").html("blah"); }); </script> <?php set_treatment_exp($record, $debug); if ($debug) { $timer['main_end'] = microtime(true); error_log(benchmark_timing($timer)); } break; /** * all other forms do nothing */ /** * all other forms do nothing */ default: if ($debug) { $timer['main_end'] = microtime(true); error_log("CASE DEFAULT" . benchmark_timing($timer));