Certainly there is no danger in eating only bananas for three weeks, for most people. Adding greens is fine, if that works for you in getting you towards your health goals. If your gut needs totally simple, you must respect that, at least until it heals.