Understanding key factors affecting electronic medical record implementation: a sociotechnical approach