for UCLH: arranged sort order of previous records by registration date then lab number - done by Perl sort function as RDBO forces t1.id 1st if using DATE(requests.created_at) in sort options
adapted admin clinician edit function to update hospital_department_code as well as is_active fields - previous is_active-only function broken on multi-location entries
simplified generation of participant id - moved patient_case_id lookup into main requests query, skipped patient_case_id field when creating %required_fields; updated genomics.t so tests pass
genomics participant id only created/updated if record screened and unit number still at default UNKNOWN, previously had to lookup unit number every time
patched genomics_xml.pl to update unit number with participant id at any time, not just within of screening, in case of script error on 1st run after screening, in which case opportunity for unit number update lost
bugfixes a) auto-vivification in genomics_xml.pl, b) auto-vivification didn't cause validation failure in xml_validate.pl as params validated after xml created - changed to same order as in genomics_xml.pl; applied same fix as genomics_xml.pl to return value from validate_params() in xml_validate.pl