CloneSegment() |
Top Previous Next |
Object: EHL7.EHL7Message FileName: EHL7.dll
METHOD
Name: CloneSegment(oSegment) Parameters:
Returns: Object (Segment Object) - A disconnected segment object. Description: Clone a segment object from the current message.
Programmer's Note: The Segment object returned from CloneSegment IS NOT part of the message. It is completely disconnected from any message object. That being said, you can use ANY instantiated EHL7Messagge object to modify or retrieve the contents of a cloned segment (i.e. GetFieldValue(), SetFieldValue()). You can use Cloned segments to easily move entire segments from one message object to another OR to programmatically create a large number of repetitive segments (NTE, OBX, IN1,IN2, etc) for insertion to the messages.
See Also: InsertSegment(), AddSegment(), SegmentExists(), SegmentCount(), GetSegment(), PreviousSegment(), SegmentName()
|