Ok, so I am new to Cloverleaf. I am pretty familiar with TCL though. My question is how do I pass a value into a proc from within Cloverleaf. Specifically not one of the HL7 values. I am trying to create a generic proc that will do a lookup to a table. I want to pass table name into the proc so that we can use different tables based on different circumstances. The TABLE action will not work in this case because if the value doesn’t exist in the table it either passes a blank back, or a default value. I want to pass back the original value if it doesn’t exist in the table. So, if the value is in the table pass back the translation, if not pass back the original.
Anyway, I want to create a proc that I can pass table name in as a variable so that we can use this is other circumstances … rather than create a new proc for each time we have to do this. My question is how do I pass in the table name. Can I set it as some sort of global variable, or it there some way to do it at the action level?
Thanks for any help.