Real time diagnostics in the operating room