Generating Medical Logic Modules for Clinical Trial Eligibility