web stats
Reset a variable after use? - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Old 10-28-2015, 03:17 AM
ferdinand ferdinand is offline
OBX.1 Kenobi
Join Date: Sep 2014
Posts: 34
ferdinand is on a distinguished road
Default Reset a variable after use?

Hi to all
I have a channer which asks for demographics towards a webservice.

Before, I made a conversion, to remove some characters in the transformer:

var peide = new String($('PEIDE'))
for (var i = 0; i < peide.length; i++) {
var caracter = peide.charAt(i);
if (caracter == "X" || caracter == "x") {
var res = peide.substring(0, i);
globalChannelMap.put('res', res)

The problem is that from time to time I received the same demographics response for different pid's
My guess is that it is using the same variable 'res' for different patients.
żany advice?

Thanks in advance
Reply With Quote

transformer, variables

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 06:18 AM.

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