Create queries which aggregate explicit referral relationship activities by diagnosis and procedures.