Diagnosing the state of the diagnostic function: an analysis of the literature.