Segment Event
Fires whenever a data segment in a transaction set is read.
Syntax
hl7translator.on('Segment', [callback])
Callback
The 'callback' is called when the 'Segment' event is emited.
function(e){ }
The argument 'e' has the following properties:
e.tag e.name e.loopName e.fullSegment
Remarks
The Segment event will fire when a data segment is read. The Tag parameter contains the tag of the segment. Name contains the name of the segment as defined in the associated transaction set schema. LoopName contains the name of the loop or group this segment is present in (such as N1Loop1).