Thursday, June 11, 2015

How do you set current timestamp to field of HL7 result in Mirth?

var ctimestamp = DateUtil.getCurrentDate('yyyyMMddhhmmss');

msg['MSH']['MSH.7']['MSH.7.1'] = ctimestamp;
msg['MSH']['MSH.10']['MSH.10.1'] = ctimestamp;

Formatting options :
- yyyy year (four-digit)
- M, MM month, month with leading 0
- d, dd day, day with leading 0
- HH hour, 24-hour-format
- hh hour, 12-hour-format
- mm minutes
- ss seconds
- SSS milliseconds
- ww week in year

What are the driver URLs for database reader in Mirth?

jdbc:postgresql://localhost:5432/dbname
jdbc:mysql://localhost:3306/dbname
jdbc:jtds:sqlserver://localhost:1433/dbname
jdbc:Cache://localhost:1972/NAMESPACE"

('mirthdb' is default dbname and localhost is '127.0.0.1')

How do you hide the DOS console while GUI running?

my $hwnd = Win32::GUI::GetPerlWindow();
Win32::GUI::Hide($hwnd);