web stats
VB.Net Connection - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 03-19-2018, 11:34 AM
kahoshi kahoshi is offline
What's HL7?
 
Join Date: Mar 2018
Posts: 2
kahoshi is on a distinguished road
Default VB.Net Connection

I am building a page in my vb.net application that based off of a PatientID sends a FHIR message to Cerner to get the Patient data. I can send a TCP socket message to accomplish this and see in Mirth where it is getting the correct FHIR response in JSOD. However I cannot get the code to respond back to my socket. I suspect it is because the socket is waiting for bytes, but not getting it in the correct format.

(exact exception is System.Net.Sockets.SocketException: 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond')

The next step is breaking down the JSOD data into data fields, changing them, and sending them back as a TCP message that converts into a FHIR Update message.
Reply With Quote
  #2  
Old 03-20-2018, 05:43 AM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 964
agermano is on a distinguished road
Default

You might want to consider using one of the other listener types built on tcp that already understands messages rather than using raw tcp, which is a stream. You could use http or a default web service.
Reply With Quote
  #3  
Old 03-20-2018, 08:35 AM
kahoshi kahoshi is offline
What's HL7?
 
Join Date: Mar 2018
Posts: 2
kahoshi is on a distinguished road
Default

Yup HTTPWebRequest worked like a charm, once I put in a JSON adapter to translate the stream.

Thank you for the help.
Reply With Quote
Reply

Tags
fhir, vb.net

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 05:06 PM.


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