Announcement

Collapse
No announcement yet.

Parsing Radiology Results w/ OBX segments

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

  • #2
    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

    Comment


    • #3
      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

      Comment


      • #4
        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

        Comment


        • #5
          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

          Comment


          • #6
            Re: Parsing Radiology Results w/ OBX segments

            Glad it's working!
            Chris Lang

            Comment


            • #7
              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.

              Comment


              • #8
                Re: Parsing Radiology Results w/ OBX segments

                Pre-processor is coming on Wednesday/Thursday.

                -Chris
                Chris Lang

                Comment


                • #9
                  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

                  Comment

                  Working...
                  X