SegmentValue

Top  Previous  Next

New in version 2.x of Commando

EasyHL7 Object

EHL7.EHL7Message

Method

SegmentValue(strSegmentGUID)

Parameters

(see below)

Returns

String.  The HL7 value of a single message segment in XML format

Example

strHL7 = oMSG.SegmentHL7(strPIDKey)  -- Returns just the PID segment in XML format

 

 

Name: SegmentValue()

 

Parameters:

 

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

 

Returns: String.  The XML value of the segment

 

 

 

Programming Notes:

 

1.The segment handle name passed in strSegmentGUID must exist in the message object. 
2.This method is functionally equivalent to the CloneSegment Method

 

 

SeeAlso: the HL7 property, the HL7XML property, CloneSegment(), InsertSegment()

 

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