EC2Seq2Sql: Patient-trial matching with LLM agents
Fig 6
Example of executing an auto-generated SQL for patient retrieval.
The SQL produced from the structured eligibility patterns is run on the de-identified hospital EHR to return patients who satisfy the trial criteria; the figure shows this end-to-end result display.