How to read a list of values from Mirth Channel XML's <mapping>
element? I can use msg
to read one value. But what if there are list of values? Example:
<patient>
<name>names</name>
<patient>
If there is one value fornames
defined, then simply performing <mapping>msg['patient']['name']</mapping>
will return the value. But how to get only values if the names
return more than one name? How to iterate and display in the same XML? I am doing Mirth
for the first time and any help is appreciated.