SetEscFieldValue

Top  Previous  Next

EasyHL7 Object

EHL7.EHL7Message

Method

SetEscFieldValue(strValue, hSegment, nFieldNumber, nFieldComponent)

Parameters

(see below)

Returns

Boolean

Example

oMSG.SetEscFieldValue("DAVIS~|^Order", strPIDHandle, 5, 1)  -- sets the ESCAPED value of field 5 component 1 of the segment referenced in strPIDHandle

 

Refer to the EasyHL7 documentation for a discussion of ESCAPE characters in HL7: http://www.hermetechnz.com/Documentation/EasyHL7/escapecharactersinhl7.htm

 

Name: SetEscFieldValue()

 

Parameters

1) strValue (String) the field data in string format

2) hSegment (Segment Handle)

3) nFieldNumber (Long) index of the data field in the segment (1-xxx) to set the value of

4) nFieldComponent (Long) which component of the field element to set value of.  Unlike the SetFieldValue() method, this parameter is NOT optional.

       

Returns: N/A

 

Description: Used in the creation of HL7 Messages sets the value of Component (nFieldComponent) in field element (nFieldNumber) of segment (oSegment) to strValue.