The TrialX application matches patients to clinical trials using EHR data from Allscripts. It allows providers to (1) automatically match patients to relevant trials during visits and refer them with one click, and (2) search for patients matching specific trial criteria to inform them. The application integrates with the Allscripts EHR API and runs across browsers. It is currently used at several medical centers to streamline trial recruitment and completion.