Removing an OBX segment

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Removing an OBX segment

  • Creator
    Topic
  • #48266
    Arslan Khan
    Participant

      Hi Guys,

      I am running into a situation where I have to remove one OBX segment, which I am converting into an NTE segment, as follows:

      Inbound:


      OBX|1|NM|GLUF^Glucose, fasting|1.1|6.6|mmol/L|(3.3-6.0)|H|||F OBX|2|FT|GLUF^Glucose, fasting|1.2|Impaired fasting glucose     6.1-6.9 mmol/L~Diabetic                     >6.9    mmol/L||||||F

      Outbound:


      OBX|1|NM|GLUF^Glucose, fasting|1.1|6.6|mmol/L|(3.3-6.0)|H|||F OBX|2|FT|GLUF^Glucose, fasting|1.2|Impaired fasting glucose     6.1-6.9 mmol/L~Diabetic                     >6.9    mmol/L||||||F

      NTE|||Impaired fasting glucose     6.1-6.9 mmol/L NTE|||Diabetic                     >6.9    mmol/L

      Receiving system wants me to remove the second instance of OBX, in this case:

      OBX|2|FT|GLUF^Glucose, fasting|1.2|Impaired fasting glucose     6.1-6.9 mmol/L~Diabetic                     >6.9    mmol/L||||||F

      I am using an xlate to do this OBX-NTE conversion. Is there is a way to remove the same OBX segment (which is being converted into an NTE) inside an xlate?

      Any ideas how to accomplish this?

      Thanks.

      Arslan Khan

    Viewing 0 reply threads
    • Author
      Replies
      • #58212
        Daniel Lee
        Participant

          Can you just use a PATHCOPY and copy an @null into that iteration of the OBX?  Are you always going to only have one OBX in the outbound thread?  If so define the OBX as non-repeating in the outbound varrient and your BULKCOPY should take care of only keeping the first one.

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