NTE Segment

  • Creator
    Topic
  • #52418
    Marcus de Leon
    Participant

      Hi,

      I am opening up a message in SMAT defined as follows:

      MSH

      RF1

      {PRD}

      {

       [

         PV1

         [

           {

             PRB

             [DG1]

             [NTE]

           }

         ]

       ]

      }

      [

       {

         RXO

         ZRX

         }

      ]

      [{AL1}]

      [{PR1}]

      [

       {

         OBR

         [{OBX}]  

       }

      ]

      [ZFH]

      [{NTE}]

      For some reason when I load in a message according to these specs, it gets confused with the NTE segments. It thinks that the first NTE segment continues to the second NTE segment, even though it is at the end, then gives a bunch of errors saying The #9 segment ‘RXO’ is out of order. I verified my HL7 message and it looks fine. Any ideas?

    Viewing 5 reply threads
    • Author
      Replies
      • #74142
        Jim Kosloskey
        Participant

          Did you run the HL/7 message through the HL/7 tester using the same variant to verify it is OK?

          Sounds to me like the message and variant don’t match.

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

        • #74143
          John Mercogliano
          Participant

            My only guess without seeing the message would have to be that your message is missing the PRB segment.  The PRB segment is required for the NTE segment to populate in that part of the message.

            John Mercogliano
            Sentara Healthcare
            Hampton Roads, VA

          • #74144
            Marcus de Leon
            Participant

              It also fails in the HL7 tester. Here is the format my HL7 is coming in as.

              MSH|

              RF1|

              PRD|

              PRD|

              PV1|

              PRB|

              DG1|

              NTE|

              RXO|

              ZRX|

              RXO|

              ZRX|

              OBR|

              OBX|

              NTE|

              Is there a problem with this?

            • #74145
              Jim Kosloskey
              Participant

                Marcus,

                What version of Cloverleaf?

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

              • #74146
                Marcus de Leon
                Participant

                  5.5

                • #74147
                  Jim Kosloskey
                  Participant

                    Marcus,

                    I recall that sometimes the order of the repetition and optional notation in the variant can impact the parsing on certain releases of Cloverleaf.

                    Specifically not the notation for the PV1 group and the difference with the PRB group. The PVY group has the repetition notation followed by the optional notation. The PRB group is the opposite. This happens further into your variant as well. Try making the repetition ({) first followed by the optional ([) and see if that does not correct the situation.

                    {

                    [

                      PV1

                      [

                        {

                          PRB

                          [DG1]

                          [NTE]

                        }

                      ]

                    ]

                    }

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

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