web stats
Need help with channel for HL7 v2 via HTTP - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 11-25-2019, 01:15 PM
wheresjim wheresjim is offline
Mirth Newb
 
Join Date: Mar 2012
Posts: 15
wheresjim is on a distinguished road
Default Need help with channel for HL7 v2 via HTTP

I created a channel that receives an HL7 message via HTTP and saves the message to disk. I am testing this using HAPI Test Panel. Every time I send I get a timeout error, and the channel is not returning my ACK. I've attached the channel, can I get a little help? This is on Mirth 3.6.2
Attached Files
File Type: xml HTTP HL7.xml (22.2 KB, 3 views)

Last edited by wheresjim; 11-25-2019 at 02:24 PM.
Reply With Quote
  #2  
Old 11-25-2019, 01:21 PM
jackwhaines jackwhaines is offline
 
Join Date: May 2011
Location: Kansas City, Missouri
Posts: 250
jackwhaines is on a distinguished road
Send a message via Skype™ to jackwhaines
Default

I don't use HAPI Test Panel but it looks like that uses MLLP, not HTTP. If you are using HTTP, maybe try Postman?
__________________

-= Jack Haines : Founder/CEO of Healthcare Integrations, LLC
-= jack.haines@HealthcareIntegrations.com
-= Mirth Connect (Advanced)-certified
-= Gold member of HL7.org
-= Available for Mirth Connect channel development and consultation! Schedule a FREE call with me at https://calendly.com/jackhaines
Reply With Quote
  #3  
Old 11-25-2019, 01:27 PM
wheresjim wheresjim is offline
Mirth Newb
 
Join Date: Mar 2012
Posts: 15
wheresjim is on a distinguished road
Smile

It supports both MLLP and HTTP, actually
Reply With Quote
  #4  
Old 11-25-2019, 01:31 PM
jackwhaines jackwhaines is offline
 
Join Date: May 2011
Location: Kansas City, Missouri
Posts: 250
jackwhaines is on a distinguished road
Send a message via Skype™ to jackwhaines
Default

I see, sorry! You're using 8080 for your channel, which is used by Mirth by default. The channel (or Mirth) should use something different (can't reuse ports like that). Try changing the channel port to 45001 and try again? Works great for me if you change the port...
__________________

-= Jack Haines : Founder/CEO of Healthcare Integrations, LLC
-= jack.haines@HealthcareIntegrations.com
-= Mirth Connect (Advanced)-certified
-= Gold member of HL7.org
-= Available for Mirth Connect channel development and consultation! Schedule a FREE call with me at https://calendly.com/jackhaines
Reply With Quote
  #5  
Old 11-25-2019, 02:27 PM
wheresjim wheresjim is offline
Mirth Newb
 
Join Date: Mar 2012
Posts: 15
wheresjim is on a distinguished road
Default

Due to firewall restrictions I set the Mirth non-encrypted server to listen to 8081, and Mirth to listen to 8080. I should have pointed that out, good catch, BTW!
Reply With Quote
  #6  
Old 11-25-2019, 02:37 PM
jackwhaines jackwhaines is offline
 
Join Date: May 2011
Location: Kansas City, Missouri
Posts: 250
jackwhaines is on a distinguished road
Send a message via Skype™ to jackwhaines
Default

Just so someone coming behind understands... Mirth uses 8080 (HTTP) and 8443 (HTTPS) by default, although it is customizable. You can't create channels to listen on those ports (or any other ports that are in use by the server) and if you try, the channel SHOULDN'T start. wheresjim, so that I'm clear, the in-use port number was the problem?
__________________

-= Jack Haines : Founder/CEO of Healthcare Integrations, LLC
-= jack.haines@HealthcareIntegrations.com
-= Mirth Connect (Advanced)-certified
-= Gold member of HL7.org
-= Available for Mirth Connect channel development and consultation! Schedule a FREE call with me at https://calendly.com/jackhaines
Reply With Quote
  #7  
Old 11-25-2019, 02:45 PM
wheresjim wheresjim is offline
Mirth Newb
 
Join Date: Mar 2012
Posts: 15
wheresjim is on a distinguished road
Default

Oh, no. Still not getting a response. I'm trying to send back the standard HL7 v2 ack in the response, but it's giving an indicating that the file was save correctly (Destination is a File Writer).

I had accounted for the port issue when we figured out we could only receive data on certain ports because of the firewall restrictions.

I have been trying the following in the response transformer for the File Writer destination:

Code:
var myack = new ACKGenerator();
var ackHL7 = myack.generateAckResponse(response,true,"AA","Solved","yyyyMMddHHmmss","Error Occurred" );
responseMap.put("customResponse",ResponseFactory.getSuccessResponse(ackHL7));

return;
I have customResponse selected in the source for a response, but it still just sends the "SENT: File successfully written: /Users/XXXXXXX/Desktop/landing/8221e012-e44c-4fc7-ab6c-b91df97abeb2.hl7" as a response.
Reply With Quote
  #8  
Old 11-25-2019, 02:48 PM
jackwhaines jackwhaines is offline
 
Join Date: May 2011
Location: Kansas City, Missouri
Posts: 250
jackwhaines is on a distinguished road
Send a message via Skype™ to jackwhaines
Default

When I run it using Postman, I get:

Code:
MSH|^~\&|MIRTH|CLB||DEMO|20191125164741.201||ACK^O01^ACK|20191125164741.201|P|2.5.1
MSA|AA|1
__________________

-= Jack Haines : Founder/CEO of Healthcare Integrations, LLC
-= jack.haines@HealthcareIntegrations.com
-= Mirth Connect (Advanced)-certified
-= Gold member of HL7.org
-= Available for Mirth Connect channel development and consultation! Schedule a FREE call with me at https://calendly.com/jackhaines
Reply With Quote
  #9  
Old 11-25-2019, 02:54 PM
wheresjim wheresjim is offline
Mirth Newb
 
Join Date: Mar 2012
Posts: 15
wheresjim is on a distinguished road
Default

Hmm, OK. I tried postman and I get a blank response. Are you setting the message in raw or in the form post?

It's nice to know this channel works somewhere, BTW!

Ahh, I hadn't set the MIME type correctly. Thanks! Working all the time!
Reply With Quote
  #10  
Old 11-25-2019, 02:58 PM
jackwhaines jackwhaines is offline
 
Join Date: May 2011
Location: Kansas City, Missouri
Posts: 250
jackwhaines is on a distinguished road
Send a message via Skype™ to jackwhaines
Default

I'm sending a POST, RAW, "text", using a sample HL7 message. The response in the source is the default "auto-generate (destinations completed)"
__________________

-= Jack Haines : Founder/CEO of Healthcare Integrations, LLC
-= jack.haines@HealthcareIntegrations.com
-= Mirth Connect (Advanced)-certified
-= Gold member of HL7.org
-= Available for Mirth Connect channel development and consultation! Schedule a FREE call with me at https://calendly.com/jackhaines
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 03:22 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation