Dr. Gary LeRoy had to spend a significant part of a primary-care visit with one of his patients Tuesday hunting for information on his electronic health record about his recent hospitalization and medication use.