Fundamentals of diagnosis