Use epiquery to attach to visits