Announcement

Collapse
No announcement yet.

Multile OBX segments

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

  • Multile OBX segments

    I am totally new to mirth and I am working on a project where I need to transfer a HL7 message as same as it receives. In the destination section I have transforming template as below

    MSH|^~\&|${MSH3}|${MSH4}|${MSH5}|${MSH6}|${MSH7}|$ {MSH8}|${MSH9_1}^${MSH9_2}|${MSH10}|${MSH11}|${MSH 12}|${MSH13}
    PID|${PID1}|${PID2}|${PID3}|${PID4}|${PID5_1}^${PI D5_2}|${PID6}|${PID7}|${PID8}|${PID9}|${PID10}|${P ID11_1}^${PID11_2}^${PID11_3}^${PID11_4}^${PID11_5 }|${PID12}|${PID13}|${PID14}|${PID15}|${PID16}|${P ID17}|${PID18}|${PID19}|${PID20}
    PV1|${PV1}|${PV2}|${PV3}|${PV4}|${PV5}|${PV6}|${PV 7_1}^${PV7_2}|${PV8}|${PV9}|${PV10}|${PV11}|${PV12 }|${PV13}|${PV14}|${PV15}|${PV16}|${PV17}|${PV18}| ${PV19}|${PB20}
    ORC|${ORC1}|${ORC2}|${ORC3}|${ORC4}|${ORC5}|${ORC6 }|${ORC7}|${ORC8}
    OBR|${OBR1}|${OBR2}|${OBR3}|${OBR4_1}^${OBRR4_2}|$ {OBR5}|${OBR6}|${OBR7}|${OBR8}|${OBR9}|${OBR10}|${ OBR11}|${OBR12}|${OBR13}|${OBR14}|${OBR15}|${OBR16 _1}^${OBR16_2}|${OBR17}|${OBR18}|${OBR19}|${OBR20} |${OBR21}|${OBR22}|${OBR23}|${OBR24}|${OBR25}|${OB R26}|${OBR27}|${OBR28}
    OBX|${OBX1}|${OBX2}|${OBX3_1}^${OBX3_2}|${OBX4}|${ OBX5}|${OBX6}|${OBX7}|${OBX8}|${OBX9}|${OBX10}|${O BX11}|${OBX12}|${OBX13}|${OBX14}|${OBX15}|${OBX16} |${OBX17}


    It is not working with the receiving message has more than one OBX segments in the message. Please help...

  • #2
    You don't need to rebuild the message in your destination connector template.

    The default and typical value of ${message.encodedData} will be replaced with the output of your destination transformer (where you should be building a new message if necessary.)

    Alternatively, ${message.rawData} will be replaced with the message received by your destination from the source connector and ignore any changes you made in the destination transformer.

    Comment

    Working...
    X