referral workflow optimization