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

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
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.

Code:
ORC|NW|PRO9|||||^^^^^R||20130819154051|114^Deanda-Hescock^Chelisa^M||0048^W^C^M|^^^&XYZ
OBR|1|PRO9||BMC80^Complete Blood Count^L|||20130903153955||||N|||||0048^W^C^M|||||||||||^^^20130903153955^^R|||||||||20130903153955
DG1|1|I9|780.93^MEMORY LOSS^I9|MEMORY LOSS
ORC|NW|PRO9|||||^^^^^R||20130819154051|114^D^C^M||0048^W^C^M|^^^XYZ
Looking at the Transformed XML, each ORC appears to be correct.

Code:
        <ORC.13>
            <ORC.13.4>
                <ORC.13.4.2>XYZ</ORC.13.4.2>
            </ORC.13.4>
        </ORC.13>
    </ORC>
    <OBR>
        <OBR.1>
            <OBR.1.1>2</OBR.1.1>
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
  #2  
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
Default

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
Reply

Tags
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