How to check whether HL7 Segment exist in message [eg IN1 ]

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf How to check whether HL7 Segment exist in message [eg IN1 ]

  • Creator
    Topic
  • #52919
    Raj
    Participant

      I am working on IN1 Segment for ADT message  where i used if condition to check to see if IN1 is @null where i have send  static value to IN1 if is null else normal mapping is used.

      Let  me if there some one who has been in this same situation how did this null IN1 info work for mapping.

      appreciate all the help .

      Raj 🙂

    Viewing 0 reply threads
    • Author
      Replies
      • #75938
        Jim Kosloskey
        Participant

          Raj,

          IN1-1 through IN1-3 fields are required (there may be others as well).

          As I ITERATE through the Insurance group, I check IN1-2 (some vendors don’t populate IN1-1 even though it is required by the standard) because IN1-2 is the Insurance code. If that is not there the rest of the informatin is meaningless.

          I check IN1-2 for equal to @null. If the current occurrence does not exis IN1-2 will be equal to @null.

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

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