I am using {SYSTEM_DATE[yyyyMMddHHmmss]} as part of a system variable template but it does not seem to be working, the field remains blank when intialize the message wwith
message.setNode('/', qie.parseHL7String(qie.evaluateTemplate(qie.getVariable('ADT_Template'))));
The intersting segment in the system variable is defined as shown below. The Channel Cache calls weem to be working just fine.
MSH|^~\&|{cc:MSH-3}||{cc:MSH-5||{SYSTEM_DATE[yyyyMMddHHmmss]}||{cc:MSH-9}||P|2.3.1|||AL
What am I doing wrong?