logic to determine whether to set request status to complete considers result summary datetime relative to authorisation datetime; replaced io unlink() with system unlink in render_pdf - was giving occasional errors; replaced M::Base::does_authorisation method with Moose attr to save repeat db queries; fixed oversight in _archive_report_details() causing history log to record amended specimen_date at every authorisation; gallium_data.pl checks for comment field to prevent fatal error; more report_status.t tests to test for status change on delayed result summary entry
split outreach charts into 2 to accomodate CML outreach; added better date handling routine for charts; changed auto-screening handling of specimen code for CML outreach requests; bugfixes to HMRN to remove legacy 'chronologies' table entries; removed redundant code/queries for error_codes.pl script
changed user workload stats methods to store data in session to speed up chart generation, also changed (broken) RDBO method to dbix method - results should be correct now; quinitiles data bugfixes
integrated date_contraints.tt with user stats; chnaged outreach interim report to show diagnosis & comment when authorised, not just reported; ScriptHelpers::mail_admin() accepts 'subject' arg
MAJOR CHANGE: moved sql_lib() from M::Base to new M::Role::Query; moved all M::R::QueryFormatter methods into M::R::Query; removed sql_lib() from ScriptHelpers - using new M::Roles::Query method; removed lims_dbix() from M::Base - now loaded via M::Role::DBIxSimple on demand; moved get_sql_with_constraint() from M::R::DBIxSimple to M::R::Query; method gets dbh from lims_db not lims_dbix in M::LabSection::update_lab_sections() & M::Specimen::update_specimens(); added elements() to Local::QueryLibrary
simplified turnaround_times_specimen query; patched report/report.tt to test for use of authorisation status when displaying 'confirm final diagnosis' checkbox (for Bristol)
fixed M::Request::get_new_and_relapsed_cases() to correctly handle org_code as scalar or arrayref; simplified print-run section to retrieve request ids from excluded locations; refactored & speeded up some slow audit queries