We can parse HL7 messages inside the transformer. We need to loop through the HL7 and check the Segment types. When we find the correct segment, we can read the data from the target element.


for each (seg in msg.children())
{
if(seg.name() == "OBX")
{
var resultDate = seg['OBX.14']['OBX.14.1'].toString();
}
}