PatientID|FirstName|LastName|Note1~Note2~Note3|Problem1~Problem2~Problem3|Other1~Other2|
I need to take the notes, problems, and other fields (Which may have many or no values in them) and create OBX segments for each. For Example:
OBX|0|||Note1
OBX|1|||Note2
OBX|2|||Note3
OBX|3|||Problem1
OBX|4|||Problem2
OBX|5|||Other1…
I’ve created a VRL that specifies every field that I’m getting in (which is tested and working), but getting it to output is something I’m struggling with.
Once I’ve gone through the Notes section (using the iterate command on the repeating Notes field), and it’s output correctly, and I know what the address is for the next OBX segment that the problems go in, I can’t get it to output there. I’ve tried a number of things including creating a variable and supplying it in the address for the output (1(@Addr).OBX(0).#5(0).[0]), but I can’t get it to work. I know that you can’t supply a variable in the address, but is there another way to do this short of doing it all in tcl?