John, After reading your article from the Meditech Bulletin I asked - Can that functionality be used to look up specific orders placed on a patient, given the patient's urn and the date of the order.
You replied: Yes - you could use a macro to build a list based on patient & date. The only thing you'd likely change will be the name of your array (/NUMBERS.DICTIONARY).
Further - I wanted to be able to choose a specific order and have it print on the report. When my guru on site and I talked about this he had these questions...
So if I have my head wrapped around what would happen, assuming we could go out with a DO loop and populate the patient’s scheduled or ordered procs, first we need to know what patient. So we prompt the user for patient and they need to type that info in and press F12. At that point, we can create our list, but how do we get back to where we prompt the user again, to choose which proc they want? That’s the part I don’t know. If you call a frag, you normally still don’t get an opportunity to prompt the user from there, or at least I haven’t ever seen it done. If you could somehow do processing based on the user pressing Enter on the patient, before using F12 on the whole prompt screen… but I don’t know how to. Maybe an attribute or something?
If you could overcome that first hurdle, then the second problem I see would be that if you created your list in an LI, you would present that whole LI to the user and they would have to delete the ones that don’t apply. Kind of a reverse logic in a world where people are used to simply selecting one item from a list – like your group response idea.


