The Death/Necropsy workflow needed a little fine tuning to align with the real world workflow.
Also, reported broken 'performedBy' lookups various reports.
Related Pull Requests
Changes
Filter 'Submit for Review' drop down to filter on Vets.
Set QC state to 'Request Pending' when Death is submitted and update the triggers.
Allow request in the past and add time component.
Add link to necropsy tasks for the vets on the main page.
Various 'performedby' related fixes : save userId instead of displayName, update lookup to use userId as keyfield instead of displayName, 'performed by' value not getting displayed in a data entry form panel.
Update necropsyTasks.sql to further clarify qc state of 'Request: Pending' and 'Review Required', and update metadata to format the background color on the values.
Remove 'project' from metadata, upgrade script to reloadFolder, update schema version.
Use DbScope.CommitTaskOption.POSTCOMMIT when sending Death Notification.
Add Gross Pathology and Tissue Disposition to the Reports.
Update 'Submit Death' handler not to create Necropsy, Gross Pathology, and Tissue Disposition empty records when submitting a Death record.
Update 'Submit for Review' button text to 'Submit Necropsy for Review' for clarity.
Test fix - Make "Submit for Review" a little more reliable.
Rationale
The Death/Necropsy workflow needed a little fine tuning to align with the real world workflow. Also, reported broken 'performedBy' lookups various reports.
Related Pull Requests
Changes