Dr. Miller,
I think you could make a custom rule in health maintenance to put your diabetics on an ACE/ARB, or those with risk factor of heart disease on a statin. Then query the database of patient's who have NOT completed that health maintenance rule.