The removal and examination of a sample of tissue, cells, or bodily fluid from a living body for diagnostic purposes.