web stats
Conversion from xml to HL7 2.x - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Old 07-22-2014, 05:45 AM
dcomp dcomp is offline
Mirth Newb
Join Date: Sep 2013
Location: Westfield, IN
Posts: 15
dcomp is on a distinguished road
Default Conversion from xml to HL7 2.x

The HL7 message contains multiple ORC segments. Trying to write a value to each ORC.13.4.2. Parsing of sub-components is on.

The Source Connector's encoded message shows the first ORC segment written correctly. Subsequent ORC segments show the code written to ORC.13.4 not ORC.13.4.2.

OBR|1|PRO9||BMC80^Complete Blood Count^L|||20130903153955||||N|||||0048^W^C^M|||||||||||^^^20130903153955^^R|||||||||20130903153955
Looking at the Transformed XML, each ORC appears to be correct.

Can someone explain why the Transformed xml is correct but when converted to HL7, only the first ORC.13.4.2 is written correctly?
Reply With Quote
Old 07-22-2014, 05:51 AM
narupley's Avatar
narupley narupley is offline
Mirth Employee
Join Date: Oct 2010
Posts: 7,126
narupley is on a distinguished road

It's likely because of this bug: MIRTH-3184

As a workaround, whenever you assign subcomponents make sure to assign all of them up to the specific index you need. For example if you need to assign ORC.13.4.2, make sure to assign ORC.13.4.1 first. If you needed to assign ORC.13.4.4, you would need to assign ORC.13.4.1 through ORC.13.4.3 first.
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.

- How do I foo?
- You just bar.
Reply With Quote

serializer, subcomponents

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:57 AM.

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