Developing Diagnostic Algorithms from Medical Data