Application of Quality Systems to the Diagnostic Process of Buildings