web stats
Parsing Radiology Results w/ OBX segments - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 10-19-2006, 03:20 PM
mrslatezb mrslatezb is offline
Mirth Newb
 
Join Date: Sep 2006
Posts: 15
mrslatezb
Default Parsing Radiology Results w/ OBX segments

Basically I am trying to parse some radiology results within an OBX segment. According to the standard, I should be able to have my OBR segment to let me know the test ID and name. Then a number of multiple OBX segments.

If i paste a message like the following into the Mirth transformer and try to view the tree, Mirth throws an error on the last line of the following message.
Code:
MSH|^~\&|RM|HRM|||20060927070711||ORU^R01|20060927070711452|P|2.3|||AL|NE
PID|||00-00-00
OBR||||1111111^Test/Test
OBX|||US
OBX|||||Information
The error reads

Code:
Premature end of file.
org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
com.webreach.mirth.client.ui.HL7XMLTreePanel.setMessage(HL7XMLTreePanel.java:101)
com.webreach.mirth.client.ui.editors.TabbedReferencePanel$2.componentShown(TabbedReferencePanel.java:227)
java.awt.Component.processComponentEvent(Unknown Source)
java.awt.Component.processEvent(Unknown Source)
java.awt.Container.processEvent(Unknown Source)
java.awt.Component.dispatchEventImpl(Unknown Source)
java.awt.Container.dispatchEventImpl(Unknown Source)
java.awt.Component.dispatchEvent(Unknown Source)
java.awt.EventQueue.dispatchEvent(Unknown Source)
java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
java.awt.EventDispatchThread.run(Unknown Source)
I seem to be able to have data in the 3rd part of the OBX segment, but when I try to parse where the results should be, I get this ugly error.
Reply With Quote
  #2  
Old 10-20-2006, 01:18 PM
chrisl chrisl is offline
Mirth Employee
 
Join Date: Aug 2006
Posts: 967
chrisl is an unknown quantity at this point
Default Re: Parsing Radiology Results w/ OBX segments

When trying it on the latest build, I get this:

Code:
ca.uhn.hl7v2.HL7Exception: OBX-5 is valued, but OBX-2 is not.  A datatype for OBX-5 must be specified using OBX-2.
Ensure that OBX.2 has a value, try this:

Code:
MSH|^~\&|RM|HRM|||20060927070711||ORU^R01|20060927070711452|P|2.1|||AL|NE
PID|||00-00-00
OBR||||1111111^Test/Test
OBX|||US
OBX||ST|||Information
__________________
Chris Lang
Reply With Quote
  #3  
Old 10-21-2006, 08:53 AM
mrslatezb mrslatezb is offline
Mirth Newb
 
Join Date: Sep 2006
Posts: 15
mrslatezb
Default Re: Parsing Radiology Results w/ OBX segments

Chris,

Thanks for the information. That seemed to work! Of course, the only problem is now I have all these messages I can't currently parse without some type of pre-processing. Is Mirth 1.2 still scheduled for release on October 25th with a pre-processor?

Justin
Reply With Quote
  #4  
Old 10-22-2006, 07:37 PM
mrslatezb mrslatezb is offline
Mirth Newb
 
Join Date: Sep 2006
Posts: 15
mrslatezb
Default Re: Parsing Radiology Results w/ OBX segments

Wow, I hate to be a pain here Chris but could you help me with one other problem. I am also processing some lab results

MSH|^~\&|LA01|A||A|200609262342|RESULTR01OUT|ORU^R 01|0626936457|P|2.2|||AL|NE
PID|||111-11111
OBR||||1111111^Test
OBX|1||UAAP^TEST INFO||RESULT

This throws a very similar error. I can't seem to locate why this one is causing a problem as it seems to adhere to the required fields. Maybe i am missing something again.

Thank you so much,
Justin
Reply With Quote
  #5  
Old 10-23-2006, 01:16 PM
mrslatezb mrslatezb is offline
Mirth Newb
 
Join Date: Sep 2006
Posts: 15
mrslatezb
Default Re: Parsing Radiology Results w/ OBX segments

And of course for my new issue with lab results, heading back to the standard always seem to provide the answer. It says concerning Field 2 (The ValueType field) "It must be valued if OBX-11-Observation result status is not valued with an ?X"" Since in my case it wasnt valued at all, I need to place a value into field 2. Placing ST for string data corrected my problems!!

Here is the following corrected message for reference for other people with the same problem.
Code:
MSH|^~\&|LA01|A||A|200609262342|RESULTR01OUT|ORU^R01|0626936457|P|2.2|||AL|NE
PID|||111-11111
OBR||||1111111^Test
OBX|1|ST|UAAP^TEST INFO||RESULT
Reply With Quote
  #6  
Old 10-23-2006, 01:21 PM
chrisl chrisl is offline
Mirth Employee
 
Join Date: Aug 2006
Posts: 967
chrisl is an unknown quantity at this point
Default Re: Parsing Radiology Results w/ OBX segments

Glad it's working!
__________________
Chris Lang
Reply With Quote
  #7  
Old 10-23-2006, 02:45 PM
mrslatezb mrslatezb is offline
Mirth Newb
 
Join Date: Sep 2006
Posts: 15
mrslatezb
Default Re: Parsing Radiology Results w/ OBX segments

Chris,

Of course now that I have this working, I hope that the people im dealing with sending the messages are able to change this information for us. If not, however, do you know when the Mirth pre-processor will be available for us. I know, I know its wishful thinking but I'd love to continue to use Mirth for my project.
Reply With Quote
  #8  
Old 10-23-2006, 03:50 PM
chrisl chrisl is offline
Mirth Employee
 
Join Date: Aug 2006
Posts: 967
chrisl is an unknown quantity at this point
Default Re: Parsing Radiology Results w/ OBX segments

Pre-processor is coming on Wednesday/Thursday.

-Chris
__________________
Chris Lang
Reply With Quote
  #9  
Old 10-23-2006, 04:09 PM
mrslatezb mrslatezb is offline
Mirth Newb
 
Join Date: Sep 2006
Posts: 15
mrslatezb
Default Re: Parsing Radiology Results w/ OBX segments

Chris,

You are my saving grace! Thanks so much for all of your help, I should be able to finish my project now.

Justin
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mirth 1.8 for Radiology Information System? dwebst04 General Discussion 10 06-30-2017 12:29 AM
Compress Results via GZIP chronofish Support 1 09-30-2008 06:09 AM
Results Viewer Jeep07 Development 2 09-21-2008 10:33 PM
how to get all results from a database query rbiche Development 0 07-11-2008 06:50 AM
Results with repeated values padmanabanraju Development 3 03-13-2007 04:04 AM


All times are GMT -8. The time now is 08:02 PM.


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