Pain Management in Clinical Practice Research Using Electronic Health Records.