updated script for pulling data from ART EMR