The EMR can be defined as the legal patient record created in hospitals and ambulatory environments that is the data source for the EHR.