HL7 Variant Definition

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf HL7 Variant Definition

  • Creator
    Topic
  • #47901
    Kathy Young
    Participant

    I have lab results that are coming in as:

    {

    OBX

    [{NTE}]

    }

    I need to add a segment, ZL1. For each OBX, I need one ZL1, followed by whatever NTE segments are present.

    Inbound —> Desired outbound — > Actual outbound

    OBX|2|             OBX|2|                       OBX|2|

                           ZL1|1|                        ZL1|1|

    NTE|1|              NTE|1|                        NTE|1|

    NTE|2|              NTE|2|                        ZL1|2|

                                                            NTE|2|

    My HL7 variant looks like this:

    {

    OBX

    ZL1

    [{NTE}]

    }

    My translate is a nested iteration – for the OBX/ZL1/NTE group repeat, with a nested iteration for the NTE segment repeat.

    What did I do wrong?

Viewing 2 reply threads
  • Author
    Replies
    • #57024
      Nathan Martin
      Participant

      Well it looks right.  It seems like if the OBX is a required segment, at least an empty OBX would precede the second ZL1.

      Are you sure your translation is using the outbound format like the one you show?

      Did you save the format?

      Did you cycle the process, or run the message through a test translation?

      There aren’t any other procs deleting extra OBX’s are there…?

    • #57025
      Robert Milfajt
      Participant

      What does your iterate look like?  I’ll bet that’s where the problem is.

      Robert Milfajt
      Northwestern Medicine
      Chicago, IL

    • #57026
      Kathy Young
      Participant

      Thanks to those with helpful hints. I did figure this out earlier today. You’re right, Bob, there was an iteration problem.

      Since I have to conjure up the ZL1 segment, I had to add an IF statement before the ZL1 copy to say that I only want one ZL1 per OBX. The way the iteration was written at first was to keep looping through OBX->ZL1->NTE group for as many NTE’s as occurred.

      Kathy

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

Forum Statistics

Registered Users
5,117
Forums
28
Topics
9,293
Replies
34,435
Topic Tags
286
Empty Topic Tags
10