Assembly: Mergecom.HL7 (in Mergecom.HL7.dll) Version: 4.3.0.0
Syntax
| C# |
|---|
public class HL7Segment |
| Visual Basic |
|---|
Public Class HL7Segment |
| Visual C++ |
|---|
public ref class HL7Segment |
Remarks
Each field in the segment is referenced by its sequence number starting with 1.
Instances of this class should be created through the CreateSegment(String) method and the method CreateSegment(String, HL7Toolkit..::..HL7Version) method or using one of the specialized classes defined in the com.merge.HL7.segments package.
An application can define its own HL7Segment derived class to handle Z segments. A derived class should overwrite the following properties and methods:
MaxSize, GetFieldType(Int32), GetFieldDescription(Int32), GetFieldLength(Int32) and IsFieldMandatory(Int32)
Private segments can also be defined through the toolkit configuration using the following format:
SEGMENT_[segmentName] = [fieldType1]:[fieldType2]:...:[fieldTypeN]
E.g. "SEGMENT_ZMY = SI:CX:CX:XAD:ST:ST:IS:CE" defines a segment named ZMY that has 8 fields of the specified type.
An application can register its own segment classes using the SetSegmentClass(String, Type) method.
Instances of this class are thread safe.