Announcement

Collapse
No announcement yet.

Copying Entire segment to tmp object

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #2
    tmp['MSH'] = msg['MSH'];

    Comment

    Working...
    X