ACEsearch.query function

Queries ACE and returns a list of patient IDs