Create Repeating Fields in OutBound Message Templates

mardi 26 août 2014

Mirth 2.2.1.5861 Windows



I am mapping HL7 TO HL7 and have the requirement to populate repeating fields in the Outbound Message Template



My Outbound Message Template looks like (I have created a Z segemnt called ZEN



Field ZEN.22 (Financial class info) may repeat an unknown number of times (depends on source data)



My outbound template looks like



ZEN|ZEN.1



I understand that I can populate it via tmp[ZEN'][ZEN.1'] = 'data one'



I need to be able to populate tmp['ZEN']['ZEN.1][1] = 'data two' - as its not defined in my Outbound message template I cannot reference it



How can I create it in Javascript so I can then populate it



I can update my outbound template to



ZEN|ZEN.1~ZEN.1



But I don't know how many repetitions I need to create (thats data dependent)



Cheers,

Bill





Create Repeating Fields in OutBound Message Templates

0 commentaires:

Enregistrer un commentaire