Use of the refill function through an online patient portal is associated with improved adherence to statins in an integrated health system.