Hi all,
Using Mirth v1.5, I am trying to insert the current date/time into the MSH 7.1 segment via a JavaScript step in the source channel transformer. Am I headed in the right direction using something like this:
var dateString = DateUtil.getCurrentDate(pattern);
tmp['MSH']['MSH.7']['MSH.7.1'] = datestring;
If so, then what is the format for "pattern" parameter for something like 20070729123955 ?
Also, do I need a localMap.put statement at the end? Is it valid in v1.5?
thanks,
Paul
Using Mirth v1.5, I am trying to insert the current date/time into the MSH 7.1 segment via a JavaScript step in the source channel transformer. Am I headed in the right direction using something like this:
var dateString = DateUtil.getCurrentDate(pattern);
tmp['MSH']['MSH.7']['MSH.7.1'] = datestring;
If so, then what is the format for "pattern" parameter for something like 20070729123955 ?
Also, do I need a localMap.put statement at the end? Is it valid in v1.5?
thanks,
Paul
Comment