web stats
http sender url - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 06-19-2019, 02:13 PM
jay1234 jay1234 is offline
What's HL7?
 
Join Date: Jun 2019
Posts: 3
jay1234 is on a distinguished road
Default http sender url

How do I change the http sender url from a destination?

I have destination 1 that is an http sender to get an id, and I want to set destination url dynamically based on that url.

In destination 1's transformer and response I have
channelMap.put("id",123)

In the url for destionation 2 I have
www.server.com/patient_referrals/${id}

but the id is always blank. Ive tried this with the global channel map
Reply With Quote
  #2  
Old 06-20-2019, 06:46 AM
cory_cole cory_cole is offline
Mirth Guru
 
Join Date: Mar 2012
Posts: 1,299
cory_cole is on a distinguished road
Default

On destination 2, do you have 'Wait for previous destination' selected.
Reply With Quote
  #3  
Old 06-20-2019, 08:29 AM
jay1234 jay1234 is offline
What's HL7?
 
Join Date: Jun 2019
Posts: 3
jay1234 is on a distinguished road
Default

Yes, the wait is enabled. And I have queuing enabled
Reply With Quote
  #4  
Old 06-20-2019, 10:15 AM
cory_cole cory_cole is offline
Mirth Guru
 
Join Date: Mar 2012
Posts: 1,299
cory_cole is on a distinguished road
Default

Can you post your channel?
Reply With Quote
  #5  
Old 06-20-2019, 12:55 PM
kirbykn2's Avatar
kirbykn2 kirbykn2 is offline
Mirth Guru
 
Join Date: Sep 2014
Location: Michigan
Posts: 577
kirbykn2 is on a distinguished road
Default

I do this with multiple channels. The responses I get are JSON so I have to parse the json and set my channel map variables.


You can also use an inbound message template on the response.
__________________
Kirby

Mirth Certified|Epic Bridges Certified|Cloverleaf Level 2 Certified

Appliance Version 3.11.2
Mirth Connect Version 3.6.1
Java Version 1.6.0_45-b06
Java (64 bit) Version 1.6.0_45-b06
Java 7 (64 bit) Version 1.7.0_151-b15
Java 8 (64 bit) Version 1.8.0_121-b13
PostgreSQL Version 9.6.3
Reply With Quote
  #6  
Old 06-20-2019, 12:55 PM
jay1234 jay1234 is offline
What's HL7?
 
Join Date: Jun 2019
Posts: 3
jay1234 is on a distinguished road
Default

I got it to work by using
responseMap.put('d4', ResponseFactory.getSentResponse('message'))
in the transformer and then getting that message out
$('d4').getMessage()
Reply With Quote
Reply

Tags
channel map, http sender

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 02:09 AM.


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