 Using an electronic health record to link the resources of primary care practices and community programs will help patients to improve their diet and exercise, quit smoking, and moderate their drinking. 