Announcement

Collapse
No announcement yet.

Copying & pasting HL7 2.3 OBR fields to another field

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

  • Copying & pasting HL7 2.3 OBR fields to another field

    Hi All,

    I'm trying to perform a simple copy and paste from OBR27 to OBR7. For some reason it does nothing with OBR-7.

    /* copy and paster ob id and time into another field in the OBR segment 8*/
    msg['OBR']['OBR.3']['OBR.3.1'] = msg['OBR']['OBR.2']['OBR.2.1'].toString()
    msg['OBR']['OBR.7']['OBR.7.1'] = msg['OBR']['OBR.27']['OBR.27.4.1'].toString()

    Incoming OBR segment:
    OBR||^Placer||XKNER^XR Knee Rt|||||||||NOT KNOWN||||||||||||||^^^20170110085530^^0^|||||||||| ||||||||

    There are carrot symbols in the fields so I'm assuming I'm not handling the carrot symbols correctly in the java script. Please help, I'm still very new to Mirth.

    I have attached the route and the incoming HL7 ORM message I am working with.

    Thanks in advance
    Attached Files
    Last edited by Mark Sull; 08-14-2018, 03:54 AM.

  • #2
    You were so close

    msg['OBR']['OBR.7']['OBR.7.1'] = msg['OBR']['OBR.27']['OBR.27.4'].toString();

    Comment


    • #3
      Correct

      Thank you very much, its always something small

      Comment

      Working...
      X