refined a query used to pull ANC patients-visits map