how to match EHR data to clinical trial eligibility