web stats
How I can compare message type string value - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 04-17-2019, 01:44 AM
devroy1899 devroy1899 is offline
What's HL7?
 
Join Date: Apr 2019
Posts: 2
devroy1899 is on a distinguished road
Question How I can compare message type string value

Hello,

I am capturing var TRANSACTION_TYPE =msg['MSH'].['MSH.9'].['MSH.9.2']
Now I want to check if this value is not equal to A40, like

if ( TRANSACTION_TYPE!=='A40') {
--
--
}

But it is not working

Thanks
Reply With Quote
  #2  
Old 04-17-2019, 07:34 AM
stormcel stormcel is offline
OBX.3 Kenobi
 
Join Date: Mar 2010
Location: Phoenix
Posts: 150
stormcel is on a distinguished road
Default

var TRANSACTION_TYPE =msg['MSH'].['MSH.9'].['MSH.9.2'].toString();
Reply With Quote
  #3  
Old 04-17-2019, 11:47 AM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 688
agermano is on a distinguished road
Default

Since you cross-posted this, I already commented on your SO question.

https://stackoverflow.com/questions/...e-string-value
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 05:24 AM.


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