I need to map individual feeds from an HL7 message, e.g., first name, surname, DOB, etc. to a repeating xml element comprised of name:value pairs, e.g.,
<name>fname</name>
<value>Abe</value>
In the xlate, in the Destination, I have something like: dataitem(0).name.#text
is there a way to use and increment a variable so I don’t have to hard code the element number, e.g., dataitem(@int).key.#text
I’ve tried exactly that and the xlate vents its fury.
I thought about setting an iterator on the destination, so as to use a %s1 counter, but this doesn’t seem logically possible, as the source is one field, then another field, then another field. There’s not way to loop through distinct source values in the destination iterator.