When calling a SQL call, I normally return the value in a Snapshot.
You can do this 1 of two ways...
1. Set two variables....One for the Outbound HL7 Message, and one for the structure of your snapshot. Set your source equal to your snapshot variable and your target being the Outbound HL7 context variable. Use a Data transformation to take the information from the Snapshot and insert it into the HL7.
2. Create a variable for your ID variable, and loop through the Snapshot to set that ID variable. Then create a dummy data transformation that you can use to set your HL7 field to your context.ID variable.
I have plenty of examples of doing this in either way. There might be others that have a better solution, its just what I have used in the past.
Scott Roth
The Ohio State University Wexner Medical Center
- Log in to post comments