GetSegment

Object Method - GetSegment()

Parent Object - EasyHL7Message

Returns - HL7MessageSegment Object


Name: GetSegment(ByVal strSegmentName, Optional ByVal lngIndex = 1)

Parameters: 1. strSegmentName (String - The name of the segment to retrieve from the object)

2. lngIndex (Long - Which occurrence (if there are multiple) to return)

 

Returns: The Segment Object or Nothing if it does not exist in the message

Description: Retrieves a segment object from the HL7 message