Use of diagnostics in wound management