We propose to measure differences in patient safety and quality measures among three groups: the control group consisting of physicians with paper-based office practices, a group of physicians using the clinical messaging system and electronic prescribing, and a group of physicians using the EMR and electronic prescribing.