User bio
404 bio not found
Member since Sep 20, 2018
Posts:
Replies:

NB  got this working in the end using the DTL Append action. I simply appended the literal text (MCN) &  the IMC Number from the PD1 path, a "." separator and then the Practice ID directly into MSH-6. This produced the required value (ie. MCN00409466.1234) without needing temp variables.

Ciaran Mooney · Jun 13, 2022 go to post

Thanks Julian,

I did something similar and set a counter and it works as expected.

One more query, I am also trying to iterate the OBXGrp().NTE's but the IF statement  is returning false, can you see anything wrong with the syntax?

 
For each: source.{PIDgrpgrp(1).ORCgrp(1).OBXgrp(1).NTE()}
                ..Contains(source.{PIDgrpgrp(1).ORCgrp(1).OBXgrp(k2).NTE(k2):Comment()},"192MT")
                        CODE:   S INAB = 1
 
 
 
I’m testing against this message so it should be picking up the OBX NTE with ‘192M’:
Ciaran Mooney · Jun 10, 2022 go to post

Additional info:

I've added the following DTL and managed to append the ORC NTE segments from inbound message to outbound translated message PID NTE, issue is when I have multiple  ORC NTEs to append to PID NTE they overwrite as opposed  to appending as multiple NTE segments:

for each source.{PIDgrpgrp().ORCgrp().NTE()}

append target.{PIDgrpgrp().PIDgrp.NTE(k1)} source.{PIDgrpgrp().ORCgrp().NTE(k1)}

endeach

test- you can see only the one NTE is copied over:

Certifications & Credly badges:
Ciaran has no Certifications & Credly badges yet.
Followers:
Ciaran has no followers yet.
Following:
Ciaran has not followed anybody yet.