New in version 2.x of Commando
EasyHL7 Object
|
EHL7.EHL7Message
|
Method
|
ReplaceSegment(strSegmentGUID, strSegmentValue)
|
Parameters
|
(see below)
|
Returns
|
String - The new GUID handle for the segment replaced.
|
Example
|
strPIDKey = oMSG.ReplaceSegment(strPIDKey, strNewValue)
|
Name: ReplaceSegment()
Parameters:
1. | strSegmentGUID (String) the name of the HL7 Segment to add. |
2. | strSegmentValue (String) the XML value of the new segment (returned from either the CloneSegment() or SegmentValue() methods. |
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: oUTILITIES.NewMessageObject(), CloneSegment(), SegmentValue(), InsertSegment()
For further information, please see the EasyHL7 documentation http://www.hermetechnz.com/Documentation/EasyHL7/index.html.
|