1.2k questions

1.4k answers

361 comments

339 users

Categories

Sidebar
0 votes
369 views
by daniel-d-7319 (270 points)
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?

1 Answer

+2 votes
 
Best answer

One of your node tags is not closed in the MSH-5:

MSH|^~\&|{cc:MSH-3}||{cc:MSH-5}||{SYSTEM_DATE[yyyyMMddHHmmss]}||{cc:MSH-9}||P|2.3.1|||AL

by brandon-w-8204 (34.1k points)
selected by daniel-d-7319
...