SegmentIsCached

Object Method - SegmentIsCached()

Parent Object - HL7Vendor

Returns - Boolean


Name: SegmentIsCached(ByVal strSegmentName)

Parameters: 1. strSegmentName (String - The name of the segment to verify is in cache, PID, MSH, etc.)

 

Description: When the objects are used to read and write HL7 messages, the most costly (time wise) internal operations involve retrieving HL7 segment information from the HL7Vendor definition files. As a result of this, whenever a particular segment information is retrieved from disk the first time, it is cached in system memory for future use. Calling this method, and CacheSegment allows you to 'front-load' your application by making sure that commonly used HL7 segments are cached BEFORE your application starts creating/reading messages. NOTE: calling this function is NOT required, the only benefit derived will be increased performance for the FIRST HL7 message that the vendor object is used to create (from the various child objects, EasyHL7MessageObject, HL7FileAnalyzer, HL7FolderProcessor, etc).

 

Note From Support: We have been asked why we don't cache the entire HL7 specification into memory (every segment). The answer is simple, that operation would be quite lengthy and probably 9 out of 10 HL7 solutions only deal with a dozen or so HL7 segments in total.

 

 

See Also: CacheSegment