midi diagnosis