rbeckman-nextgen / test-mc6

0 stars 0 forks source link

JSON message property not being set #4356

Open rbeckman-nextgen opened 4 years ago

rbeckman-nextgen commented 4 years ago

Upgraded from 3.4.2 to 3.9

Value of json message not being set when toString() isn't used. Works without issue in 3.4.2

tmp - type json

var pid = msh['PID']['PID.3']['PID.3.1']; channelMap('pid', pid);

//PatientId property never added to json object, channelMap variable shows proper value; tmp.PatientId = $('pid');

//PatientId property never added to json object; tmp.PatientId = pid;

//works tmp.PatientId = new String(pid);

var pid = msh['PID']['PID.3']['PID.3.1'].toString(); channelMap('pid', pid);

//works once .toString() added tmp.PatientId = $('pid'); tmp.PatientId = pid;

This breaks existing channels, but understand .toString() shoudl be used anyways.

Imported Issue. Original Details: Jira Issue Key: MIRTH-4505 Reporter: mcanalld Created: 2020-04-17T15:16:17.000-0700