- This topic has 4 replies, 3 voices, and was last updated 16 years, 7 months ago by .
-
Topic
-
I am brand new to Cloverleaf, just finished level 1 class. I have built my first translation, vrl to hl7. It worked to a point. I have reviewed other posts on this topic but not finding one to match what I’m doing. Please forgive me if I missed it. I have a vrl file, 10 records, fields delimted by |. I need to create MSH, MFI, then repeating groups of CD1, CD2, CD3. Currently my output is creating repeats of MSH, MFI, CD1, CD2, CD3.
I know I need to use the iterate function. I want to repeat the group of CD segments. But I don’t understand what to put in the basis and what/where to assign the variable. I tried to put group 1 in the basis, it shows as ~1. I get an error Unable to get iteration basis address ‘1(0).CD1(0)’ I don’t know what to copy from the source because it’s multiple fields into each segment.
Hope I have explained this correctly. Thanks in advance for any assisstance you can give me.
- The forum ‘Cloverleaf’ is closed to new topics and replies.