web stats
Copying Entire segment to tmp object - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 09-10-2019, 06:39 AM
rutledj rutledj is offline
Mirth Guru
 
Join Date: Nov 2010
Location: North Carolina
Posts: 387
rutledj is on a distinguished road
Default Copying Entire segment to tmp object

How can I copy the entire msg segment to the tmp object in a transformer?

I've tried this:

Code:
tmp['MSH'] = SerializerFactory.getSerializer('HL7V2').fromXML(msg.MSH.copy());
but I get this:

MSH|MSH|^~\&|CHP_ALL_LAB_C^LAB_ONLY^DISCRETE|NMHC^ ^L-CL|ACUMEN_2|2510381157|20190827131612-0600|35005^RESULT_CERT_HL7^DIRECT|ORU^R01^ORU_R01| 3007029933|P|2.5.1|||SU

Two MSH fields.

Thanks
MR
Reply With Quote
  #2  
Old 09-10-2019, 06:51 AM
cory_cole cory_cole is offline
Mirth Guru
 
Join Date: Mar 2012
Posts: 1,245
cory_cole is on a distinguished road
Default

tmp['MSH'] = msg['MSH'];
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 02:52 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation