web stats
Different Parsing Options - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 03-07-2011, 06:50 PM
simidau simidau is offline
OBX.2 Kenobi
 
Join Date: Feb 2008
Posts: 62
simidau
Default Different Parsing Options - Message Version

Hi All,

I'm having an issue with the parsing options.
I use the strict parser option so it's possible to loop through results.

For example to retrieve the patient ID I would use:
msg['ORU_R01.RESPONSE']['ORU_R01.PATIENT']['PID']['PID.2']['CX.1'].toString();

However in a new channel I have created I'm getting the following from my message definition template:
msg['ORU_R01.PIDPD1NK1NTEPV1PV2ORCOBRNTEOBXNTECTI']['ORU_R01.PIDPD1NK1NTEPV1PV2']['PID']['PID.2']['CX.1'].toString()

Why are these being seen differently? What can I do to make them like the 1st messages?

Cheers
Simon

Last edited by simidau; 03-07-2011 at 07:28 PM.
Reply With Quote
  #2  
Old 03-07-2011, 06:57 PM
simidau simidau is offline
OBX.2 Kenobi
 
Join Date: Feb 2008
Posts: 62
simidau
Default

Attached is a sample of the message that gives me the problem in my new channel.
Attached Files
File Type: txt sample-hl7.txt (1.6 KB, 7 views)
Reply With Quote
  #3  
Old 03-07-2011, 07:04 PM
simidau simidau is offline
OBX.2 Kenobi
 
Join Date: Feb 2008
Posts: 62
simidau
Default

After a little playing it seems changing the version of the message from 2.3.1 to 2.2 changes the way it's parsed and it then comes up the way I'm used to.

Is the best way to just change in on the inbound section of the channel?
Will there be any repercussions I should be aware of by changing the message version?
Reply With Quote
  #4  
Old 03-07-2011, 08:27 PM
simidau simidau is offline
OBX.2 Kenobi
 
Join Date: Feb 2008
Posts: 62
simidau
Default

Just tried a few more things
Changing the version (in the message) from 2.3.1 to 2.3 changes it parse how I want it.
Changing it to 2.3.0 and mirth says it's not a valid HL7 message.

Looking at the differences between 2.3 and 2.3.1 in the standard show very changes - just confirming now that none of the changes will have an effect on the message contents I'm dealing with.
Reply With Quote
Reply

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:00 PM.


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