question on fleld level iteration in an xlt

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf question on fleld level iteration in an xlt

  • Creator
    Topic
  • #54407
    John Bonnie
    Participant

    Hello all,

    I have a slightly unusual value in obx-5 in an mdm message coming in from a pacs system.  Obx-5 contains the actual text of the rad report.  Each line of the text is separated by a tilde (~) character.

    As an example obx-5 looks like this:  line1~line2~line3

    I’m trying to iterate on these lines and stuff each line in a separate obx seg in the outbound structure.

    The iterate type is set to “field”, the iterate basis is set to  3(0).0(0).OBX(0).#5  and the loop variable is set to %m1.

    Upon execution it grabs the line 1 but will not iterate on the successive lines.  I’m wondering if this is due to the fact that the normal subfield indicator ^  is not being used in this case but a tilde is used instead.

    Any ideas or help will be appreciated.

    Thanks,

    John

Viewing 1 reply thread
  • Author
    Replies
    • #81343
      Jim Kosloskey
      Participant

      John,

      Change your loop variable to %f1

      The allowed values are %f (for field), %g (for group), %s (for segment), and %l (for list).

      See if that doesn’t help.

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

    • #81344
      John Bonnie
      Participant

      it worked, thanks.

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

Forum Statistics

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