Subjects randomized to the intervention arms, used a digital health offering to (1) provide automatic and passive electronic documentation of medication adherence and patterns of medication taking, (2) assist providers in distinguishing inadequate medication adherence or pharmacologic unresponsiveness as the root cause for uncontrolled hypertension and type 2 diabetes, and (3) inform management decisions (dose adjustment, medication addition or substitution, adherence counseling, referral to a hypertension specialist).