Adding new OBX segments

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Adding new OBX segments

  • Creator
    Topic
  • #49154
    Patricia Smith
    Participant

    Hello All,

    I’m working on radiology result messages ORU^R01.  Currently our RIS system just send the text of the report in the OBX segments but I would like to add a header to the text that displays Patient Name, Exam Type, and more for a COLD feed into HPF. I want to build this header from information in the OBR, PID and PVI segments.  I’m having trouble in my Xlate building this header in the OBX segments.  How do I add the new OBX segments at the beginning of the OBX iteration?  This header that I want to build will always have 5 lines. So I will need 5 new OBX segments at the beginning.  Any help will be greatly appreciated.

    Thanks,

    Patricia

    Here is part of an example message I’ve been working on.

    1(0).1(0).0(0).OBR(0)  :  >||5905172|3047043|^^^RADFTRTAL^RAD- …

    1(0).1(0).1(0).OBX(0)  :  >||FT|GDT||distal first through third metatarsals< 1(0).1(0).1(0).OBX(1)  :  >||FT|GDT||Right foot / Two views. < 1(0).1(0).1(0).OBX(2)  :  >||FT|GDT||Patient looks normal  < 1(0).1(0).1(0).OBX(3)  :  >||FT|GDT||No prior exams are available for

    1(0).1(0).1(0).OBX(4)  :  >||FT|GDT||No sign of fracture < 1(0).1(0).1(0).OBX(5)  :  >||FT|GDT||Air is present within the soft <.....

Viewing 1 reply thread
  • Author
    Replies
    • #60915
      Robert Kersemakers
      Participant

      Hi Patricia,

      You will need to keep track of the number of OBX-segments that are written. I assume that you’re using the variable %s1 to transfer the OBX segments from one format to the other (both HL7?).

      Now you first need to initialize your own variable; say %s9:

      COPY =0 -> $%s9

      (By using $%s1 you can manipulate the variable).

      Then you build your first header line:

      COPY =FT -> 1(0).1(0).1(0).OBX(%s9).#2

      COPY =GDT => 1(0).1(0).1(0).OBX(%s9).#3

      COPY {=distal first through third metatarsals} -> 1(0).1(0).1(0).OBX(%s9).#5

      After which you increase the %s9 variable:

      MATH ADD =$%s9 =1 -> $%s9

      Repeat this for all header lines.

      When it’s time to copy all the real OBX-segments from input to output, use the iterate variable (I assumed %s1) in your source-path and %s9 in you destination-path. Don’t forget to increase %s9 at the end of your iterate!

      Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands

    • #60916
      Patricia Smith
      Participant

      I was able to solve my problem with the advice given. Thanks again to all who helped!

Viewing 1 reply thread
  • 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