add a pipe right after pv1|

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf add a pipe right after pv1|

  • Creator
    Topic
  • #49622
    Hongle Sun
    Participant

    I would like to add a pipe right after the pv1 segment in A31.. That is

    msh|….

    pid|….

    pv1|

    how can i do this, thanks

Viewing 0 reply threads
  • Author
    Replies
    • #62757
      Jim Kosloskey
      Participant

      One way is in the variant make sure the PV1 segment is required (it should be) and make the PV1-1 (Set ID – PV1) field required (it probably is not).

      If using BULKCOPY (or perhaps PATHCOPY) then make sure you COPY @null to the PV1-1 field.

      If doing field by field integration (no BULKCOPY or PATHCOPY) then I don’t think you need to COPY anything to the PV1-1 field as Xlate will create required segments and required fields.

      Of course, the above is dependent on you NEVER receive a PV1 segment from the Source System.

      Of course another way is to get the receiving system to use a good parser that does not require at least one field in a segment.  🙄

      Jim Kosloskey

      email: jim.kosloskey@jim-kosloskey.com

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

Forum Statistics

Registered Users
4,968
Forums
28
Topics
9,108
Replies
33,633
Topic Tags
248