Adding Header information to OBX segements

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Adding Header information to OBX segements

  • Creator
    Topic
  • #51246
    Nick Stainback
    Participant

    I am currently trying to add a 4 line header to the start of the OBX segements in a MDM_T02 message.  When using a translate to insert the data and move the other fields down we are finding that on the longer reports the text is overlaping and omitting data in the report.  Has anyone done anything like this before?

Viewing 3 reply threads
  • Author
    Replies
    • #69341
      Jim Kosloskey
      Participant

      Nick,

      Are the headers additional OBX segments or additional data in one of the OBX fields?

      Do you have an example?

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

    • #69342
      Joseph Paquette
      Participant

      Have done them after the initial OBX’s a few times,  but one way you may wish to try in your translation.  Prior to the iterate add them in,  If they are always a fixed number of OBX statements you can set a counter varible as the same value as then number of statements you have added.  In your iterate use the counter and the math add fucntion to increment and replace the OBX 2 value so your index is correct.

      Joe Paquette GE Healthcare

    • #69343
      Nick Stainback
      Participant

      Jim,

      They are additional OBX segments

      Here is an example.

      I am recieving the message

      OBX|001|TX|RAD||||||||P|

      OBX|002|TX|RAD||BIRTHDATE:  05/17/1932||||||P|

      OBX|003|TX|RAD||||||||P|

      OBX|004|TX|RAD||||||||P|

      OBX|005|TX|RAD||ADDENDUM||||||P|

      OBX|006|TX|RAD||Text Text Text||||||P|

      OBX|007|TX|RAD||Text Text Text||||||P|

      OBX|008|TX|RAD||Text Text Text||||||P|

      OBX|009|TX|RAD||Text Text Text||||||P|

      OBX|010|TX|RAD||Text Text Text||||||P|

      OBX|011|TX|RAD||Text Text Text.||||||P|

      OBX|012|TX|RAD||||||||P|

      OBX|013|TX|RAD||||||||P|

      OBX|014|TX|RAD||||||||P|

      OBX|015|TX|RAD||                                   ______________________________||||||P|

      OBX|016|TX|RAD||                                   BETH LINDSAY, M.D.||||||P|

      OBX|017|TX|RAD||||||||P|

      OBX|018|TX|RAD||Date:_________Time:____________||||||P|

      OBX|019|TX|RAD||||||||P|

      OBX|020|TX|RAD||||||||P|

      OBX|021|TX|RAD||BL/MEDQ/7901571||||||P|

      OBX|022|TX|RAD||DD:  09/23/2009 13:27:52||||||P|

      OBX|023|TX|RAD||DT:  09/24/2009 02:26:02||||||P|

      OBX|024|TX|RAD||JOB# 464357||||||P|

      OBX|025|TX|RAD||||||||P|

      OBX|026|TX|RAD||cc:   David Mack, M.D.||||||P|

      OBX|027|TX|RAD||||||||P|

      OBX|028|TX|RAD||Hope D. Hall-Wilson, M.D.||||||P|

      OBX|029|TX|RAD||Fax: 492-3492||||||P|

      OBX|030|TX|RAD||||||||P|

      OBX|031|TX|RAD||Robert F. Noel Jr., M.D.||||||P|

      OBX|032|TX|RAD||||||||P|

      and they would like

      0(0).OBX(0)  :  >|001|TX|RAD||Maria Parham Medical Center||||||P<

      0(0).OBX(1)  :  >|002|TX|RAD||ONCOLOGY ||||||P<

      0(0).OBX(2)  :  >|003|TX|RAD||Patient’s Name||||||P<

      0(0).OBX(3)  :  >|004|TX|RAD||1259371||||||P<

      Placed on the top of the messages

      So right now I was trying to just place the text in 001-004 and push the rest of the message down – this would work great if every message was the same length.  but when i place them in 001 – 004 and move the rest of the lines down once i get down into the message it starts overwriting text in the message.

    • #69344
      Robert Kersemakers
      Participant

      I agree with Joseph: you need an extra counter.

      So first insert the extra (4) lines you need:

      Code:

      COPY =001 -> 0(0).OBX(0).00569.[0]
      COPY {=Value 1} -> 0(0).OBX(0).00573(0).[0]
      COPY =002 -> 0(0).OBX(1).00569.[0]
      COPY {=Value 2} -> 0(0).OBX(1).00573(0).[0]
      etc…

      Then start your iterate and use an extra counter to take care of the four extra lines you inserted:

      Code:

      ITERATE list 0(0).OBX %s1
       MATH ADD $%s1 4 -> $%s9
       PATHCOPY 0(0).OBX(%s1) -> 0(0).OBX(%s9)

      Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands

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

Forum Statistics

Registered Users
5,126
Forums
28
Topics
9,296
Replies
34,439
Topic Tags
287
Empty Topic Tags
10