Adherence indices will be generated by linking e-prescribing information with pharmacy data. The trial will be conducted among 1,436 patients with diabetes and poor blood glycemic and/or lipid control. Patients will be randomized to one of the following three study arms: 1) Usual care - PCPs will write prescriptions electronically but will not be provided patient adherence information or Ml support; 2) Intervention - PCPs will be provided adherence information and prompts electronically when using the electronic prescribing system; and 3) Intervention - PCPs will be provided adherence information and prompts electronically when using the electronic prescribing system plus physicians and patients will receive support from an adherence clinic.