Kiran | #808 | Refactored the function that gets anc visits and open ancs to wait for the response and set the variables with the response values to be used by later functions.