Transforming and evaluating electronic health record disease phenotyping algorithms using the OMOP common data model: a case study in heart failure