Problem with creating multiple OBX segments in Mirth Connect #4754
-
I have DB from where I'm getting my data of measurements. This is my code for looping through my measurements and adding them to OBX segments: `//getting MeasurementsData
If I run this code locally, it returns what I want (measurement type and its result), like: But when I run it on MirthConnect chanel I get every letter from measure type in it's own column: ST|ABI.0^0||{||||||F and my key in for loop is returning some numbers instead of measurement type, like it does locally. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
var data = msg['measurements_measurement_data'].toString(); You are setting data to a string value, and that's probably not what you meant to do. |
Beta Was this translation helpful? Give feedback.
You are setting data to a string value, and that's probably not what you meant to do.