how to create a new segment

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf how to create a new segment

  • Creator
    Topic
  • #50601
    Kevin Crist
    Participant

    how do you create a new segment within the xlate or possibly tcl. We have a system that needs a DG1 segment, but we need to make it from scratch.

    Thanks in advance.

Viewing 3 reply threads
  • Author
    Replies
    • #66743
      Rob Abbott
      Keymaster

      create a variant that has [DG1] as optional where you need it.

      If you copy any data to the DG1 during translate, it will show up.  If you don’t copy anything, it won’t.

      Rob Abbott
      Director, Product Management - Infor Cloverleaf

    • #66744
      Kevin Crist
      Participant

      ok, i know this is way easier than i am making it out to be. what we had was our HIS sent out a DG1 regardless of if it was populated or not. We have since done an upgrade and now the DG1 does not come out if not populated on admissions. We have one system that needs this. I have made the inbound variant optional and required and the same for the outbound, but nothing is working. I will post what is in our xlate already, the code is from before the upgrade.

    • #66745
      Anonymous
      Participant

      If I am reading this correctly. The destination system needs / Requires the DG1 segment Blank or not.

      If that is correct the variant for you outbound just make the segment required.

      Or am I missing something ?

    • #66746
      Jim Kosloskey
      Participant

      Do you have BULKCOPY involved?

      If not then what John suggested (making the DG1 segment required in the outbound variant) should do the trick.

      If BULKCOPY is involved then I think you will need to check the first iteration of the inbound DG1 and see if it is null (pick a field that will always be populated if the DG1 segment exists). If it is null, then COPY @null to the first DG1 field in the destination message.

      email: jim.kosloskey@jim-kosloskey.com

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

Forum Statistics

Registered Users
5,024
Forums
28
Topics
9,178
Replies
33,935
Topic Tags
260