added new function to require confirmation when reporting with outstanding test results; moved C::Report::_get_requested_tests() to C::Roles::ResultHandler; converted some template data objects to as_tree hashrefs to prevent db lookups when empty; fixed some tests to comply with new confirm_outstanding_results flag
bugfixes - changed submission of final diagnosis to always require reason for diagnosis change (was optional but missing value caused data commit to die); password_reset() tests for new_passwd_data before using in 'eq' - could be undef due to session deletion
MAJOR CHANGES: search form uses jQuery watermark instead of dd-mm-yyyy display - changed date-field validation to accommodate; moved do_new_lab_test() method out of M::Role::ScreenUpdate to new M::Role::LabTestUpdate to share function with auto-requesting tests at diagnosis/authorissation; changed 'teaching' field to radio button in report page and changed handling of report_option fields in M::Roles::ReportUpdate::do_additional_options() - all request_options were being cleared during report stage; added updated_at timestamp field in M::Roles::ReportUpdate::do_request_report() to any unchanged request_report object to trigger mail_report.pl on authorised cases - were being missed as updated_at col was not being modified
added function to notify admin of system error generated by LIMS::error(); C::Roles::RecordHandler::get_previous_cases() skips non-matching nhs_numbers if current request has an nhs_number
print report function calculates composite immunohistochemistry p21/p53 result; replaced M::Request::get_previous_diagnosis_count() with get_previous_diagnoses() to supply data instead of just count, replacing redundant previous_diagnosis_data from C::Report::load(); printed reports now display 'amended report' details and highlights changed diagnosis; QueryLog creates separate logfiles for dev server user, to avoid lack of write permissions if files opened by Apache user & also to avoid polluting production logs with dev data
modified C::Report to handle Outreach cases; prevented redirect to root url from C::Report for Outreach cases if record locked; more Outreach lab_test & demographics functions