Electronic health record (EHR) systems are increasingly being implemented all over the world, but represent a vast, underused data resource for biomedical research. Structured EHR data, such as ...