Originally posted by Dennis Dunn
Hello,
I am trying to move code fragments into procedures so that I can reuse them. My problem is that I don't understand how to test these bits. I had some code that looked up a value in a table and if the value wasn't found then the message was killed. I have to do this in a number of different HL7 messages so I moved the code into a tps proc.
When testing a translation that uses this new proc, I get errors about not being able to access the MODE variable. It looks like the args parameter is not being set when running the translation in the testing environment so the message handle, MODE etc is not available.
Is my understanding of the problem correct? I'll create a simple translation that illustrates the problem I'm having and post actual error messages if you think that will help.
How do I write these procedures so that they can be tested?
Thanks for your help,
Dennis