#1
|
|||
|
|||
![]()
We're interfacing with Epic for Materials Management. When a value is removed from our source application, Epic requires 2 double quotes "" to remove the value from Epic. Sending a blank field doesn't work.
Here is what I have in the transformer: Message Segment: tmp['IVT']['IVT.20']['IVT.20.1'] Mapping: msg['alt_psid'].toString().trim() Generated Script: tmp['IVT']['IVT.20']['IVT.20.1'] = validate(msg['alt_psid'].toString().trim(), "", new Array()); So what can I put in the "Default Value" setting of the transformer to always send 2 double quotes "" along? I've tried "", \"", \"\", '""', '"'", and everything in between, but most of the time the Channel errors out on me saying that's invalid. Simply entering the 2 double quotes "" works with no error, though the HL7 field (in this case, IVT-20) is completely empty without the 2 double quotes "". |
#2
|
||||
|
||||
![]()
Any JavaScript expression will work. So try this:
Code:
'""'
__________________
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. ![]()
|
#3
|
|||
|
|||
![]()
THANK YOU!
I thought I tried that? Even included in my OP that I tried it ![]() I really appreciate your fast, and working!, reply ![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|