I'm creating a history view to list specific criteria of vaccines in the new immunization table. What I want to do is build an array of the needed details, which I would then call from a different function.
However, the only thing I can get to work is to call the function to build the array from the function that lists out the specific data. However, this process is really slow to load, because of all of the data from years of vaccines with peds patients, and it is not a good way to do this since it's repeatedly building the original array.
My thought was to store only the data that I need in the array in a global variable that I could then reference in another function. But I can't get my global variable to work. Do they not work with history views? I can't find any documentation on this.
Would I need to put the function that builds the array into the usrlib.txt file? I can load the function to build the array into a form, and it works, and I can then use it in the history view, too, but that's not really a good solution.
How are others doing this?
Any feedback is greatly appreciated. Thank you.
Robin