modifying query for pulling states
working on epilepsy follow up visit flow