Mirth Community

Mirth Community (http://www.mirthcorp.com/community/forums/index.php)
-   Support (http://www.mirthcorp.com/community/forums/forumdisplay.php?f=6)
-   -   My custom ResponseMap is missing; Mirth Connect v3 RC1 (http://www.mirthcorp.com/community/forums/showthread.php?t=9141)

Philoushka 08-12-2013 08:26 AM

My custom ResponseMap is missing; Mirth Connect v3 RC1
 
Using v3 RC1

A channel relies on a custom Response built in the destinations to use as a Response in the Source/Response Settings.

In a Destination's Template, we state:

responseMap.put('ResponseHL7v2', ResponseFactory.getSuccessResponse(myhl7));

This entry is not seen on that destination nor any further destinations. The Response entries are all [d1, d2, d3, ]

When this code executes in v2.2.2, it outputs the expected:

SUCCESS: MSH|^~\&|ADM|.......

I also saw the warning about this method being deprecated.

When I switched to use .getSentResponse(myhl7) there's no difference in behaviour.

If I log the values here, I only see "SENT".

How can I use custom Responses in v3 RC1?

narupley 08-12-2013 08:37 AM

Thanks for finding that; it's actually due to a bug: MIRTH-2673#comment-46358

I've fixed it already, so it will work now in RC 2, which will be released soon. Thanks!

Philoushka 08-12-2013 08:50 AM

Thanks Nick!

Any workaround that'll allow me to effectively do the same - build my own response - in this build?

narupley 08-12-2013 09:54 AM

Quote:

Originally Posted by Philoushka (Post 34002)
Thanks Nick!

Any workaround that'll allow me to effectively do the same - build my own response - in this build?

Custom responses should still work from the postprocessor in that build. In fact, you don't even have to touch the response map at all. Just return a string directly:

Code:

return 'ACK';
And then choose "Postprocessor" from your source response settings.


All times are GMT -8. The time now is 10:02 PM.

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