Field copying when working with multiple messages

lundi 27 octobre 2014

Hello,

I'm fairly new to Mirth transformers. I have a channel that is picking up ORU .hl7 files from a folder and randomly, the .hl7 files may contain more than one message in it. What I would like to accomplish, is to copy a value in ZPD 1 to PID 40. When working with a single message, I accomplished this by using:



msg['PID'][0]['PID.40']['PID.40.1'] = msg['ZPD'][0]['ZPD.1']['ZPD.1.1']



This doesn't work when there is more than one message because there are multiple PIDs and ZPDs. Can someone suggest a way to accomplish this? I appreciate any advice anyone can give.





Field copying when working with multiple messages

0 commentaires:

Enregistrer un commentaire