Hi everyone, please check out our new discussion forum located in our GitHub site: https://github.com/nextgenhealthcare/connect/discussions. Let us know your feedback as we try out this new part of GitHub! Don't worry, the content in these forums won't be going away and will at a minimum be preserved for historical reference.
Announcement
Collapse
No announcement yet.
How to send response message upong receiving a HL7
What type of inbound connection do you have this channel setup with? I found that it makes a difference. For LLP connections, it's automatic and very evident on the source tab. For TCP/IP, I had to create a secondary channel to process sending ACKs. It was not evident and it appeared that there are multiple ways to accomplish this.
I've created a test channel that may be a start for you. It has a TCP listener with no filter, no inbound transformer est. For the destinations, you have one that is ACK Writer, making an ACK message and sending it back to whatever TCP connection you want. The other would be used for your database, file, whatever. It sends to a file at the moment.
You would need to set up a filter and what not, to assure you were sending and ACK for a message you wanted, etc.
I hope this is a start. I abandoned this method and instead used an LLP listener for multiple client connections.
Please note the Scripts also, there is something there that may be helpful as well.
Kerry,
Thanks a lot for your help, your sample is good, but here is a misunderstanding. I need to send the ack message to the sender through the same socket (same port) before the connection is closed. This means the sender application sends the HL7 message to 9021 (in your sample), then wait for the ack message on the same socket.
Sorry, I thought you were having difficulty in creating the ACK message, which is what I had concentrated on. I believe there is a way to capture the socket info and use post processing scripts to handle this, but I haven't pursued it further, since LLP connections worked in my case.
Perhaps someone else here can elaborate on another method to return ACKs on TCP/IP connections? I know it would be extremely valuable.
Am I thinking to simple ???, just set Ack on New connection to NO ???? on the LLP-listner you are using as source. Are you using a LLP-listner or a TCP-listner ??
Sorry you are using a TCP-listner, you already mentioned that.
Post edited by: huubvandemortel, at: 01/09/2008 06:49
Post edited by: huubvandemortel, at: 01/09/2008 06:52
Please note the use of the deploy script for global variable declaration for the database connection in the destination. Also, I used a function in the transformer to add quotes around my values, as my database has timestamps that errored when NULL was the value...
Kebin look in this updated example for the transformer incoming tab. It has a message example.
The leading characters I think you're talking about are standard x0D etc from HL7 specs. I used one channel to make my messages in mirth and another to receive them to test this.
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, personalize advertising, and to analyze site activity. We may share certain information about our users with our advertising and analytics partners. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment