¿Cuáles son las reglas para un nombre de variable válido en mirth?

I am trying to set up a transformer on a Database Reader to file writer channel. I am reading in a sql field called MRN which I would like to send to a variable called mrn. I added a step to a channel with a variable called tmp['MSH'] mapping to a variable called msg['MSH'] But mirth is giving me the error message:

The variable name contains invalid characters. Please enter a new variable name

¿Cuáles son las reglas para un nombre de variable válido en mirth?

preguntado el 09 de marzo de 12 a las 22:03

1 Respuestas

tmp y msg are two built-in variables containing E4X mappings of the outbound template and inbound message, respectively. You would map, via a MessageBuilder step, from inbound to outbound with tmp['MSH'][...] = msg['MSH']... where ... refers to the appropriate sections. Essentially these are pre-populated javascript property arrays.

If you really want to create a variable for use in multiple places, the rules are alphanumeric plus '_', I believe.

In a MessageBuilder step, you could refer to a previously created variable with ${varname}.

I would recommend investing a little time in getting familiar with the basics. Documentation is wanting, to be sure, but esta serie de publicaciones de blog Son un buen lugar para comenzar.

respondido 10 mar '12, 19:03

@dividius--thanks for all of your Mirth help. I was the tech writer for a Mirth system and then was put in charge of maintaining it. I've managed this far without delving into mapping but now one of mappings for one of the channels is not working so I'm learning fast! - bernie2436

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.