web stats
Multile OBX segments - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Old 11-02-2018, 12:15 AM
Pathum_Niroshan Pathum_Niroshan is offline
What's HL7?
Join Date: Nov 2018
Posts: 1
Pathum_Niroshan is on a distinguished road
Default 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...
Reply With Quote
Old 11-03-2018, 12:47 PM
agermano agermano is offline
Mirth Guru
Join Date: Apr 2017
Location: Indiana, USA
Posts: 1,036
agermano is on a distinguished road

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.
Reply With Quote

destination, hl7 to hl7, multile obx, obx, template

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 06:40 PM.

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