Originally posted by D Huber
I have been searching this site for a few days for a solution to my problem. I haven't been able to find a way to do this correctly yet. I am fairly new to Cloverleaf. We are using version 5.6PRev2.
I'm taking a current process and converting it to use Cloverleaf. Our other interface engine can do this, so I know that Cloverleaf should be able to handle it. I've attached my documents that I'm using to test with. No real PHI is included. The actual file is much larger.
I need to use Cloverleaf to read a multi line file of variable record length and create an outgoing HL7 message. So one file will have all the data needed to create the HL7 messege. I've tried creating a VRL of a single field and adding it to a HRL that repeats. I don't know how many lines are in the file, so I'm not sure how to define the repeating parameters. Just using the tester, I'm unable to get more than the first line to come back. I set the tester to use EOF Terminated and process all records. I also hard coded the repeat to be 5 just to get something to work. However, none of this works. You can see that the first several lines have data in <> tags. I will need to parse through this in the HL7 translation at some point. I obviously will also be doing a lot of hard coding in the translation to create a full messege. The data starting with DISCHARGE SUMMARY will be the contents of the OBX.5.
So where do I start? I've run out of options just looking through this forum. Am I going at this totally wrong? Any advise is greatly appreciated. Thank you.