Designing Observational Studies Using Electronic Health Record Data