The impact of electronic health records on healthcare quality