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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for each (seg in msg.children()) | |
| { | |
| if(seg.name() == "OBX") | |
| { | |
| var resultDate = seg['OBX.14']['OBX.14.1'].toString(); | |
| } | |
| } |
Leave a comment