web stats
Mirth Community - View Single Post - Custom metadata for filtered messages
View Single Post
Old 11-18-2015, 07:28 AM
narupley's Avatar
narupley narupley is offline
Mirth Employee
Join Date: Oct 2010
Posts: 7,125
narupley is on a distinguished road

That's probably because you're using the global channel or global map to house your variables. Use the channel map instead, or connector map if you want variables to be specific only to a single connector.

It's true that if the filter does not pass, the transformer will not be run. But you can still map variables in the filter. Unfortunately there's no Mapper step type there, but you can still easily do it with a JavaScript step:

channelMap.put('mrn', msg['PID']['PID.3']['PID.3.1'].toString());
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.

- How do I foo?
- You just bar.
Reply With Quote