web stats
Mirth Community - View Single Post - Convert date regardless of incoming pattern
View Single Post
  #4  
Old 09-17-2018, 10:58 AM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 688
agermano is on a distinguished road
Default

Try this as your Message Segment.

Code:
tmp['PID']['PID.7']['PID.7.1']
Your Mapping should probably also be only
Code:
convertDate(msg['row']['Date_of_Birth'].toString(),'yyyyMMdd')
but it may work the way you have it.

Edit - I removed the row index after msg['row']. Since you have batch processing enabled on your source connector, you will only ever have one row at a time. If you change your inbound template to only have one row, the drag-and-drop won't include the row index either.

Last edited by agermano; 09-17-2018 at 01:53 PM. Reason: removed row index
Reply With Quote