web stats
Forwarding XML to HTTP Server - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 01-06-2020, 08:27 AM
rStorms rStorms is offline
What's HL7?
 
Join Date: Jan 2020
Posts: 4
rStorms is on a distinguished road
Default Forwarding XML to HTTP Server

Hi all,

I am sending a HL7 v2.4 Message to the Mirth Server, which seems to be working fine. As a Destination I have configured a HTTP Server, written in Node.JS Express.

When sending the HL7 message to Mirth, the following is found in the field RAW under Destination1.

HTML Code:
<HL7Message>
    <MSH>
        <MSH.1>|</MSH.1>
        <MSH.2>^~\&amp;</MSH.2>
        <MSH.3>
            <MSH.3.1>PROSIGHT</MSH.3.1>
        </MSH.3>
        <MSH.4>
            <MSH.4.1>PROSIGHT</MSH.4.1>
        </MSH.4>
        <MSH.5/>
        <MSH.6/>
        <MSH.7>
            <MSH.7.1>200511220712</MSH.7.1>
            <MSH.7.2>YYYYMMDDHHMM</MSH.7.2>
...

However, the response that is being sent, is empty:

URL: http://docker.for.mac.host.internal:6550/receive
METHOD: POST

[HEADERS]

[PARAMETERS]

[CONTENT]


Ideally I want to just forward that XML to my Server. Is that possible, or do I HAVE to do a mapping?

Thanks
Reply With Quote
  #2  
Old 01-06-2020, 03:35 PM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 1,107
agermano is on a distinguished road
Default

It's not really clear what you are trying to do from your description. Can you export and share your channel?

Are you sending that XML to the channel or are you sending an hl7 message that mirth is converting to XML?

What do you have in your destination template? ${message.encodedData} is the most common thing to use. This is your message after the destination transformer is applied. If there are no steps in your destination transformer or changes in data types, the encoded content will be the same as the destination raw content.

I'm not sure where the response factors into this. If your mirth destination is sending to an http server, the response is what the http server sends back.
Reply With Quote
  #3  
Old 01-16-2020, 04:03 AM
rStorms rStorms is offline
What's HL7?
 
Join Date: Jan 2020
Posts: 4
rStorms is on a distinguished road
Default

Sorry for the late reply and thank you for your answer! That clarified everything and I got it to work now!
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 07:22 PM.


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