How laboratory software should support CAPA workflows, from deviation logging and investigation through corrective action and verified closure.