Electronic records tied to fewer hospitalizations