case 'fibrosis_staging': case 'cirrhosis': set_cirrhosis($record, $debug); break; case 'prior_treatment_response': Prioritize::set_treatment_exp($record, $debug); break; case 'derived_values_baseline': Prioritize::set_tx_data($record, $debug); break; /** * all other forms do nothing */ /** * all other forms do nothing */ default: break; } /** * Determine completeness of baseline, week4, eot, eot1year and eot3year surveys and record state. * this has to run on every form save to capture the passage of time. you can't */ if (in_array($redcap_event_name, array_keys($arms)) && $instrument != 'survey_completion') { Prioritize::set_survey_completion($record, $debug); } } if ($debug) { $timer['main_end'] = microtime(true); error_log(benchmark_timing($timer)); }