Creating a Batch from Multiple DFT messages.

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Creating a Batch from Multiple DFT messages.

  • Creator
    Topic
  • #52528
    Mike Wilson
    Participant

      Does anyone know of a way I can read in all of my DFT’s for a given time frame then Batch them to send to the Vendor?  Thanks!

    Viewing 6 reply threads
    • Author
      Replies
      • #74563
        Charlie Bursell
        Participant

          Create an OB thread with protocol of UPoC and configure as both read and write.  Use the same proc in both modes.  In the write mode simply append to a file.  In the time mode send the file.

          Simple  ðŸ˜‰

        • #74564
          Mike Wilson
          Participant

            I guess im not sure how to set the write mode to file and time mode to send…

          • #74565
            Charlie Bursell
            Participant

              Just write a proc that runs in both time mode and run mode.

              In the run mode, append you message to a file.  In the time mode send the file to where you want it to go.

              If you cannot do that you will need some implementation assistance

            • #74566
              Mike Wilson
              Participant

                Is there no way to do it using the built in Createbatchheader/trailer scripts?

              • #74567
                Charlie Bursell
                Participant

                  Have not tried it. I think it would entail more than the simple Tcl proc I outlined

                • #74568
                  Mike Wilson
                  Participant

                    Maybe I wasnt totally clear.  The “batch” file would need to truly be a batch message with a BHS segment…  I would think CL would have this functionality built in…

                  • #74569
                    Mike Wilson
                    Participant

                      I thought I would update the thread and let everyone know what I did incase they wanted/need to do this at some point with the built in tools of the engine only.

                      First I created a new Message type within the HL7 variant I was using called DFT_BAT.  Then created the message structure to have the FHS and BHS segments and Trailers.  

                      I then created an Xlate to populate the fields.  So on the inbound I had DFT_P03 and Out was DFT_BAT.  No TCL code needed, No UPOC thread setups.  Just the engine.

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