how to exclude PV1 and PV2 segments

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf how to exclude PV1 and PV2 segments

  • Creator
    Topic
  • #48628
    Alan James
    Participant

      Simple question from a rookie:  What is the best way (other than a tcl proc) to strip PV1 and PV2 segments from ORU messages?

      I specifically need to do this for results from my clinicals (nursing) system to my pharmacy system.

      If someone could point me to the best documentation for this, I’d appreciate it…  

      Thanks in advance for your time,

      Alan

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

          Alan,

          Are you using BULKCOPY?

          If so then your control exists AFTER the segments have been built.

          Typically that would be done with Tcl.

          Another option is to define your outbound variant without the PV1 and PV2 segments. Then use PATHCOPY and copy the segments you want.

          You could do the same PATHCOPY action as above without defining the outbound variant sans the PV1 and PV2 segments but I find having the variant definition match the receiving system’s need a good thing to do.

          If you want to leave the PV1 and PV2 segments in place in the outbound variant, then I would suggest you make them optional and don’t copy anything to them.

          Of course, you could always COPY each individual field with the variant defined either with or without the PV1 and PV2 segments defined.

          Jim Kosloskey

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

        • #59222
          Anonymous
          Participant

            Alan,

            you can write a TCL script to remove the PV1 and PV2 segments and then put it in inbound routing hence the message will have not PV1/PV2 segments.

            -Thx

            Reggie

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