Segment Event
Fires whenever a data segment in a transaction set is read.
Syntax
ANSI (Cross Platform) virtual int FireSegment(HL7ValidatorSegmentEventParams *e);
typedef struct {
const char *Tag;
const char *Name;
const char *LoopName;
const char *FullSegment; int reserved; } HL7ValidatorSegmentEventParams; Unicode (Windows) virtual INT FireSegment(HL7ValidatorSegmentEventParams *e);
typedef struct {
LPCWSTR Tag;
LPCWSTR Name;
LPCWSTR LoopName;
LPCWSTR FullSegment; INT reserved; } HL7ValidatorSegmentEventParams;
- (void)onSegment:(NSString*)tag :(NSString*)name :(NSString*)loopName :(NSString*)fullSegment;
#define EID_HL7VALIDATOR_SEGMENT 7 virtual INT IPWORKSEDI_CALL FireSegment(LPSTR &lpszTag, LPSTR &lpszName, LPSTR &lpszLoopName, LPSTR &lpszFullSegment);
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).