diag doc