CloneSegment

Top  Previous  Next

New in version 2.x of Commando

EasyHL7 Object

EHL7.EHL7Message

Method

CloneSegment(strSegmentGUID)

Parameters

(see below)

Returns

String. The cloned segment in XML format OR "" on failure.

Example

strClone = oMSG.CloneSegment(strPIDKey)  -- Returns the cloned Segment XML

 

 

Name: CloneSegment()

 

Parameters:

 

1.        strSegmentGUID (String) the name of the HL7 Segment to add.

 

Returns: String.  The cloned segment in XML format.

 

Description: Creates an exact copy of a segment which can be passed to the InsertSegment(), InsertSegmentAfter(), InsertSegmentBefore() methods.

 

Programming Notes:

 

1.The segment handle name passed in strSegmentGUID must exist in the message object. 
2.Use the CloneSegment method to transfer entire segments between message objects.

 

SeeAlso: oUTILITIES.NewMessageObject()

 

For further information, please see the EasyHL7 documentation http://www.hermetechnz.com/Documentation/EasyHL7/index.html.