Multiple OBX to Single OBX

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Multiple OBX to Single OBX

  • Creator
    Topic
  • #49981
    Mauricio Garzon
    Participant

      How do I take just one OBX segment from multiple OBXs in a message and send that one OBX only? I am basing it on the text value INFLATIONS that I see in OBX#5 in this example.

      INBOUND

      MSH|^~&|||||200804071554||ORU^R01|200804070023||2.2|

      PID|||5770395||DJURICKOVIC^DRAGOSLAV||19510906|M||||||||||S25568551|

      PV1|||||||Liao^Robert^MD|||||||||||||||||||||||||||||||||||||20080320|

      OBR|1||HA000929|10000^CASE DATA|||20080320124819|20080320132617||||||||||||||||CTH|F||||||||||||||||||

      OBX|1|ST|10301^PATN NAME||DJURICKOVIC, DRAGOSLAV|text||||||||20080320132617||||

      OBX|2|ST|10302^PATN MRN||5770395|text||||||||20080320132617||||

      OBX|3|ST|10314^PATN ROOM NO||ROOM 1|text||||||||20080320132617||||

      OBX|4|ST|10310^PATN DOB||19510906|date||||||||20080320132617||||

      OBX|5|ST|50100^PROC LOG ENTRY||INFLATIONS: Initial >> PTCA Balloon Inflated @ 8 Atm for 15 Secs  {L1}|text||||||||20080320130627||||

      OBX|6|ST|50100^PROC LOG ENTRY||Procedure End|text||||||||20080320132617||||

      OUTBOUND Should look like:

      MSH|^~&|||||200804071554||ORU^R01|200804070023||2.2|

      PID|||5770395||DJURICKOVIC^DRAGOSLAV||19510906|M||||||||||S25568551|

      PV1|||||||Liao^Robert^MD|||||||||||||||||||||||||||||||||||||20080320|

      OBR|1||HA000929|10000^CASE DATA|||20080320124819|20080320132617||||||||||||||||CTH|F||||||||||||||||||

      OBX|1|ST|50100^PROC LOG ENTRY||INFLATIONS: Initial >> PTCA Balloon Inflated @ 8 Atm for 15 Secs  {L1}|text||||||||20080320130627||||

      Any suggestions greatly appreciated!   🙂

    Viewing 1 reply thread
    • Author
      Replies
      • #64384
        John Hamilton
        Participant

          Here is a quickie use an Iterate over the obx with an IF statement.

          ITER OBX ….

          if  OBX.5  EQ =VALUE_HERE

              PATHCOPY OBX

          Warning if you are using bulk copy you will have to blank out the other OBX. Or better yet don’t use bulkcopy. And copy everything separately.

        • #64385
          Mauricio Garzon
          Participant

            Ok thanks! I think this will lead me to where I needed to go.

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