The science of the causes and effects of diseases, especially the laboratory examination of tissue samples for diagnostic purposes.