OBX 5 issue

  • Creator
    Topic
  • #49190
    Rick Pritchett
    Participant

      Tried using pathcopy to copy the OBX 5 field but get an empty field.

    Viewing 13 reply threads
    • Author
      Replies
      • #61048
        Jim Kosloskey
        Participant

          Rickey,

          Show us the input.

          Jim Kosloskey

          email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

        • #61049
          Rick Pritchett
          Participant

            MSH|^~&|Camtronics^1.2.840.113697^CONDOR|Camtronics^1.2.840.113697^ANSI|||20070404164702||ORU^R01|5|P|2.3|||AL|||||

            PID|||M000001043^||TREE^OAK^||19500101|M||2^|||||||||888-88-7777||||||||||||

            PV1||I|8NOR^82201^1^||||BACBRU01^Bruce^R^|NO-REF02*^Referring^Doctor^|BURROB01^Burdge^Robert^E^||||||||BACBRU01^Bruce^R^||H00000015560^||||||||||||||||||||||||||||||||||

            ORC|RE||5|

            OBR||VASC20070323-0003^|5|ARTERIAL^ARTERIAL^|||20070404145422|||||||||BACBRU01^Bacon&&^Bruce^R^|||||2|20070328103331|||C|||||||BACBRU01&Bacon&Bruce&R&&&&&&^||||||||||||||

            OBX|1|FT||1|Emageon~900 Walnut Ridge Drive, Hartland, WI 53029~Phone: (800) 332-4466 Fax: (262) 367-0717~http://www.camtronics.com~


            ~~Transthoracic Echocardiographic Study~Patient:

          • #61050
            Jim Kosloskey
            Participant

              Rickey,

              The OBX-5 field is a repeating field in this message.

              You will need to iterate over the field.

              Jim Kosloskey

              email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

            • #61051
              Gary Atkinson
              Participant

                There is open source app out there called “HL7Inspector” (you can find in on sourceforge) that parses out the HL7 message.  When you load this message in the app it will show you exactly where the repeating field is.  Pretty cool  8)

              • #61052
                Charlie Bursell
                Participant

                  This tool is OK to add to your tool chest but IMHO you are better off getting full address for iterates, etc. using hcihl7test.

                  As for PATHCOPY of the entire field, if you address just the field with no modifiers it should copy the entire field.

                  For example:

                  PATHCOPY 0(0)OBX.#5 -> 0(0)OBX.#5

                  should copy all iterations

                  But

                  PATHCOPY 0(0)OBX.#5(0) -> 0(0)OBX(0).#5 will only copt the first iteration

                  If you want to get rid of the iterationas altogether use an iterate as Jim said and append each iteration to OBX(0).#5.  Or, you could use a simple pre-xlate tcl proc in the route and just remove the iteration characters from the field or replace them with blanks using a string map command.  Either method should be a relatively simple operation

                • #61053
                  Rick Pritchett
                  Participant

                    i have used the iterate but still only get the 1st word in the OBX

                    using

                    type: field

                    basis: 0(0)OBX.00573

                    Variable: %f1

                    Pathcopy

                    0(0).OBX.00573 -> 0(0).OBX.00561

                    i know i need to put the variable in the copy some where

                    but where

                  • #61054
                    Gary Atkinson
                    Participant

                      I “think” you need to put it here:

                      0(0).OBX.00561(%f1)

                      If I am remembering from level1 class there is an implyed (0) at the end of the field number for repetitions.

                    • #61055
                      Rick Pritchett
                      Participant

                        for some reason i am still getting the first iteration only

                      • #61056
                        Gary Atkinson
                        Participant

                          Do have your interate like this?

                          0(0).OBX.00573(%f1) -> 0(0).OBX.00561(%f1)

                        • #61057
                          Rick Pritchett
                          Participant

                            yes i do

                          • #61058
                            Keith McLeod
                            Participant

                              Try using the copy command instead of pathcopy.  Also is there a repeating group that the OBX is contained in?

                            • #61059
                              Rick Pritchett
                              Participant

                                no the OBX 5 is one long repeating field

                              • #61060
                                Chris Williams
                                Participant

                                  Do both variants have OBX-5 set as repeating and with an appropriate maximum?

                                • #61061
                                  Rick Pritchett
                                  Participant

                                    They do now and after i did that it worked like it should

                                    Thanks to all for the help

                                Viewing 13 reply threads
                                • The forum ‘Cloverleaf’ is closed to new topics and replies.