Text this: Dissecting medical referrals in health services