DeleteSegment

Top  Previous  Next

New in version 2.x of Commando

EasyHL7 Object

EHL7.EHL7Message

Method

DeleteSegment(strSegmentGUID)

Parameters

(see below)

Returns

Boolean - True or False

Example

If Not oMSG.DeleteSegment(strPIDKey) Then ...

 

 

Name: DeleteSegment()

 

Parameters:

 

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

 

Returns: Boolean:  True on success, False on failure

 

Description: Deletes a segment from a message object

 

Programming Notes:

 

1.The segment handle name passed in strSegmentGUID must exist in the message object. 
2.You cannot call the DeleteSegment method on the MSH segment.  See the ReplaceSegment() method to programmatically change the MSH segment.

 

 

SeeAlso: the HL7 property

 

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