Development and validation of the diagnostic model